@finos/legend-application-repl-deployment 13.4.0 → 13.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/repl/index.html +1 -1
- package/dist/repl/static/{index.cf371d68.js → index.d4c82f6a.js} +2 -2
- package/dist/repl/static/index.d4c82f6a.js.map +1 -0
- package/dist/repl/static/{index.9a3dcc18.css → index.ea8da51b.css} +4 -4
- package/dist/repl/static/{index.9a3dcc18.css.map → index.ea8da51b.css.map} +1 -1
- package/dist/repl/version.json +1 -1
- package/package.json +3 -3
- package/dist/repl/static/index.cf371d68.js.map +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
(()=>{var e,t,n,r,o,i={51947:(e,t,n)=>{"use strict";const r=JSON.parse('{"rE":"10.0.66","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var o,i=n(20938);class a{name;version;signature;uuid}class s{name;version;uuid=(0,i.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 a;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class l{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"}(o||(o={}));class c{channel;name;timestamp=Date.now();static create(e){const t=new c;return t.name=e,t}}class u extends s{level=o.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=o.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=o.INFO&&this._info(e,...t)}warn(e,...t){this.level<=o.WARN&&this._warn(e,...t)}error(e,...t){this.level<=o.ERROR&&this._error(e,...t)}}class d{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:g,info:p,warn:m,error:h}=console;class f extends u{constructor(){super(r.XO.Z,r.rE)}_debug(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){p(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){h(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var E=n(31085),b=n(25873),C=n(94417),v=n(84365);const _=()=>()=>{},T=e=>(0,C.A)(e,(e=>void 0!==e)),N=e=>e.length?e[e.length-1]:void 0,A=(e,t,n)=>(U(0<=t&&t<e.length,`Index out of bound: ${t}`),P(e[t],n)),y=(e,t,n=(e,t)=>e===t)=>{const r=e.findIndex((e=>n(e,t)));return-1!==r&&(e.splice(r,1),!0)};class S extends Error{uuid=(0,i.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 I 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=>{const t=T({printFunctionName:!1,maxDepth:1});return(0,v.GP)(e,t).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function w(e){if(!(e instanceof Error))throw new I("Expected error to be thrown")}const R=e=>{try{return e()}catch{return}};class O extends x{constructor(e,t){super("Assertion Error",e,t)}}const L=e=>null==e,F=e=>null!=e;function B(e,t=""){if(null==e)throw new O(t||"Value is nullable")}const P=(e,t="")=>(B(e,t),e);function D(e,t,n=""){if(!(e instanceof t))throw new O(n||`Value is expected to be of type '${t.name}'`)}const j=(e,t,n="")=>(D(e,t,n),e);function M(e,t=""){return function(e,t=""){if(""===P(e,t))throw new O(t||"Expected string value to be non-empty")}(e,t),e}function U(e,t=""){if(!e)throw new O(t||"Expected predicate to be truthy")}const G=e=>"string"==typeof e,H=e=>"number"==typeof e&&!isNaN(e),V=e=>"boolean"==typeof e,W=e=>"object"==typeof e&&null!==e,Y=(e,t="")=>(function(e,t=""){if(!G(e))throw new O(t||"Value is expected to be a string")}(e,t),e),$=(e,t="")=>(function(e,t=""){if(!H(e))throw new O(t||"Value is expected to be a number")}(e,t),e),z=(e,t="")=>(function(e,t=""){if(!V(e))throw new O(t||"Value is expected to be a boolean")}(e,t),e);var X=n(66651),K=n(56046),q=n(6451),J=n(8041);const Q=X.v,Z="charset=utf-8";var ee,te,ne;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(ee||(ee={})),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"}(te||(te={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(ne||(ne={}));const re={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 ie 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:r,url:o}=e,i=`Received response with status ${n} (${r}) for ${o}`;this.message=(t?(e=>{if(W(e))return G(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&G(t.message)?t.message:e})(t).substring(0,5e3):"")||i,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 ie(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===Q.NO_CONTENT)return Promise.resolve(void 0);const r=t.headers.Accept;switch(r){case te.APPLICATION_JSON:return e.json();case te.TEXT_PLAIN:return e.text();default:return Promise.reject(new ie(e,`Can't process response for request with Content-Type '${r}'`))}},se=(e,t)=>{const n={};return n.Accept=te.APPLICATION_JSON,e!==ne.GET&&(n[ee.CONTENT_TYPE]=`${te.APPLICATION_JSON};${Z}`),oe(n,t)};class le{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...re,...e?.options??{}}}async get(e,t={},n,r,o,i){return this.request(ne.GET,e,void 0,t,n,r,o,i)}async put(e,t={},n={},r,o,i,a){return this.request(ne.PUT,e,t,n,r,o,i,a)}async post(e,t={},n={},r,o,i,a){return this.request(ne.POST,e,t,n,r,o,i,a)}async delete(e,t={},n={},r,o,i,a){return this.request(ne.DELETE,e,t,n,r,o,i,a)}async request(e,t,n,r,o,i,a,s){const l=((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 r=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(F).forEach((t=>r.searchParams.append(e,t.toString()))):r.searchParams.append(e,t.toString()))})),r.toString()})(this.baseUrl,t,i??{});let c;if((G(n)||W(n))&&a?.enableCompression&&(U(e!==ne.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,K.Kc)(W(e)?JSON.stringify(e):e)]))(n),o=oe(o,{[ee.CONTENT_TYPE]:`${te.APPLICATION_ZLIB};${Z}`})),void 0!==n)if(G(n)||n instanceof Blob)c=n;else{if(!W(n))throw new O("Request body can only be either a 'string' or an 'object'");c=JSON.stringify(n)}const u={...this.options,...r,method:e,body:c,headers:se(e,o)};return fetch(l,u).then((e=>0===e.status||e.status===Q.UNAUTHORIZED?s?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",r=document.getElementById(n);r?.remove();const o=document.createElement("iframe");o.id=n,o.src=e,o.style.display="none",o.addEventListener("load",(()=>{o.remove(),t()})),document.body.appendChild(o)})))(s.autoReAuthenticateUrl).then((()=>fetch(l,u))).then((e=>ae(e,u,s))):fetch(l,u).then((e=>ae(e,u,s))):ae(e,u,s))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(l,u).then((e=>ae(e,u,s))):Promise.reject(e)))}}const ce=(e,t,n)=>{const r=new Blob([t],{type:n}),o=URL.createObjectURL(r),i=document.createElement("a");"string"==typeof i.download?(document.body.appendChild(i),i.download=e,i.href=o,i.click(),document.body.removeChild(i)):location.replace(o)},ue=(e,t=!1)=>t?q.A.parseUrl(e).query:q.A.parse(e),de=(e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0};var ge;!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.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.DEBUG="development.debug"}(ge||(ge={}));var pe=n(97542);class me{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,C.A)(t,(e=>null!==e))):e);var t}}const he=e=>(0,pe.Ie)((t=>void 0===t?pe._Z:(0,pe.lK)(e,t)),(t=>(0,pe.iu)(e,t))),fe=e=>(0,pe.Ie)((()=>e),(()=>e)),Ee=(e,t,n)=>(0,pe.Ie)((t=>t?e(t):pe._Z),(e=>e?t(e):pe._Z),n),be=e=>(0,pe.Ie)((t=>t?(0,pe.lK)(e,t):pe._Z),(t=>t?(0,pe.iu)(e,t):pe._Z)),Ce=(e,t,n)=>Array.isArray(e)?e.map(t):n?.skipIfEmpty?pe._Z:[],ve=(e,t,n)=>Array.isArray(e)?e.length?e.map((e=>t(e))):n?.skipIfEmpty?pe._Z:[]:pe._Z,_e=(e,t,n)=>Ee((t=>ve(t,(t=>e(t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:n?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>t(e)),{skipIfEmpty:!1})));class Te{key;markdownText;title;text;url;related;static serialization=new me((0,pe.PL)(Te,{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=Te.serialization.fromJson(e);return n.key=t,n}}var Ne=n(66696);const Ae=e=>Object.entries(e).map((e=>({key:e[0],content:Te.create(e[1],e[0])})));class ye{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(c.create(ge.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,Ne.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(c.create(ge.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(c.create(ge.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]=Te.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Se,xe,Ie=n(83794);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Se||(Se={}));class ke{state;_message;_messageFormatter;constructor(){this.state=Se.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Se.INITIAL,this}inProgress(){return this.state=Se.IN_PROGRESS,this}fail(){return this.state=Se.FAILED,this}pass(){return this.state=Se.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===Se.INITIAL}get isInProgress(){return this.state===Se.IN_PROGRESS}get hasFailed(){return this.state===Se.FAILED}get hasSucceeded(){return this.state===Se.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,Ie.Gn)(new ke,{state:Ie.sH,_message:Ie.sH,reset:Ie.XI,inProgress:Ie.XI,pass:Ie.XI,fail:Ie.XI,complete:Ie.XI,setMessage:Ie.XI,sync:Ie.XI,isInInitialState:Ie.EW,isInProgress:Ie.EW,hasFailed:Ie.EW,hasSucceeded:Ie.EW,hasCompleted:Ie.EW,message:Ie.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"}(xe||(xe={}));class we{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)}))}close(){this.traceEntries.forEach((e=>{e.plugin.concludeServerSpan(e.serverSpan)}))}}class Re{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,r){const o=new we;return e&&o.setup(this.plugins.map((o=>{const i=o.createClientSpan(e);return{clientSpan:i,serverSpan:o.createServerSpan(i,t,n,r),plugin:o}}))),o}}const Oe=n(37102).A;var Le,Fe;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Le||(Le={}));class Be{currentMode=Le.STANDARD;onSearchModeChange;constructor(e){(0,Ie.Gn)(this,{currentMode:Ie.sH,isAdvancedSearchActive:Ie.EW,setCurrentMode:Ie.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Le.STANDARD}generateSearchText(e){switch(this.currentMode){case Le.INCLUDE:return`'"${e}"`;case Le.EXACT:return`="${e}"`;case Le.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Fe||(Fe={}));class Pe{uuid=(0,i.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,Ie.Gn)(this,{isOpen:Ie.sH,setIsOpen:Ie.XI}),this.documentationKey=e.key,this.title=M(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class De{uuid=(0,i.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 je=e=>Boolean(e.title&&(e.url??e.text??e.markdownText));class Me{applicationStore;panelRenderingKey=(0,i.A)();isDisabled=!1;isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=Fe.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=ke.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,Ie.Gn)(this,{isDisabled:Ie.sH,isHidden:Ie.sH,isOpen:Ie.sH,isPanelMaximized:Ie.sH,panelRenderingKey:Ie.sH,isOverSearchLimit:Ie.sH,selectedTab:Ie.sH,searchText:Ie.sH,searchResults:Ie.sH,currentDocumentationEntry:Ie.sH,showSearchConfigurationMenu:Ie.sH,currentContextualDocumentationEntry:Ie.EW,setIsDisabled:Ie.XI,setIsHidden:Ie.XI,setIsOpen:Ie.XI,setIsPanelMaximized:Ie.XI,setSelectedTab:Ie.XI,setSearchText:Ie.XI,resetSearch:Ie.XI,search:Ie.XI,openDocumentationEntry:Ie.XI,refreshPanelRendering:Ie.XI,setShowSearchConfigurationMenu:Ie.XI}),this.applicationStore=e,this.searchEngine=new Oe(this.applicationStore.documentationService.getAllDocEntries().filter(je),{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 Be((()=>{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 De(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(F).filter(je).map((e=>new Pe(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Pe(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&((e=>je(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,i.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 Pe(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 Ue{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class Ge{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(ge.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}})}static logEvent_ApplicationContextAccessed(e,t){e.logEvent(ge.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(ge.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(ge.APPLICATION_USAGE__INTERRUPT,{})}}class He{applicationStore;contextStack=[];constructor(e){(0,Ie.Gn)(this,{contextStack:Ie.sH,currentContext:Ie.EW,push:Ie.XI,pop:Ie.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 I(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&Ge.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 Ve{applicationStore;commandRegistry=new Map;constructor(e){(0,Ie.Gn)(this,{commandRegistry:Ie.sH,registerCommand:Ie.XI,deregisterCommand:Ie.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(ge.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 We{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,Ie.Gn)(this,{keyMap:Ie.sH,commandKeyMap:Ie.sH,isHotkeysBlocked:Ie.sH,addHotkey:Ie.XI,blockGlobalHotkeys:Ie.XI,unblockGlobalHotkeys:Ie.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(F);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 Ye=n(84594),$e=n(34462),ze=n(720),Xe=n(75974),Ke=n(90382);const qe="yyyy-MM-dd'T'HH:mm:ss";var Je;!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"}(Je||(Je={}));const Qe=(e,t)=>`[${e};${t}H`;class Ze{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,Ie.Gn)(this,{searchText:Ie.sH,useRegex:Ie.sH,matchWholeWord:Ie.sH,matchCaseSensitive:Ie.sH,resultCount:Ie.sH,currentResultIndex:Ie.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class et{applicationStore;searchConfig=new Ze;constructor(e){(0,Ie.Gn)(this,{setSearchText:Ie.XI,setSearchRegex:Ie.XI,setSearchWholeWord:Ie.XI,setSearchCaseSensitive:Ie.XI,setSearchResultCount:Ie.XI,setSearchCurrentResultIndex:Ie.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 tt extends et{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,Ie.Gn)(this,{preserveLog:Ie.sH,setPreserveLog:Ie.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var nt=n(29481);n(24404),n(41880);const rt=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,ot=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],it=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>ot.includes(e.toLowerCase())?e.toLowerCase():rt(e))).replace(/^(?:\w+)\b/u,(e=>rt(e))).replace(/\b(?:\w+)$/u,(e=>rt(e)));var at;function st(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=P(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"}(at||(at={}));const lt=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![at.SHIFT,at.META,at.ALT,at.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),ct=(e,t)=>lt(e,P(st(t)[0]));function ut(e){const t=new Map;let n=null;return r=>{r instanceof KeyboardEvent&&((0,nt.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,o=st(e.combination);if(!o.length)return;const i=t.get(n)??o,a=P(i[0]);lt(r,a)?i.length>1?t.set(n,i.slice(1)):(t.delete(n),e.handler(n,r)):r.getModifierState(r.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}var dt=n(48187),gt=n(12285),pt=n(97088),mt=n(34336),ht=n(22351);const ft=(0,dt.A)({transitions:{create:()=>"none"},components:{MuiButtonBase:{defaultProps:{disableRipple:!0}}}}),Et=e=>{const{children:t}=e;return(0,E.jsx)(gt.A,{injectFirst:!0,children:(0,E.jsx)(pt.A,{theme:ft,children:(0,E.jsx)(mt.$,{dateAdapter:ht.h,children:t})})})};var bt=n(49676),Ct=n(23432),vt=n(25150),_t=n(20306),Tt=n(50692),Nt=n(96242),At=n(54357);const yt=(e,t)=>{const n=e=>{const{children:n,className:r}=e;return(0,E.jsx)("div",{className:(0,At.$)(t,r),"data-testid":e["data-testid"],children:n})};return n.displayName=e,n},St=e=>{const{children:t,darkMode:n,className:r}=e;return(0,E.jsx)("div",{className:(0,At.$)("modal",{"modal--dark":n},r),children:t})},xt=e=>{const{title:t,icon:n,className:r}=e;return(0,E.jsxs)("div",{className:(0,At.$)("modal__title",r),children:[n&&(0,E.jsx)("div",{className:"modal__title__icon",children:n}),(0,E.jsx)("div",{className:"modal__title__label",children:it(t)})]})},It=e=>{const{title:t,children:n,className:r}=e;return!n&&t?(0,E.jsx)("div",{className:(0,At.$)("modal__header",r),children:(0,E.jsx)(xt,{title:t})}):(0,E.jsx)("div",{className:(0,At.$)("modal__header",r),children:n})},kt=(yt("ModalHeaderActions","modal__header__actions"),yt("ModalBody","modal__body")),wt=yt("ModalFooter","modal__footer");var Rt,Ot;yt("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION",e.ERROR="ERROR"}(Rt||(Rt={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Ot||(Ot={}));class Lt{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,Ie.Gn)(this,{blockingAlertInfo:Ie.sH,actionAlertInfo:Ie.sH,setBlockingAlert:Ie.XI,setActionAlertInfo:Ie.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 Ft=n(14041);const Bt=(0,Ft.createContext)(void 0),Pt=()=>P((0,Ft.useContext)(Bt),"Can't find application store in context"),Dt=e=>{const{children:t,store:n}=e,r=(0,vt.iz)((()=>n));return(0,E.jsx)(Bt.Provider,{value:r,children:t})},jt=e=>{switch(e){case Ot.PROCEED_WITH_CAUTION:return"btn--caution";case Ot.PROCEED:case Ot.STANDARD:default:return"btn--dark"}},Mt=(0,vt.PA)((e=>{const{info:t}=e,n=Pt(),{title:r,message:o,prompt:i,type:a,onClose:s,onEnter:l,actions:c}=t,u=()=>{s?.(),n.alertService.setActionAlertInfo(void 0)};return(0,E.jsx)(Nt.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:_,TransitionProps:{onEnter:()=>l?.()},children:(0,E.jsxs)("form",{onSubmit:e=>{e.preventDefault(),c.find((e=>e.default))?.handler?.(),u()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(a??Rt.STANDARD).toLowerCase()}`,children:[r&&(0,E.jsx)(It,{title:r}),(0,E.jsxs)(kt,{children:[(0,E.jsx)("div",{className:"blocking-alert__summary-text",children:o}),(0,E.jsx)("div",{className:"blocking-alert__prompt-text",children:i})]}),(0,E.jsxs)(wt,{children:[c.map(((e,t)=>(0,E.jsx)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${jt(e.type??Ot.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),u()},autoFocus:Boolean(e.default),children:e.label},t))),!c.length&&(0,E.jsx)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:u,children:"Cancel"})]})]})})})),Ut=(0,vt.PA)((()=>{const e=Pt().alertService.actionAlertInfo;return e?(0,E.jsx)(Mt,{info:e}):null})),Gt=e=>{const{isLoading:t,className:n}=e,r=(0,Ft.useRef)(null);return(0,Ft.useEffect)((()=>{r.current&&(t?r.current.parentElement?.classList.add("panel-loading-indicator__container"):r.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,E.jsx)("div",{ref:r,className:(0,At.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))})},Ht=(0,vt.PA)((()=>{const e=Pt(),t=e.alertService.blockingAlertInfo;return t?(0,E.jsx)(Nt.A,{open:Boolean(t),onClose:_,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,E.jsxs)(St,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,E.jsx)(Gt,{isLoading:Boolean(t.showLoading)}),(0,E.jsxs)(kt,{children:[(0,E.jsx)("div",{className:"blocking-alert__message",children:t.message}),t.prompt&&(0,E.jsx)("div",{className:"blocking-alert__message__prompt",children:t.prompt})]})]})}):null}));var Vt=n(94269),Wt=n(59896),Yt=n(86750),$t=n(87997),zt=n(56819);const Xt=Vt.RQJ,Kt=Wt.QRP,qt=Yt.QCr,Jt=Yt._Hm,Qt=Yt.Pcn,Zt=Yt.gZZ,en=Yt.__w,tn=Yt.KSO,nn=Yt.UnJ,rn=Yt.A7C,on=Yt.BS8,an=Yt.KRc,sn=Yt.Su4,ln=Yt.kxO,cn=Yt.vq8,un=Yt.GfC,dn=Yt.SoL,gn=Yt.Wx3,pn=$t.f7n,mn=$t.Lun,hn=zt.oss,fn=zt.Br,En=zt.YZI;var bn=n(82801),Cn=n(98960);const vn=6e3;var _n;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(_n||(_n={}));class Tn{severity;message;actions;autoHideDuration;constructor(e,t,n,r){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=r}}class Nn{notification;constructor(){(0,Ie.Gn)(this,{notification:Ie.sH,setNotification:Ie.XI,notify:Ie.XI,notifySuccess:Ie.XI,notifyWarning:Ie.XI,notifyIllegalState:Ie.XI,notifyError:Ie.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new Tn(_n.INFO,e,t??[],null===n?void 0:n??vn))}notifySuccess(e,t,n){this.setNotification(new Tn(_n.SUCCESS,e,t??[],null===n?void 0:n??vn))}notifyWarning(e,t,n){this.setNotification(new Tn(_n.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??vn))}notifyError(e,t){const n=this.getErrorMessage(e);n&&this.setNotification(new Tn(_n.ERROR,n,t??[],void 0))}getErrorMessage(e){let t;return e instanceof S?t=e.detail:e instanceof Error?t=e.message:(U(G(e),"Can't display error"),t=e),t}notifyIllegalState(e,t,n){this.setNotification(new Tn(_n.ILEGAL_STATE,G(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??vn))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return w(e),this.notifyIllegalState(e.message),t}}}const An=(0,vt.PA)((()=>{const e=Pt(),t=e.notificationService.notification,n=Boolean(t),r=t?.message??"",o=t?.severity??_n.INFO,[i,a]=(0,Ft.useState)(!1);let s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,E.jsx)(en,{})});switch(o){case _n.ILEGAL_STATE:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(an,{})});break;case _n.ERROR:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(Jt,{})});break;case _n.WARNING:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,E.jsx)(on,{})});break;case _n.SUCCESS:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,E.jsx)(rn,{})})}const l=()=>{e.notificationService.setNotification(void 0),a(!1)},c=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(r)));return(0,E.jsx)(bn.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:vn,onClose:(e,t)=>{"timeout"===t&&l()},children:(0,E.jsx)(Cn.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,E.jsxs)("div",{className:"notification__message__content",children:[s,(0,E.jsx)("div",{className:(0,At.$)("notification__message__content__text",{"notification__message__content__text--expanded":i}),onClick:c,title:"Click to Copy",children:r})]}),action:[(0,E.jsx)("button",{className:"notification__action",onClick:()=>a(!i),tabIndex:-1,title:i?"Collapse":"Expand",children:i?(0,E.jsx)(hn,{}):(0,E.jsx)(fn,{})},"expand"),(0,E.jsx)("button",{className:"notification__action",onClick:l,tabIndex:-1,title:"Dismiss",children:(0,E.jsx)(qt,{})},"close")]})},"string"==typeof r||"number"==typeof r?r:"")}));var yn=n(12436);const Sn=e=>{const{children:t,classes:n,...r}=e;return(0,E.jsx)(yn.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...r,children:e.children})},xn=e=>{const{className:t,children:n,menuProps:r,content:o,disabled:i,onClose:a,onOpen:s}=e,l=(0,Ft.useRef)(null),[c,u]=(0,Ft.useState)(!1),[d,g]=(0,Ft.useState)(),[p,m]=(0,Ft.useState)(0),[h,f]=(0,Ft.useState)(0),b=()=>{g(void 0),u(!1),f(0),m(0)},C=e=>{e.stopPropagation(),e.preventDefault(),b(),a?.()},v=e=>{if(e.stopPropagation(),e.preventDefault(),!i&&(s?.(),l.current)){const t=l.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),r=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:o,clientY:i,target:s}=e,c=s;if(d!==c&&!(document.elementsFromPoint(o,i).some((e=>e===c))&&n<=o&&o<=n+t.width&&r<=i&&i<=r+t.height))return b(),void a?.();g(c),u(!0),f(i),m(o)}};return(0,E.jsxs)("div",{ref:l,className:t,onContextMenu:v,children:[n,(0,E.jsx)(Sn,{open:c,anchorPosition:{left:p,top:h},onClose:C,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:v},disableRestoreFocus:!0,transitionDuration:0,onClick:C,...r,children:c&&o},`${p}, ${h}`)]})},In=(0,Ft.forwardRef)((function(e,t){const{className:n,children:r,...o}=e;return(0,E.jsx)("div",{ref:t,className:(0,At.$)("menu",n),...o,children:r})})),kn=e=>{const{className:t,onClick:n,title:r,disabled:o,children:i,...a}=e;return(0,E.jsx)("button",{className:(0,At.$)("menu__item",t),disabled:Boolean(o),title:r,onClick:n,...a,children:i})};yt("MenuContentDivider","menu__divider"),yt("MenuContentItemIcon","menu__item__icon"),yt("MenuContentItemLabel","menu__item__label");var wn=n(87062),Rn=n(29163),On=n(30559);const Ln=e=>((0,Ft.useEffect)((()=>{On.A.initialize({startOnLoad:!0,theme:"dark"}),On.A.contentLoaded()}),[e.value]),(0,E.jsx)(wn.o,{className:(0,At.$)("markdown-content",e.className),remarkPlugins:[Rn.A],components:e.components??{code:e=>{const{children:t,className:n,node:r,...o}=e,i=/language-(?<language>\w+)/.exec(n??"");return i?.groups?.language?(0,E.jsx)("code",{...o,className:(0,At.$)(i.groups.language),children:t}):(0,E.jsx)("code",{...o,className:n,children:t})}},children:e.value.value}));var Fn=n(49073),Bn=n(89463),Pn=(n(11097),n(53213)),Dn=n(65318),jn=n(12777);function Mn(...e){return(0,Fn.QP)((0,At.$)(e))}function Un(e){const t=(0,Ft.useRef)(e?.skipOnMount),n=e?.refreshMode,r=e?.refreshRate??1e3,o=(0,Ft.useMemo)((()=>({leading:e?.refreshOptions?.leading,trailing:e?.refreshOptions?.trailing})),[e?.refreshOptions?.leading,e?.refreshOptions?.trailing]),[i,a]=(0,Ft.useState)({width:void 0,height:void 0}),s=(0,Ft.useRef)(null),l=(0,Ft.useMemo)((()=>e?.targetRef??s),[e?.targetRef]),c=e?.onResize,u=(0,Ft.useCallback)((e=>{t.current?t.current=!1:e.forEach((e=>{const t={width:e.contentRect.width,height:e.contentRect.height};a((n=>n.width===t.width&&n.height===t.height?n:(c?.({width:t.width,height:t.height,entry:e}),t)))}))}),[t,c]),d=(0,Ft.useMemo)((()=>{switch(n){case"debounce":return(0,Dn.A)(u,r,o);case"throttle":return(0,jn.A)(u,r,o);default:return u}}),[u,n,r,o]);return(0,Ft.useEffect)((()=>{let e;return l.current?(e=new window.ResizeObserver(d),e.observe(l.current)):(c?.({width:void 0,height:void 0,entry:void 0}),a({width:void 0,height:void 0})),()=>{e?.disconnect(),"cancel"in d&&d.cancel()}}),[d,c,l]),{ref:l,...i}}const Gn=e=>{const{children:t}=e,{ref:n,width:r,height:o}=Un({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[i,a]=(0,Ft.useState)(!1),{ref:s,width:l,height:c}=Un({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Ft.useEffect)((()=>{a((l??0)>(r??0)+40&&(c??0)>(o??0)+40)}),[l,c,r,o]),(0,E.jsx)("div",{ref:s,className:"panel__content__blank",children:(0,E.jsx)("div",{ref:n,className:(0,At.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!i}),children:t})})};var Hn=n(31122),Vn=n(14779),Wn=n(38347);const Yn=e=>{const{children:t,options:n,size:r,className:o,...i}=e,a=((e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n})(n,r);return(0,E.jsxs)("div",{className:(0,At.$)("mui-radio-group",o),children:[a.map(((e,t)=>(0,E.jsx)("div",{children:(0,E.jsx)(Hn.A,{className:"mui-radio-group__group",...i,children:e.map((e=>(0,E.jsx)(Vn.A,{className:"mui-radio-group__group__column",style:{width:100/r+"%"},value:e,control:(0,E.jsx)(Wn.A,{className:"mui-radio-group__group__item__radio-btn",classes:{checked:"mui-radio-group__group__item__radio-btn--checked"}}),label:(0,E.jsx)("div",{className:"mui-radio-group__group__item__label",children:e})},e)))})},t))),t]})};var $n=n(92895);const zn=e=>{const{children:t,...n}=e;return(0,E.jsx)($n.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children})};var Xn,Kn=n(64);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(Xn||(Xn={}));const qn=(0,vt.PA)((e=>{const{entry:t}=e,n=Pt(),r=()=>{t.isOpen||Ge.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},o=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,E.jsx)(xn,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsx)(In,{children:(0,E.jsx)(kn,{onClick:o,children:"Copy Documentation Key"})}),children:(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry",children:[(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,E.jsx)("button",{className:(0,At.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:r,children:t.isOpen?(0,E.jsx)(hn,{}):(0,E.jsx)(En,{})}),t.url?(0,E.jsx)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Ge.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title}):(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__title",onClick:r,children:t.title})]}),t.isOpen&&t.content&&(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content",children:G(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content}):(0,E.jsx)(Ln,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content})})]})})})),Jn=(0,vt.PA)((()=>{const e=Pt(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),r=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),o=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,E.jsxs)(xn,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(In,{children:[(0,E.jsx)(kn,{onClick:n,children:"Copy Context ID"}),(0,E.jsx)(kn,{onClick:r,children:"Copy Current Context ID"}),(0,E.jsx)(kn,{onClick:o,children:"Copy Context Stack"})]}),children:[t&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__title",children:t.title}),t.content&&(0,E.jsx)(E.Fragment,{children:G(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__text",children:t.content}):(0,E.jsx)(Ln,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content})}),t.related.length&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]}),t.related.map((e=>(0,E.jsx)(qn,{entry:e},e.uuid)))]})]}),!t&&(0,E.jsx)(Gn,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(dn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"})]})})]})})),Qn=(0,vt.PA)((()=>{const e=Pt(),t=(0,Ft.useRef)(null),n=e.assistantService,r=n.searchText,o=(0,Ft.useMemo)((()=>(0,Dn.A)((()=>n.search()),100)),[n]);return(0,Ft.useEffect)((()=>{t.current?.focus()}),[]),(0,E.jsxs)("div",{className:"virtual-assistant__search",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__header",children:[(0,E.jsx)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,At.$)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":r}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),o()},value:r,placeholder:"Ask me a question"}),r&&(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")}),(0,E.jsx)("button",{className:(0,At.$)("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,E.jsx)(Qt,{})}),r?(0,E.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,E.jsx)(qt,{})}):(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,E.jsx)(tn,{})})]}),(0,E.jsxs)("div",{className:"virtual-assistant__search__content",children:[(0,E.jsx)(Gt,{isLoading:n.searchState.isInProgress}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(Xn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,E.jsx)("div",{onClick:()=>n.openDocumentationEntryLink(Xn.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,E.jsx)(Zt,{})})]}),(0,E.jsx)("div",{children:(0,E.jsx)(Yn,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Le.STANDARD,Le.INCLUDE,Le.EXACT,Le.INVERSE],size:1})})]})}),n.currentDocumentationEntry&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:(0,E.jsx)(qn,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid)}),!n.currentDocumentationEntry&&(0,E.jsxs)(E.Fragment,{children:[Boolean(n.searchResults.length)&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,E.jsx)(qn,{entry:e},e.uuid)))}),r&&!n.searchResults.length&&(0,E.jsx)(Gn,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(gn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."})]})}),!r&&!n.searchResults.length&&(0,E.jsx)(xn,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(In,{children:[(0,E.jsx)(kn,{onClick:()=>{ce(`documentation-registry_${(0,Kn.GP)(new Date(Date.now()),qe)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),te.APPLICATION_JSON)},children:"Download documentation registry"}),(0,E.jsx)(kn,{onClick:()=>{ce(`documentation-registry_${(0,Kn.GP)(new Date(Date.now()),qe)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),te.APPLICATION_JSON)},children:"Download contextual documentation mapping"})]}),children:(0,E.jsxs)("div",{className:"virtual-assistant__character",children:[(0,E.jsxs)("div",{className:"virtual-assistant__character__figure",children:[(0,E.jsx)(un,{className:"virtual-assistant__character__hat"}),(0,E.jsx)(mn,{className:"virtual-assistant__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__character__beard"})]}),(0,E.jsx)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"}),(0,E.jsx)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"})]})})]})]})]})})),Zn=(0,vt.PA)((e=>{const{triggerElement:t}=e,n=Pt(),r=n.assistantService,o=r.currentContextualDocumentationEntry,i=r.selectedTab,a=n.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraVirtualAssistantViewConfigurations?.()??[])),s=a.find((e=>e.key===i));return(0,E.jsx)(zn,{open:r.isOpen,className:"virtual-assistant__panel__container",anchorEl:t,hideBackdrop:!0,PaperProps:{classes:{root:"virtual-assistant__panel__container__root"}},disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"},children:(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__panel",{"virtual-assistant__panel--maximized":r.isPanelMaximized}),tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header",children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Fe.SEARCH}),onClick:()=>r.setSelectedTab(Fe.SEARCH),title:"Search",children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,E.jsx)(tn,{})})}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Fe.CONTEXTUAL_SUPPORT}),onClick:()=>r.setSelectedTab(Fe.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,E.jsx)(cn,{}),o&&(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"})]})}),a.map((e=>(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===e.key}),onClick:()=>{r.setSelectedTab(e.key),e.autoExpandOnOpen&&r.setIsPanelMaximized(!0)},title:e.title,children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:e.icon??(0,E.jsx)(Zt,{})})},e.key)))]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__actions",children:[(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>r.setIsPanelMaximized(!r.isPanelMaximized),title:r.isPanelMaximized?"Minimize":"Maximize",children:r.isPanelMaximized?(0,E.jsx)(sn,{}):(0,E.jsx)(ln,{})}),(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>r.setIsOpen(!1),title:"Close",children:(0,E.jsx)(Xt,{className:"virtual-assistant__panel__icon__close"})})]})]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__content",children:[i===Fe.SEARCH&&(0,E.jsx)(Qn,{}),i===Fe.CONTEXTUAL_SUPPORT&&(0,E.jsx)(Jn,{}),s?.renderer()]})]})},r.panelRenderingKey)})),er=(0,vt.PA)((()=>{const[e,t]=(0,Ft.useState)(!1),[n,r]=(0,Ft.useState)((0,i.A)()),o=Pt(),a=(0,Ft.useRef)(null),s=o.assistantService,l=s.currentContextualDocumentationEntry,c=()=>{!s.isOpen&&l&&s.setSelectedTab(Fe.CONTEXTUAL_SUPPORT),s.setIsOpen(!s.isOpen)};return(0,Ft.useEffect)((()=>{s.isHidden&&r((0,i.A)())}),[s.isHidden]),(0,E.jsx)(Bn,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),nodeRef:a,handle:".virtual-assistant__station__drag-handle",children:(0,E.jsxs)("div",{className:"virtual-assistant",ref:a,children:[(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__station",{"virtual-assistant__station--hidden":s.isHidden,"virtual-assistant__station--active":Boolean(l)}),children:[(0,E.jsx)("button",{className:"virtual-assistant__station__hide-button",title:"Hide assistant",onClick:()=>{o.assistantService.toggleAssistant()},children:(0,E.jsx)(nn,{})}),(0,E.jsx)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:c,title:s.isOpen?"Click to close assistant panel":(l?"Contextual support available.\n":"")+"Click to open Assistant...",children:(0,E.jsxs)("div",{className:"virtual-assistant__station__character",children:[(0,E.jsx)(un,{className:"virtual-assistant__station__character__hat"}),(0,E.jsx)(mn,{className:"virtual-assistant__station__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__station__character__beard"})]})}),(0,E.jsx)("div",{className:"virtual-assistant__station__label",onClick:c,children:"Assistant"}),(0,E.jsx)(xn,{className:(0,At.$)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(In,{children:[(0,E.jsx)(kn,{onClick:()=>{s.setIsOpen(!1),r((0,i.A)())},children:"Reset Position"}),(0,E.jsx)(kn,{onClick:()=>o.assistantService.hideAssistant(),children:"Hide Assistant"})]}),children:(0,E.jsx)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,E.jsx)(Kt,{})})})]},l?.uuid??""),!e&&s.isOpen&&!s.isHidden&&a.current&&(0,E.jsx)(Zn,{triggerElement:a.current})]})},n)}));var tr;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(tr||(tr={}));const nr=["Meta+KeyP","Control+KeyP","Meta+KeyS","Control+KeyS","F8","F10","F11","Meta+Shift+KeyP","Control+Backquote","Control+Shift+KeyN","Control+Shift+KeyP","Meta+KeyB","Control+KeyB","F7","Alt+F7","Control+Shift+KeyB","Alt+KeyZ"],rr=(e,t)=>{const n={};return e.forEach(((e,r)=>{e.length&&(n[r]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:nr,handler:(e,t)=>{t.preventDefault()}},n},or=e=>(0,E.jsx)("div",{className:"backdrop__container","data-elementid":e.elementId}),ir=(0,vt.PA)((e=>{const{children:t}=e,n=Pt(),r=rr(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{nr.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Ft.useEffect)((()=>{const e=ut(r);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[r]),(0,Ft.useEffect)((()=>{const e=()=>{document.hidden&&(Ge.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,E.jsxs)(Et,{children:[(0,E.jsx)(Ht,{}),(0,E.jsx)(Ut,{}),(0,E.jsx)(An,{}),(0,E.jsx)(er,{}),n.layoutService.showBackdrop&&(0,E.jsx)(bt.A,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??tr.BACKDROP_CONTAINER)??null,children:(0,E.jsx)(Ct.A,{className:"backdrop",open:n.layoutService.showBackdrop})}),(0,E.jsx)(_t.Q,{backend:Tt.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":tr.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(or,{elementId:tr.BACKDROP_CONTAINER}),t]})})]})})),ar=(0,vt.PA)((e=>{const{children:t}=e,n=Pt(),r=rr(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{nr.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Ft.useEffect)((()=>{const e=ut(r);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[r]),(0,E.jsx)(Et,{children:(0,E.jsx)(_t.Q,{backend:Tt.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":tr.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(or,{elementId:tr.BACKDROP_CONTAINER}),t]})})})})),sr={foreground:"#cccccc",background:"#1e1e1e",cursor:"#cccccc",selectionBackground:"#264f78",black:"#000000",red:"#cd3131",green:"#0dbc79",yellow:"#e5e510",blue:"#2472c8",magenta:"#bc3fbc",cyan:"#11a8cd",white:"#e5e5e5",brightBlack:"#666666",brightRed:"#f14c4c",brightGreen:"#23d18b",brightYellow:"#f5f543",brightBlue:"#3b8eea",brightMagenta:"#d670d6",brightCyan:"#29b8db",brightWhite:"#e5e5e5"},lr={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},cr=`\n${Je.BOLD}${Je.BRIGHT_BLUE}$purist${Je.RESET}\n${Je.BOLD}${Je.MAGENTA}❯${Je.RESET} `,ur="❯ ";class dr{terminal;regex;handler;constructor(e,t,n){this.terminal=e,this.regex=t,this.handler=n}provideLinks(e,t){t(this.computeLink(e).map((e=>({range:e.range,text:e.text,activate:this.handler}))))}computeLink(e){const[t,n]=this.translateBufferLineToStringWithWrap(e-1),r=new RegExp(this.regex.source,`${this.regex.flags||""}g`);let o,i=-1;const a=[];for(;null!==(o=r.exec(t));){const e=o[0];if(!e)break;if(i=t.indexOf(e,i+1),r.lastIndex=i+e.length,i<0)break;a.push({text:e,range:{start:this.stringIndexToBufferPosition(i,n,!1),end:this.stringIndexToBufferPosition(i+e.length-1,n,!0)}})}return a}translateBufferLineToStringWithWrap(e){let t,n,r="";do{const t=this.terminal.buffer.active.getLine(e);if(!t)break;t.isWrapped&&e--,n=t.isWrapped}while(n);const o=e;do{const n=this.terminal.buffer.active.getLine(e+1);t=!!n&&n.isWrapped;const o=this.terminal.buffer.active.getLine(e);if(!o)break;r+=o.translateToString(!0).substring(0,this.terminal.cols),e++}while(t);return[r,o]}stringIndexToBufferPosition(e,t,n){const r=this.terminal.buffer.active.getNullCell();for(;e;){const o=this.terminal.buffer.active.getLine(t);if(!o)return{x:0,y:0};const i=o.length;let a=0;for(;a<i;){if(o.getCell(a,r),(e-=r.getChars().length)<0)return{x:a+(n?r.getWidth():1),y:t+1};a+=r.getWidth()}t++}return{x:1,y:t+1}}}class gr extends tt{instance;resizer;renderer;searcher;linkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=ke.create();constructor(e){super(e),this.instance=new Ye.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:'"Roboto Mono", Menlo, Consolas, monospace',tabStopWidth:2,theme:sr,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new $e.FitAddon,this.searcher=new ze.SearchAddon,this.renderer=new Ke.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new I("Terminal is already set up");this.setupState.complete(),this.renderer.onContextLoss((()=>{this.renderer.dispose()})),this.instance.loadAddon(this.resizer),this.instance.loadAddon(this.searcher),this.instance.loadAddon(this.renderer),this.instance.loadAddon(new Xe.Unicode11Addon),this.instance.unicode.activeVersion="11",this.instance.attachCustomKeyEventHandler((e=>ct(e,"Control+KeyF")||ct(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(ct(e,"Control+KeyC")&&this.instance.hasSelection()||ct(e,"Control+KeyV")))),e?.webLinkProvider&&(this.linkProvider=this.instance.registerLinkProvider(new dr(this.instance,e.webLinkProvider.regex,e.webLinkProvider.handler))),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(ge.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE),`Found multiple duplicated terminal commands '${t}'`):this.commandRegistry.set(t,e)}))})),this.searcher.onDidChangeResults((e=>{this.setSearchResultCount(e.resultCount),this.setSearchCurrentResultIndex(e.resultIndex)})),this._TEMPORARY__onKeyListener=this.instance.onKey((({key:e,domEvent:t})=>{var n,r;if("ArrowUp"!==t.code)if("ArrowDown"!==t.code)if(this.commandHistoryNavigationIdx=void 0,"Enter"===t.code){if(this.command.trim()){const e=this.command,[t,...n]=e.replaceAll(/\s+/g," ").split(" ");if(this.addCommandToHistory(this.command),!t)return;const r=this.commandRegistry.get(t);if(!r)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,r.handler(n.map((e=>e.trim())),t,e).catch((()=>{})).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(ct(t,"Control+KeyD")||ct(t,"Control+KeyC")&&!this.instance.hasSelection())this.abort();else if("Backspace"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);else if("Delete"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);else if("ArrowLeft"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else if("ArrowRight"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else e.match(/^[A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]$/)?this.writeToCommand(e):(n=t,r=this.applicationStore,r.layoutService.getElementByID(tr.TOP_LEVEL_CONTAINER)?.dispatchEvent(new KeyboardEvent(n.type,n)));else void 0!==this.commandHistoryNavigationIdx&&this.setCommandFromHistory(0===this.commandHistoryNavigationIdx?void 0:this.commandHistoryNavigationIdx-1);else this.setCommandFromHistory(void 0!==this.commandHistoryNavigationIdx?this.commandHistoryNavigationIdx+1:0)})),this._TEMPORARY__onDataListener=this.instance.onData((e=>{e.length>1&&!e.startsWith("")&&this.writeToCommand(e.replaceAll(/[^A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]/g,"").trimEnd())}))}getCommandRange(){const e=this.instance.buffer.active,t=this.instance.cols,n=`${ur}${this.command}`,r=`${ur}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let o=0,i=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(P(e.getLine(n)).translateToString()===r){o=n,i+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}i+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:o,startX:2,endY:o+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:i}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,r=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))r||(r=!0);else if(r){n=t.cursorIdx-e-1;break}}else for(let e=t.cursorIdx+1;e<this.command.length;++e)if(this.command.charAt(e).match(/\w/))r||(r=!0);else if(r){n=e-t.cursorIdx-1;break}return void 0===n&&(n=e?t.cursorIdx:this.command.length-t.cursorIdx),e?-n:n}computeCursorMovement(e,t=!0){const n=this.instance.buffer.active,r=this.instance.cols,o=this.instance.rows,i=this.getCommandRange(),a=t?e<0?i.cursorIdx:this.command.length-i.cursorIdx:e,s=Math.min(Math.abs(e),a);let l=n.cursorX,c=n.cursorY,u=n.baseY+n.cursorY;e<0?(l=(r+(n.cursorX-s)%r)%r,c=n.cursorY-(s>n.cursorX?Math.ceil(s/r):0),u=c+n.baseY,c=Math.max(c,-1)):e>0&&(l=(n.cursorX+s)%r,c=n.cursorY+(n.cursorX+s>=r?Math.floor((n.cursorX+s)/r):0),u=c+n.baseY,c=Math.min(c,o-1));const d=u>n.viewportY+o?u-(n.viewportY+o):u<n.viewportY?u-n.viewportY:0;return{seq:Qe(c+1,l+1),scroll:d}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),r=this.command.slice(t.cursorIdx),o=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(o.scroll),this.instance.write(e+r+o.seq),this.setCommand(n+e+r)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,r=Math.min(Math.abs(e),n);let o,i,a;if(0===e)return;e<0?(o=this.command.slice(0,t.cursorIdx-r),i=this.command.slice(t.cursorIdx,this.command.length),a=-r):(o=this.command.slice(0,t.cursorIdx),i=this.command.slice(t.cursorIdx+r,this.command.length),a=0);const s=this.computeCursorMovement(a);this.instance.scrollLines(s.scroll),this.instance.write(Qe(t.startY+1,t.startX+1)+o+i+" ".repeat(r)+s.seq),this.setCommand(o+i)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new I("XTerm terminal has not been set up yet");this.instance.open(e)}dispose(){this.searcher.dispose(),this.resizer.dispose(),this.renderer.dispose(),this.linkProvider?.dispose(),this._TEMPORARY__onKeyListener?.dispose(),this._TEMPORARY__onDataListener?.dispose(),this.instance.dispose()}autoResize(){this.resizer.fit()}focus(){this.instance.focus()}addCommandToHistory(e){e!==this.commandHistory.at(0)&&this.commandHistory.unshift(e)}setCommandFromHistory(e){const t=void 0===e?this.currentCommandSearchString:this.commandHistory.filter((e=>e.startsWith(this.currentCommandSearchString))).at(e);if(void 0!==t){let n=this.getCommandRange();this.instance.write(Qe(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(Qe(n.endY+1,n.endX+1)),this.commandHistoryNavigationIdx=e}}setCommand(e){this.command=e,this.currentCommandSearchString=e,this.commandHistoryNavigationIdx=void 0}newCommand(){this.instance.write(cr),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${Je.DIM}(system: ${e})\n${Je.RESET}`))}flushScreen(){this.instance.write("c"),this.instance.reset()}get isFlushed(){const e=this.instance.buffer.active;let t=!0;for(let n=e.baseY+e.cursorY;n>-1;--n){const r=P(e.getLine(n)).translateToString();if(r.trim()){t=r!==ur;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(Je.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${Je.BRIGHT_BLACK}+-------------------------------------------------------+${Je.RESET}\n${Je.BRIGHT_BLACK}|${Je.RESET} ${Je.BRIGHT_GREEN}[@@]${Je.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${Je.BRIGHT_BLACK}|${Je.RESET}\n${Je.BRIGHT_BLACK}|${Je.RESET} ${Je.BRIGHT_GREEN}/|__|\\${Je.RESET} ${Je.BRIGHT_BLACK}|${Je.RESET}\n${Je.BRIGHT_BLACK}+--${Je.RESET} ${Je.BRIGHT_GREEN}d b${Je.RESET} ${Je.BRIGHT_BLACK}-----------------------------------------------+${Je.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,nt.A)(Array.from(e.values()),(e=>e.command)).map((e=>`${Je.BRIGHT_GREEN}${e.command.padEnd(30)}${Je.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${Je.DIM}${e.usage}${Je.RESET}`)).join("\n")}`)),this.abort()}showCommonANSIEscapeSequences(){this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write(`\nCommon ANSI Escape Sequences for Styling:\n\n${Object.entries(Je).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?it(e.trim().replace(/_+/gu," ").toLowerCase()):rt(e.trim()).split(/(?<chunk>[A-Z][a-z]+|[0-9]+)/).map((e=>e.toUpperCase()===e?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).filter(Boolean).join(" ").replace(/_+/gu," ").replace(/\s+/gu," "):"")(e).padEnd(20)}${Je.RESET} ${t.replace("","\\u001b")}`)).join("\n")}`),this.abort()}abort(){this.resetANSIStyling(),this.instance.write("\n"),this.newCommand(),this.instance.scrollToBottom(),this.isRunningCommand=!1}fail(e,t){t?.systemCommand&&this.newSystemCommand(t.systemCommand),this.instance.write(`\n${e}`),this.abort()}output(e,t){this.resetANSIStyling(),t?.clear&&!this.preserveLog||!t?.systemCommand||this.newSystemCommand(t.systemCommand),!this.preserveLog&&t?.clear?this.flushScreen():(this.preserveLog||this.isRunningCommand)&&this.instance.write("\n"),this.instance.write(e),this.resetANSIStyling(),this.instance.write("\n"),this.instance.scrollToBottom(),this.newCommand()}search(e){this.searcher.findNext(e,{decorations:lr,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive,incremental:!0})}clearSearch(){this.searcher.clearDecorations(),this.instance.clearSelection(),this.setSearchText(""),this.setSearchResultCount(void 0),this.setSearchCurrentResultIndex(void 0)}findPrevious(){this.searcher.findPrevious(this.searchConfig.searchText,{decorations:lr,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:lr,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}getContent(){const e=this.instance.buffer.active,t=[];for(let n=0;n<e.length;++n){const r=P(e.getLine(n));t.push(r.translateToString())}return t.join("\n").trimEnd()}copy(){this.instance.hasSelection()?this.applicationStore.clipboardService.copyTextToClipboard(this.instance.getSelection()).catch(this.applicationStore.alertUnhandledError):this.applicationStore.notificationService.notifyWarning("Ther terminal has no selection to copy")}copyAll(){this.applicationStore.clipboardService.copyTextToClipboard(this.getContent()).catch(this.applicationStore.alertUnhandledError)}}class pr{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new gr(e)}}const mr="(unknown)";class hr{applicationStore;currentUser=mr;constructor(e){(0,Ie.Gn)(this,{currentUser:Ie.sH,setCurrentUser:Ie.XI}),this.applicationStore=e}get isAnonymous(){return this.currentUser===mr}setCurrentUser(e){this.currentUser=e}}var fr,Er=n(75992);class br{get localStorage(){return P(window.localStorage,"'window.localStorage' object is not available in non-web environment")}setItem(e,t){this.localStorage.setItem(e,t)}getItem(e){return this.localStorage.getItem(e)}removeItem(e){this.localStorage.removeItem(e)}clear(){this.localStorage.clear()}hasItem(e){return this.localStorage.hasItem(e)}}class Cr{storeIndex;storageService;data;constructor(e,t){this.storageService=e,this.storeIndex=t,this.data=this.storageService.getIndex(this.storeIndex)??{}}getValue(e){return this.data[e]}getNumericValue(e){const t=this.getValue(e);return void 0!==t?$(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?Y(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?z(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!W(e))throw new O(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return F(this.data[e])}persistValue(e,t){void 0!==t?this.data[e]=t:delete this.data[e],this.storageService.updateIndex(this.storeIndex,this.data)}}class vr{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new br;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?R((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,Er.A)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class _r{applicationStore;plugins=[];constructor(e){this.applicationStore=e}registerPlugins(e){this.plugins=e}setup(){const e={userId:this.applicationStore.identityService.currentUser,appName:this.applicationStore.config.appName,appEnv:this.applicationStore.config.env,appVersion:this.applicationStore.config.appVersion,appSessionId:this.applicationStore.uuid,appStartTime:this.applicationStore.timeService.timestamp};this.plugins.forEach((t=>t.setup(e)))}logEvent(e,t){this.plugins.forEach((n=>n.logEvent(e,t)))}}class Tr{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,r=e.startTime,o=r+n,i={...t??{},...Object.fromEntries(e.records),total:n};let a=0;for(const e of this.interruptions)if(e>=r&&e<=o)a++;else if(e>o)break;return a>0?{...i,__numberOfInteruptions:a}:i}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(fr||(fr={}));const Nr={name:"Default Dark (default)",key:fr.DEFAULT_DARK,TEMPORARY__globalCSSClassName:"theme__default-dark",colors:{"data-access-overview.chart.access-granted":"#6a9955","data-access-overview.chart.access-approved":"#007acc","data-access-overview.chart.access-requested":"#fbbc05","data-access-overview.chart.access-not-granted":"#ea4646","data-access-overview.chart.unsupported-access":"#2d2d2d"}},Ar={name:"Legacy Light",key:fr.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},yr={name:"High-Contrast Light",key:fr.HIGH_CONTRAST_LIGHT,TEMPORARY__globalCSSClassName:"theme__hc-light",colors:{"data-access-overview.chart.access-granted":"#52a31d","data-access-overview.chart.access-approved":"#3d8df5","data-access-overview.chart.access-requested":"#f5c518","data-access-overview.chart.access-not-granted":"#fa5343","data-access-overview.chart.unsupported-access":"#e1e7ea"}};var Sr;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(Sr||(Sr={}));const xr={[Sr.COLOR_THEME]:{defaultValue:fr.DEFAULT_DARK}};class Ir{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,Ie.Gn)(this,{currentColorTheme:Ie.sH.ref,TEMPORARY__isLightColorThemeEnabled:Ie.EW,backdropContainerElementID:Ie.sH,showBackdrop:Ie.sH,setBackdropContainerElementID:Ie.XI,setShowBackdrop:Ie.XI,setColorTheme:Ie.XI}),this.applicationStore=e,this.colorThemeRegistry.set(fr.DEFAULT_DARK,Nr),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(c.create(ge.COLOR_THEME_CONFIGURATION_CHECK__FAILURE),`Found duplicated color themes with key '${e.key}'`):this.colorThemeRegistry.set(e.key,e)}));const t=this.applicationStore.settingService.getStringValue(Sr.COLOR_THEME)??fr.DEFAULT_DARK;this.currentColorTheme=P(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setWindowTitle(e){document.title=e}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==fr.DEFAULT_DARK}TEMPORARY__syncGlobalCSSClassName(e,t){t&&document.body.classList.remove(t.TEMPORARY__globalCSSClassName),document.body.classList.add(e.TEMPORARY__globalCSSClassName)}setColorTheme(e,t){const n=this.colorThemeRegistry.get(e);if(e===this.currentColorTheme.key||!n)return;const r=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,r),t?.persist&&this.applicationStore.settingService.persistValue(Sr.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??P(this.colorThemeRegistry.get(fr.DEFAULT_DARK)).colors?.[e]??"transparent"}}class kr{applicationStore;constructor(e){this.applicationStore=e}async copyTextToClipboard(e,t){await navigator.clipboard.writeText(e).catch((e=>{this.applicationStore.notificationService.notifyError(e)})).finally((()=>{t?.notifySuccessMessage&&this.applicationStore.notificationService.notifySuccess(t.notifySuccessMessage)}))}}class wr{navigator;constructor(e){this.navigator=e}}var Rr=n(42853);class Or{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new Cr(this.applicationStore.storageService,"application-settings-storage"),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraSettingConfigurationEntries?.()??[])).forEach((e=>{this.registry.has(e.key)?this.applicationStore.logService.warn(c.create(ge.SETTING_CONFIGURATION_CHECK__FAILURE),`Found duplicated setting with key '${e.key}'`):this.registry.set(e.key,e)}))}getNumericValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve numeric value for setting '${e}'`)}getStringValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve string value for setting '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve boolean value for setting '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||W(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve object value for setting '${e}'`)}persistValue(e,t){const n=this.registry.get(e)?.defaultValue;this.storage.persistValue(e,void 0!==n&&(0,Rr.A)(n,t)?void 0:t)}}class Lr{goToLocation(e,t){throw new k("Navigator does not support this operation")}reload(e){throw new k("Navigator does not support this operation")}goToAddress(e,t){throw new k("Navigator does not support this operation")}visitAddress(e){throw new k("Navigator does not support this operation")}generateAddress(e){throw new k("Navigator does not support this operation")}updateCurrentLocation(e){throw new k("Navigator does not support this operation")}updateCurrentZone(e){throw new k("Navigator does not support this operation")}resetZone(){throw new k("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new k("Navigator does not support this operation")}getCurrentAddress(){throw new k("Navigator does not support this operation")}getCurrentLocation(){throw new k("Navigator does not support this operation")}getCurrentLocationParameters(){throw new k("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new k("Navigator does not support this operation")}getCurrentZone(){throw new k("Navigator does not support this operation")}blockNavigation(e,t,n){throw new k("Navigator does not support this operation")}unblockNavigation(){throw new k("Navigator does not support this operation")}get isNavigationBlocked(){throw new k("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new k("Navigator does not support this operation")}}class Fr{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new Cr(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(void 0===t||W(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve object value for user data '${e}'`)}persistValue(e,t){this.storage.persistValue(e,t)}}const Br=e=>/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/.test(e);var Pr;!function(e){e.BUG_FIX="BUG_FIX",e.ENHANCEMENT="ENHANCEMENT"}(Pr||(Pr={}));const Dr="application.lastOpenedVersion";class jr{applicationStore;releaseNotes;showCurrentReleaseModal=!0;showReleaseLog=!1;isConfigured=!1;constructor(e){(0,Ie.Gn)(this,{showCurrentReleaseModal:Ie.sH,showReleaseLog:Ie.sH,isConfigured:Ie.sH,setShowCurrentRelease:Ie.XI,configure:Ie.XI,setReleaseLog:Ie.XI}),this.applicationStore=e}configure(e){this.isConfigured=!0,this.releaseNotes=(e=>e.map((e=>(M(e.version,"Release notes 'version' is missing"),e.notes?.map((e=>(M(e.type,"Release note 'type' is missing"),M(e.description,"Release note 'description' is missing"),e))),e))))(e)}setShowCurrentRelease(e){this.showCurrentReleaseModal=e}setReleaseLog(e){this.showReleaseLog=e}getViewedVersion(){return this.applicationStore.userDataService.getStringValue(Dr)}updateViewedVersion(){this.applicationStore.userDataService.persistValue(Dr,this.applicationStore.config.appVersion)}showVersion(e,t){const n=e.version;return!(!Br(n)||!Br(t)||1!==(r=t,n.localeCompare(r,void 0,{numeric:!0})));var r}showableVersions(){const e=this.getViewedVersion();if(e)return this.releaseNotes?.filter((t=>this.showVersion(t,e)))}}class Mr{uuid=(0,i.A)();extensionStates=[];config;pluginManager;initState=ke.create();platform;timeService;logService;storageService;userDataService;settingService;alertService;notificationService;identityService;commandService;keyboardShortcutsService;layoutService;clipboardService;terminalService;navigationService;navigationContextService;documentationService;assistantService;releaseNotesService;eventService;telemetryService;tracerService;constructor(e,t){this.config=e,this.pluginManager=t,this.timeService=new Tr,this.logService=new d,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new vr(this),this.settingService=new Or(this),this.userDataService=new Fr(this),this.alertService=new Lt(this),this.notificationService=new Nn,this.identityService=new hr(this),this.layoutService=new Ir(this),this.clipboardService=new kr(this),this.terminalService=new pr(this),this.commandService=new Ve(this),this.keyboardShortcutsService=new We(this),this.navigationService=new wr(new Lr),this.navigationContextService=new He(this),this.documentationService=new ye(this),this.assistantService=new Me(this),this.releaseNotesService=new jr(this),this.eventService=new Ue,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new _r(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new Re,this.tracerService.registerPlugins(t.getTracerServicePlugins()),this.extensionStates=this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationExtensionStateBuilders?.()??[])).map((e=>e(this))).filter(F)}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new I("Platform is already configured");this.platform=e,this.navigationService=new wr(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){w(e),this.notificationService.notifyError(e),this.logService.error(c.create(ge.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logUnhandledError(e),this.notificationService.notifyIllegalState(e.message)};logUnhandledError=e=>{this.logService.error(c.create(ge.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e)};guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}var Ur;!function(e){e.TAG_REQUEST="download-request",e.TAG_RESPONSE="download-response",e.STREAM_CLOSED="#stream-closed",e.STREAM_ABORTED="#stream-aborted"}(Ur||(Ur={}));class Gr{}class Hr extends Gr{debug(e,...t){console.debug(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}info(e,...t){console.info(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}warn(e,...t){console.warn(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}error(e,...t){console.error(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}class Vr{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;downloadHelperServiceWorkerPath;downloadHelper=!1;releaseNotes;constructor(e){this.pluginManager=e,this.logger=new Hr}setup(e){return this.baseAddress=M(e.baseAddress,"Can't setup application: 'baseAddress' is missing or empty"),this.pluginRegister=e.pluginRegister,this._isConfigured=!0,this}withBasePresets(e){return this.basePresets=e,this.withPresets([])}withBasePlugins(e){return this.basePlugins=e,this.withPlugins([])}withPresets(e){return this.pluginManager.usePresets([...this.basePresets,...e]),this}withPlugins(e){return this.pluginManager.usePlugins([...this.basePlugins,...e]),this}withDownloadHelper(e){return this.downloadHelper=!0,this.downloadHelperServiceWorkerPath=e,this}withReleaseNotes(e){return this.releaseNotes=e,this}setupApplicationStore(e){this.releaseNotes&&e.releaseNotesService.configure(this.releaseNotes)}async fetchApplicationConfiguration(){const e=new le;let t,n;try{t=await e.get(`${window.location.origin}${this.baseAddress}config.json`)}catch(e){w(e),this.logger.error(c.create(ge.APPLICATION_CONFIGURATION__FAILURE),e)}B(t,"Can't fetch Legend application configuration");try{n=await e.get(`${window.location.origin}${this.baseAddress}version.json`)}catch(e){w(e),this.logger.error(c.create(ge.APPLICATION_CONFIGURATION__FAILURE),e)}return B(n,"Can't fetch Legend application version"),[await this.configureApplication({configData:t,versionData:n,baseAddress:this.baseAddress}),t.extensions??{}]}async loadDocumentationRegistryData(e){const t={};await Promise.all([...e.documentationRegistryEntries,...this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraDocumentationRegistryEntries?.()??[]))].map((async e=>{try{const n=new le(e.simple?{options:{credentials:"omit"}}:{}),r=await n.get(M(e.url,"Can't load documentation registry: 'url' field is missing or empty"));B(r.entries,"Can't load documentation registry data: 'entries' field is missing");const o=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(r.entries).forEach((([e,n])=>{o&&!o.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){w(e),this.logger.warn(c.create(ge.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...Ae(t),...e.keyedDocumentationEntries]}async start(){B(this._isConfigured,"Legend application has not been configured properly. Make sure to run setup() before start()");try{const[e,t]=await this.fetchApplicationConfiguration();this.config=e,this.pluginRegister?.(this.pluginManager,this.config),this.pluginManager.configure(t),this.pluginManager.install(),await Promise.all([this.loadDocumentationRegistryData(e)]);const n=new Mr(this.config,this.pluginManager);await Promise.all(this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationSetups?.()??[])).map((e=>e(n)))),this.setupApplicationStore(n),await this.loadApplication(n),this.logger.info(c.create(ge.APPLICATION_LOAD__SUCCESS),"Legend application loaded"),this.downloadHelper&&function(e){if("serviceWorker"in navigator){const t=e??"/ServiceWorker.js";navigator.serviceWorker.register(t).then((e=>{console.debug(`register service worker success with path: ${t}`,e)})).catch((e=>{console.debug(`register service worker error with path: ${t}`,e)}))}}(this.downloadHelperServiceWorkerPath)}catch(e){throw w(e),this.logger.error(c.create(ge.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const Wr="legend-application-root";class Yr extends l{loggerPlugins=[];telemetryServicePlugins=[];tracerServicePlugins=[];eventNotifierPlugins=[];applicationPlugins=[];registerLoggerPlugin(e){this.loggerPlugins.push(e)}registerTelemetryServicePlugin(e){this.telemetryServicePlugins.push(e)}registerTracerServicePlugin(e){this.tracerServicePlugins.push(e)}registerEventNotifierPlugin(e){this.eventNotifierPlugins.push(e)}registerApplicationPlugin(e){this.applicationPlugins.push(e)}getLoggerPlugins(){return[...this.loggerPlugins]}getTelemetryServicePlugins(){return[...this.telemetryServicePlugins]}getTracerServicePlugins(){return[...this.tracerServicePlugins]}getEventNotifierPlugins(){return[...this.eventNotifierPlugins]}getApplicationPlugins(){return[...this.applicationPlugins]}}const $r=JSON.parse('{"rE":"16.0.17","XO":{"c":"@finos/legend-application-plugin-core"}}');class zr extends s{}n(18850);class Xr extends zr{static NAME=$r.XO.c;constructor(){super(Xr.NAME,$r.rE)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{}]}getExtraColorThemes(){return[Ar,yr]}getExtraSettingConfigurationEntries(){return e=xr,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class Kr{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=M(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=M(e.configData.env,"Can't configure application: 'env' field is missing or empty"),this.applicationStorageKey=e.configData.application?.storageKey??this.getDefaultApplicationStorageKey(),this.documentationUrl=e.configData.documentation?.url,this.documentationLinkEntries=(t=e.configData.documentation?.links??{},Object.entries(t).map((e=>({key:M(e[0],"Documentation link 'key' is missing"),label:M(e[1].label,"Documentation link 'label' is missing"),url:M(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=Ae(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=P(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=e.versionData.buildTime,this.appVersionCommitId=e.versionData.commitSHA}static resolveAbsoluteUrl(e){return e.trim().startsWith("/")?window.location.origin+e:e}}class qr extends Kr{replUrl;useDynamicREPLServer=!1;constructor(e){super(e),B(e.configData.repl,"Can't configure application: 'repl' field is missing"),this.replUrl=Kr.resolveAbsoluteUrl(M(e.configData.repl.url,"Can't configure application: 'repl.url' field is missing or empty")),void 0!==e.configData.repl.dynamic&&(this.useDynamicREPLServer=Boolean(e.configData.repl.dynamic))}getDefaultApplicationStorageKey(){return"legend-repl"}}var Jr,Qr=n(86234);function Zr(e){let t=e;for(;t.endsWith("/");)t=t.slice(0,-1);return t}class eo{navigate;baseUrl;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="",e.preventDefault())};onBlock;onNativePlatformNavigationBlock;constructor(e,t){(0,Ie.Gn)(this,{_isNavigationBlocked:Ie.sH,isNavigationBlocked:Ie.EW,blockNavigation:Ie.XI,unblockNavigation:Ie.XI}),this.navigate=e,this.baseUrl=t}get window(){return P(window,"Window object is not available in non-web environment")}goToLocation(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=this.generateAddress(e)};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}reload(e){e?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const t=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.reload()};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(t):t()}goToAddress(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=e};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}visitAddress(e){this.window.open(e,"_blank")}generateAddress(e){return this.window.location.origin+this.baseUrl+e}updateCurrentLocation(e){Promise.resolve(this.navigate(e)).catch((()=>{}))}updateCurrentZone(e){this.window.location.hash="#"+e}resetZone(){this.updateCurrentLocation(this.getCurrentLocation())}getCurrentBaseAddress(e){return e?.withAppRoot?this.generateAddress(""):this.window.location.origin}getCurrentAddress(){return this.window.location.href}getCurrentLocation(){return this.window.location.pathname.substring(this.baseUrl.length)}getCurrentLocationParameters(){const e={},t=ue((n=this.getCurrentAddress(),(0,J.J)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=de(n,t)})),e}getCurrentLocationParameterValue(e){return this.getCurrentLocationParameters()[e]}getCurrentZone(){return this.window.location.hash.substring(1)}blockNavigation(e,t,n){this._isNavigationBlocked=!0,this.onBlock=t,this.onNativePlatformNavigationBlock=n,this.window.history.pushState(null,"",this.getCurrentAddress()),this.window.onpopstate=()=>{window.history.forward(),this.onNativePlatformNavigationBlock?.()},this._blockCheckers=e,this.window.removeEventListener("beforeunload",this._beforeUnloadListener),this.window.addEventListener("beforeunload",this._beforeUnloadListener)}unblockNavigation(){this._isNavigationBlocked=!1,this.onBlock=void 0,this.window.onpopstate=null,this._blockCheckers=[],this.window.removeEventListener("beforeunload",this._beforeUnloadListener)}get isNavigationBlocked(){return this._isNavigationBlocked}INTERNAL__internalizeTransientParameter(e){const t=this.getCurrentZone(),n=this.getCurrentLocationParameters();var r,o;delete n[e],this.updateCurrentLocation((r=this.getCurrentLocation(),o=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),q.A.stringify(t)})(n),o?`${r}?${o}`:r)),this.updateCurrentZone(t)}}class to{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(Jr||(Jr={}));class no extends to{navigator;constructor(e,t){super(e),this.navigator=new eo(t.navigate,t.baseUrl)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(Jr.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(Jr.INITIAL_COLOR_THEME))}}const ro=(0,Ft.createContext)(void 0),oo=({children:e,baseUrl:t})=>{const n=Pt(),r=(0,Qr.Zp)(),o=(0,vt.iz)((()=>new no(n,{navigate:r,baseUrl:Zr(t)})));return(0,E.jsx)(ro.Provider,{value:o,children:e})},io=({children:e,baseUrl:t})=>(0,E.jsx)(Qr.Kd,{basename:Zr(t),children:(0,E.jsx)(oo,{baseUrl:t,children:e})});var ao=n(47262),so=n(25314),lo=n(95236),co=n(86251),uo=n(49787);const go={AdvancedSettings:uo.teB,AlertError:Vt.Zt1,AlertInfo:Vt.$Mj,AlertSuccess:Vt.U4T,AlertWarning:Vt.vDk,Calculate:uo.FZE,Calendar:uo.rOy,CaretDown:uo.UgJ,CaretRight:uo.Izh,Checkbox:ao.Pvj,CheckboxSelected:ao.Kad,ChevronLeft:uo.h$A,ChevronRight:uo.klJ,ChevronDown:uo.ciu,CircleChecked:uo.Vor,CircledFailed:uo.Viv,Clipboard:uo.lP0,Code:uo.sAL,ClockEdit:uo.xNI,Cube:uo.keA,Debug:uo.$mE,Documentation:uo.KHb,DocumentationHint:Vt.Jzf,FilterAddOperator:uo.r2j,FilterRemoveOperator:uo.$9n,FilterGroupOperator:uo.auD,FilterNotOperator:uo.vem,FontBold:so.ux7,FontCase:co.tEi,FontItalic:so.LPp,FontUnderline:so.dgX,FontStrikethrough:so.kKc,LetterCase:uo.XOD,Loader:uo.C5G,Menu:uo.Gb_,Note:uo.Jb_,Pin:zt.Cxm,Search:uo.PuI,Settings:uo.yRe,Table:uo.ZIs,TableColumn:uo.QKp,TableColumnOptions__Settings:uo.uRn,TableColumns:uo.N9Z,TableExtendedColumn:uo.w28,TableFilter:uo.XPy,TableFilterPlus:uo.VmB,TableFilterCode:uo.awR,TableGroupBy:uo.PAn,TableOptions:uo.v$W,TablePagination:so.Hs5,TablePivot:uo.ba8,TablePlus:uo.ZQn,TableRemoveColumn:uo.F6Q,TableRow:uo.wV0,TableRowColumn:uo.QE3,TableScroll:lo.cfM,TableSort:uo.r9t,TextAlignLeft:lo.T4j,TextAlignCenter:lo.roG,TextAlignRight:lo.QHN,User:uo.aGB,Window:zt.PV7,X:zt.D9N,Warning:uo.fQM,WarningCircle:uo.Ajk,WordWrap:Vt.LkA};class po{title;contentRenderer;window={};constructor(e,t){this.contentRenderer=t,this.title=e}}class mo{uuid=(0,i.A)();configuration;onClose;ownerId;specification;constructor(e,t,n){this.configuration=e,this.onClose=t,this.ownerId=n}setSpecification(e){this.specification=e}}const ho=50,fo={width:800,height:600,minWidth:300,minHeight:300,center:!0},Eo={width:500,height:200,minWidth:200,minHeight:80,center:!0};class bo{layout;configuration;ownerId;window;constructor(e,t,n,r){(0,Ie.Gn)(this,{window:Ie.sH,isOpen:Ie.EW,open:Ie.XI,close:Ie.XI}),this.layout=e,this.configuration=new po(t,n),this.configuration.window=fo,this.ownerId=r}get isOpen(){return Boolean(this.window)}open(){this.window?this.layout.bringWindowFront(this.window):(this.window=new mo(this.configuration,(()=>(0,Ie.h5)((()=>{this.window=void 0}))),this.ownerId),this.layout.newWindow(this.window,this.ownerId))}close(){this.window&&(this.layout.closeWindow(this.window),this.window=void 0)}}class Co{windows=[];constructor(){(0,Ie.Gn)(this,{windows:Ie.sH,newWindow:Ie.XI,bringWindowFront:Ie.XI,closeWindow:Ie.XI,closeWindows:Ie.XI})}newDisplay(e,t,n,r){const o=new bo(this,e,t,r);return n&&(o.configuration.window=n),o}newWindow(e,t){e.ownerId=e.ownerId??t,this.windows.push(e)}bringWindowFront(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),this.windows.push(e))}closeWindow(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),e.onClose?.())}closeWindows(e){this.windows=this.windows.filter((t=>!e.find((e=>e.uuid===t.uuid)))),e.forEach((e=>e.onClose?.()))}}class vo{uuid=(0,i.A)();manager;constructor(e){(0,Ie.Gn)(this,{windows:Ie.EW}),this.manager=e??new Co}get windows(){return this.manager.windows.filter((e=>e.ownerId===this.uuid))}newDisplay(e,t,n){return this.manager.newDisplay(e,t,n,this.uuid)}newWindow(e){this.manager.newWindow(e,this.uuid)}bringWindowFront(e){this.manager.bringWindowFront(e)}closeWindow(e){this.manager.closeWindow(e)}dispose(){this.manager.closeWindows(this.windows)}}const _o=e=>{const{parent:t,layout:n,windowState:r}=e,o=r.configuration.window,[i,a]=(0,Ft.useState)((()=>{if(r.specification)return r.specification;const e=o.x??ho,n=o.y??ho,i=o.width??800,a=o.height??600,s=t?.current??document.body,{width:l,height:c}=s.getBoundingClientRect();if(o.center){const e=i+100>l?l-100:i,t=a+100>c?c-100:a;return{x:(l-e)/2,y:(c-t)/2,width:e,height:t}}const u=i+Math.abs(e)+ho>l?l-Math.abs(e)-ho:i,d=a+Math.abs(n)+ho>c?c-Math.abs(n)-ho:a,g={x:e<0?l-Math.abs(e)-u:e,y:n<0?c-Math.abs(n)-d:n,width:u,height:d};return r.setSpecification(g),g})),s=e=>{a(e),r.setSpecification(e)};return(0,E.jsx)(Pn.p,{className:"absolute z-10",handle:`.data-cube__window-${r.uuid}`,position:{x:i.x,y:i.y},size:{width:i.width,height:i.height},minWidth:o.minWidth??300,minHeight:o.minHeight??300,onDragStop:(e,t)=>{s({...i,x:t.x,y:t.y})},dragHandleClassName:`data-cube__window-${r.uuid}`,onResize:(e,t,n,r,o)=>{s({...o,width:n.offsetWidth,height:n.offsetHeight})},enableResizing:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},resizeHandleStyles:{top:{cursor:"ns-resize"},right:{cursor:"ew-resize"},bottom:{cursor:"ns-resize"},left:{cursor:"ew-resize"},topRight:{cursor:"nesw-resize",width:14,height:14,top:-7,right:-7},bottomRight:{cursor:"nwse-resize",width:14,height:14,bottom:-7,right:-7},bottomLeft:{cursor:"nesw-resize",width:14,height:14,bottom:-7,left:-7},topLeft:{cursor:"nwse-resize",width:14,height:14,top:-7,left:-7}},children:(0,E.jsxs)("div",{className:"h-full w-full border border-neutral-400 bg-neutral-200 shadow-xl",onMouseDown:()=>{n.bringWindowFront(r)},children:[(0,E.jsxs)("div",{className:Mn(`data-cube__window-${r.uuid}`,"flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white active:cursor-move"),children:[(0,E.jsx)("div",{className:"px-2",children:r.configuration.title}),(0,E.jsx)("button",{className:"flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white",onClick:()=>n.closeWindow(r),children:(0,E.jsx)(go.X,{})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)] w-full overflow-auto",children:r.configuration.contentRenderer(r.configuration)})]})})},To=(0,vt.PA)((e=>{const{layout:t}=e;return(0,E.jsx)(E.Fragment,{children:t.windows.map((e=>(0,E.jsx)(_o,{layout:t,windowState:e},e.uuid)))})}));var No=n(29179);const Ao="monaco-editor-overflow-widgets-root";function yo(){return(0,E.jsx)("div",{id:Ao,className:"monaco-editor"})}var So=n(66813),xo=n(23993),Io=n(27802),ko=n(15428),wo=n(21598),Ro=n(99499),Oo=n(91937);const Lo=e=>Ro.sha1().update(e).digest("hex"),Fo=e=>Lo(e.filter(F).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?Lo(e):e.hashCode)).join(",")),Bo=(e,t)=>(U(W(e),"Can't hash non-object value"),Oo(e,t)),Po="::";var Do,jo,Mo,Uo,Go,Ho,Vo,Wo,Yo;!function(e){e.CORE="CORE",e.MAIN="ROOT",e.MODEL_GENERATION="MODEL_GENERATION_ROOT",e.SYSTEM="SYSTEM_ROOT",e.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT"}(Do||(Do={})),(Uo=jo||(jo={})).STRING="String",Uo.BOOLEAN="Boolean",Uo.BINARY="Binary",Uo.NUMBER="Number",Uo.INTEGER="Integer",Uo.FLOAT="Float",Uo.DECIMAL="Decimal",Uo.DATE="Date",Uo.STRICTDATE="StrictDate",Uo.DATETIME="DateTime",Uo.STRICTTIME="StrictTime",Uo.LATESTDATE="LatestDate",Uo.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest",e.Function_Test="functionTest"}(Mo||(Mo={})),function(e){e.ANY="meta::pure::metamodel::type::Any",e.NIL="meta::pure::metamodel::type::Nil",e.RELATION="meta::pure::metamodel::relation::Relation",e.PROFILE_DOC="meta::pure::profiles::doc",e.PROFILE_TEMPORAL="meta::pure::profiles::temporal",e.PROFILE="meta::pure::metamodel::extension::Profile",e.ENUMERATION="meta::pure::metamodel::type::Enumeration",e.MEASURE="meta::pure::metamodel::type::Measure",e.CLASS="meta::pure::metamodel::type::Class",e.ASSOCIATION="meta::pure::metamodel::relationship::Association",e.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",e.FLAT_DATA="meta::flatData::metamodel::FlatData",e.DATABASE="meta::relational::metamodel::Database",e.MAPPING="meta::pure::mapping::Mapping",e.SERVICE="meta::legend::service::metamodel::Service",e.CONNECTION="meta::pure::runtime::PackageableConnection",e.RUNTIME="meta::pure::runtime::PackageableRuntime",e.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",e.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",e.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",e.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",e.DATA_ELEMENT="meta::pure::data::DataElement",e.SNOWFLAKE_APP="meta::external::function::activator::snowflakeApp::SnowflakeApp",e.HOSTED_SERVICE="meta::external::function::activator::hostedService::HostedService",e.TABULAR_RESULT="meta::pure::mapping::Result"}(Go||(Go={})),function(e){e.BUSINESS_TEMPORAL="businesstemporal",e.PROCESSING_TEMPORAL="processingtemporal",e.BITEMPORAL="bitemporal"}(Ho||(Ho={})),function(e){e.ALL_VERSIONS="AllVersions",e.ALL_VERSIONS_IN_RANGE="AllVersionsInRange"}(Vo||(Vo={})),function(e){e.CLASS="CLASS",e.STORE="STORE",e.MAPPING="MAPPING",e.RUNTIME="RUNTIME",e.FUNCTION="FUNCTION",e.FILE_GENERATION="FILE_GENERATION",e.SERVICE="SERVICE",e.DATA="DATA",e.ENUMERATION="ENUMERATION",e.ASSOCIATION="ASSOCIATION",e.BINDING="BINDING"}(Wo||(Wo={})),function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(Yo||(Yo={}));const $o="yyyy-MM-dd",zo={transparent:"#00000000",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}};var Xo,Ko,qo,Jo,Qo,Zo,ei,ti,ni,ri,oi,ii,ai,si,li,ci;function ui(e){switch(e){case jo.NUMBER:case jo.INTEGER:case jo.DECIMAL:case jo.FLOAT:return li.NUMBER;case jo.DATE:case jo.STRICTDATE:return li.DATE;case jo.DATETIME:return li.TIME;case jo.STRING:default:return li.TEXT}}function di(e,t){return t.includes(ui(e))}(ci=Xo||(Xo={})).EXTEND="meta::pure::functions::relation::extend",ci.FILTER="meta::pure::functions::relation::filter",ci.GROUP_BY="meta::pure::functions::relation::groupBy",ci.LIMIT="meta::pure::functions::relation::limit",ci.PIVOT="meta::pure::functions::relation::pivot",ci.SELECT="meta::pure::functions::relation::select",ci.SLICE="meta::pure::functions::relation::slice",ci.SORT="meta::pure::functions::relation::sort",ci.CAST="meta::pure::functions::lang::cast",ci.FROM="meta::pure::mapping::from",ci.ASCENDING="meta::pure::functions::relation::ascending",ci.DESCENDING="meta::pure::functions::relation::descending",ci.ABS="meta::pure::functions::math::abs",ci.AND="meta::pure::functions::boolean::and",ci.OR="meta::pure::functions::boolean::or",ci.NOT="meta::pure::functions::boolean::not",ci.TO_LOWERCASE="meta::pure::functions::string::toLower",ci.CONTAINS="meta::pure::functions::string::contains",ci.ENDS_WITH="meta::pure::functions::string::endsWith",ci.EQUAL="meta::pure::functions::boolean::equal",ci.GREATER_THAN="meta::pure::functions::boolean::greaterThan",ci.GREATER_THAN_OR_EQUAL="meta::pure::functions::boolean::greaterThanEqual",ci.IN="meta::pure::functions::collection::in",ci.IS_EMPTY="meta::pure::functions::collection::isEmpty",ci.LESS_THAN="meta::pure::functions::boolean::lessThan",ci.LESS_THAN_OR_EQUAL="meta::pure::functions::boolean::lessThanEqual",ci.STARTS_WITH="meta::pure::functions::string::startsWith",ci.AVERAGE="meta::pure::functions::math::average",ci.COUNT="meta::pure::functions::collection::count",ci.DISTINCT="meta::pure::functions::collection::distinct",ci.FIRST="meta::pure::functions::collection::first",ci.JOIN_STRINGS="meta::pure::functions::string::joinStrings",ci.LAST="meta::pure::functions::collection::last",ci.MAX="meta::pure::functions::collection::max",ci.MIN="meta::pure::functions::collection::min",ci.SUM="meta::pure::functions::math::sum",ci.STANDARD_DEVIATION_POPULATION="meta::pure::functions::math::stdDevPopulation",ci.STANDARD_DEVIATION_SAMPLE="meta::pure::functions::math::stdDevSample",ci.UNIQUE_VALUE_ONLY="meta::pure::functions::collection::uniqueValueOnly",ci.VARIANCE_POPULATION="meta::pure::functions::math::variancePopulation",ci.VARIANCE_SAMPLE="meta::pure::functions::math::varianceSample",function(e){e.BASIS_POINT="Basis Points (bp)",e.PERCENT="Percent (%)",e.THOUSANDS="Thousands (k)",e.MILLIONS="Millions (m)",e.BILLIONS="Billions (b)",e.TRILLIONS="Trillions (t)",e.AUTO="Auto (k/m/b/t)"}(Ko||(Ko={})),function(e){e.ARIAL="Arial",e.ROBOTO="Roboto",e.ROBOTO_CONDENSED="Roboto Condensed",e.TIMES_NEW_ROMAN="Times New Roman",e.GEORGIA="Georgia",e.ROBOTO_SERIF="Roboto Serif",e.JERBRAINS_MONO="Jetbrains Mono",e.ROBOTO_MONO="Roboto Mono",e.UBUNTU_MONO="Ubuntu Mono"}(qo||(qo={})),function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(Jo||(Jo={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Qo||(Qo={})),function(e){e.SOLID="solid",e.DASHED="dashed",e.DOTTED="dotted",e.DOUBLE="double",e.WAVY="wavy"}(Zo||(Zo={})),function(e){e.MEASURE="Measure",e.DIMENSION="Dimension"}(ei||(ei={})),function(e){e.COLUMN="COLUMN"}(ti||(ti={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.COUNT="count",e.MIN="min",e.MAX="max",e.UNIQUE="uniq",e.FIRST="first",e.LAST="last",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample",e.JOIN_STRINGS="strjoin"}(ni||(ni={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.MEDIAN="median",e.COUNT="count",e.MIN="min",e.MAX="max",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample"}(ri||(ri={})),function(e){e.LESS_THAN="<",e.LESS_THAN_OR_EQUAL="<=",e.EQUAL="=",e.NOT_EQUAL="!=",e.GREATER_THAN=">",e.GREATER_THAN_OR_EQUAL=">=",e.IN="in",e.NOT_IN="not in",e.IS_NULL="is null",e.IS_NOT_NULL="is not null",e.EQUAL_CASE_INSENSITIVE="= (case-insensitive)",e.NOT_EQUAL_CASE_INSENSITIVE="!= (case-insensitive)",e.IN_CASE_INSENSITIVE="in (case-insensitive)",e.NOT_IN_CASE_INSENSITIVE="not in (case-insensitive)",e.CONTAIN="contains",e.CONTAIN_CASE_INSENSITIVE="contains (case-insensitive)",e.NOT_CONTAIN="does not contain",e.START_WITH="starts with",e.START_WITH_CASE_INSENSITIVE="starts with (case-insensitive)",e.NOT_START_WITH="does not start with",e.END_WITH="ends with",e.END_WITH_CASE_INSENSITIVE="ends with (case-insensitive)",e.NOT_END_WITH="does not end with",e.LESS_THAN_COLUMN="< value in column",e.LESS_THAN_OR_EQUAL_COLUMN="<= value in column",e.EQUAL_COLUMN="= value in column",e.EQUAL_CASE_INSENSITIVE_COLUMN="= (case-insensitive) value in column",e.NOT_EQUAL_COLUMN="!= value in column",e.NOT_EQUAL_CASE_INSENSITIVE_COLUMN="!= (case-insensitive) value in column",e.GREATER_THAN_COLUMN="> value in column",e.GREATER_THAN_OR_EQUAL_COLUMN=">= value in column"}(oi||(oi={})),function(e){e.AND="and",e.OR="or"}(ii||(ii={})),function(e){e.ASCENDING="Ascending",e.DESCENDING="Descending"}(ai||(ai={})),function(e){e.LEFT="Left",e.RIGHT="Right"}(si||(si={})),function(e){e.NUMBER="Numeric",e.TEXT="Text",e.DATE="Date",e.TIME="Time"}(li||(li={}));const gi="__|__";function pi(e){return e.includes(gi)}function mi(e){if(!pi(e))throw new I(`Column '${e}' is not a pivot result column`);return e.substring(e.lastIndexOf(gi)+5)}const hi="__/__",fi="x",Ei="New Report",bi=ai.ASCENDING,Ci="[ROOT]",vi="dataCube.linkLabel",_i=zo.neutral[300],Ti="#d7e0eb",Ni=qo.ROBOTO,Ai=!1,yi=!1,Si=void 0,xi=!1,Ii=Jo.LEFT,ki=zo.black,wi=zo.transparent,Ri=zo.white,Oi=zo.red[500],Li=zo.neutral[400],Fi=zo.blue[600],Bi="(None)";class Pi{name;type;kind=ei.DIMENSION;displayName;decimals;displayCommas=!1;negativeNumberInParens=!1;numberScale;missingValueDisplayText;unit;fontFamily;fontSize;fontBold;fontItalic;fontUnderline;fontStrikethrough;fontCase;textAlign;normalForegroundColor;negativeForegroundColor;zeroForegroundColor;errorForegroundColor;normalBackgroundColor;negativeBackgroundColor;zeroBackgroundColor;errorBackgroundColor;isSelected=!0;hideFromView=!1;blur=!1;fixedWidth;minWidth;maxWidth;pinned;displayAsLink=!1;linkLabelParameter;aggregateOperator;aggregationParameters=[];excludedFromPivot=!0;pivotSortDirection;pivotStatisticColumnFunction;constructor(e,t){this.name=e,this.type=t}static serialization=new me((0,pe.PL)(Pi,{aggregateOperator:(0,pe.MY)(),aggregationParameters:(0,pe.p_)((0,pe.lS)()),blur:(0,pe.MY)(),decimals:(0,pe.lq)((0,pe.MY)()),displayAsLink:(0,pe.MY)(),displayCommas:(0,pe.MY)(),displayName:(0,pe.lq)((0,pe.MY)()),errorBackgroundColor:(0,pe.lq)((0,pe.MY)()),errorForegroundColor:(0,pe.lq)((0,pe.MY)()),excludedFromPivot:(0,pe.MY)(),fixedWidth:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.lq)((0,pe.MY)()),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.lq)((0,pe.MY)()),fontItalic:(0,pe.lq)((0,pe.MY)()),fontSize:(0,pe.lq)((0,pe.MY)()),fontStrikethrough:(0,pe.lq)((0,pe.MY)()),fontUnderline:(0,pe.lq)((0,pe.MY)()),hideFromView:(0,pe.MY)(),isSelected:(0,pe.MY)(),kind:(0,pe.MY)(),linkLabelParameter:(0,pe.lq)((0,pe.MY)()),maxWidth:(0,pe.lq)((0,pe.MY)()),minWidth:(0,pe.lq)((0,pe.MY)()),missingValueDisplayText:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.lq)((0,pe.MY)()),negativeForegroundColor:(0,pe.lq)((0,pe.MY)()),normalBackgroundColor:(0,pe.lq)((0,pe.MY)()),normalForegroundColor:(0,pe.lq)((0,pe.MY)()),negativeNumberInParens:(0,pe.MY)(),numberScale:(0,pe.lq)((0,pe.MY)()),pinned:(0,pe.lq)((0,pe.MY)()),pivotSortDirection:(0,pe.lq)((0,pe.MY)()),pivotStatisticColumnFunction:(0,pe.lq)((0,pe.MY)()),textAlign:(0,pe.lq)((0,pe.MY)()),type:(0,pe.MY)(),unit:(0,pe.lq)((0,pe.MY)()),zeroBackgroundColor:(0,pe.lq)((0,pe.MY)()),zeroForegroundColor:(0,pe.lq)((0,pe.MY)())}));serialize(){return Pi.serialization.toJson(this)}}class Di{expandedPaths=[];static serialization=new me((0,pe.PL)(Di,{expandedPaths:(0,pe.p_)((0,pe.MY)())}));serialize(){return Di.serialization.toJson(this)}}class ji{name=Ei;description;columns=[];showHorizontalGridLines=!1;showVerticalGridLines=!0;gridLineColor=_i;fontFamily=Ni;fontSize=11;fontBold=Ai;fontItalic=yi;fontUnderline=Si;fontStrikethrough=xi;fontCase=void 0;textAlign=Ii;normalForegroundColor=ki;negativeForegroundColor=Oi;zeroForegroundColor=Li;errorForegroundColor=Fi;normalBackgroundColor=wi;negativeBackgroundColor=wi;zeroBackgroundColor=wi;errorBackgroundColor=wi;alternateRows=!1;alternateRowsStandardMode=!0;alternateRowsColor=Ti;alternateRowsCount=1;showSelectionStats=!1;showWarningForTruncatedResult=!0;initialExpandLevel;showRootAggregation=!1;showLeafCount=!0;treeColumnSortDirection=bi;pivotStatisticColumnName="Total";pivotStatisticColumnPlacement;pivotLayout=new Di;static serialization=new me((0,pe.PL)(ji,{alternateRows:(0,pe.MY)(),alternateRowsColor:(0,pe.MY)(),alternateRowsCount:(0,pe.MY)(),alternateRowsStandardMode:(0,pe.MY)(),columns:(0,pe.p_)(he(Pi.serialization.schema)),errorBackgroundColor:(0,pe.MY)(),errorForegroundColor:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.MY)(),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.MY)(),fontItalic:(0,pe.MY)(),fontSize:(0,pe.MY)(),fontStrikethrough:(0,pe.MY)(),fontUnderline:(0,pe.lq)((0,pe.MY)()),gridLineColor:(0,pe.MY)(),initialExpandLevel:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.MY)(),negativeForegroundColor:(0,pe.MY)(),normalBackgroundColor:(0,pe.MY)(),normalForegroundColor:(0,pe.MY)(),pivotStatisticColumnName:(0,pe.MY)(),pivotStatisticColumnPlacement:(0,pe.lq)((0,pe.MY)()),pivotLayout:he(Di.serialization.schema),showHorizontalGridLines:(0,pe.MY)(),showLeafCount:(0,pe.MY)(),showSelectionStats:(0,pe.MY)(),showRootAggregation:(0,pe.MY)(),showVerticalGridLines:(0,pe.MY)(),showWarningForTruncatedResult:(0,pe.MY)(),textAlign:(0,pe.MY)(),treeColumnSortDirection:(0,pe.MY)(),zeroBackgroundColor:(0,pe.MY)(),zeroForegroundColor:(0,pe.MY)()}));serialize(){return ji.serialization.toJson(this)}clone(){return ji.serialization.fromJson(ji.serialization.toJson(this))}}class Mi{}class Ui extends Mi{name;multiplicity;genericType;accept_ValueSpecificationVisitor(e){return e.visit_Variable(this)}}class Gi{subTrees=[];subTypeTrees=[]}var Hi,Vi;(Vi=Hi||(Hi={})).INTERNAL__UNKNOWN_ELEMENT="INTERNAL__UNKNOWN_ELEMENT",Vi.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",Vi.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",Vi.PACKAGE="PACKAGE",Vi.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",Vi.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",Vi.PROFILE="PROFILE",Vi.TAG_POINTER="TAG_POINTER",Vi.STEREOTYPE_POINTER="STEREOTYPE_POINTER",Vi.TAGGED_VALUE="TAGGED_VALUE",Vi.ENUMERATION="ENUMERATION",Vi.ENUM_VALUE="ENUM_VALUE",Vi.CLASS="CLASS",Vi.PROPERTY="PROPERTY",Vi.PROPERTY_DEFAULT_VALUE="PROPERTY_DEFAULT_VALUE",Vi.PROPERTY_POINTER="PROPERTY_POINTER",Vi.MULTIPLICITY="MULTIPLICITY",Vi.CONSTRAINT="CONSTRAINT",Vi.DERIVED_PROPERTY="DERIVED_PROPERTY",Vi.ASSOCIATION="ASSOCIATION",Vi.FUNCTION="FUNCTION",Vi.MEASURE="MEASURE",Vi.UNIT="UNIT",Vi.FUNCTION_TEST_SUITE="FUNCTION_TEST_SUITE",Vi.FUNCTION_TEST="FUNCTION_TEST",Vi.FUNCTION_STORE_TEST_DATA="FUNCTION_STORE_TEST_DATA",Vi.FUNCTION_PARAMETER_VALUE="FUNCTION_PARAMETER_VALUE",Vi.FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES="FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES",Vi.ASSERT_FAIL="ASSERT_FAIL",Vi.ASSERT_PASS="ASSERT_PASS",Vi.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",Vi.EQUAL_TO="EQUAL_TO",Vi.EQUAL_TO_JSON="EQUAL_TO_JSON",Vi.EQUAL_TO_TDS="EQUAL_TO_TDS",Vi.SECTION_INDEX="SECTION_INDEX",Vi.SECTION="SECTION",Vi.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",Vi.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",Vi.RAW_LAMBDA="RAW_LAMBDA",Vi.RAW_VARIABLE="RAW_VARIABLE",Vi.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",Vi.BINDING_TRANSFORMER="BINDING_TRANSFORMER",Vi.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",Vi.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",Vi.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",Vi.EXPRESSION="EXPRESSION",Vi.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",Vi.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",Vi.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",Vi.INSTANCE_VALUE="INSTANCE_VALUE",Vi.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",Vi.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",Vi.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",Vi.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",Vi.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",Vi.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",Vi.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",Vi.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",Vi.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",Vi.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",Vi.FUNCTION_TYPE="FUNCTION_TYPE",Vi.LAMBDA_FUNCTION="LAMBDA_FUNCTION",Vi.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",Vi.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",Vi.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",Vi.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",Vi.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",Vi.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",Vi.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",Vi.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",Vi.RELATION_COL_SPEC_ARRAY="RELATION_COL_SPEC_ARRAY",Vi.RELATION_COL_SPEC="RELATION_COL_SPEC",Vi.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_STORE",Vi.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",Vi.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",Vi.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",Vi.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",Vi.MAPPING="MAPPING",Vi.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",Vi.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",Vi.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",Vi.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",Vi.ENUMERATION_MAPPING="ENUMERATION_MAPPING",Vi.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",Vi.SET_IMPLEMENTATION="SET_IMPLEMENTATION",Vi.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",Vi.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",Vi.PROPERTY_MAPPING="PROPERTY_MAPPING",Vi.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",Vi.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",Vi.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",Vi.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",Vi.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",Vi.MAPPING_TEST="MAPPING_TEST",Vi.STORE_TEST_DATA="STORE_TEST_DATA",Vi.INPUT_DATA="INPUT_DATA",Vi.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",Vi.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",Vi.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",Vi.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",Vi.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",Vi.FILTER_MAPPING="FILTER_MAPPING",Vi.COLUMN_MAPPING="COLUMN_MAPPING",Vi.GROUP_BY_MAPPING="GROUP_BY_MAPPING",Vi.RUNTIME="RUNTIME",Vi.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",Vi.ENGINE_RUNTIME="ENGINE_RUNTIME",Vi.SINGLE_ENGINE_RUNTIME="SINGLE_ENGINE_RUNTIME",Vi.LEGACY_RUNTIME="LEGACY_RUNTIME",Vi.RUNTIME_POINTER="RUNTIME_POINTER",Vi.STORE_CONNECTIONS="STORE_CONNECTIONS",Vi.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",Vi.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",Vi.CONNECTION_POINTER="CONNECTION_POINTER",Vi.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",Vi.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",Vi.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",Vi.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",Vi.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",Vi.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",Vi.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",Vi.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",Vi.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",Vi.GENERATION_TREE="GENERATION_TREE",Vi.GENERATION_TREE_NODE="GENERATION_TREE_NODE",Vi.FILE_GENERATION="FILE_GENERATION",Vi.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",Vi.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",Vi.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",Vi.MODEL_STORE_DATA="MODEL_STORE_DATA",Vi.MODEL_DATA="MODEL_DATA",Vi.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",Vi.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",Vi.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",Vi.DATA_ELEMENT="DATA_ELEMENT",Vi.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",Vi.RELATIONAL_TDS="RELATIONAL_TDS",Vi.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",Vi.BINDING="BINDING",Vi.SCHEMA_SET="SCHEMA_SET",Vi.SCHEMA="SCHEMA",Vi.MODEL_UNIT="MODEL_UNIT",Vi.URL_STREAM="URL_STREAM",Vi.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",Vi.SERVICE="SERVICE",Vi.SERVICE_OWNER="SERVICE_OWNER",Vi.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",Vi.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",Vi.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",Vi.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",Vi.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",Vi.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",Vi.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",Vi.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",Vi.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",Vi.SERVICE_TEST_DATA="SERVICE_TEST_DATA",Vi.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",Vi.SERVICE_TEST="SERVICE_TEST",Vi.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",Vi.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",Vi.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",Vi.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",Vi.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",Vi.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",Vi.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",Vi.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",Vi.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",Vi.DATABASE="DATABASE",Vi.DATABASE_SCHEMA="DATABASE_SCHEMA",Vi.DATABASE_JOIN="DATABASE_JOIN",Vi.DATABASE_FILTER="DATABASE_FILTER",Vi.DATBASE_VIEW="DATBASE_VIEW",Vi.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",Vi.DATABASE_SCHEMA_TABULARFUNCTION="DATABASE_SCHEMA_TABULARFUNCTION",Vi.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",Vi.RELATIONAL="RELATIONAL",Vi.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",Vi.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",Vi.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",Vi.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",Vi.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",Vi.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",Vi.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",Vi.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",Vi.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",Vi.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",Vi.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",Vi.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",Vi.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",Vi.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",Vi.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",Vi.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",Vi.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",Vi.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",Vi.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",Vi.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",Vi.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",Vi.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",Vi.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",Vi.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",Vi.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",Vi.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",Vi.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Vi.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Vi.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",Vi.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Vi.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Vi.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Vi.BUSINESS_MILESTONING="BUSINESS_MILESTONING",Vi.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",Vi.PROCESSING_MILESTONING="PROCESSING_MILESTONING",Vi.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",Vi.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",Vi.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",Vi.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",Vi.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",Vi.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",Vi.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",Vi.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",Vi.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",Vi.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",Vi.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",Vi.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",Vi.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",Vi.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",Vi.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",Vi.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",Vi.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Vi.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",Vi.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",Vi.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Vi.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",Vi.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",Vi.SCHEMA_MAPPER="SCHEMA_MAPPER",Vi.TABLE_MAPPER="TABLE_MAPPER",Vi.FLAT_DATA="FLAT_DATA",Vi.FLAT_DATA_SECTION="FLAT_DATA_SECTION",Vi.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",Vi.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",Vi.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",Vi.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",Vi.FLAT_DATA_STRING="FLAT_DATA_STRING",Vi.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",Vi.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",Vi.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",Vi.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",Vi.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",Vi.FLAT_DATA_DATE="FLAT_DATA_DATE",Vi.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",Vi.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",Vi.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",Vi.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",Vi.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",Vi.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",Vi.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",Vi.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER",Vi.SNOWFLAKE_APP="SNOWFLAKE_APP",Vi.HOSTED_SERVICE="HOSTED_SERVICE",Vi.HOSTED_SERVICE_OWNER="HOSTED_SERVICE_OWNER",Vi.RELATION_TYPE="RELATION_TYPE",Vi.RELATION_COLUMN="RELATION_COLUMN";class Wi extends Gi{class;accept_GraphFetchTreeVisitor(e){return e.visit_RootGraphFetchTree(this)}get hashCode(){return Fo([Hi.ROOT_GRAPH_FETCH_TREE,Fo(this.subTrees),Fo(this.subTypeTrees),this.class])}}class Yi{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return Fo([Hi.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Yi(0,0);static ZERO_ONE=new Yi(0,1);static ZERO_MANY=new Yi(0,void 0);static ONE=new Yi(1,1);static ONE_MANY=new Yi(1,void 0)}class $i extends Mi{multiplicity=Yi.ONE}class zi extends $i{body=[];parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_Lambda(this)}}class Xi extends Mi{multiplicity=Yi.ONE}class Ki{name;startType;path=[]}class qi extends Mi{multiplicity=Yi.ONE}class Ji extends qi{function;fControl;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedFunction(this)}}class Qi extends Mi{multiplicity=Yi.ONE_MANY;values=[];accept_ValueSpecificationVisitor(e){return e.visit_Collection(this)}}class Zi extends Xi{}class ea extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CDecimal(this)}}class ta extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CInteger(this)}}class na extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CString(this)}}class ra extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CFloat(this)}}class oa extends Zi{}class ia extends oa{value;accept_ValueSpecificationVisitor(e){return e.visit_CDateTime(this)}}class aa extends oa{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictDate(this)}}class sa extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictTime(this)}}class la extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CBoolean(this)}}class ca{mapFn;aggregateFn}class ua{first;second}class da{runtime}class ga{executionContext}class pa extends Gi{property;parameters=[];alias;subType;accept_GraphFetchTreeVisitor(e){return e.visit_PropertyGraphFetchTree(this)}get hashCode(){return Fo([Hi.PROPERTY_GRAPH_FETCH_TREE,Fo(this.subTrees),this.property,this.alias??"",this.subType??""])}}class ma extends Gi{subTypeClass;accept_GraphFetchTreeVisitor(e){return e.visit_SubTypeGraphFetchTree(this)}get hashCode(){return Fo([Hi.SUBTYPE_GRAPH_FETCH_TREE,Fo(this.subTrees),this.subTypeClass])}}class ha{includeType;typeKeyName;includeEnumType;removePropertiesWithNullValues;removePropertiesWithEmptySets;fullyQualifiedTypePath;includeObjectReference}class fa extends $i{add;expression;key;accept_ValueSpecificationVisitor(e){return e.visit_KeyExpression(this)}}class Ea{values=[]}class ba{name;pmapFn;aggregateFn}class Ca{name;columnFn}class va{column;direction}class _a{function}class Ta{function;columnName}class Na{colSpecs=[]}class Aa{name;type;function1;function2}class ya{path=[]}class Sa{package;name;get path(){return`${this.package}${Po}${this.name}`}get hashCode(){return Fo([Hi.PACKAGEABLE_ELEMENT,this.path])}}const xa=new me((0,pe.PL)(class{sourceId;startLine;startColumn;endLine;endColumn},{sourceId:(0,pe.MY)(),startLine:(0,pe.MY)(),startColumn:(0,pe.MY)(),endLine:(0,pe.MY)(),endColumn:(0,pe.MY)()}));class Ia{package;name;sourceInformation;static serialization=new me((0,pe.PL)(Ia,{package:(0,pe.MY)(),name:(0,pe.MY)(),sourceInformation:be(xa.schema)}))}(0,pe.PL)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return Fo([Hi.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())});const ka=(0,pe.PL)(Yi,{lowerBound:(0,pe.MY)(),upperBound:(0,pe.lq)((0,pe.MY)())}),wa=((0,pe.PL)(class{profile;value;get hashCode(){return Fo([Hi.STEREOTYPE_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}),(0,pe.PL)(class{profile;value;get hashCode(){return Fo([Hi.TAG_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}));(0,pe.PL)(class{tag;value;get hashCode(){return Fo([Hi.TAGGED_VALUE,this.tag,this.value])}},{tag:he(wa),value:(0,pe.MY)()});class Ra{}class Oa extends Ra{property;parameters=[]}class La extends qi{class;property;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedProperty(this)}}class Fa{}class Ba extends Fa{mappings=[];connectionStores=[];connections=[];get hashCode(){return Fo([Hi.ENGINE_RUNTIME,Fo(this.mappings),Fo(this.connectionStores),Fo(this.connections)])}}class Pa extends Ba{get hashCode(){return Fo([Hi.SINGLE_ENGINE_RUNTIME,Fo(this.mappings),Fo(this.connectionStores),Fo(this.connections)])}}class Da extends Fa{runtime;get hashCode(){return Fo([Hi.RUNTIME_POINTER,this.runtime])}}var ja;!function(e){e.RUNTIME_POINTER="runtimePointer",e.LEGACY_RUNTIME="legacyRuntime",e.ENGINE_RUNTIME="engineRuntime",e.SINGLE_ENGINE_RUNTIME="localEngineRuntime"}(ja||(ja={}));const Ma=(0,pe.PL)(Da,{_type:fe(ja.RUNTIME_POINTER),runtime:(0,pe.MY)()});(0,pe.PL)(class extends Sa{runtimeValue;get hashCode(){return Fo([Hi.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}},{_type:fe("runtime"),name:(0,pe.MY)(),package:(0,pe.MY)(),runtimeValue:(0,pe.Ie)((e=>{return(t=e)instanceof Pa?(0,pe.lK)(Pa,t):(0,pe.lK)(Ba,t);var t}),(e=>{return(t=e)._type===ja.SINGLE_ENGINE_RUNTIME?(0,pe.iu)(Pa,t):(0,pe.iu)(Ba,t);var t}))});class Ua{queryTimeOutInSeconds;enableConstraints}class Ga extends Ua{useAnalytics;toFlowSetFunction}class Ha extends Ua{}class Va extends Mi{multiplicity=Yi.ONE;fullPath;accept_ValueSpecificationVisitor(e){return e.visit_PackageableElementPtr(this)}}class Wa extends Mi{multiplicity=Yi.ONE;genericType;accept_ValueSpecificationVisitor(e){return e.visit_GenericTypeInstance(this)}}class Ya extends Mi{multiplicity=Yi.ONE;type;value;accept_ValueSpecificationVisitor(e){return e.visit_ClassInstance(this)}}class $a{rawType;typeArguments=[];multiplicityArguments=[];typeVariableValues=[];get hashCode(){return this.rawType.hashCode}}class za extends Va{get hashCode(){return this.fullPath}}var Xa=n(18492);const Ka=e=>P((0,Xa.A)(e.split(Po))),qa=(e,t)=>Array.isArray(t)?t.some((t=>qa(e,t))):e===t||Ka(t)===e;class Ja{name;genericType;get hashCode(){return Fo([Hi.RELATION_TYPE,this.name,this.genericType])}}class Qa{columns=[];get hashCode(){return Fo([Hi.RELATION_TYPE,Fo(this.columns)])}}const Za=e=>{if(e.rawType instanceof za)return e.rawType.fullPath;throw new k("Can't extract type path from generic type")};function es(e){const t=new $a,n=new za;return n.fullPath=e,t.rawType=n,t}function ts(e){const t=new $a;return t.rawType=e,t}function ns(e){const t=new Qa;return t.columns=e,t}var rs;!function(e){e.PACKAGEABLE_TYPE="packageableType",e.RELATION_TYPE="relationType"}(rs||(rs={}));const os=(0,pe.PL)($a,{multiplicityArguments:(ls=e=>(0,pe.lK)(ka,e),cs=e=>(0,pe.iu)(ka,e),us={INTERNAL__forceReturnEmptyInTest:!0},(0,pe.Ie)((e=>ve(e,(e=>ls(e)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:us?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>cs(e)),{skipIfEmpty:!1})))),rawType:(0,pe.Ie)((e=>function(e){if(e instanceof za)return(0,pe.lK)(is,e);if(e instanceof Qa)return(0,pe.lK)(ss,e);throw new k("Can't serialize type",e)}(e)),(e=>function(e){switch(e._type){case rs.PACKAGEABLE_TYPE:return(0,pe.iu)(is,e);case rs.RELATION_TYPE:return(0,pe.iu)(ss,e);default:throw new k(`Can't deserialize type: '${e._type}'`)}}(e))),typeArguments:_e((e=>(0,pe.lK)($a,e)),(e=>(0,pe.iu)($a,e)),{INTERNAL__forceReturnEmptyInTest:!0}),typeVariableValues:_e((e=>pe._Z),(e=>pe._Z),{INTERNAL__forceReturnEmptyInTest:!0})}),is=(0,pe.PL)(za,{_type:fe(rs.PACKAGEABLE_TYPE),fullPath:(0,pe.MY)()}),as=(0,pe.PL)(Ja,{name:(0,pe.MY)(),genericType:(0,pe.Ie)((e=>(0,pe.lK)(os,e)),(e=>gs(e)),{beforeDeserialize:function(e,t,n){void 0!==n.type&&void 0===n.genericType?e(null,n.type):e(null,n.genericType)}})}),ss=(0,pe.PL)(Qa,{_type:fe(rs.RELATION_TYPE),columns:(0,pe.p_)(he(as))});var ls,cs,us;const ds=e=>{e.multiplicityArguments=[new Yi(1,void 0)];const t=new za;t.fullPath=Go.ANY;const n=new $a;n.rawType=t,e.typeArguments=[n]};function gs(e){let t;if(G(e)){t=new $a;const n=new za;n.fullPath=e,t.rawType=n,qa(e,Go.TABULAR_RESULT)&&ds(t)}else t=(0,pe.iu)(os,e);const n=R((()=>Za(t)));return n&&qa(n,Go.TABULAR_RESULT)&&!t.multiplicityArguments.length&&!t.typeArguments.length&&ds(t),t}var ps,ms,hs,fs,Es;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext",e.ANALYTICS_EXECUTION_CONTEXT="AnalyticsExecutionContext"}(ps||(ps={})),function(e){e.PROPERTY_PATH_ELEMENT="propertyPath"}(ms||(ms={})),function(e){e.PROPERTY_GRAPH_FETCH_TREE="propertyGraphFetchTree"}(hs||(hs={})),function(e){e.ROOT_GRAPH_FETCH_TREE="rootGraphFetchTree",e.SUBTYPE_GRAPH_FETCH_TREE="subTypeGraphFetchTree",e.PATH="path",e.AGGREGATE_VALUE="aggregateValue",e.EXECUTION_CONTEXT_INSTANCE="executionContextInstance",e.PAIR="pair",e.PURE_LIST="listInstance",e.RUNTIME_INSTANCE="runtimeInstance",e.SERIALIZATION_CONFIG="alloySerializationConfig",e.COL_SPEC="colSpec",e.COL_SPEC_ARRAY="colSpecArray",e.RELATION_STORE_ACCESSOR=">",e.TDS_AGGREGATE_VALUE="tdsAggregateValue",e.TDS_COLUMN_INFORMATION="tdsColumnInformation",e.TDS_SORT_INFORMATION="tdsSortInformation",e.TDS_OLAP_RANK="tdsOlapRank",e.TDS_OLAP_AGGREGATION="tdsOlapAggregation"}(fs||(fs={})),function(e){e.VARIABLE="var",e.LAMBDA="lambda",e.KEY_EXPRESSION="keyExpression",e.APPLIED_FUNCTION="func",e.APPLIED_PROPERTY="property",e.PACKAGEABLE_ELEMENT_PTR="packageableElementPtr",e.GENERIC_TYPE_INSTANCE="genericTypeInstance",e.ENUM_VALUE="enumValue",e.COLLECTION="collection",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CBYTEARRAY="byteArray",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate",e.CLASS_INSTANCE="classInstance",e.HACKED_CLASS="hackedClass",e.HACKED_UNIT="hackedUnit",e.UNIT_TYPE="unitType",e.PRIMITIVE_TYPE="primitiveType",e.CLASS="class",e.ENUM="enum",e.MAPPING_INSTANCE="mappingInstance"}(Es||(Es={}));const bs=(0,pe.PL)(Ui,{_type:fe(Es.VARIABLE),genericType:Ee((e=>(0,pe.lK)(os,e)),(e=>gs(e)),{beforeDeserialize:function(e,t,n){void 0!==n.class&&void 0===n.genericType?e(null,n.class):e(null,n.genericType)}}),multiplicity:he(ka),name:(0,pe.MY)()}),Cs=e=>(0,pe.PL)(zi,{_type:fe(Es.LAMBDA),body:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))),parameters:(0,pe.p_)(he(bs))}),vs=e=>(0,pe.PL)(fa,{_type:fe(Es.KEY_EXPRESSION),add:(0,pe.lq)((0,pe.MY)()),expression:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))),key:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))}),_s=e=>(0,pe.PL)(Ji,{_type:fe(Es.APPLIED_FUNCTION),function:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),Ts=e=>(0,pe.PL)(La,{_type:fe(Es.APPLIED_PROPERTY),class:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))),property:(0,pe.MY)()}),Ns=e=>(0,pe.PL)(Va,{_type:fe(Es.PACKAGEABLE_ELEMENT_PTR),fullPath:(0,pe.MY)()}),As=e=>(0,pe.PL)(Wa,{_type:fe(Es.GENERIC_TYPE_INSTANCE),genericType:(0,pe.Ie)((e=>(0,pe.lK)(os,e)),(e=>gs(e)),{beforeDeserialize:function(e,t,n){void 0!==n.fullPath&&void 0===n.genericType?e(null,n.fullPath):e(null,n.genericType)}})}),ys=e=>{const t=new Wa;return G(e.unitType)?t.genericType=es(e.unitType):t.genericType=es(Y(e.fullPath,"Can't deserialize hacked unit: either field 'fullPath' or 'unitType' must be a non-empty string")),t},Ss=e=>{const t=new Wa;return t.genericType=es(Y(e.fullPath,"Can't deserialize hacked class: field 'fullPath' must be a non-empty string")),t},xs=e=>(0,pe.PL)(Qi,{_type:fe(Es.COLLECTION),multiplicity:he(ka),values:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),Is=(0,pe.PL)(class extends Xi{fullPath;value;accept_ValueSpecificationVisitor(e){return e.visit_EnumValue(this)}},{_type:fe(Es.ENUM_VALUE),fullPath:(0,pe.MY)(),value:(0,pe.MY)()}),ks=(0,pe.PL)(ea,{_type:fe(Es.CDECIMAL),value:(0,pe.MY)()}),ws=(0,pe.PL)(ta,{_type:fe(Es.CINTEGER),value:(0,pe.MY)()}),Rs=(0,pe.PL)(na,{_type:fe(Es.CSTRING),value:(0,pe.MY)()}),Os=(0,pe.PL)(ra,{_type:fe(Es.CFLOAT),value:(0,pe.MY)()}),Ls=(0,pe.PL)(ia,{_type:fe(Es.CDATETIME),value:(0,pe.MY)()}),Fs=(0,pe.PL)(sa,{_type:fe(Es.CSTRICTTIME),value:(0,pe.MY)()}),Bs=(0,pe.PL)(aa,{_type:fe(Es.CSTRICTDATE),value:(0,pe.MY)()}),Ps=(0,pe.PL)(class extends oa{accept_ValueSpecificationVisitor(e){return e.visit_CLatestDate(this)}},{_type:fe(Es.CLATESTDATE)}),Ds=(0,pe.PL)(la,{_type:fe(Es.CBOOLEAN),value:(0,pe.MY)()}),js=(0,pe.PL)(class extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CByteArray(this)}},{_type:fe(Es.CBYTEARRAY),value:(0,pe.MY)()}),Ms=(e,t,n)=>{if(Array.isArray(e.values)){if(0===e.values.length){const e=new Qi;return e.multiplicity=Yi.ZERO,e}return 1===e.values.length?n({...e,value:e.values[0]}):dl({...e,_type:Es.COLLECTION},t)}return n(e)},Us=e=>(0,pe.PL)(Ya,{_type:fe(Es.CLASS_INSTANCE),multiplicity:he(ka),type:(0,pe.MY)(),value:(0,pe.Ie)((t=>function(e,t){if(e instanceof Ki)return(0,pe.lK)(Hs(t),e);if(e instanceof Wi)return(0,pe.lK)(Vs(t),e);if(e instanceof ga)return(0,pe.lK)(qs(t),e);if(e instanceof ca)return(0,pe.lK)(Js(t),e);if(e instanceof ua)return(0,pe.lK)(Qs(t),e);if(e instanceof Ea)return(0,pe.lK)(el(t),e);if(e instanceof da)return(0,pe.lK)(Zs,e);if(e instanceof ha)return(0,pe.lK)(tl,e);if(e instanceof ba)return(0,pe.lK)(nl(t),e);if(e instanceof Ca)return(0,pe.lK)(rl(t),e);if(e instanceof Ta)return(0,pe.lK)(cl(t),e);if(e instanceof _a)return(0,pe.lK)(ll(t),e);if(e instanceof va)return(0,pe.lK)(ol,e);if(e instanceof Aa)return(0,pe.lK)(al(t),e);if(e instanceof Na)return(0,pe.lK)(sl(t),e);if(e instanceof ya)return(0,pe.lK)(il,e);const n=t.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolSerializers?.()??[]));for(const r of n){const n=r(e,t);if(n)return n}throw new k("Can't serialize class instance value: no compatible serializer available from plugins",e)}(t,e)),((t,n)=>function(e,t,n){switch(t){case fs.PATH:return(0,pe.iu)(Hs(n),e);case fs.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Vs(n),e);case fs.AGGREGATE_VALUE:return(0,pe.iu)(Js(n),e);case fs.EXECUTION_CONTEXT_INSTANCE:return(0,pe.iu)(qs(n),e);case fs.PAIR:return(0,pe.iu)(Qs(n),e);case fs.PURE_LIST:return(0,pe.iu)(el(n),e);case fs.RUNTIME_INSTANCE:return(0,pe.iu)(Zs,e);case fs.SERIALIZATION_CONFIG:return(0,pe.iu)(tl,e);case fs.TDS_AGGREGATE_VALUE:return(0,pe.iu)(nl(n),e);case fs.TDS_COLUMN_INFORMATION:return(0,pe.iu)(rl(n),e);case fs.TDS_OLAP_AGGREGATION:return(0,pe.iu)(cl(n),e);case fs.TDS_OLAP_RANK:return(0,pe.iu)(ll(n),e);case fs.TDS_SORT_INFORMATION:return(0,pe.iu)(ol,e);case fs.COL_SPEC:return(0,pe.iu)(al(n),e);case fs.COL_SPEC_ARRAY:return(0,pe.iu)(sl(n),e);case fs.RELATION_STORE_ACCESSOR:return(0,pe.iu)(il,e);default:{const r=n.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolDeserializers?.()??[]));for(const o of r){const r=o(e,t,n);if(r)return r}throw new k(`Can't deserialize value specification of type '${e._type}': no compatible deserializer available from plugins`)}}}(t,n.json.type,e)))}),Gs=e=>(0,pe.PL)(Oa,{_type:fe(ms.PROPERTY_PATH_ELEMENT),property:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),Hs=e=>(0,pe.PL)(Ki,{_type:fe(fs.PATH),name:(0,pe.MY)(),startType:(0,pe.MY)(),path:(0,pe.p_)((0,pe.Ie)((t=>function(e,t){return e instanceof Oa?(0,pe.lK)(Gs(t),e):pe._Z}(t,e)),(t=>function(e,t){return e._type===ms.PROPERTY_PATH_ELEMENT?(0,pe.iu)(Gs(t),e):pe._Z}(t,e))))}),Vs=e=>(0,pe.PL)(Wi,{_type:fe(fs.ROOT_GRAPH_FETCH_TREE),class:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e))))}),Ws=e=>(0,pe.PL)(pa,{_type:fe(hs.PROPERTY_GRAPH_FETCH_TREE),alias:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))),property:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subType:(0,pe.lq)((0,pe.MY)())}),Ys=e=>(0,pe.PL)(ma,{_type:fe(fs.SUBTYPE_GRAPH_FETCH_TREE),subTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subTypeClass:(0,pe.MY)()});function $s(e,t){const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolSerializers?.()??[]));for(const r of n){const n=r(e,t);if(n)return n}if(e instanceof pa)return(0,pe.lK)(Ws(t),e);if(e instanceof Wi)return(0,pe.lK)(Vs(t),e);if(e instanceof ma)return(0,pe.lK)(Ys(t),e);throw new k("Can't serialize graph fetch tree: no compatible serializer available from plugins",e)}function zs(e,t){switch(e._type){case hs.PROPERTY_GRAPH_FETCH_TREE:return(0,pe.iu)(Ws(t),e);case fs.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Vs(t),e);case fs.SUBTYPE_GRAPH_FETCH_TREE:return(0,pe.iu)(Ys(t),e);default:{const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolDeserializers?.()??[]));for(const r of n){const n=r(e,t);if(n)return n}throw new k(`Can't deserialize graph fetch tree node of type '${e._type}': no compatible deserializer available from plugins`)}}}const Xs=e=>(0,pe.PL)(Ga,{_type:fe(ps.ANALYTICS_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)()),toFlowSetFunction:he(Cs(e)),useAnalytics:(0,pe.MY)()}),Ks=(0,pe.PL)(Ha,{_type:fe(ps.BASE_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)())}),qs=e=>(0,pe.PL)(ga,{_type:fe(fs.EXECUTION_CONTEXT_INSTANCE),executionContext:(0,pe.Ie)((t=>function(e,t){return e instanceof Ga?(0,pe.lK)(Xs(t),e):e instanceof Ha?(0,pe.lK)(Ks,e):pe._Z}(t,e)),(t=>function(e,t){switch(e._type){case ps.ANALYTICS_EXECUTION_CONTEXT:return(0,pe.iu)(Xs(t),e);case ps.BASE_EXECUTION_CONTEXT:return(0,pe.iu)(Ks,e);default:return pe._Z}}(t,e)))}),Js=e=>(0,pe.PL)(ca,{_type:fe(fs.AGGREGATE_VALUE),mapFn:he(Cs(e)),aggregateFn:he(Cs(e))}),Qs=e=>(0,pe.PL)(ua,{_type:fe(fs.PAIR),first:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))),second:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))}),Zs=(0,pe.PL)(da,{_type:fe(fs.RUNTIME_INSTANCE),runtime:(0,pe.Ie)((e=>(e=>{if(e instanceof Ba)return(0,pe.lK)(Ba,e);if(e instanceof Da)return(0,pe.lK)(Ma,e);throw new k("Can't serialize runtime",e)})(e)),(e=>(0,pe.iu)(Ba,e)))}),el=e=>(0,pe.PL)(Ea,{_type:fe(fs.PURE_LIST),values:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),tl=(0,pe.PL)(ha,{_type:fe(fs.SERIALIZATION_CONFIG),includeType:(0,pe.lq)((0,pe.MY)()),typeKeyName:(0,pe.MY)(),includeEnumTypee:(0,pe.lq)((0,pe.MY)()),removePropertiesWithNullValuese:(0,pe.lq)((0,pe.MY)()),removePropertiesWithEmptySetse:(0,pe.lq)((0,pe.MY)()),fullyQualifiedTypePathe:(0,pe.lq)((0,pe.MY)()),includeObjectReferencee:(0,pe.lq)((0,pe.MY)())}),nl=e=>(0,pe.PL)(ba,{_type:fe(fs.TDS_AGGREGATE_VALUE),name:(0,pe.MY)(),pmapFn:he(Cs(e)),aggregateFn:he(Cs(e))}),rl=e=>(0,pe.PL)(Ca,{_type:fe(fs.TDS_COLUMN_INFORMATION),name:(0,pe.MY)(),columnFn:he(Cs(e))}),ol=(0,pe.PL)(va,{_type:fe(fs.TDS_SORT_INFORMATION),column:(0,pe.MY)(),direction:(0,pe.MY)()}),il=(0,pe.PL)(ya,{path:(0,pe.p_)((0,pe.MY)())}),al=e=>(0,pe.PL)(Aa,{function1:(0,pe.lq)(he(Cs(e))),function2:(0,pe.lq)(he(Cs(e))),name:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())}),sl=e=>(0,pe.PL)(Na,{colSpecs:(0,pe.p_)(he(al(e)))}),ll=e=>(0,pe.PL)(_a,{_type:fe(fs.TDS_OLAP_RANK),function:he(Cs(e))}),cl=e=>(0,pe.PL)(Ta,{_type:fe(fs.TDS_OLAP_AGGREGATION),function:he(Cs(e)),columnName:(0,pe.MY)()});class ul{plugins=[];constructor(e){this.plugins=e}visit_INTERNAL__UnknownValueSpecfication(e){return e.content}visit_Variable(e){return(0,pe.lK)(bs,e)}visit_Lambda(e){return(0,pe.lK)(Cs(this.plugins),e)}visit_KeyExpression(e){return(0,pe.lK)(vs(this.plugins),e)}visit_PackageableElementPtr(e){return(0,pe.lK)(Ns(),e)}visit_GenericTypeInstance(e){return(0,pe.lK)(As(this.plugins),e)}visit_AppliedFunction(e){return(0,pe.lK)(_s(this.plugins),e)}visit_AppliedProperty(e){return(0,pe.lK)(Ts(this.plugins),e)}visit_Collection(e){return(0,pe.lK)(xs(this.plugins),e)}visit_EnumValue(e){return(0,pe.lK)(Is,e)}visit_CInteger(e){return(0,pe.lK)(ws,e)}visit_CDecimal(e){return(0,pe.lK)(ks,e)}visit_CString(e){return(0,pe.lK)(Rs,e)}visit_CBoolean(e){return(0,pe.lK)(Ds,e)}visit_CByteArray(e){return(0,pe.lK)(js,e)}visit_CFloat(e){return(0,pe.lK)(Os,e)}visit_CDateTime(e){return(0,pe.lK)(Ls,e)}visit_CStrictDate(e){return(0,pe.lK)(Bs,e)}visit_CStrictTime(e){return(0,pe.lK)(Fs,e)}visit_CLatestDate(e){return(0,pe.lK)(Ps,e)}visit_ClassInstance(e){return(0,pe.lK)(Us(this.plugins),e)}}function dl(e,t){switch(e._type){case Es.APPLIED_FUNCTION:return(0,pe.iu)(_s(t),e);case Es.APPLIED_PROPERTY:return(0,pe.iu)(Ts(t),e);case Es.VARIABLE:return(0,pe.iu)(bs,e);case Es.LAMBDA:return(0,pe.iu)(Cs(t),e);case Es.KEY_EXPRESSION:return(0,pe.iu)(vs(t),e);case Es.COLLECTION:return(0,pe.iu)(xs(t),e);case Es.ENUM_VALUE:return(0,pe.iu)(Is,e);case Es.CBOOLEAN:return Ms(e,t,(e=>(0,pe.iu)(Ds,e)));case Es.CBYTEARRAY:return Ms(e,t,(e=>(0,pe.iu)(js,e)));case Es.CDATETIME:return Ms(e,t,(e=>(0,pe.iu)(Ls,e)));case Es.CSTRICTTIME:return Ms(e,t,(e=>(0,pe.iu)(Fs,e)));case Es.CDECIMAL:return Ms(e,t,(e=>(0,pe.iu)(ks,e)));case Es.CFLOAT:return Ms(e,t,(e=>(0,pe.iu)(Os,e)));case Es.CINTEGER:return Ms(e,t,(e=>(0,pe.iu)(ws,e)));case Es.CLATESTDATE:return Ms(e,t,(e=>(0,pe.iu)(Ps,e)));case Es.CSTRICTDATE:return Ms(e,t,(e=>(0,pe.iu)(Bs,e)));case Es.CSTRING:if(Array.isArray(e.values)&&!e.values.length&&(n=e.multiplicity,W(n)&&"Object"===n.constructor.name)&&1===e.multiplicity.upperBound){const e=new na;return e.value="",e}return Ms(e,t,(e=>(0,pe.iu)(Rs,e)));case Es.CLASS_INSTANCE:return(0,pe.iu)(Us(t),e);case fs.PAIR:case fs.AGGREGATE_VALUE:case fs.EXECUTION_CONTEXT_INSTANCE:case fs.PATH:case fs.ROOT_GRAPH_FETCH_TREE:case fs.PURE_LIST:case fs.RUNTIME_INSTANCE:case fs.SERIALIZATION_CONFIG:case fs.TDS_AGGREGATE_VALUE:case fs.TDS_COLUMN_INFORMATION:case fs.TDS_OLAP_AGGREGATION:case fs.TDS_OLAP_RANK:case fs.TDS_SORT_INFORMATION:return(0,pe.iu)(Us(t),{_type:Es.CLASS_INSTANCE,type:e._type,value:e});case Es.HACKED_CLASS:return Ss(e);case Es.UNIT_TYPE:case Es.HACKED_UNIT:return ys(e);case Es.PRIMITIVE_TYPE:case Es.ENUM:case Es.CLASS:case Es.MAPPING_INSTANCE:case Es.PACKAGEABLE_ELEMENT_PTR:return(0,pe.iu)(Ns(),e);case Es.GENERIC_TYPE_INSTANCE:return(0,pe.iu)(As(t),e);default:throw new k(`Can't deserialize value specification of type '${e._type}'`)}var n}function gl(e,t){return e.accept_ValueSpecificationVisitor(new ul(t))}function pl(e){return j(dl(e,[]),zi)}function ml(e){return dl(e,[])}function hl(e){return gl(e,[])}function fl(e){const t=new Ui;return t.name=e??fi,t}function El(e,t){const n=new La;return n.property=e,n.parameters.push(t??fl()),n}function bl(e,t){const n=new zi;return n.parameters=e,n.body=t,n}const Cl=["meta::pure::metamodel","meta::pure::metamodel::type","meta::pure::metamodel::type::generics","meta::pure::metamodel::relationship","meta::pure::metamodel::valuespecification","meta::pure::metamodel::multiplicity","meta::pure::metamodel::function","meta::pure::metamodel::function::property","meta::pure::metamodel::extension","meta::pure::metamodel::import","meta::pure::functions::date","meta::pure::functions::string","meta::pure::functions::collection","meta::pure::functions::meta","meta::pure::functions::constraints","meta::pure::functions::lang","meta::pure::functions::boolean","meta::pure::functions::tools","meta::pure::functions::relation","meta::pure::functions::io","meta::pure::functions::math","meta::pure::functions::asserts","meta::pure::functions::test","meta::pure::functions::multiplicity","meta::pure::router","meta::pure::service","meta::pure::tds","meta::pure::tools","meta::pure::profiles"];function vl(e){const t=(e=>{const t=e.lastIndexOf(Po);return-1===t?void 0:e.substring(0,t)})(e);return t&&Cl.includes(t)?Ka(e):e}function _l(e,t){const n=new Ji;return n.function=vl(e),n.parameters=t,n}function Tl(e){const t=new Qi;return t.multiplicity=new Yi(e.length,e.length),t.values=e,t}function Nl(e,t){const n=(e,t)=>(e.value=t,e);switch(e){case jo.STRING:return n(new na,Y(t));case jo.BOOLEAN:return n(new la,z(t));case jo.NUMBER:case jo.DECIMAL:return n(new ea,$(t));case jo.INTEGER:return n(new ta,$(t));case jo.FLOAT:return n(new ra,$(t));case jo.DATE:case jo.STRICTDATE:return n(new aa,Y(t));case jo.DATETIME:return n(new ia,Y(t));case jo.STRICTTIME:return n(new sa,Y(t));default:throw new k(`Unsupported value type '${e}'`)}}function Al(e){const t=new Va;return t.fullPath=e,t}function yl(e,t){const n=new Ya;return n.type=e,n.value=t,n}function Sl(e,t,n,r){const o=new Aa;return o.name=e,o.function1=t,o.function2=n,o.type=r,o}function xl(e,t){switch(e.type){case jo.STRING:case jo.BOOLEAN:case jo.NUMBER:case jo.DECIMAL:case jo.INTEGER:case jo.FLOAT:case jo.DATE:case jo.DATETIME:case jo.STRICTDATE:case jo.STRICTTIME:return Array.isArray(e.value)?Tl(e.value.map((t=>Nl(e.type,t)))):Nl(e.type,e.value);case ti.COLUMN:return El(Y(e.value),t);default:throw new k(`Unsupported value type '${e.type}'`)}}function Il(e){return _l(vl(Xo.NOT),[e])}function kl(e,t,n){return yl(fs.COL_SPEC,Sl(e,t,n))}function wl(e){const t=new Na;return t.colSpecs=e,yl(fs.COL_SPEC_ARRAY,t)}function Rl(e){const t=fl();return e.length?e:[Sl("INTERNAL__filler_count_agg_column",bl([t],[t]),bl([t],[_l(Xo.COUNT,[t])]))]}function Ol(e,t){const n=fl();return Sl(e.name,bl([n],[El(e.name,n)]),bl([n],[_l(vl(t),[n])]))}function Ll(e,t,n,r){return Rl(n.columns.filter((n=>n.isSelected&&n.kind===ei.MEASURE&&!e.find((e=>e.name===n.name))&&!n.excludedFromPivot&&!t.data.groupExtendedColumns.find((e=>e.name===n.name)))).map((e=>{const t=r.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumn(e);if(!n)throw new k(`Unsupported aggregate operation '${e.aggregateOperator}'`);return n})))}function Fl(e){const t=new Wa;return t.genericType=es(Go.RELATION),t.genericType.typeArguments=[ts(ns(e.map((e=>function(e,t){const n=new Ja;return n.name=e,n.genericType=es(t),n}(e.name,e.type)))))],t}function Bl(e,t,n,r){const o=t.data.pivot;if(!o)return Rl(n.columns.filter((n=>n.isSelected&&!e.find((e=>e.name===n.name))&&!t.data.groupExtendedColumns.find((e=>e.name===n.name)))).map((e=>{const t=r.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumn(e);if(!n)throw new k(`Unsupported aggregate operation '${e.aggregateOperator}'`);return n})));const i=o.castColumns.filter((e=>pi(e.name))),a=o.castColumns.filter((e=>!pi(e.name)));return Rl([...i.map((e=>{const t=mi(e.name);return{...e,matchingColumnConfiguration:n.columns.find((e=>e.name===t))}})).filter((e=>e.matchingColumnConfiguration)).map((e=>{const t=Pi.serialization.fromJson(P(e.matchingColumnConfiguration).serialize());t.name=e.name;const n=r.find((e=>e.operator===t.aggregateOperator)),o=n?.buildAggregateColumn(t);if(!o)throw new k(`Unsupported aggregate operation '${t.aggregateOperator}'`);return o})),...a.filter((t=>!e.find((e=>e.name===t.name)))).map((e=>{const t=P(n.columns.find((t=>t.name===e.name))),o=r.find((e=>e.operator===t.aggregateOperator)),i=o?.buildAggregateColumn(t);if(!i)throw new k(`Unsupported aggregate operation '${t.aggregateOperator}'`);return i}))])}function Pl(e,t){if("groupOperator"in e){const n=e,r=n.groupOperator===ii.AND?Xo.AND:Xo.OR;let o=[];n.conditions.forEach((e=>{o.push(Pl(e,t)),2===o.length&&(o=[_l(r,o)])}));const i=P(o[0]);return n.not?Il(i):i}{const n=e,r=t.find((e=>e.operator===n.operator)),o=r?.buildConditionExpression(n);if(!o)throw new k(`Unsupported filter operation '${n.operator}'`);return n.not?Il(o):o}}function Dl(e,t,n,r,o,i){const a=e.data,s=ji.serialization.fromJson(a.configuration),l=[],c={},u=function(e,t){return(n,r)=>{e.push(r),t[n]=r}}(l,c);if(a.leafExtendedColumns.length){const e=a.leafExtendedColumns.map((e=>_l(Xo.EXTEND,[kl(e.name,pl(e.mapFn))])));u("leafExtend",P(e[0])),e.slice(1).forEach((e=>{l.push(e)}))}if(a.filter&&u("filter",_l(Xo.FILTER,[bl([fl()],[Pl(a.filter,r)])])),a.selectColumns.length&&u("select",_l(Xo.SELECT,[wl(a.selectColumns.map((e=>Sl(e.name))))])),a.pivot){const t=a.pivot;u("sort",_l(Xo.SORT,[Tl(a.pivot.columns.map((e=>_l(Xo.ASCENDING,[kl(e.name)]))))])),u("pivot",_l(Xo.PIVOT,[wl(t.columns.map((e=>Sl(e.name)))),wl(Ll(t.columns,e,s,o))])),t.castColumns.length&&u("pivotCast",_l(Xo.CAST,[Fl(t.castColumns)]))}if(a.groupBy){const t=a.groupBy;s.showRootAggregation&&i?.rootAggregation&&l.push((d=i.rootAggregation.columnName,_l(Xo.EXTEND,[kl(d,bl([fl()],[Nl(jo.STRING,Ci)]))]))),u("groupBy",_l(Xo.GROUP_BY,[wl(t.columns.map((e=>Sl(e.name)))),wl(Bl(t.columns,e,s,o))])),u("groupBySort",_l(Xo.SORT,[Tl(t.columns.map((e=>_l(s.treeColumnSortDirection===ai.ASCENDING?Xo.ASCENDING:Xo.DESCENDING,[kl(e.name)]))))]))}var d;if(a.groupExtendedColumns.length){const e=a.groupExtendedColumns.map((e=>_l(Xo.EXTEND,[kl(e.name,pl(e.mapFn))])));u("groupExtend",P(e[0])),e.slice(1).forEach((e=>{l.push(e)}))}a.sortColumns.length&&u("sort",_l(Xo.SORT,[Tl(a.sortColumns.map((e=>_l(e.direction===ai.ASCENDING?Xo.ASCENDING:Xo.DESCENDING,[kl(e.name)]))))])),void 0!==a.limit&&u("limit",_l(Xo.LIMIT,[Nl(jo.INTEGER,a.limit)])),i?.pagination&&l.push(_l(Xo.SLICE,[Nl(jo.INTEGER,i.pagination.start),Nl(jo.INTEGER,i.pagination.end)]));const g=n(t);if(g&&l.push(g),i?.postProcessor?.(e,l,c,s,r,o),0===l.length)return t.query;for(let e=0;e<l.length;e++)P(l[e]).parameters.unshift(0===e?t.query:P(l[e-1]));return P(l[l.length-1])}function jl(e,t){return e?.find((e=>e.name===t))}function Ml(e){return{name:e.name,type:e.type}}const Ul=(e,t)=>e.name.localeCompare(t.name);function Gl(e,t,n){return U(e.parameters.length>=t+1,`Can't process ${Ka(e.function)}() expression: Expected at least ${t+1} parameter(s)`),j(e.parameters[t],n,`Can't process ${Ka(e.function)}() expression: Found unexpected type for parameter at index ${t}`)}function Hl(e,t){return j(Gl(e,t,Ya).value,Aa,`Can't process ${Ka(e.function)}() expression: Expected parameter at index ${t} to be a column specification`)}function Vl(e,t){return j(Gl(e,t,Ya).value,Na,`Can't process ${Ka(e.function)}() expression: Expected parameter at index ${t} to be a column specification list`)}function Wl(e,t,n){const r=Math.min(e.length,t.length);if(!r)return[];let o=-1;for(let n=0;n<r&&P(e[n]).name===P(t[n]).name&&P(e[n]).type===P(t[n]).type;n++)o=n;return n.filter((e=>e.split(hi).length<=o+1)).sort()}function Yl(e,t){const n={},r=[];if(e instanceof Ji){switch(e.function){case ii.OR:case ii.AND:n.groupOperator=e.function;break;default:n.groupOperator=ii.AND}e.function===ii.AND||e.function===ii.OR?e.parameters.forEach((e=>{r.push($l(e,t))})):r.push($l(e,t))}return n.conditions=r,n}function $l(e,t){if(e instanceof Ji){if(Object.values(Xo).map((e=>vl(e))).includes(e.function)&&e.function!==vl(Xo.NOT)){const n=function(e){if(e.parameters[1]&&e.parameters[1]instanceof La)switch(e.function){case vl(Xo.EQUAL):return[e,oi.EQUAL_COLUMN];case vl(Xo.GREATER_THAN):return[e,oi.GREATER_THAN_COLUMN];case vl(Xo.GREATER_THAN_OR_EQUAL):case vl(Xo.LESS_THAN):return[e,oi.GREATER_THAN_OR_EQUAL_COLUMN];case vl(Xo.LESS_THAN):return[e,oi.LESS_THAN_COLUMN];case vl(Xo.LESS_THAN_OR_EQUAL):return[e,oi.LESS_THAN_OR_EQUAL_COLUMN];default:return}else{if(e.parameters[0]instanceof Ji&&e.parameters[0].function===vl(Xo.TO_LOWERCASE))return function(e){const t=e;if(e.parameters[0]instanceof Ji&&e.parameters[1]instanceof Ji&&(t.parameters=[e.parameters[0].parameters[0],e.parameters[1].parameters[0]]),t.parameters[1]&&t.parameters[1]instanceof La)return e.function===vl(Xo.EQUAL)?[t,oi.EQUAL_CASE_INSENSITIVE_COLUMN]:void 0;switch(e.function){case vl(Xo.CONTAINS):return[t,oi.CONTAIN_CASE_INSENSITIVE];case vl(Xo.ENDS_WITH):return[t,oi.END_WITH_CASE_INSENSITIVE];case vl(Xo.EQUAL):return[t,oi.EQUAL_CASE_INSENSITIVE];case vl(Xo.STARTS_WITH):return[t,oi.START_WITH_CASE_INSENSITIVE];default:return}}(e);switch(e.function){case vl(Xo.CONTAINS):return[e,oi.CONTAIN];case vl(Xo.ENDS_WITH):return[e,oi.END_WITH];case vl(Xo.EQUAL):return[e,oi.EQUAL];case vl(Xo.GREATER_THAN):return[e,oi.GREATER_THAN];case vl(Xo.GREATER_THAN_OR_EQUAL):return[e,oi.GREATER_THAN_OR_EQUAL];case vl(Xo.IS_EMPTY):return[e,oi.IS_NULL];case vl(Xo.LESS_THAN):return[e,oi.LESS_THAN];case vl(Xo.LESS_THAN_OR_EQUAL):return[e,oi.LESS_THAN_OR_EQUAL];case vl(Xo.STARTS_WITH):return[e,oi.START_WITH];default:return}}}(e);return Xl(n[0],n[1],t)}if(e.function===vl(Xo.NOT)){const n=function(e){if(e.parameters[1]&&e.parameters[1]instanceof La)return e.function===vl(Xo.EQUAL)?[e,oi.NOT_EQUAL_COLUMN]:void 0;if(e.parameters[0]instanceof Ji&&e.parameters[0].function===vl(Xo.TO_LOWERCASE)){if(e.function===vl(Xo.EQUAL)){const t=e;return e.parameters[0]instanceof Ji&&e.parameters[1]instanceof Ji&&(t.parameters=[e.parameters[0].parameters[0],e.parameters[1].parameters[0]]),t.parameters[1]&&t.parameters[1]instanceof La?[t,oi.NOT_EQUAL_CASE_INSENSITIVE_COLUMN]:[t,oi.NOT_EQUAL_CASE_INSENSITIVE]}}else switch(e.function){case vl(Xo.CONTAINS):return[e,oi.NOT_CONTAIN];case vl(Xo.ENDS_WITH):return[e,oi.NOT_END_WITH];case vl(Xo.EQUAL):return[e,oi.NOT_EQUAL];case vl(Xo.IS_EMPTY):return[e,oi.IS_NOT_NULL];case vl(Xo.STARTS_WITH):return[e,oi.NOT_START_WITH];default:return}}(e.parameters[0]);if(n)return Xl(n[0],n[1],t);{const n=Yl(e.parameters[0],t);return n.not=!0,n}}if(e.parameters[0]instanceof Ji)return Yl(e,t)}}function zl(e){switch(!0){case e instanceof na:return Kl(jo.STRING,e.value);case e instanceof la:return Kl(jo.BOOLEAN,e.value);case e instanceof ea:return Kl(jo.DECIMAL,e.value);case e instanceof ta:return Kl(jo.INTEGER,e.value);case e instanceof ra:return Kl(jo.FLOAT,e.value);case e instanceof aa:return Kl(jo.STRICTDATE,e.value);case e instanceof ia:return Kl(jo.DATETIME,e.value);case e instanceof sa:return Kl(jo.STRICTTIME,e.value);default:throw new k(`Unsupported primitive value '${e}'`)}}function Xl(e,t,n){const r=n.find((e=>e.operator===t));return r?.buildConditionSnapshot(e)}function Kl(e,t){return{value:t,type:e}}function ql(e,t){return{name:e.property,operator:t,type:e.class}}function Jl(e,t){return P(t.columns.find((t=>t.name===e)),`Can't find configuration for column '${e}'`)}var Ql;!function(e){e.WHITESPACE="",e.KEYWORD="keyword",e.IDENTIFIER="identifier",e.OPERATOR="operator",e.DELIMITER="delimiter",e.PARSER="parser",e.NUMBER="number",e.DATE="date",e.COLOR="color",e.PACKAGE="package",e.STRING="string",e.COMMENT="comment",e.LANGUAGE_STRUCT="language-struct",e.MULTIPLICITY="multiplicity",e.GENERICS="generics",e.PROPERTY="property",e.PARAMETER="parameter",e.VARIABLE="variable",e.TYPE="type",e.INVALID="invalid"}(Ql||(Ql={}));const Zl=(e,t,n,r)=>{const o=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=G(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const r={};e.settings.foreground&&G(e.settings.foreground)&&(r.foreground=e.settings.foreground),e.settings.background&&G(e.settings.background)&&(r.background=e.settings.background),e.settings.fontStyle&&G(e.settings.fontStyle)&&(r.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(F(e)||!Object.keys(r).length)return;const n={...r,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{Array.isArray(t)?t.length&&(n[e]=A(t,0)):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...o,base:t,colors:{...o.colors,...n},rules:[...o.rules,...r]}},ec=JSON.parse('{"name":"Solarized (dark)","tokenColors":[{"settings":{"foreground":"#839496"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown"],"settings":{"foreground":"#839496"}},{"name":"Comment","scope":"comment","settings":{"fontStyle":"italic","foreground":"#586E75"}},{"name":"String","scope":"string","settings":{"foreground":"#2AA198"}},{"name":"Regexp","scope":"string.regexp","settings":{"foreground":"#DC322F"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#D33682"}},{"name":"Variable","scope":["variable.language","variable.other"],"settings":{"foreground":"#268BD2"}},{"name":"Keyword","scope":"keyword","settings":{"foreground":"#859900"}},{"name":"Storage","scope":"storage","settings":{"fontStyle":"bold","foreground":"#93A1A1"}},{"name":"Class name","scope":["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],"settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"Function name","scope":"entity.name.function","settings":{"foreground":"#268BD2"}},{"name":"Variable start","scope":"punctuation.definition.variable","settings":{"foreground":"#859900"}},{"name":"Embedded code markers","scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#DC322F"}},{"name":"Built-in constant","scope":["constant.language","meta.preprocessor"],"settings":{"foreground":"#B58900"}},{"name":"Support.construct","scope":["support.function.construct","keyword.other.new"],"settings":{"foreground":"#CB4B16"}},{"name":"User-defined constant","scope":["constant.character","constant.other"],"settings":{"foreground":"#CB4B16"}},{"name":"Inherited class","scope":"entity.other.inherited-class","settings":{"foreground":"#6C71C4"}},{"name":"Function argument","scope":"variable.parameter","settings":{}},{"name":"Tag name","scope":"entity.name.tag","settings":{"foreground":"#268BD2"}},{"name":"Tag start/end","scope":"punctuation.definition.tag","settings":{"foreground":"#586E75"}},{"name":"Tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#93A1A1"}},{"name":"Library function","scope":"support.function","settings":{"foreground":"#268BD2"}},{"name":"Continuation","scope":"punctuation.separator.continuation","settings":{"foreground":"#DC322F"}},{"name":"Library constant","scope":["support.constant","support.variable"],"settings":{}},{"name":"Library class/type","scope":["support.type","support.class"],"settings":{"foreground":"#859900"}},{"name":"Library Exception","scope":"support.type.exception","settings":{"foreground":"#CB4B16"}},{"name":"Library variable","scope":"support.other.variable","settings":{}},{"name":"Invalid","scope":"invalid","settings":{"foreground":"#DC322F"}},{"name":"diff: header","scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#268BD2"}},{"name":"diff: deleted","scope":"markup.deleted","settings":{"fontStyle":"","foreground":"#DC322F"}},{"name":"diff: changed","scope":"markup.changed","settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"diff: inserted","scope":"markup.inserted","settings":{"foreground":"#859900"}},{"name":"Markup Quote","scope":"markup.quote","settings":{"foreground":"#859900"}},{"name":"Markup Lists","scope":"markup.list","settings":{"foreground":"#B58900"}},{"name":"Markup Styling","scope":["markup.bold","markup.italic"],"settings":{"foreground":"#D33682"}},{"name":"Markup: Strong","scope":"markup.bold","settings":{"fontStyle":"bold"}},{"name":"Markup: Emphasis","scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"name":"Markup Inline","scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#2AA198"}},{"name":"Markup Headings","scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#268BD2"}},{"name":"Markup Setext Header","scope":"markup.heading.setext","settings":{"fontStyle":"","foreground":"#268BD2"}}],"colors":{"focusBorder":"#2AA19899","selection.background":"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.infoBorder":"#363b5f","inputValidation.infoBackground":"#052730","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","errorForeground":"#ffeaea","badge.background":"#047aa6","progressBar.background":"#047aa6","dropdown.background":"#00212B","dropdown.border":"#2AA19899","button.background":"#2AA19899","list.activeSelectionBackground":"#005A6F","quickInputList.focusBackground":"#005A6F","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","editor.background":"#002B36","editor.foreground":"#839496","editorWidget.background":"#00212B","editorCursor.foreground":"#D30102","editorWhitespace.foreground":"#93A1A180","editor.lineHighlightBackground":"#073642","editorLineNumber.activeForeground":"#949494","editor.selectionBackground":"#274642","minimap.selectionHighlight":"#274642","editorIndentGuide.background":"#93A1A180","editorIndentGuide.activeBackground":"#C3E1E180","editorHoverWidget.background":"#004052","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","peekViewResult.background":"#00212B","peekViewEditor.background":"#10192c","peekViewTitle.background":"#00212B","peekView.border":"#2b2b4a","peekViewEditor.matchHighlightBackground":"#7744AA40","titleBar.activeBackground":"#002C39","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","tab.activeForeground":"#d6dbdb","tab.activeBackground":"#002B37","tab.inactiveForeground":"#93A1A1","tab.inactiveBackground":"#004052","tab.border":"#003847","tab.lastPinnedBorder":"#2AA19844","activityBar.background":"#003847","panel.border":"#2b2b4a","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.noFolderBackground":"#00212B","statusBarItem.remoteBackground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","debugToolBar.background":"#00212B","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","pickerGroup.foreground":"#2AA19899","pickerGroup.border":"#2AA19899","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightYellow":"#657b83","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightWhite":"#fdf6e3"},"semanticHighlighting":true}'),tc=JSON.parse('{"name":"GitHub Dark","colors":{"focusBorder":"#005cc5","foreground":"#d1d5da","descriptionForeground":"#959da5","errorForeground":"#f97583","textLink.foreground":"#79b8ff","textLink.activeForeground":"#c8e1ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","badge.foreground":"#c8e1ff","badge.background":"#044289","progressBar.background":"#0366d6","titleBar.activeForeground":"#e1e4e8","titleBar.activeBackground":"#24292e","titleBar.inactiveForeground":"#959da5","titleBar.inactiveBackground":"#1f2428","titleBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBar.background":"#24292e","activityBarBadge.foreground":"#fff","activityBarBadge.background":"#0366d6","activityBar.activeBorder":"#f9826c","activityBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBarTitle.foreground":"#e1e4e8","sideBarSectionHeader.foreground":"#e1e4e8","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","list.hoverForeground":"#e1e4e8","list.inactiveSelectionForeground":"#e1e4e8","list.activeSelectionForeground":"#e1e4e8","list.hoverBackground":"#282e34","list.inactiveSelectionBackground":"#282e34","list.activeSelectionBackground":"#39414a","list.inactiveFocusBackground":"#1d2d3e","list.focusBackground":"#044289","tree.indentGuidesStroke":"#2f363d","notificationCenterHeader.foreground":"#959da5","notificationCenterHeader.background":"#24292e","notifications.foreground":"#e1e4e8","notifications.background":"#2f363d","notifications.border":"#1b1f23","notificationsErrorIcon.foreground":"#ea4a5a","notificationsWarningIcon.foreground":"#ffab70","notificationsInfoIcon.foreground":"#79b8ff","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","statusBar.foreground":"#d1d5da","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.noFolderBackground":"#24292e","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteForeground":"#d1d5da","statusBarItem.remoteBackground":"#24292e","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGroup.border":"#1b1f23","tab.activeForeground":"#e1e4e8","tab.inactiveForeground":"#959da5","tab.inactiveBackground":"#1f2428","tab.activeBackground":"#24292e","tab.hoverBackground":"#24292e","tab.unfocusedHoverBackground":"#24292e","tab.border":"#1b1f23","tab.unfocusedActiveBorderTop":"#1b1f23","tab.activeBorder":"#24292e","tab.unfocusedActiveBorder":"#24292e","tab.activeBorderTop":"#f9826c","breadcrumb.foreground":"#959da5","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumbPicker.background":"#2b3036","editor.foreground":"#e1e4e8","editor.background":"#24292e","editorWidget.background":"#1f2428","editor.foldBackground":"#58606915","editor.lineHighlightBackground":"#2b3036","editorLineNumber.foreground":"#444d56","editorLineNumber.activeForeground":"#e1e4e8","editorIndentGuide.background":"#2f363d","editorIndentGuide.activeBackground":"#444d56","editorWhitespace.foreground":"#444d56","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorWarning.foreground":"#ffea7f","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.linkedEditingBackground":"#3392FF22","editor.inactiveSelectionBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorGutter.modifiedBackground":"#2188ff","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","scrollbar.shadow":"#0008","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","scrollbarSlider.activeBackground":"#6a737d88","editorOverviewRuler.border":"#1b1f23","panel.background":"#1f2428","panel.border":"#1b1f23","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","panelInput.border":"#2f363d","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiWhite":"#d1d5da","terminal.ansiBrightBlack":"#959da5","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiGreen":"#34d058","terminal.ansiBrightGreen":"#85e89d","terminal.ansiCyan":"#39c5cf","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiRed":"#ea4a5a","terminal.ansiBrightRed":"#f97583","terminal.ansiMagenta":"#b392f0","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiYellow":"#ffea7f","terminal.ansiBrightYellow":"#ffea7f","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.untrackedResourceForeground":"#34d058","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.submoduleResourceForeground":"#6a737d","debugToolBar.background":"#2b3036","editor.stackFrameHighlightBackground":"#C6902625","editor.focusedStackFrameHighlightBackground":"#2b6a3033","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.matchHighlightBackground":"#ffd33d33","peekViewEditor.background":"#1f242888","peekViewResult.background":"#1f2428","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f97583","foreground":"#24292e","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2f363d","background":"#79b8ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#b392f0","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#dbedff","fontStyle":"underline"}}]}'),nc=JSON.parse('{"name":"GitHub Dark Dimmed","colors":{"focusBorder":"#316dca","foreground":"#adbac7","descriptionForeground":"#768390","errorForeground":"#e5534b","textLink.foreground":"#539bf5","textLink.activeForeground":"#539bf5","textBlockQuote.background":"#1c2128","textBlockQuote.border":"#444c56","textCodeBlock.background":"#636e7b66","textPreformat.foreground":"#768390","textSeparator.foreground":"#373e47","icon.foreground":"#768390","keybindingLabel.foreground":"#adbac7","button.background":"#347d39","button.foreground":"#ffffff","button.hoverBackground":"#46954a","button.secondaryBackground":"#3d444d","button.secondaryForeground":"#adbac7","button.secondaryHoverBackground":"#444c56","checkbox.background":"#2d333b","checkbox.border":"#444c56","dropdown.background":"#2d333b","dropdown.border":"#444c56","dropdown.foreground":"#adbac7","dropdown.listBackground":"#2d333b","input.background":"#22272e","input.border":"#444c56","input.foreground":"#adbac7","input.placeholderForeground":"#636e7b","badge.foreground":"#cdd9e5","badge.background":"#316dca","progressBar.background":"#316dca","titleBar.activeForeground":"#768390","titleBar.activeBackground":"#22272e","titleBar.inactiveForeground":"#768390","titleBar.inactiveBackground":"#1c2128","titleBar.border":"#444c56","activityBar.foreground":"#adbac7","activityBar.inactiveForeground":"#768390","activityBar.background":"#22272e","activityBarBadge.foreground":"#cdd9e5","activityBarBadge.background":"#316dca","activityBar.activeBorder":"#ec775c","activityBar.border":"#444c56","sideBar.foreground":"#adbac7","sideBar.background":"#1c2128","sideBar.border":"#444c56","sideBarTitle.foreground":"#adbac7","sideBarSectionHeader.foreground":"#adbac7","sideBarSectionHeader.background":"#1c2128","sideBarSectionHeader.border":"#444c56","list.hoverForeground":"#adbac7","list.inactiveSelectionForeground":"#adbac7","list.activeSelectionForeground":"#adbac7","list.hoverBackground":"#636e7b1a","list.inactiveSelectionBackground":"#636e7b66","list.activeSelectionBackground":"#636e7b66","list.focusForeground":"#adbac7","list.focusBackground":"#4184e426","list.inactiveFocusBackground":"#4184e426","list.highlightForeground":"#539bf5","tree.indentGuidesStroke":"#373e47","notificationCenterHeader.foreground":"#768390","notificationCenterHeader.background":"#2d333b","notifications.foreground":"#adbac7","notifications.background":"#2d333b","notifications.border":"#444c56","notificationsErrorIcon.foreground":"#e5534b","notificationsWarningIcon.foreground":"#c69026","notificationsInfoIcon.foreground":"#539bf5","pickerGroup.border":"#444c56","pickerGroup.foreground":"#768390","quickInput.background":"#2d333b","quickInput.foreground":"#adbac7","statusBar.foreground":"#768390","statusBar.background":"#22272e","statusBar.border":"#444c56","statusBar.focusBorder":"#316dca80","statusBar.noFolderBackground":"#22272e","statusBar.debuggingForeground":"#cdd9e5","statusBar.debuggingBackground":"#c93c37","statusBarItem.prominentBackground":"#636e7b66","statusBarItem.remoteForeground":"#adbac7","statusBarItem.remoteBackground":"#444c56","statusBarItem.hoverBackground":"#adbac714","statusBarItem.activeBackground":"#adbac71f","statusBarItem.focusBorder":"#316dca","editorGroupHeader.tabsBackground":"#1c2128","editorGroupHeader.tabsBorder":"#444c56","editorGroup.border":"#444c56","tab.activeForeground":"#adbac7","tab.inactiveForeground":"#768390","tab.inactiveBackground":"#1c2128","tab.activeBackground":"#22272e","tab.hoverBackground":"#22272e","tab.unfocusedHoverBackground":"#636e7b1a","tab.border":"#444c56","tab.unfocusedActiveBorderTop":"#444c56","tab.activeBorder":"#22272e","tab.unfocusedActiveBorder":"#22272e","tab.activeBorderTop":"#ec775c","breadcrumb.foreground":"#768390","breadcrumb.focusForeground":"#adbac7","breadcrumb.activeSelectionForeground":"#768390","breadcrumbPicker.background":"#2d333b","editor.foreground":"#adbac7","editor.background":"#22272e","editorWidget.background":"#2d333b","editor.foldBackground":"#636e7b1a","editor.lineHighlightBackground":"#636e7b1a","editorLineNumber.foreground":"#636e7b","editorLineNumber.activeForeground":"#adbac7","editorIndentGuide.background":"#adbac71f","editorIndentGuide.activeBackground":"#adbac73d","editorWhitespace.foreground":"#545d68","editorCursor.foreground":"#539bf5","editor.findMatchBackground":"#966600","editor.findMatchHighlightBackground":"#eac55f80","editor.linkedEditingBackground":"#539bf512","editor.selectionHighlightBackground":"#57ab5a40","editor.wordHighlightBackground":"#636e7b80","editor.wordHighlightBorder":"#636e7b99","editor.wordHighlightStrongBackground":"#636e7b4d","editor.wordHighlightStrongBorder":"#636e7b99","editorBracketMatch.background":"#57ab5a40","editorBracketMatch.border":"#57ab5a99","editorInlayHint.background":"#76839033","editorInlayHint.foreground":"#768390","editorInlayHint.typeBackground":"#76839033","editorInlayHint.typeForeground":"#768390","editorInlayHint.paramBackground":"#76839033","editorInlayHint.paramForeground":"#768390","editorGutter.modifiedBackground":"#ae7c1466","editorGutter.addedBackground":"#46954a66","editorGutter.deletedBackground":"#e5534b66","diffEditor.insertedLineBackground":"#347d3926","diffEditor.insertedTextBackground":"#57ab5a4d","diffEditor.removedLineBackground":"#c93c3726","diffEditor.removedTextBackground":"#f470674d","scrollbar.shadow":"#545d6833","scrollbarSlider.background":"#76839033","scrollbarSlider.hoverBackground":"#7683903d","scrollbarSlider.activeBackground":"#76839047","editorOverviewRuler.border":"#1c2128","minimapSlider.background":"#76839033","minimapSlider.hoverBackground":"#7683903d","minimapSlider.activeBackground":"#76839047","panel.background":"#1c2128","panel.border":"#444c56","panelTitle.activeBorder":"#ec775c","panelTitle.activeForeground":"#adbac7","panelTitle.inactiveForeground":"#768390","panelInput.border":"#444c56","debugIcon.breakpointForeground":"#e5534b","debugConsole.infoForeground":"#768390","debugConsole.warningForeground":"#c69026","debugConsole.errorForeground":"#ff938a","debugConsole.sourceForeground":"#daaa3f","debugConsoleInputIcon.foreground":"#b083f0","debugTokenExpression.name":"#6cb6ff","debugTokenExpression.value":"#96d0ff","debugTokenExpression.string":"#96d0ff","debugTokenExpression.boolean":"#6bc46d","debugTokenExpression.number":"#6bc46d","debugTokenExpression.error":"#ff938a","symbolIcon.arrayForeground":"#e0823d","symbolIcon.booleanForeground":"#539bf5","symbolIcon.classForeground":"#e0823d","symbolIcon.colorForeground":"#6cb6ff","symbolIcon.constructorForeground":"#dcbdfb","symbolIcon.enumeratorForeground":"#e0823d","symbolIcon.enumeratorMemberForeground":"#539bf5","symbolIcon.eventForeground":"#636e7b","symbolIcon.fieldForeground":"#e0823d","symbolIcon.fileForeground":"#c69026","symbolIcon.folderForeground":"#c69026","symbolIcon.functionForeground":"#b083f0","symbolIcon.interfaceForeground":"#e0823d","symbolIcon.keyForeground":"#539bf5","symbolIcon.keywordForeground":"#f47067","symbolIcon.methodForeground":"#b083f0","symbolIcon.moduleForeground":"#f47067","symbolIcon.namespaceForeground":"#f47067","symbolIcon.nullForeground":"#539bf5","symbolIcon.numberForeground":"#57ab5a","symbolIcon.objectForeground":"#e0823d","symbolIcon.operatorForeground":"#6cb6ff","symbolIcon.packageForeground":"#e0823d","symbolIcon.propertyForeground":"#e0823d","symbolIcon.referenceForeground":"#539bf5","symbolIcon.snippetForeground":"#539bf5","symbolIcon.stringForeground":"#6cb6ff","symbolIcon.structForeground":"#e0823d","symbolIcon.textForeground":"#6cb6ff","symbolIcon.typeParameterForeground":"#6cb6ff","symbolIcon.unitForeground":"#539bf5","symbolIcon.variableForeground":"#e0823d","symbolIcon.constantForeground":["#b4f1b4","#8ddb8c","#6bc46d","#57ab5a","#46954a","#347d39","#2b6a30","#245829","#1b4721","#113417"],"terminal.foreground":"#adbac7","terminal.ansiBlack":"#545d68","terminal.ansiRed":"#f47067","terminal.ansiGreen":"#57ab5a","terminal.ansiYellow":"#c69026","terminal.ansiBlue":"#539bf5","terminal.ansiMagenta":"#b083f0","terminal.ansiCyan":"#39c5cf","terminal.ansiWhite":"#909dab","terminal.ansiBrightBlack":"#636e7b","terminal.ansiBrightRed":"#ff938a","terminal.ansiBrightGreen":"#6bc46d","terminal.ansiBrightYellow":"#daaa3f","terminal.ansiBrightBlue":"#6cb6ff","terminal.ansiBrightMagenta":"#dcbdfb","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightWhite":"#cdd9e5","editorBracketHighlight.foreground1":"#6cb6ff","editorBracketHighlight.foreground2":"#6bc46d","editorBracketHighlight.foreground3":"#daaa3f","editorBracketHighlight.foreground4":"#ff938a","editorBracketHighlight.foreground5":"#fc8dc7","editorBracketHighlight.foreground6":"#dcbdfb","editorBracketHighlight.unexpectedBracket.foreground":"#768390","gitDecoration.addedResourceForeground":"#57ab5a","gitDecoration.modifiedResourceForeground":"#c69026","gitDecoration.deletedResourceForeground":"#e5534b","gitDecoration.untrackedResourceForeground":"#57ab5a","gitDecoration.ignoredResourceForeground":"#636e7b","gitDecoration.conflictingResourceForeground":"#cc6b2c","gitDecoration.submoduleResourceForeground":"#768390","debugToolBar.background":"#2d333b","editor.stackFrameHighlightBackground":"#ae7c1466","editor.focusedStackFrameHighlightBackground":"#46954a66","peekViewEditor.matchHighlightBackground":"#ae7c1466","peekViewResult.matchHighlightBackground":"#ae7c1466","peekViewEditor.background":"#636e7b1a","peekViewResult.background":"#22272e","settings.headerForeground":"#adbac7","settings.modifiedItemIndicator":"#ae7c1466","welcomePage.buttonBackground":"#373e47","welcomePage.buttonHoverBackground":"#444c56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#768390"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#f47067"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#6cb6ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#f69d50"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#adbac7"}},{"scope":"entity.name.function","settings":{"foreground":"#dcbdfb"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#8ddb8c"}},{"scope":"keyword","settings":{"foreground":"#f47067"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f47067"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#adbac7"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#96d0ff"}},{"scope":"support","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.property-name","settings":{"foreground":"#6cb6ff"}},{"scope":"variable","settings":{"foreground":"#f69d50"}},{"scope":"variable.other","settings":{"foreground":"#adbac7"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f47067","foreground":"#cdd9e5","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#ff938a"}},{"scope":"string variable","settings":{"foreground":"#6cb6ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#96d0ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#96d0ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#8ddb8c"}},{"scope":"support.constant","settings":{"foreground":"#6cb6ff"}},{"scope":"support.variable","settings":{"foreground":"#6cb6ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#8ddb8c"}},{"scope":"meta.module-reference","settings":{"foreground":"#6cb6ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#f69d50"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"markup.quote","settings":{"foreground":"#8ddb8c"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#adbac7"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#adbac7"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#6cb6ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#5d0f12","foreground":"#ff938a"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#f47067"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#113417","foreground":"#8ddb8c"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#682d0f","foreground":"#f69d50"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2d333b","background":"#6cb6ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#dcbdfb","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"meta.output","settings":{"foreground":"#6cb6ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#768390"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ff938a"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#96d0ff"}}]}'),rc=JSON.parse('{"name":"GitHub Light Default","colors":{"focusBorder":"#0969da","foreground":"#1f2328","descriptionForeground":"#656d76","errorForeground":"#cf222e","textLink.foreground":"#0969da","textLink.activeForeground":"#0969da","textBlockQuote.background":"#f6f8fa","textBlockQuote.border":"#d0d7de","textCodeBlock.background":"#afb8c133","textPreformat.foreground":"#656d76","textSeparator.foreground":"#d8dee4","icon.foreground":"#656d76","keybindingLabel.foreground":"#1f2328","button.background":"#1f883d","button.foreground":"#ffffff","button.hoverBackground":"#1a7f37","button.secondaryBackground":"#ebecf0","button.secondaryForeground":"#24292f","button.secondaryHoverBackground":"#f3f4f6","checkbox.background":"#f6f8fa","checkbox.border":"#d0d7de","dropdown.background":"#ffffff","dropdown.border":"#d0d7de","dropdown.foreground":"#1f2328","dropdown.listBackground":"#ffffff","input.background":"#ffffff","input.border":"#d0d7de","input.foreground":"#1f2328","input.placeholderForeground":"#6e7781","badge.foreground":"#ffffff","badge.background":"#0969da","progressBar.background":"#0969da","titleBar.activeForeground":"#656d76","titleBar.activeBackground":"#ffffff","titleBar.inactiveForeground":"#656d76","titleBar.inactiveBackground":"#f6f8fa","titleBar.border":"#d0d7de","activityBar.foreground":"#1f2328","activityBar.inactiveForeground":"#656d76","activityBar.background":"#ffffff","activityBarBadge.foreground":"#ffffff","activityBarBadge.background":"#0969da","activityBar.activeBorder":"#fd8c73","activityBar.border":"#d0d7de","sideBar.foreground":"#1f2328","sideBar.background":"#f6f8fa","sideBar.border":"#d0d7de","sideBarTitle.foreground":"#1f2328","sideBarSectionHeader.foreground":"#1f2328","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#d0d7de","list.hoverForeground":"#1f2328","list.inactiveSelectionForeground":"#1f2328","list.activeSelectionForeground":"#1f2328","list.hoverBackground":"#eaeef280","list.inactiveSelectionBackground":"#afb8c133","list.activeSelectionBackground":"#afb8c133","list.focusForeground":"#1f2328","list.focusBackground":"#ddf4ff","list.inactiveFocusBackground":"#ddf4ff","list.highlightForeground":"#0969da","tree.indentGuidesStroke":"#d8dee4","notificationCenterHeader.foreground":"#656d76","notificationCenterHeader.background":"#f6f8fa","notifications.foreground":"#1f2328","notifications.background":"#ffffff","notifications.border":"#d0d7de","notificationsErrorIcon.foreground":"#cf222e","notificationsWarningIcon.foreground":"#9a6700","notificationsInfoIcon.foreground":"#0969da","pickerGroup.border":"#d0d7de","pickerGroup.foreground":"#656d76","quickInput.background":"#ffffff","quickInput.foreground":"#1f2328","statusBar.foreground":"#656d76","statusBar.background":"#ffffff","statusBar.border":"#d0d7de","statusBar.focusBorder":"#0969da80","statusBar.noFolderBackground":"#ffffff","statusBar.debuggingForeground":"#ffffff","statusBar.debuggingBackground":"#cf222e","statusBarItem.prominentBackground":"#afb8c133","statusBarItem.remoteForeground":"#1f2328","statusBarItem.remoteBackground":"#eaeef2","statusBarItem.hoverBackground":"#1f232814","statusBarItem.activeBackground":"#1f23281f","statusBarItem.focusBorder":"#0969da","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#d0d7de","editorGroup.border":"#d0d7de","tab.activeForeground":"#1f2328","tab.inactiveForeground":"#656d76","tab.inactiveBackground":"#f6f8fa","tab.activeBackground":"#ffffff","tab.hoverBackground":"#ffffff","tab.unfocusedHoverBackground":"#eaeef280","tab.border":"#d0d7de","tab.unfocusedActiveBorderTop":"#d0d7de","tab.activeBorder":"#ffffff","tab.unfocusedActiveBorder":"#ffffff","tab.activeBorderTop":"#fd8c73","breadcrumb.foreground":"#656d76","breadcrumb.focusForeground":"#1f2328","breadcrumb.activeSelectionForeground":"#656d76","breadcrumbPicker.background":"#ffffff","editor.foreground":"#1f2328","editor.background":"#ffffff","editorWidget.background":"#ffffff","editor.foldBackground":"#6e77811a","editor.lineHighlightBackground":"#eaeef280","editorLineNumber.foreground":"#8c959f","editorLineNumber.activeForeground":"#1f2328","editorIndentGuide.background":"#1f23281f","editorIndentGuide.activeBackground":"#1f23283d","editorWhitespace.foreground":"#afb8c1","editorCursor.foreground":"#0969da","editor.findMatchBackground":"#bf8700","editor.findMatchHighlightBackground":"#fae17d80","editor.linkedEditingBackground":"#0969da12","editor.selectionHighlightBackground":"#4ac26b40","editor.wordHighlightBackground":"#eaeef280","editor.wordHighlightBorder":"#afb8c199","editor.wordHighlightStrongBackground":"#afb8c14d","editor.wordHighlightStrongBorder":"#afb8c199","editorBracketMatch.background":"#4ac26b40","editorBracketMatch.border":"#4ac26b99","editorInlayHint.background":"#afb8c133","editorInlayHint.foreground":"#656d76","editorInlayHint.typeBackground":"#afb8c133","editorInlayHint.typeForeground":"#656d76","editorInlayHint.paramBackground":"#afb8c133","editorInlayHint.paramForeground":"#656d76","editorGutter.modifiedBackground":"#d4a72c66","editorGutter.addedBackground":"#4ac26b66","editorGutter.deletedBackground":"#ff818266","diffEditor.insertedLineBackground":"#aceebb4d","diffEditor.insertedTextBackground":"#6fdd8b80","diffEditor.removedLineBackground":"#ffcecb4d","diffEditor.removedTextBackground":"#ff818266","scrollbar.shadow":"#6e778133","scrollbarSlider.background":"#8c959f33","scrollbarSlider.hoverBackground":"#8c959f3d","scrollbarSlider.activeBackground":"#8c959f47","editorOverviewRuler.border":"#ffffff","minimapSlider.background":"#8c959f33","minimapSlider.hoverBackground":"#8c959f3d","minimapSlider.activeBackground":"#8c959f47","panel.background":"#f6f8fa","panel.border":"#d0d7de","panelTitle.activeBorder":"#fd8c73","panelTitle.activeForeground":"#1f2328","panelTitle.inactiveForeground":"#656d76","panelInput.border":"#d0d7de","debugIcon.breakpointForeground":"#cf222e","debugConsole.infoForeground":"#57606a","debugConsole.warningForeground":"#7d4e00","debugConsole.errorForeground":"#cf222e","debugConsole.sourceForeground":"#9a6700","debugConsoleInputIcon.foreground":"#6639ba","debugTokenExpression.name":"#0550ae","debugTokenExpression.value":"#0a3069","debugTokenExpression.string":"#0a3069","debugTokenExpression.boolean":"#116329","debugTokenExpression.number":"#116329","debugTokenExpression.error":"#a40e26","symbolIcon.arrayForeground":"#953800","symbolIcon.booleanForeground":"#0550ae","symbolIcon.classForeground":"#953800","symbolIcon.colorForeground":"#0a3069","symbolIcon.constructorForeground":"#3e1f79","symbolIcon.enumeratorForeground":"#953800","symbolIcon.enumeratorMemberForeground":"#0550ae","symbolIcon.eventForeground":"#57606a","symbolIcon.fieldForeground":"#953800","symbolIcon.fileForeground":"#7d4e00","symbolIcon.folderForeground":"#7d4e00","symbolIcon.functionForeground":"#6639ba","symbolIcon.interfaceForeground":"#953800","symbolIcon.keyForeground":"#0550ae","symbolIcon.keywordForeground":"#a40e26","symbolIcon.methodForeground":"#6639ba","symbolIcon.moduleForeground":"#a40e26","symbolIcon.namespaceForeground":"#a40e26","symbolIcon.nullForeground":"#0550ae","symbolIcon.numberForeground":"#116329","symbolIcon.objectForeground":"#953800","symbolIcon.operatorForeground":"#0a3069","symbolIcon.packageForeground":"#953800","symbolIcon.propertyForeground":"#953800","symbolIcon.referenceForeground":"#0550ae","symbolIcon.snippetForeground":"#0550ae","symbolIcon.stringForeground":"#0a3069","symbolIcon.structForeground":"#953800","symbolIcon.textForeground":"#0a3069","symbolIcon.typeParameterForeground":"#0a3069","symbolIcon.unitForeground":"#0550ae","symbolIcon.variableForeground":"#953800","symbolIcon.constantForeground":"#116329","terminal.foreground":"#1f2328","terminal.ansiBlack":"#24292f","terminal.ansiRed":"#cf222e","terminal.ansiGreen":"#116329","terminal.ansiYellow":"#4d2d00","terminal.ansiBlue":"#0969da","terminal.ansiMagenta":"#8250df","terminal.ansiCyan":"#1b7c83","terminal.ansiWhite":"#6e7781","terminal.ansiBrightBlack":"#57606a","terminal.ansiBrightRed":"#a40e26","terminal.ansiBrightGreen":"#1a7f37","terminal.ansiBrightYellow":"#633c01","terminal.ansiBrightBlue":"#218bff","terminal.ansiBrightMagenta":"#a475f9","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightWhite":"#8c959f","editorBracketHighlight.foreground1":"#0969da","editorBracketHighlight.foreground2":"#1a7f37","editorBracketHighlight.foreground3":"#9a6700","editorBracketHighlight.foreground4":"#cf222e","editorBracketHighlight.foreground5":"#bf3989","editorBracketHighlight.foreground6":"#8250df","editorBracketHighlight.unexpectedBracket.foreground":"#656d76","gitDecoration.addedResourceForeground":"#1a7f37","gitDecoration.modifiedResourceForeground":"#9a6700","gitDecoration.deletedResourceForeground":"#cf222e","gitDecoration.untrackedResourceForeground":"#1a7f37","gitDecoration.ignoredResourceForeground":"#6e7781","gitDecoration.conflictingResourceForeground":"#bc4c00","gitDecoration.submoduleResourceForeground":"#656d76","debugToolBar.background":"#ffffff","editor.stackFrameHighlightBackground":"#d4a72c66","editor.focusedStackFrameHighlightBackground":"#4ac26b66","settings.headerForeground":"#1f2328","settings.modifiedItemIndicator":"#d4a72c66","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#f3f4f6"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6e7781"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#cf222e"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#0550ae"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#953800"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#1f2328"}},{"scope":"entity.name.function","settings":{"foreground":"#8250df"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#116329"}},{"scope":"keyword","settings":{"foreground":"#cf222e"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#cf222e"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#1f2328"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#0a3069"}},{"scope":"support","settings":{"foreground":"#0550ae"}},{"scope":"meta.property-name","settings":{"foreground":"#0550ae"}},{"scope":"variable","settings":{"foreground":"#953800"}},{"scope":"variable.other","settings":{"foreground":"#1f2328"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#cf222e","foreground":"#f6f8fa","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#82071e"}},{"scope":"string variable","settings":{"foreground":"#0550ae"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#0a3069"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#0a3069"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#116329"}},{"scope":"support.constant","settings":{"foreground":"#0550ae"}},{"scope":"support.variable","settings":{"foreground":"#0550ae"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#116329"}},{"scope":"meta.module-reference","settings":{"foreground":"#0550ae"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#953800"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"markup.quote","settings":{"foreground":"#116329"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#1f2328"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#1f2328"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#0550ae"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffebe9","foreground":"#82071e"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#cf222e"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#dafbe1","foreground":"#116329"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffd8b5","foreground":"#953800"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#eaeef2","background":"#0550ae"}},{"scope":"meta.diff.range","settings":{"foreground":"#8250df","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#0550ae"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"meta.output","settings":{"foreground":"#0550ae"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#57606a"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#82071e"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#0a3069"}}]}'),oc=JSON.parse('{"name":"Material-Theme-Default","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#546E7A"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#80CBC420","button.foreground":"#ffffff","dropdown.background":"#263238","input.background":"#303C41","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#263238","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#263238","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#263238","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#546E7A","sideBar.background":"#263238","sideBarSectionHeader.background":"#263238","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#263238","tab.border":"#263238","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#263238","tab.activeModifiedBorder":"#607a86","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#263238","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#37474F","editorLineNumber.activeForeground":"#607a86","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#80CBC420","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#263238","editorHoverWidget.background":"#263238","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#263238","panel.border":"#26323860","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#263238","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#263238","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#546E7A20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#263238","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#546E7A","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#263238","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#37474F","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#37474F","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#607a86","sideBar.border":"#26323860","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#26323860","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#37474F70","editorIndentGuide.activeBackground":"#37474F","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#26323860","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#546E7A","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#607a86","tab.activeBackground":"#263238","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#26323860","statusBar.foreground":"#546E7A","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#263238","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#263238","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#263238","titleBar.inactiveForeground":"#607a86","titleBar.border":"#26323860","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#263238","quickInput.foreground":"#607a86","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#263238","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#263238","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#80CBC420","peekViewEditor.matchHighlightBackground":"#80CBC420","peekViewResult.selectionBackground":"#607a8670","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#607a8690","breadcrumb.background":"#263238","breadcrumb.foreground":"#607a86","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#263238","menu.background":"#263238","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#263238","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#263238","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#263238","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#263238","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),ic=JSON.parse('{"name":"Material-Theme-Darker","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#545454"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#61616150","button.foreground":"#ffffff","dropdown.background":"#212121","input.background":"#2B2B2B","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#212121","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#212121","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#545454","sideBar.background":"#212121","sideBarSectionHeader.background":"#212121","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#212121","tab.border":"#212121","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#212121","tab.activeModifiedBorder":"#616161","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#212121","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#424242","editorLineNumber.activeForeground":"#616161","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#61616150","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#212121","editorHoverWidget.background":"#212121","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#212121","panel.border":"#21212160","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#212121","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#212121","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#54545420","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#212121","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#545454","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#212121","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#424242","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#424242","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#616161","sideBar.border":"#21212160","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#21212160","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#42424270","editorIndentGuide.activeBackground":"#424242","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#21212160","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#545454","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#616161","tab.activeBackground":"#212121","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#21212160","statusBar.foreground":"#616161","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#212121","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#212121","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#212121","titleBar.inactiveForeground":"#616161","titleBar.border":"#21212160","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#212121","quickInput.foreground":"#616161","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#212121","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#212121","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#61616150","peekViewEditor.matchHighlightBackground":"#61616150","peekViewResult.selectionBackground":"#61616170","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#61616190","breadcrumb.background":"#212121","breadcrumb.foreground":"#616161","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#212121","menu.background":"#212121","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#212121","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#212121","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#212121","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#212121","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),ac=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e","fontStyle":"italic"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}},{"name":"js/ts italic","scope":"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super","settings":{"fontStyle":"italic"}},{"name":"comment","scope":"comment.line.double-slash,comment.block.documentation","settings":{"fontStyle":"italic"}},{"name":"Python Keyword Control","scope":"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python","settings":{"fontStyle":"italic"}},{"name":"markup.italic.markdown","scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}}],"colors":{"activityBar.background":"#282c34","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#282c34","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#21252b","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#21252b","dropdown.border":"#21252b","editor.background":"#282c34","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#21252b","editorHoverWidget.background":"#21252b","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#21252b","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#21252b","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#21252b","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#282c34","settings.headerForeground":"#fff","sideBar.background":"#21252b","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#282c34","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#21252b","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#21252b","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#282c34","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#21252b","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#282c34","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#282c34","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#21252b","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),sc=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}}],"colors":{"activityBar.background":"#23272e","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#23272e","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#1e2227","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#1e2227","dropdown.border":"#1e2227","editor.background":"#23272e","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#1e2227","editorHoverWidget.background":"#1e2227","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#1e2227","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#1e2227","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#1e2227","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#1e2227","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#23272e","settings.headerForeground":"#fff","sideBar.background":"#1e2227","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#23272e","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#1e2227","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#1e2227","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#23272e","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#1e2227","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#23272e","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#23272e","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#1e2227","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),lc=[{token:Ql.IDENTIFIER,foreground:"dcdcaa"},{token:Ql.NUMBER,foreground:"b5cea8"},{token:Ql.DATE,foreground:"b5cea8"},{token:Ql.COLOR,foreground:"b5cea8"},{token:Ql.PACKAGE,foreground:"808080"},{token:Ql.PARSER,foreground:"c586c0"},{token:Ql.LANGUAGE_STRUCT,foreground:"c586c0"},{token:Ql.MULTIPLICITY,foreground:"2d796b"},{token:Ql.GENERICS,foreground:"2d796b"},{token:Ql.PROPERTY,foreground:"9cdcfe"},{token:Ql.PARAMETER,foreground:"9cdcfe"},{token:Ql.VARIABLE,foreground:"4fc1ff"},{token:Ql.TYPE,foreground:"3dc9b0"},{token:`${Ql.STRING}.escape`,foreground:"d7ba7d"}];var cc,uc;(uc=cc||(cc={})).DEFAULT_DARK="default-dark",uc.GITHUB_LIGHT="github-light",uc.GITHUB_DARK="github-dark",uc.GITHUB_DARK_DIMMED="github-dark-dimmed",uc.SOLARIZED_DARK="solarized-dark",uc.ONE_DARK_PRO="one-dark-pro",uc.ONE_DARK_PRO_DARKER="one-dark-pro-darker",uc.MATERIAL_DEFAULT="material-default",uc.MATERIAL_DARKER="material-darker",uc.BUILT_IN__VSCODE_LIGHT="vs",uc.BUILT_IN__VSCODE_DARK="vs-dark",uc.BUILT_IN__VSCODE_HC_BLACK="hc-black",uc.BUILT_IN__VSCODE_HC_LIGHT="hc-light";const dc={base:"vs-dark",inherit:!0,colors:{},rules:[...lc,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},gc=Zl(ec,cc.BUILT_IN__VSCODE_DARK,{},[]),pc=Zl(tc,cc.BUILT_IN__VSCODE_DARK,{},[]),mc=Zl(rc,cc.BUILT_IN__VSCODE_LIGHT,{},[]),hc=Zl(nc,cc.BUILT_IN__VSCODE_DARK,{},[]),fc=Zl(oc,cc.BUILT_IN__VSCODE_DARK,{},[]),Ec=Zl(ic,cc.BUILT_IN__VSCODE_DARK,{},[]),bc=Zl(ac,cc.BUILT_IN__VSCODE_DARK,{},[]),Cc=Zl(sc,cc.BUILT_IN__VSCODE_DARK,{},[]),vc="dummy_problem_marker_owner",_c=(e,t,n)=>{No.editor.setModelMarkers(e,n??vc,t.map((e=>({startLineNumber:e.startLineNumber,startColumn:e.startColumn,endLineNumber:e.endLineNumber,endColumn:e.endColumn+1,message:""===e.message?"(no error message)":e.message,severity:No.MarkerSeverity.Error}))))};var Tc;!function(e){e.TEXT="plaintext",e.PURE="pure",e.JSON="json",e.JAVA="java",e.MARKDOWN="markdown",e.SQL="sql",e.XML="xml",e.YAML="yaml",e.GRAPHQL="graphql"}(Tc||(Tc={}));var Nc=n(42787),Ac=n(41289),yc=n(92824);function Sc(){const[e,t]=(0,Ft.useState)(null);return[e=>t(e.currentTarget),()=>t(null),{anchorEl:e,onClose:()=>t(null)},Boolean(e)]}function xc(e){const{menuProps:t,children:n,onClosed:r,onClose:o,anchorEl:i}=e,[a,s]=(0,Ft.useState)(!1);return(0,Ft.useEffect)((()=>{a&&!i&&r?.()}),[i,a,r]),i?(0,E.jsx)(yn.A,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:i,open:Boolean(i),slotProps:{root:{slotProps:{backdrop:{invisible:!0}}}},elevation:1,marginThreshold:0,transitionDuration:0,TransitionProps:{onEnter:()=>s(!0)},onClose:o,...t,children:n}):null}function Ic(e){return(0,E.jsx)(yc.A,{...e,style:{cursor:"default"}})}var kc=n(59389),wc=n(20007);const Rc=(0,Ft.createContext)(void 0),Oc=Rc.Provider,Lc=()=>P((0,Ft.useContext)(Rc),"Can't find DataCube state in context");function Fc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 flex h-2.5 flex-shrink-0 select-none items-center rounded-md bg-sky-500 px-1 font-semibold leading-[10px] text-white",title:"Work In Progress",children:"WIP"})}function Bc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 select-none rounded-md bg-amber-500 px-1 py-0.5 font-semibold text-white",title:"Advanced: Becareful when using this feature!",children:"ADV"})}const Pc=(0,Ft.forwardRef)((function(e,t){const{className:n,compact:r,...o}=e;return(0,E.jsx)("button",{ref:t,...o,className:Mn("flex h-6 min-w-20 items-center justify-center border border-neutral-400 bg-neutral-300 px-2.5 hover:brightness-95 disabled:cursor-not-allowed disabled:border-neutral-300 disabled:text-neutral-400 disabled:hover:brightness-100",{"h-5 text-sm":Boolean(r)},n)})})),Dc=(0,Ft.forwardRef)((function(e,t){const{min:n,max:r,step:o,value:i,setValue:a,isValid:s,isDecimal:l,defaultValue:c,disabled:u,className:d,...g}=e,[p,m]=(0,Ft.useState)(i??""),h=(0,Ft.useRef)(null),f=(0,Nc.A)(h,t);return(0,Ft.useEffect)((()=>{m(i??"")}),[i]),(0,E.jsx)("input",{className:Mn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",d),ref:f,...g,inputMode:"numeric",type:"number",min:n,max:r,step:o,value:p,disabled:Boolean(u),onKeyDown:e=>{if("Escape"===e.code)h.current?.select();else if("ArrowUp"===e.code){if(e.preventDefault(),void 0!==i&&void 0!==o){const e=i+o;if(void 0!==n&&e<n||void 0!==r&&e>r)return;m(e.toString()),a(e)}}else if("ArrowDown"===e.code&&(e.preventDefault(),void 0!==i&&void 0!==o)){const e=i-o;if(void 0!==n&&e<n||void 0!==r&&e>r)return;m(e.toString()),a(e)}},onChange:e=>{const t=e.target.value;m(t);const o=l?Number(t):parseInt(t,10);isNaN(o)||G(t)&&!t||(void 0!==s?!s(o):void 0!==n&&o<n||void 0!==r&&o>r)||a(o)},onBlur:()=>{const e=l?Number(p):parseInt(p.toString(),10);isNaN(e)||G(p)&&!p||(void 0!==s?!s(e):void 0!==n&&e<n||void 0!==r&&e>r)?(a(c),m(c??"")):m(i??"")}})})),jc=(0,Ft.forwardRef)((function(e,t){const{className:n,...r}=e,o=(0,Ft.useRef)(null),i=(0,Nc.A)(o,t);return(0,E.jsx)("input",{ref:i,className:Mn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",n),onKeyDown:e=>{"Escape"===e.code&&o.current?.select()},...r})}));function Mc(e){const{label:t,className:n,onChange:r,disabled:o,...i}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Ac.A,{icon:(0,E.jsx)(go.Checkbox,{}),checkedIcon:(0,E.jsx)(go.CheckboxSelected,{}),disableRipple:!0,classes:{root:Mn("p-0 text-neutral-600 [&_*]:stroke-[1.5px] -ml-[1px]",n),checked:"data-cube-editor-checkbox--checked",disabled:"data-cube-editor-checkbox--disabled"},onChange:r,disabled:o,...i}),Boolean(t)&&(0,E.jsx)("button",{className:"flex-shrink-0 pl-1 text-sm disabled:text-neutral-300",onClick:r,disabled:o,tabIndex:-1,children:t})]})}const Uc=(0,Ft.forwardRef)((function(e,t){const{children:n,className:r,open:o,showAsPlaceholder:i,...a}=e;return(0,E.jsxs)("button",{ref:t,className:Mn("group flex h-5 flex-shrink-0 items-center justify-between border border-neutral-400 bg-white pl-1.5 text-sm disabled:select-none disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",{"border-sky-600":Boolean(o),"bg-sky-100":Boolean(o),"text-neutral-400":Boolean(i)},r),...a,children:[(0,E.jsx)("div",{className:"w-[calc(100%_-_12px)] overflow-hidden overflow-ellipsis whitespace-nowrap text-left",children:e.children}),(0,E.jsx)("div",{className:"flex h-full w-3 items-center justify-center text-neutral-500 group-disabled:text-neutral-400",children:(0,E.jsx)(go.CaretDown,{})})]})}));function Gc(e){const{className:t,...n}=e;return(0,E.jsx)(xc,{...n,menuProps:{classes:{paper:"rounded-none mt-[1px]",list:Mn("p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto",t)}}})}function Hc(e){const{className:t,...n}=e;return(0,E.jsx)(Ic,{className:Mn("flex h-5 w-full items-center px-1.5 text-sm hover:bg-neutral-100 focus:bg-sky-600 focus:text-white",t),...n})}function Vc(){return(0,E.jsx)("div",{className:"my-0.5 h-[1px] w-full bg-neutral-200"})}function Wc(e){const{onChange:t,onClose:n,defaultColor:r}=e,[o,i]=(0,Ft.useState)(e.color),a=()=>{t(0===(0,kc.A)(o).alpha?zo.transparent:o),n()};return(0,E.jsxs)("div",{className:"data-cube-color-picker rounded-none border border-neutral-400 bg-white",children:[(0,E.jsx)("div",{className:"p-2",children:(0,E.jsx)(wc.dp,{color:o,onChange:i})}),(0,E.jsx)("div",{className:"flex justify-center px-2",children:["slate","neutral","red","orange","amber","yellow","lime","green","emerald","teal","sky","blue","indigo","violet","purple","fuchsia","pink","rose"].map((e=>(0,E.jsx)("div",{className:"mr-0.5 flex flex-col border-[0.5px] border-neutral-300 last:mr-0",children:[50,100,200,300,400,500,600,700,800,900,950].map((t=>(0,E.jsx)("button",{className:"h-3 w-3 flex-shrink-0",style:{background:zo[e][t]},onClick:()=>{i(zo[e][t])},onDoubleClick:()=>{i(zo[e][t]),a()}},`${e}-${t}`)))},e)))}),(0,E.jsx)("div",{className:"flex justify-center px-2 pb-1 pt-0.5",children:(0,E.jsx)("div",{className:"flex",children:[zo.transparent,"#000000","#aaaaaa","#dddddd","#ffffff","#ff4136","#ff851b","#ffdc00","#01ff70","#2ecc40","#3d9970","#39cccc","#7fdbff","#0074d9","#001f3f","#b10dc9","#f012be","#85144b"].map((e=>(0,E.jsx)("div",{className:Mn("mr-0.5 border-[0.5px] border-neutral-300 last:mr-0",{"data-cube-color-picker--transparent border-neutral-400":e===zo.transparent}),children:(0,E.jsx)("button",{className:"flex h-3 w-3 flex-shrink-0",style:{background:e},onClick:()=>{i(e)},onDoubleClick:()=>{i(e),a()}})},e)))})}),(0,E.jsx)("div",{className:"h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-6 items-center justify-between p-1",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)("div",{className:"h-4 w-4 flex-shrink-0 rounded-sm border-[0.5px] border-neutral-300",style:{background:o}}),(0,E.jsx)(wc.HC,{className:"ml-0.5 h-4 w-14 border border-neutral-400 px-1 text-sm",color:o,autoFocus:!0,tabIndex:0,onChange:i,prefix:"#",alpha:!0})]}),(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)(Pc,{className:"h-4 w-9",onClick:()=>{n()},children:"Cancel"}),(0,E.jsx)(Pc,{className:"ml-1 h-4 w-9 text-xs",disabled:void 0===r,onClick:()=>{void 0!==r&&i(r)},children:"Reset"}),(0,E.jsx)(Pc,{className:"ml-1 h-4 w-9",onClick:()=>{a()},children:"OK"})]})]})]})}function Yc(e){const{color:t,onChange:n,className:r,disabled:o,defaultColor:i}=e,[a,s]=(0,Ft.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:Mn("group h-5 w-10 border border-neutral-300 p-[1px] disabled:border-neutral-200",{"data-cube-color-picker--disabled":Boolean(o),"data-cube-color-picker--transparent":!o&&t===zo.transparent},r),onClick:e=>{s(e.currentTarget)},disabled:o,children:(0,E.jsx)("div",{className:"h-full w-full group-disabled:hidden",style:{background:t}})}),Boolean(a)&&(0,E.jsx)(zn,{open:Boolean(a),anchorEl:a,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},onClose:()=>s(null),children:(0,E.jsx)(Wc,{color:t,onChange:n,onClose:()=>s(null),defaultColor:i})})]})}const $c=({documentationKey:e,title:t,className:n})=>{const r=Lc(),o=r.documentationService,i=r.documentationService.getEntry(e);return i&&(i.url||o.shouldDisplayDocumentationEntry(i))?(0,E.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation();const n=o.getEntry(e);n&&(o.shouldDisplayDocumentationEntry(n)?(r.documentationService.setCurrentEntry(n),r.documentationService.display.open()):n.url&&r.navigationService.openLink(n.url))},title:t??i.text??"Click to see documentation",className:Mn("cursor-pointer text-xl text-sky-500",n),children:(0,E.jsx)(go.DocumentationHint,{})}):null};function zc(e){const{message:t,type:n,text:r,actions:o=[],onClose:i}=e;return(0,E.jsxs)("div",{className:"h-full w-full",children:[(0,E.jsxs)("div",{className:Mn("flex w-full overflow-auto p-6",{"h-[calc(100%_-_40px)]":0!==o.length,"h-full":!o.length}),children:[(0,E.jsxs)("div",{className:"mr-3",children:[n===qc.ERROR&&(0,E.jsx)(go.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"}),n===qc.INFO&&(0,E.jsx)(go.AlertInfo,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-sky-500"}),n===qc.SUCCESS&&(0,E.jsx)(go.AlertSuccess,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-green-500"}),n===qc.WARNING&&(0,E.jsx)(go.AlertWarning,{className:"flex-shrink-0 stroke-[0.3px] text-[40px] text-amber-500"})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:r})]})]}),0!==o.length&&(0,E.jsx)("div",{className:"flex h-10 items-center justify-center border border-t-neutral-300 px-2",children:o.map(((e,t)=>(0,E.jsx)(Pc,{className:"ml-2 first-of-type:ml-0",onClick:()=>{e.handler(),i?.()},autoFocus:0===t,children:e.label},t)))})]})}const Xc="`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?";function Kc(e){const{editorModel:t,error:n,message:r,text:o}=e,i=(0,Ft.useRef)(null),[a,s]=(0,Ft.useState)();return(0,Ft.useEffect)((()=>{if(!a&&i.current){const e=i.current,n=No.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,language:Tc.PURE,theme:cc.GITHUB_LIGHT,wordSeparators:Xc,fixedOverflowWidgets:!0,overflowWidgetsDomNode:document.getElementById(Ao),readOnly:!0,renderValidationDecorations:"on"});n.setModel(t),s(n)}}),[a,t]),(0,Ft.useEffect)((()=>{n.sourceInformation&&(_c(t,[{message:n.message,startLineNumber:n.sourceInformation.startLine,startColumn:n.sourceInformation.startColumn,endLineNumber:n.sourceInformation.endLine,endColumn:n.sourceInformation.endColumn}]),a&&((e,t)=>{e.hasTextFocus()||e.focus(),e.revealPositionInCenter(t,0),e.setPosition(t)})(a,{lineNumber:n.sourceInformation.startLine,column:n.sourceInformation.startColumn}))}),[a,t,n]),(0,Ft.useEffect)((()=>()=>{a&&a.dispose()}),[a]),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto",children:[(0,E.jsxs)("div",{className:"flex w-full p-6 pb-2.5",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(go.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:r}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:o})]})]}),(0,E.jsx)("div",{className:"h-60 justify-center border px-2",children:(0,E.jsx)("div",{className:"h-full w-full p-2 pt-1",children:(0,E.jsx)("div",{className:"relative h-full w-full border border-red-500",children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:i})})})})]})}var qc;!function(e){e.ERROR="ERROR",e.INFO="INFO",e.SUCCESS="SUCCESS",e.WARNING="WARNING"}(qc||(qc={}));class Jc{_logService;_layoutService;constructor(e,t){this._logService=e,this._layoutService=t}alert(e){const{message:t,type:n,text:r,actions:o,windowTitle:i,windowConfig:a}=e,s=new mo(new po(i??"",(()=>(0,E.jsx)(zc,{type:n,message:t,text:r,actions:o,onClose:()=>this._layoutService.closeWindow(s)}))));s.configuration.window=a??Eo,this._layoutService.newWindow(s)}alertError(e,t){const{message:n,text:r,actions:o,windowTitle:i,windowConfig:a}=t,s=new mo(new po(i??"Error",(()=>(0,E.jsx)(zc,{type:qc.ERROR,message:n,text:r,actions:o}))));s.configuration.window=a??Eo,this._layoutService.newWindow(s)}alertUnhandledError(e){this._logService.logUnhandledError(e),this.alertError(e,{message:e.message})}alertCodeCheckError(e,t,n,r){const{message:o,text:a,windowTitle:s,windowConfig:l}=r;if(e.sourceInformation){e.sourceInformation.startColumn-=1===e.sourceInformation.startLine?n.length:0,e.sourceInformation.endColumn-=1===e.sourceInformation.endLine?n.length:0;const r=No.editor.createModel(t,Tc.PURE,No.Uri.file(`/${(0,i.A)()}.pure`)),c=r.getFullModelRange();(e.sourceInformation.startLine<1||1===e.sourceInformation.startLine&&e.sourceInformation.startColumn<1||e.sourceInformation.endLine>c.endLineNumber||e.sourceInformation.endLine===c.endLineNumber&&e.sourceInformation.endColumn>c.endColumn)&&(e.sourceInformation.startColumn=c.startColumn,e.sourceInformation.startLine=c.startLineNumber,e.sourceInformation.endColumn=c.endColumn,e.sourceInformation.endLine=c.endLineNumber);const u=new mo(new po(s??"Error",(()=>(0,E.jsx)(Kc,{editorModel:r,error:e,message:o,text:a}))));u.configuration.window=l??{width:500,height:400,minWidth:300,minHeight:300,center:!0},this._layoutService.newWindow(u)}}}var Qc,Zc,eu,tu=n(21895);function nu(){const e=fl();return Sl(fu,bl([e],[e]),bl([e],[_l(Xo.COUNT,[e])]))}function ru(e){return(t,n,r,o,i,a)=>{const s=function(e,t){return n=>{const r=t[n];r&&(e.splice(e.indexOf(r),1),t[n]=void 0)}}(n,r),l=t.data;if(r.groupBy){const c=P(l.groupBy);if(e.groupKeys.length&&n.splice(n.indexOf(r.groupBy),0,_l(Xo.FILTER,[bl([fl()],[Pl({conditions:e.groupKeys.map(((e,t)=>{const n=P(c.columns[t]);if(L(e)||e===gu)return{...n,operator:oi.IS_NULL,value:void 0};const r={...n,operator:oi.EQUAL,value:void 0};switch(n.type){case jo.BOOLEAN:return{...r,value:{type:jo.BOOLEAN,value:"true"===e}};case jo.INTEGER:return{...r,value:{type:n.type,value:parseInt(e,10)}};case jo.NUMBER:case jo.DECIMAL:case jo.FLOAT:return{...r,value:{type:n.type,value:parseFloat(e)}};case jo.STRING:case jo.DATE:case jo.DATETIME:case jo.STRICTDATE:case jo.STRICTTIME:default:return{...r,value:{type:n.type,value:e}}}})),groupOperator:ii.AND},i)])])),e.groupKeys.length<c.columns.length){const i=[];!function(e,t){if(e.pivot&&e.pivotCast){Vl(e.pivot,1).colSpecs.push(nu());const n=j(j(j(e.pivotCast.parameters[0],Wa).genericType.typeArguments[0],$a).rawType,Qa).columns.map((e=>Sl(e.name,void 0,void 0,Za(e.genericType))));(0,Ne.A)(n.filter((e=>pi(e.name))).map((e=>e.name.substring(0,e.name.lastIndexOf(gi))))).map((e=>e+gi+fu)).map((e=>Sl(e,void 0,void 0,jo.INTEGER))).forEach((e=>{n.push(e),t.push(e)}))}}(r,i);const s=n.indexOf(r.groupBy),l=c.columns.slice(0,e.groupKeys.length+1),u=_l(Xo.GROUP_BY,[wl(l.map((e=>Sl(e.name)))),wl([...Bl(l,t,o,a),...i.length?i.map((e=>function(e){const t=fl();return Sl(e,bl([t],[El(e,t)]),bl([t],[_l(Xo.SUM,[t])]))}(e.name))):[nu()]])]);n[s]=u,r.groupBy=u,P(r.groupBySort).parameters[0]=Tl(l.map((e=>_l(o.treeColumnSortDirection===ai.ASCENDING?Xo.ASCENDING:Xo.DESCENDING,[kl(e.name)]))))}else s("groupBy"),s("groupBySort")}}}!function(e){e.DEBUGGER__ENABLE_DEBUG_MODE="dataCube.debugger.enableDebugMode",e.DEBUGGER__ACTION__RELOAD="dataCube.debugger.action.reload",e.GRID_CLIENT__ROW_BUFFER="dataCube.grid.rowBuffer",e.GRID_CLIENT__PURGE_CLOSED_ROW_NODES="dataCube.grid.purgeClosedRowNodes",e.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING="dataCube.grid.suppressLargeDatasetWarning",e.GRID_CLIENT__ACTION__RETRY_FAILED_DATA_FETCHES="dataCube.grid.action.retryFailedDataFetches"}(Qc||(Qc={})),function(e){e.CSV="CSV",e.EXCEL="EXCEL",e.PLAIN_TEXT="PLAIN_TEXT",e.HTML="HTML",e.PDF="PDF"}(Zc||(Zc={})),function(e){e.ROOT="data-cube-grid.ag-theme-quartz",e.HIGHLIGHT_ROW="data-cube-grid__utility--highlight-row",e.SHOW_VERTICAL_GRID_LINES="data-cube-grid__utility--show-vertical-grid-lines",e.SHOW_HORIZONTAL_GRID_LINES="data-cube-grid__utility--show-horizontal-grid-lines",e.BLUR="data-cube-grid__utility--blur",e.FONT_FAMILY_PREFIX="data-cube-grid__utility--font-family-",e.FONT_SIZE_PREFIX="data-cube-grid__utility--font-size-",e.FONT_BOLD="data-cube-grid__utility--font-style-bold",e.FONT_ITALIC="data-cube-grid__utility--font-style-italic",e.FONT_UNDERLINE_PREFIX="data-cube-grid__utility--font-style-underline-",e.FONT_STRIKETHROUGH="data-cube-grid__utility--font-style-strikethrough",e.FONT_CASE_PREFIX="data-cube-grid__utility--font-style-case-",e.TEXT_ALIGN_PREFIX="data-cube-grid__utility--text-align-",e.TEXT_COLOR_PREFIX="data-cube-grid__utility--text-color-",e.BACKGROUND_COLOR_PREFIX="data-cube-grid__utility--background-color-",e.PIVOT_COLUMN_GROUP="data-cube-grid__utility--pivot-column-group",e.PIVOT_COLUMN_GROUP_PREFIX="data-cube-grid__utility--pivot-column-group-"}(eu||(eu={}));const ou=e=>`${eu.FONT_FAMILY_PREFIX}${e.replaceAll(" ","-")}`,iu=e=>`${eu.FONT_SIZE_PREFIX}${e}`,au=e=>`${eu.FONT_UNDERLINE_PREFIX}${e??"none"}`,su=e=>`${eu.FONT_CASE_PREFIX}${e??"none"}`,lu=e=>`${eu.TEXT_ALIGN_PREFIX}${e}`,cu=(e,t)=>`${eu.TEXT_COLOR_PREFIX}${t}-${e.substring(1)}`,uu=(e,t)=>`${eu.BACKGROUND_COLOR_PREFIX}${t}-${e.substring(1)}`,du=1e3,gu="__MISSING",pu="ag-Grid-AutoColumn",mu="INTERNAL__rootAggregation",hu="INTERNAL__dataFetchManualTrigger",fu="INTERNAL__count";var Eu,bu;function Cu(e){const t=[];return e.forEachNode((e=>{e.data&&t.push(e.data)})),t}function vu(e){const t=[];return e.forEachNodeAfterFilter((e=>{e.data&&t.push(e.data)})),t}function _u(e,t){return Bo(T({configuration:{showRootAggregation:t.showRootAggregation,pivotStatisticColumnPlacement:t.pivotStatisticColumnPlacement,treeColumnSortDirection:t.treeColumnSortDirection,columns:t.columns.map((e=>({name:e.name,type:e.type,kind:e.kind,aggregateOperator:e.aggregateOperator,aggregationParameters:e.aggregationParameters,excludedFromPivot:e.excludedFromPivot,pivotSortDirection:e.pivotSortDirection,pivotStatisticColumnFunction:e.pivotStatisticColumnFunction}))).sort(Ul)},leafExtendedColumns:e.data.leafExtendedColumns,filter:e.data.filter,selectColumns:e.data.selectColumns.toSorted(Ul),groupExtendedColumns:e.data.groupExtendedColumns,limit:e.data.limit}))}!function(e){e.LEFT="left",e.RIGHT="right"}(Eu||(Eu={})),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(bu||(bu={}));class Tu{_view;_grid;rowCount=void 0;constructor(e,t){(0,Ie.Gn)(this,{rowCount:Ie.sH}),this._grid=e,this._view=t}async fetchRows(e){const t=this._view.taskService.newTask("Fetching data"),n=P(this._grid.getLatestSnapshot()),r={startRow:e.request.startRow,endRow:e.request.endRow,rowGroupColumns:e.request.rowGroupCols.map((e=>e.id)),groupKeys:e.request.groupKeys.map((e=>e)),pivotColumns:e.request.pivotCols.map((e=>e.id)),sortColumns:e.request.sortModel.map((e=>({name:e.colId,direction:e.sort})))},o=0===r.groupKeys.length;let i=n;if(o){if(i=function(e,t){const n=t.clone(),r=ji.serialization.fromJson(n.data.configuration),o=e.rowGroupColumns.filter((e=>e!==mu));return n.data.selectColumns=(0,nt.A)([...n.data.selectColumns,...e.pivotColumns.map((e=>Jl(e,r))),...o.map((e=>Jl(e,r)))],(e=>e.name)).map(Ml),n.data.pivot=e.pivotColumns.length?{columns:e.pivotColumns.map((e=>Ml(Jl(e,r)))),castColumns:t.data.pivot?.castColumns??[]}:void 0,n.data.groupBy=o.length?{columns:o.map((e=>Ml(Jl(e,r))))}:void 0,n.data.sortColumns=e.sortColumns.filter((e=>![pu,mu].includes(e.name))).map((e=>({name:e.name,type:Jl(pi(e.name)?mi(e.name):e.name,r).type,direction:e.direction===bu.ASCENDING?ai.ASCENDING:ai.DESCENDING}))),r.pivotLayout.expandedPaths=Wl(t.data.groupBy?.columns??[],n.data.groupBy?.columns??[],r.pivotLayout.expandedPaths),!e.rowGroupColumns.includes(mu)&&r.showRootAggregation&&(r.showRootAggregation=!1),n.data.configuration=r.serialize(),n}(r,n),(!this._grid.isPaginationEnabled||0===r.startRow)&&i.data.pivot)try{const e=await async function(e,t){if(!e.data.pivot)throw new I("Can't build cast columns collector query when no pivot is specified");const n=e.clone();P(n.data.pivot).castColumns=[],n.data.groupBy=void 0,n.data.sortColumns=[],n.data.limit=0;const r=Dl(n,t.source,(e=>t.engine.buildExecutionContext(e)),t.engine.filterOperations,t.engine.aggregateOperations,{postProcessor:(t,n,r,o,i,a)=>{r.groupExtend&&(e=>{const t=r[e];t&&(n.splice(n.indexOf(t),1),r[e]=void 0)})("groupExtend"),r.pivot&&e.data.groupBy&&Vl(r.pivot,1).colSpecs.push(nu())}}),o=new zi;return o.body.push(r),(await t.engine.executeQuery(o,t.source,{debug:t.settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)})).result.builder.columns.map((e=>({name:e.name,type:e.type})))}(i,this._view);i.data.pivot.castColumns=e,i.data.sortColumns=i.data.sortColumns.filter((t=>[...e,...i.data.groupExtendedColumns].find((e=>t.name===e.name))))}catch(n){return w(n),this._view.alertService.alertError(n,{message:`Query Validation Failure: Can't retrieve pivot results column metadata. ${n.message}`}),e.fail(),void this._view.taskService.endTask(t)}i.finalize(),i.hashCode!==n.hashCode&&(i.markAsPatchChange(),await this._grid.applySnapshot(i,n),this._grid.publishSnapshot(i))}try{const t=function(e,t,n,r,o,i,a){const s=t.clone();return ji.serialization.fromJson(s.data.configuration).showRootAggregation&&(s.data.groupBy={columns:[{name:mu,type:jo.STRING},...s.data.groupBy?.columns??[]]}),Dl(s,n,r,o,i,{postProcessor:ru(e),rootAggregation:{columnName:mu},pagination:a&&void 0!==e.startRow&&void 0!==e.endRow?{start:e.startRow,end:e.endRow}:void 0})}(r,i,this._view.source,(e=>this._view.engine.buildExecutionContext(e)),this._view.engine.filterOperations,this._view.engine.aggregateOperations,this._grid.isPaginationEnabled),n=new zi;n.body.push(t);const a=await this._view.engine.executeQuery(n,this._view.source,{debug:this._view.settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)}),s=function(e,t){return e.rows.map(((n,r)=>{const o={},i=e.columns;return n.values.forEach(((n,r)=>{o[i[r]]=V(n)?String(n):F(n)?n:gu,t.data.pivot&&t.data.groupBy&&(o[fu]=Number((0,tu.czq)(e.columns.filter((e=>pi(e)&&e.endsWith(fu))).map((e=>o[e]??0))).toString()))})),o}))}(a.result.result,i);this._view.settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)&&this._view.engine.debugProcess("Execution",["Query",a.executedQuery],["Config",`pagination=${this._grid.isPaginationEnabled}`],["Stats",`${s.length} rows, ${a.result.result.columns.length} columns`],["SQL",a.executedSQL]),this._grid.isPaginationEnabled?(e.success({rowData:s}),o&&(0,Ie.h5)((()=>{this.rowCount=(r.startRow??0)+s.length})),o&&0===r.startRow&&0===s.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()):(s.length>du&&(this._view.settingService.getBooleanValue(Qc.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING)||this._view.alertService.alert({message:"Large dataset (>1000 rows) detected!",text:"Overall app performance can be impacted by large dataset due to longer query execution time and increased memory usage. At its limit, the engine can crash!\nTo boost performance, consider enabling pagination while working with large dataset.",type:qc.WARNING,actions:[{label:"Enable Pagination",handler:()=>{this._grid.setPaginationEnabled(!0)}},{label:"Dismiss Warning",handler:()=>{this._view.settingService.updateValue(this._view.dataCube.api,Qc.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING,!0)}}],windowConfig:{...Eo,width:600,minWidth:300,minHeight:150}}),e.api.ensureIndexVisible(e.parentNode.rowIndex??0,"top")),e.success({rowData:s,rowCount:s.length}),o&&(0,Ie.h5)((()=>{this.rowCount=s.length})),o&&0===s.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()),setTimeout((()=>{this._grid.client.autoSizeAllColumns()}),0)}catch(t){w(t),this._view.alertService.alertError(t,{message:`Data Fetch Failure: ${t.message}`}),e.fail()}finally{this._view.taskService.endTask(t)}}getRows(e){this.fetchRows(e).catch((e=>{w(e),this._view.logService.logIllegalStateError("Error ocurred while fetching data for grid should have been handled gracefully",e)}))}}function Nu(e,t){switch(t){case Ko.PERCENT:return{value:100*e,unit:"%"};case Ko.BASIS_POINT:return{value:1e4*e,unit:"bp"};case Ko.THOUSANDS:return{value:e/1e3,unit:"k"};case Ko.MILLIONS:return{value:e/1e6,unit:"m"};case Ko.BILLIONS:return{value:e/1e9,unit:"b"};case Ko.TRILLIONS:return{value:e/1e12,unit:"t"};case Ko.AUTO:return Nu(e,e>=1e12?Ko.TRILLIONS:e>=1e9?Ko.BILLIONS:e>=1e6?Ko.MILLIONS:e>=1e3?Ko.THOUSANDS:void 0);default:return{value:e,unit:void 0}}}function Au(e){return e.node.failedLoad?(0,E.jsx)("span",{className:"inline-flex items-center",children:"#ERR"}):(0,E.jsxs)("span",{className:"inline-flex items-center",children:[(0,E.jsx)(go.Loader,{className:"mr-1 animate-spin stroke-2"}),"Loading"]})}function yu(e){const{column:t}=e;return ui(t.type)===li.TEXT&&t.displayAsLink?function(e){var n;if(n=e.value,!Boolean(R((()=>new URL(n)))))return e.value;const r=e.value,o=de(t.linkLabelParameter??vi,ue(r,!0));return(0,E.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",className:"text-blue-600 underline",children:o??r})}:null}function Su(e){const{name:t,snapshot:n,column:r,configuration:o}=e,i=ui(r.type),a=r.fontFamily??o.fontFamily,s=r.fontSize??o.fontSize,l=r.fontBold??o.fontBold,c=r.fontItalic??o.fontItalic,u=r.fontStrikethrough??o.fontStrikethrough,d=r.fontUnderline??o.fontUnderline,g=r.fontCase??o.fontCase,p=r.textAlign??o.textAlign,m=r.normalForegroundColor??o.normalForegroundColor,h=r.normalBackgroundColor??o.normalBackgroundColor,f=r.negativeForegroundColor??o.negativeForegroundColor,E=r.negativeBackgroundColor??o.negativeBackgroundColor,b=r.zeroForegroundColor??o.zeroForegroundColor,C=r.zeroBackgroundColor??o.zeroBackgroundColor,v=r.errorForegroundColor??o.errorForegroundColor,_=r.errorBackgroundColor??o.errorBackgroundColor;return{cellDataType:!1,hide:r.hideFromView||!r.isSelected||Boolean(n.data.pivot&&!n.data.pivot.castColumns.find((e=>e.name===t)))&&!n.data.groupExtendedColumns.find((e=>e.name===t)),lockVisible:!r.isSelected||Boolean(n.data.pivot&&!n.data.pivot.castColumns.find((e=>e.name===t)))&&!n.data.groupExtendedColumns.find((e=>e.name===t)),pinned:void 0!==r.pinned?r.pinned===si.RIGHT?Eu.RIGHT:Eu.LEFT:null,headerClass:pi(t)?"pl-1 border border-neutral-300":"pl-1 border border-neutral-200",cellClassRules:{[ou(a)]:()=>!0,[iu(s)]:()=>!0,[eu.FONT_BOLD]:()=>l,[eu.FONT_ITALIC]:()=>c,[eu.FONT_STRIKETHROUGH]:()=>u,[au(d)]:()=>Boolean(d),[su(g)]:e=>i===li.TEXT&&Boolean(g),[lu(p)]:()=>!0,[cu(m,"normal")]:()=>!0,[uu(h,"normal")]:()=>!0,[cu(b,"zero")]:e=>i===li.NUMBER&&H(e.value)&&0===e.value,[uu(C,"zero")]:e=>i===li.NUMBER&&H(e.value)&&0===e.value,[cu(f,"negative")]:e=>i===li.NUMBER&&H(e.value)&&e.value<0,[uu(E,"negative")]:e=>i===li.NUMBER&&H(e.value)&&e.value<0,[cu(v,"error")]:e=>Boolean(e.node.failedLoad),[uu(_,"error")]:e=>Boolean(e.node.failedLoad),[eu.BLUR]:()=>r.blur},valueFormatter:i===li.NUMBER?e=>{const t=e.value;if(L(t)||t===gu)return r.missingValueDisplayText??"";const n=r.negativeNumberInParens&&t<0,o=Nu(t,r.numberScale),i=(n?Math.abs(o.value):o.value).toLocaleString(void 0,{useGrouping:r.displayCommas,...void 0!==r.decimals?{minimumFractionDigits:r.decimals,maximumFractionDigits:r.decimals}:{}});let a=(n?`(${i})`:i)+(o.unit?` ${o.unit}`:"");return r.unit&&(a=r.unit.startsWith("_")?`${r.unit.substring(1)}${a}`:`${a}${r.unit}`),a}:e=>e.value===gu?r.missingValueDisplayText??"":e.value,tooltipValueGetter:e=>F(e.value)&&e.value!==gu?`Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`:"Missing Value",cellRenderer:yu(e)}}function xu(e,t){const n=t.fontFamily,r=t.fontSize,o=t.fontBold,i=t.fontItalic,a=t.fontStrikethrough,s=t.fontUnderline,l=t.fontCase,c=t.textAlign,u=t.normalForegroundColor,d=t.normalBackgroundColor;return{cellDataType:!1,hide:!e.data.groupBy,lockPosition:!0,lockPinned:!0,pinned:Eu.LEFT,cellClassRules:{[ou(n)]:()=>!0,[iu(r)]:()=>!0,[eu.FONT_BOLD]:()=>o,[eu.FONT_ITALIC]:()=>i,[eu.FONT_STRIKETHROUGH]:()=>a,[au(s)]:()=>Boolean(s),[su(l)]:e=>Boolean(l),[lu(c)]:()=>!0,[cu(u,"normal")]:()=>!0,[uu(d,"normal")]:()=>!0},tooltipValueGetter:e=>F(e.value)&&e.value!==gu?`Group Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`+(void 0!==e.data[fu]?` (${e.data[fu]})`:""):null}}function Iu(e){const{column:t}=e;return{resizable:void 0===t.fixedWidth,suppressAutoSize:void 0!==t.fixedWidth,suppressSizeToFit:void 0!==t.fixedWidth,width:t.fixedWidth,minWidth:Math.max(t.minWidth??50,50),maxWidth:t.maxWidth}}function ku(e){const{name:t,snapshot:n}=e,r=n.data.sortColumns,o=jl(r,t);return{sortable:!0,sort:o?o.direction===ai.ASCENDING?bu.ASCENDING:bu.DESCENDING:null,sortIndex:o?r.indexOf(o):null}}function wu(e){const{name:t,snapshot:n,column:r,configuration:o}=e,i=n.data,a=jl(i.pivot?.columns,t),s=jl(i.groupBy?.columns,t),l=Boolean(jl(i.groupExtendedColumns,t)),c=!l&&s?i.groupBy?.columns.indexOf(s)??null:null;return{enableRowGroup:!l&&r.kind===ei.DIMENSION,rowGroup:!l&&Boolean(s),rowGroupIndex:null!==c?o.showRootAggregation?c+1:c:null,enablePivot:!l&&r.kind===ei.DIMENSION,pivot:!l&&Boolean(a),pivotIndex:!l&&a?i.pivot?.columns.indexOf(a)??null:null,aggFunc:l?null:r.aggregateOperator,enableValue:!1,allowedAggFuncs:[]}}function Ru(e){const t=e.grid;return{rowGroupPanelShow:"always",groupDisplayType:"singleColumn",suppressGroupChangesColumnVisibility:!0,suppressAggFuncInHeader:!0,getChildCount:e=>e[fu],alwaysMultiSort:!0,rowHeight:20,headerHeight:24,noRowsOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(go.WarningCircle,{className:"mr-1 stroke-2 text-lg"})}),"0 rows"]}),loadingOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(go.Loader,{className:"mr-1 animate-spin stroke-2 text-lg"})}),"Loading..."]}),onBodyScroll:e=>{const n=e.api.getDisplayedRowCount(),r=e.api.getVerticalPixelRange(),o=Math.max(1,Math.ceil(r.top/20)+1),i=Math.min(n,Math.floor(r.bottom/20));t.setScrollHintText(`${o}-${i}/${n}`),e.api.hidePopupMenu()},onBodyScrollEnd:()=>t.setScrollHintText(void 0),preventDefaultOnContextMenu:!0,columnMenu:"new",getContextMenuItems:e=>t.controller.menuBuilder?.(e,!1)??[],getMainMenuItems:e=>t.controller.menuBuilder?.(e,!0)??[],onColumnMenuVisibleChanged:e=>{if(!e.column){const t=document.querySelector(`.${eu.ROOT} .ag-popup .ag-menu`);t&&(t.style.display="none"),e.api.hidePopupMenu()}},autoSizePadding:10,autoSizeStrategy:{type:"fitCellContents"},tooltipShowDelay:1500,tooltipInteraction:!1,suppressDragLeaveHidesColumns:!0,suppressScrollOnNewData:!0,loadingCellRenderer:Au,serverSideSortAllLevels:!0,cellSelection:!0,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",minWidth:200,width:200,toolPanelParams:{suppressValues:!0,suppressPivotMode:!0}}],position:"right"},allowDragFromColumnsToolPanel:!0,animateRows:!1,suppressColumnMoveAnimation:!0}}function Ou(e,t,n){const r=e.split(gi);if(!t.data.pivot||r.length>t.data.pivot.columns.length+1)return r.join(" / ");if(r.length===t.data.pivot.columns.length+1){const e=P(r[r.length-1]),o=jl(n.columns,e);return`Column = ${o?o.displayName?`${o.displayName} (${o.name})`:o.name:e} ~ [ ${t.data.pivot.columns.map(((e,t)=>`${jl(n.columns,e.name)?.displayName??e.name} = ${r[t]}`)).join(", ")} ]`}return`[ ${t.data.pivot.columns.slice(0,r.length).map(((e,t)=>`${jl(n.columns,e.name)?.displayName??e.name} = ${r[t]}`)).join(", ")} ]`}function Lu(e,t,n){const r=e.map((e=>({...e,values:e.name.split(gi)}))).filter((e=>e.values.length>1)),o=[];return r.forEach((e=>{const r=[];let i,a="";for(let o=0;o<e.values.length;o++){const s=A(e.values,o);if(a=""===a?A(e.values,o):`${a}${gi}${s}`,o!==e.values.length-1)r.push({groupId:a,children:[],suppressColumnsToolPanel:!0,headerName:s,headerTooltip:Ou(a,t,n)});else{const r=jl(n.columns,s);if(r){const o={name:e.name,snapshot:t,column:r,configuration:n};i={headerName:r.displayName??r.name,colId:e.name,field:e.name,menuTabs:[],...Su(o),...ku(o),...Iu(o),pinned:!1,lockPinned:!0,lockPosition:!0,suppressColumnsToolPanel:!0,headerTooltip:Ou(a,t,n)}}}}let s=o;r.forEach((e=>{const t=s.find((t=>"groupId"in t&&t.groupId===e.groupId));if(t)s=t.children;else{const t={...e,headerClass:`${eu.PIVOT_COLUMN_GROUP} ${eu.PIVOT_COLUMN_GROUP_PREFIX}${s.length%5}`};s.push(t),s=t.children}})),i&&(s.push(i),s.sort(((e,t)=>{const r=N(e.colId?.split(gi)??[]),o=r?jl(n.columns,r):void 0,i=N(t.colId?.split(gi)??[]),a=i?jl(n.columns,i):void 0;return(o?n.columns.indexOf(o):Number.MAX_VALUE)-(a?n.columns.indexOf(a):Number.MAX_VALUE)})))})),o}function Fu(e,t){const n=t.columns.filter((t=>e.data.selectColumns.find((e=>e.name===t.name))??e.data.groupExtendedColumns.find((e=>e.name===t.name))));let r=[];return e.data.pivot&&(r=e.data.pivot.castColumns.filter((e=>pi(e.name)))),[{colId:hu,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,filter:"agTextColumnFilter",suppressColumnsToolPanel:!0},...t.showRootAggregation?[{colId:mu,headerName:"Root",field:mu,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,suppressColumnsToolPanel:!0,rowGroup:!0,rowGroupIndex:0}]:[],...Lu(r,e,t),...n.map((n=>{const r={name:n.name,snapshot:e,column:n,configuration:t};return{headerName:n.displayName??n.name,headerTooltip:`Column = ${n.displayName?`${n.displayName} (${n.name})`:n.name}`,suppressSpanHeaderHeight:!0,colId:n.name,field:n.name,menuTabs:[],...Su(r),...Iu(r),...ku(r),...wu(r)}}))]}function Bu(e,t){return`${Array.from(new Set([t[`${e}ForegroundColor`],...t.columns.map((t=>t[`${e}ForegroundColor`])).filter(F)]).values()).map((t=>`.${eu.ROOT} .${cu(t,e)}{color:${t};}`)).join("\n")}`}function Pu(e,t){return`${Array.from(new Set([t[`${e}BackgroundColor`],...t.columns.map((t=>t[`${e}BackgroundColor`])).filter(F)]).values()).map((t=>`.${eu.ROOT} .${uu(t,e)}{background-color:${t};}`)).join("\n")};`}console.error;const Du=(0,vt.PA)((e=>{const{view:t}=e,n=t.grid,r=n.queryConfiguration;return(0,E.jsx)(ko.mL,{styles:ko.AH`
|
1
|
+
(()=>{var e,t,n,r,o,i={51947:(e,t,n)=>{"use strict";const r=JSON.parse('{"rE":"10.0.66","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var o,i=n(20938);class a{name;version;signature;uuid}class s{name;version;uuid=(0,i.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 a;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class l{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"}(o||(o={}));class c{channel;name;timestamp=Date.now();static create(e){const t=new c;return t.name=e,t}}class u extends s{level=o.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=o.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=o.INFO&&this._info(e,...t)}warn(e,...t){this.level<=o.WARN&&this._warn(e,...t)}error(e,...t){this.level<=o.ERROR&&this._error(e,...t)}}class d{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:g,info:p,warn:m,error:h}=console;class f extends u{constructor(){super(r.XO.Z,r.rE)}_debug(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){p(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){h(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var E=n(31085),b=n(25873),C=n(94417),v=n(84365);const _=()=>()=>{},T=e=>(0,C.A)(e,(e=>void 0!==e)),N=e=>e.length?e[e.length-1]:void 0,A=(e,t,n)=>(U(0<=t&&t<e.length,`Index out of bound: ${t}`),P(e[t],n)),y=(e,t,n=(e,t)=>e===t)=>{const r=e.findIndex((e=>n(e,t)));return-1!==r&&(e.splice(r,1),!0)};class S extends Error{uuid=(0,i.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 I 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=>{const t=T({printFunctionName:!1,maxDepth:1});return(0,v.GP)(e,t).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function w(e){if(!(e instanceof Error))throw new I("Expected error to be thrown")}const R=e=>{try{return e()}catch{return}};class O extends x{constructor(e,t){super("Assertion Error",e,t)}}const L=e=>null==e,F=e=>null!=e;function B(e,t=""){if(null==e)throw new O(t||"Value is nullable")}const P=(e,t="")=>(B(e,t),e);function D(e,t,n=""){if(!(e instanceof t))throw new O(n||`Value is expected to be of type '${t.name}'`)}const j=(e,t,n="")=>(D(e,t,n),e);function M(e,t=""){return function(e,t=""){if(""===P(e,t))throw new O(t||"Expected string value to be non-empty")}(e,t),e}function U(e,t=""){if(!e)throw new O(t||"Expected predicate to be truthy")}const G=e=>"string"==typeof e,H=e=>"number"==typeof e&&!isNaN(e),V=e=>"boolean"==typeof e,W=e=>"object"==typeof e&&null!==e,Y=(e,t="")=>(function(e,t=""){if(!G(e))throw new O(t||"Value is expected to be a string")}(e,t),e),$=(e,t="")=>(function(e,t=""){if(!H(e))throw new O(t||"Value is expected to be a number")}(e,t),e),z=(e,t="")=>(function(e,t=""){if(!V(e))throw new O(t||"Value is expected to be a boolean")}(e,t),e);var X=n(66651),K=n(56046),q=n(6451),J=n(8041);const Q=X.v,Z="charset=utf-8";var ee,te,ne;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(ee||(ee={})),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"}(te||(te={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(ne||(ne={}));const re={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 ie 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:r,url:o}=e,i=`Received response with status ${n} (${r}) for ${o}`;this.message=(t?(e=>{if(W(e))return G(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&G(t.message)?t.message:e})(t).substring(0,5e3):"")||i,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 ie(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===Q.NO_CONTENT)return Promise.resolve(void 0);const r=t.headers.Accept;switch(r){case te.APPLICATION_JSON:return e.json();case te.TEXT_PLAIN:return e.text();default:return Promise.reject(new ie(e,`Can't process response for request with Content-Type '${r}'`))}},se=(e,t)=>{const n={};return n.Accept=te.APPLICATION_JSON,e!==ne.GET&&(n[ee.CONTENT_TYPE]=`${te.APPLICATION_JSON};${Z}`),oe(n,t)};class le{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...re,...e?.options??{}}}async get(e,t={},n,r,o,i){return this.request(ne.GET,e,void 0,t,n,r,o,i)}async put(e,t={},n={},r,o,i,a){return this.request(ne.PUT,e,t,n,r,o,i,a)}async post(e,t={},n={},r,o,i,a){return this.request(ne.POST,e,t,n,r,o,i,a)}async delete(e,t={},n={},r,o,i,a){return this.request(ne.DELETE,e,t,n,r,o,i,a)}async request(e,t,n,r,o,i,a,s){const l=((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 r=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(F).forEach((t=>r.searchParams.append(e,t.toString()))):r.searchParams.append(e,t.toString()))})),r.toString()})(this.baseUrl,t,i??{});let c;if((G(n)||W(n))&&a?.enableCompression&&(U(e!==ne.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,K.Kc)(W(e)?JSON.stringify(e):e)]))(n),o=oe(o,{[ee.CONTENT_TYPE]:`${te.APPLICATION_ZLIB};${Z}`})),void 0!==n)if(G(n)||n instanceof Blob)c=n;else{if(!W(n))throw new O("Request body can only be either a 'string' or an 'object'");c=JSON.stringify(n)}const u={...this.options,...r,method:e,body:c,headers:se(e,o)};return fetch(l,u).then((e=>0===e.status||e.status===Q.UNAUTHORIZED?s?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",r=document.getElementById(n);r?.remove();const o=document.createElement("iframe");o.id=n,o.src=e,o.style.display="none",o.addEventListener("load",(()=>{o.remove(),t()})),document.body.appendChild(o)})))(s.autoReAuthenticateUrl).then((()=>fetch(l,u))).then((e=>ae(e,u,s))):fetch(l,u).then((e=>ae(e,u,s))):ae(e,u,s))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(l,u).then((e=>ae(e,u,s))):Promise.reject(e)))}}const ce=(e,t,n)=>{const r=new Blob([t],{type:n}),o=URL.createObjectURL(r),i=document.createElement("a");"string"==typeof i.download?(document.body.appendChild(i),i.download=e,i.href=o,i.click(),document.body.removeChild(i)):location.replace(o)},ue=(e,t=!1)=>t?q.A.parseUrl(e).query:q.A.parse(e),de=(e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0};var ge;!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.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.DEBUG="development.debug"}(ge||(ge={}));var pe=n(97542);class me{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,C.A)(t,(e=>null!==e))):e);var t}}const he=e=>(0,pe.Ie)((t=>void 0===t?pe._Z:(0,pe.lK)(e,t)),(t=>(0,pe.iu)(e,t))),fe=e=>(0,pe.Ie)((()=>e),(()=>e)),Ee=(e,t,n)=>(0,pe.Ie)((t=>t?e(t):pe._Z),(e=>e?t(e):pe._Z),n),be=e=>(0,pe.Ie)((t=>t?(0,pe.lK)(e,t):pe._Z),(t=>t?(0,pe.iu)(e,t):pe._Z)),Ce=(e,t,n)=>Array.isArray(e)?e.map(t):n?.skipIfEmpty?pe._Z:[],ve=(e,t,n)=>Array.isArray(e)?e.length?e.map((e=>t(e))):n?.skipIfEmpty?pe._Z:[]:pe._Z,_e=(e,t,n)=>Ee((t=>ve(t,(t=>e(t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:n?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>t(e)),{skipIfEmpty:!1})));class Te{key;markdownText;title;text;url;related;static serialization=new me((0,pe.PL)(Te,{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=Te.serialization.fromJson(e);return n.key=t,n}}var Ne=n(66696);const Ae=e=>Object.entries(e).map((e=>({key:e[0],content:Te.create(e[1],e[0])})));class ye{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(c.create(ge.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,Ne.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(c.create(ge.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(c.create(ge.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]=Te.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Se,xe,Ie=n(83794);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Se||(Se={}));class ke{state;_message;_messageFormatter;constructor(){this.state=Se.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Se.INITIAL,this}inProgress(){return this.state=Se.IN_PROGRESS,this}fail(){return this.state=Se.FAILED,this}pass(){return this.state=Se.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===Se.INITIAL}get isInProgress(){return this.state===Se.IN_PROGRESS}get hasFailed(){return this.state===Se.FAILED}get hasSucceeded(){return this.state===Se.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,Ie.Gn)(new ke,{state:Ie.sH,_message:Ie.sH,reset:Ie.XI,inProgress:Ie.XI,pass:Ie.XI,fail:Ie.XI,complete:Ie.XI,setMessage:Ie.XI,sync:Ie.XI,isInInitialState:Ie.EW,isInProgress:Ie.EW,hasFailed:Ie.EW,hasSucceeded:Ie.EW,hasCompleted:Ie.EW,message:Ie.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"}(xe||(xe={}));class we{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)}))}close(){this.traceEntries.forEach((e=>{e.plugin.concludeServerSpan(e.serverSpan)}))}}class Re{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,r){const o=new we;return e&&o.setup(this.plugins.map((o=>{const i=o.createClientSpan(e);return{clientSpan:i,serverSpan:o.createServerSpan(i,t,n,r),plugin:o}}))),o}}const Oe=n(37102).A;var Le,Fe;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Le||(Le={}));class Be{currentMode=Le.STANDARD;onSearchModeChange;constructor(e){(0,Ie.Gn)(this,{currentMode:Ie.sH,isAdvancedSearchActive:Ie.EW,setCurrentMode:Ie.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Le.STANDARD}generateSearchText(e){switch(this.currentMode){case Le.INCLUDE:return`'"${e}"`;case Le.EXACT:return`="${e}"`;case Le.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Fe||(Fe={}));class Pe{uuid=(0,i.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,Ie.Gn)(this,{isOpen:Ie.sH,setIsOpen:Ie.XI}),this.documentationKey=e.key,this.title=M(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class De{uuid=(0,i.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 je=e=>Boolean(e.title&&(e.url??e.text??e.markdownText));class Me{applicationStore;panelRenderingKey=(0,i.A)();isDisabled=!1;isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=Fe.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=ke.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,Ie.Gn)(this,{isDisabled:Ie.sH,isHidden:Ie.sH,isOpen:Ie.sH,isPanelMaximized:Ie.sH,panelRenderingKey:Ie.sH,isOverSearchLimit:Ie.sH,selectedTab:Ie.sH,searchText:Ie.sH,searchResults:Ie.sH,currentDocumentationEntry:Ie.sH,showSearchConfigurationMenu:Ie.sH,currentContextualDocumentationEntry:Ie.EW,setIsDisabled:Ie.XI,setIsHidden:Ie.XI,setIsOpen:Ie.XI,setIsPanelMaximized:Ie.XI,setSelectedTab:Ie.XI,setSearchText:Ie.XI,resetSearch:Ie.XI,search:Ie.XI,openDocumentationEntry:Ie.XI,refreshPanelRendering:Ie.XI,setShowSearchConfigurationMenu:Ie.XI}),this.applicationStore=e,this.searchEngine=new Oe(this.applicationStore.documentationService.getAllDocEntries().filter(je),{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 Be((()=>{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 De(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(F).filter(je).map((e=>new Pe(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Pe(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&((e=>je(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,i.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 Pe(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 Ue{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class Ge{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(ge.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}})}static logEvent_ApplicationContextAccessed(e,t){e.logEvent(ge.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(ge.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(ge.APPLICATION_USAGE__INTERRUPT,{})}}class He{applicationStore;contextStack=[];constructor(e){(0,Ie.Gn)(this,{contextStack:Ie.sH,currentContext:Ie.EW,push:Ie.XI,pop:Ie.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 I(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&Ge.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 Ve{applicationStore;commandRegistry=new Map;constructor(e){(0,Ie.Gn)(this,{commandRegistry:Ie.sH,registerCommand:Ie.XI,deregisterCommand:Ie.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(ge.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 We{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,Ie.Gn)(this,{keyMap:Ie.sH,commandKeyMap:Ie.sH,isHotkeysBlocked:Ie.sH,addHotkey:Ie.XI,blockGlobalHotkeys:Ie.XI,unblockGlobalHotkeys:Ie.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(F);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 Ye=n(84594),$e=n(34462),ze=n(720),Xe=n(75974),Ke=n(90382);const qe="yyyy-MM-dd'T'HH:mm:ss";var Je;!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"}(Je||(Je={}));const Qe=(e,t)=>`[${e};${t}H`;class Ze{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,Ie.Gn)(this,{searchText:Ie.sH,useRegex:Ie.sH,matchWholeWord:Ie.sH,matchCaseSensitive:Ie.sH,resultCount:Ie.sH,currentResultIndex:Ie.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class et{applicationStore;searchConfig=new Ze;constructor(e){(0,Ie.Gn)(this,{setSearchText:Ie.XI,setSearchRegex:Ie.XI,setSearchWholeWord:Ie.XI,setSearchCaseSensitive:Ie.XI,setSearchResultCount:Ie.XI,setSearchCurrentResultIndex:Ie.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 tt extends et{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,Ie.Gn)(this,{preserveLog:Ie.sH,setPreserveLog:Ie.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var nt=n(29481);n(24404),n(41880);const rt=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,ot=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],it=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>ot.includes(e.toLowerCase())?e.toLowerCase():rt(e))).replace(/^(?:\w+)\b/u,(e=>rt(e))).replace(/\b(?:\w+)$/u,(e=>rt(e)));var at;function st(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=P(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"}(at||(at={}));const lt=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![at.SHIFT,at.META,at.ALT,at.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),ct=(e,t)=>lt(e,P(st(t)[0]));function ut(e){const t=new Map;let n=null;return r=>{r instanceof KeyboardEvent&&((0,nt.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,o=st(e.combination);if(!o.length)return;const i=t.get(n)??o,a=P(i[0]);lt(r,a)?i.length>1?t.set(n,i.slice(1)):(t.delete(n),e.handler(n,r)):r.getModifierState(r.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}var dt=n(48187),gt=n(12285),pt=n(97088),mt=n(34336),ht=n(22351);const ft=(0,dt.A)({transitions:{create:()=>"none"},components:{MuiButtonBase:{defaultProps:{disableRipple:!0}}}}),Et=e=>{const{children:t}=e;return(0,E.jsx)(gt.A,{injectFirst:!0,children:(0,E.jsx)(pt.A,{theme:ft,children:(0,E.jsx)(mt.$,{dateAdapter:ht.h,children:t})})})};var bt=n(49676),Ct=n(23432),vt=n(25150),_t=n(20306),Tt=n(50692),Nt=n(96242),At=n(54357);const yt=(e,t)=>{const n=e=>{const{children:n,className:r}=e;return(0,E.jsx)("div",{className:(0,At.$)(t,r),"data-testid":e["data-testid"],children:n})};return n.displayName=e,n},St=e=>{const{children:t,darkMode:n,className:r}=e;return(0,E.jsx)("div",{className:(0,At.$)("modal",{"modal--dark":n},r),children:t})},xt=e=>{const{title:t,icon:n,className:r}=e;return(0,E.jsxs)("div",{className:(0,At.$)("modal__title",r),children:[n&&(0,E.jsx)("div",{className:"modal__title__icon",children:n}),(0,E.jsx)("div",{className:"modal__title__label",children:it(t)})]})},It=e=>{const{title:t,children:n,className:r}=e;return!n&&t?(0,E.jsx)("div",{className:(0,At.$)("modal__header",r),children:(0,E.jsx)(xt,{title:t})}):(0,E.jsx)("div",{className:(0,At.$)("modal__header",r),children:n})},kt=(yt("ModalHeaderActions","modal__header__actions"),yt("ModalBody","modal__body")),wt=yt("ModalFooter","modal__footer");var Rt,Ot;yt("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION",e.ERROR="ERROR"}(Rt||(Rt={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Ot||(Ot={}));class Lt{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,Ie.Gn)(this,{blockingAlertInfo:Ie.sH,actionAlertInfo:Ie.sH,setBlockingAlert:Ie.XI,setActionAlertInfo:Ie.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 Ft=n(14041);const Bt=(0,Ft.createContext)(void 0),Pt=()=>P((0,Ft.useContext)(Bt),"Can't find application store in context"),Dt=e=>{const{children:t,store:n}=e,r=(0,vt.iz)((()=>n));return(0,E.jsx)(Bt.Provider,{value:r,children:t})},jt=e=>{switch(e){case Ot.PROCEED_WITH_CAUTION:return"btn--caution";case Ot.PROCEED:case Ot.STANDARD:default:return"btn--dark"}},Mt=(0,vt.PA)((e=>{const{info:t}=e,n=Pt(),{title:r,message:o,prompt:i,type:a,onClose:s,onEnter:l,actions:c}=t,u=()=>{s?.(),n.alertService.setActionAlertInfo(void 0)};return(0,E.jsx)(Nt.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:_,TransitionProps:{onEnter:()=>l?.()},children:(0,E.jsxs)("form",{onSubmit:e=>{e.preventDefault(),c.find((e=>e.default))?.handler?.(),u()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(a??Rt.STANDARD).toLowerCase()}`,children:[r&&(0,E.jsx)(It,{title:r}),(0,E.jsxs)(kt,{children:[(0,E.jsx)("div",{className:"blocking-alert__summary-text",children:o}),(0,E.jsx)("div",{className:"blocking-alert__prompt-text",children:i})]}),(0,E.jsxs)(wt,{children:[c.map(((e,t)=>(0,E.jsx)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${jt(e.type??Ot.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),u()},autoFocus:Boolean(e.default),children:e.label},t))),!c.length&&(0,E.jsx)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:u,children:"Cancel"})]})]})})})),Ut=(0,vt.PA)((()=>{const e=Pt().alertService.actionAlertInfo;return e?(0,E.jsx)(Mt,{info:e}):null})),Gt=e=>{const{isLoading:t,className:n}=e,r=(0,Ft.useRef)(null);return(0,Ft.useEffect)((()=>{r.current&&(t?r.current.parentElement?.classList.add("panel-loading-indicator__container"):r.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,E.jsx)("div",{ref:r,className:(0,At.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))})},Ht=(0,vt.PA)((()=>{const e=Pt(),t=e.alertService.blockingAlertInfo;return t?(0,E.jsx)(Nt.A,{open:Boolean(t),onClose:_,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,E.jsxs)(St,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,E.jsx)(Gt,{isLoading:Boolean(t.showLoading)}),(0,E.jsxs)(kt,{children:[(0,E.jsx)("div",{className:"blocking-alert__message",children:t.message}),t.prompt&&(0,E.jsx)("div",{className:"blocking-alert__message__prompt",children:t.prompt})]})]})}):null}));var Vt=n(94269),Wt=n(59896),Yt=n(86750),$t=n(87997),zt=n(56819);const Xt=Vt.RQJ,Kt=Wt.QRP,qt=Yt.QCr,Jt=Yt._Hm,Qt=Yt.Pcn,Zt=Yt.gZZ,en=Yt.__w,tn=Yt.KSO,nn=Yt.UnJ,rn=Yt.A7C,on=Yt.BS8,an=Yt.KRc,sn=Yt.Su4,ln=Yt.kxO,cn=Yt.vq8,un=Yt.GfC,dn=Yt.SoL,gn=Yt.Wx3,pn=$t.f7n,mn=$t.Lun,hn=zt.oss,fn=zt.Br,En=zt.YZI;var bn=n(82801),Cn=n(98960);const vn=6e3;var _n;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(_n||(_n={}));class Tn{severity;message;actions;autoHideDuration;constructor(e,t,n,r){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=r}}class Nn{notification;constructor(){(0,Ie.Gn)(this,{notification:Ie.sH,setNotification:Ie.XI,notify:Ie.XI,notifySuccess:Ie.XI,notifyWarning:Ie.XI,notifyIllegalState:Ie.XI,notifyError:Ie.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new Tn(_n.INFO,e,t??[],null===n?void 0:n??vn))}notifySuccess(e,t,n){this.setNotification(new Tn(_n.SUCCESS,e,t??[],null===n?void 0:n??vn))}notifyWarning(e,t,n){this.setNotification(new Tn(_n.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??vn))}notifyError(e,t){const n=this.getErrorMessage(e);n&&this.setNotification(new Tn(_n.ERROR,n,t??[],void 0))}getErrorMessage(e){let t;return e instanceof S?t=e.detail:e instanceof Error?t=e.message:(U(G(e),"Can't display error"),t=e),t}notifyIllegalState(e,t,n){this.setNotification(new Tn(_n.ILEGAL_STATE,G(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??vn))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return w(e),this.notifyIllegalState(e.message),t}}}const An=(0,vt.PA)((()=>{const e=Pt(),t=e.notificationService.notification,n=Boolean(t),r=t?.message??"",o=t?.severity??_n.INFO,[i,a]=(0,Ft.useState)(!1);let s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,E.jsx)(en,{})});switch(o){case _n.ILEGAL_STATE:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(an,{})});break;case _n.ERROR:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(Jt,{})});break;case _n.WARNING:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,E.jsx)(on,{})});break;case _n.SUCCESS:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,E.jsx)(rn,{})})}const l=()=>{e.notificationService.setNotification(void 0),a(!1)},c=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(r)));return(0,E.jsx)(bn.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:vn,onClose:(e,t)=>{"timeout"===t&&l()},children:(0,E.jsx)(Cn.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,E.jsxs)("div",{className:"notification__message__content",children:[s,(0,E.jsx)("div",{className:(0,At.$)("notification__message__content__text",{"notification__message__content__text--expanded":i}),onClick:c,title:"Click to Copy",children:r})]}),action:[(0,E.jsx)("button",{className:"notification__action",onClick:()=>a(!i),tabIndex:-1,title:i?"Collapse":"Expand",children:i?(0,E.jsx)(hn,{}):(0,E.jsx)(fn,{})},"expand"),(0,E.jsx)("button",{className:"notification__action",onClick:l,tabIndex:-1,title:"Dismiss",children:(0,E.jsx)(qt,{})},"close")]})},"string"==typeof r||"number"==typeof r?r:"")}));var yn=n(12436);const Sn=e=>{const{children:t,classes:n,...r}=e;return(0,E.jsx)(yn.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...r,children:e.children})},xn=e=>{const{className:t,children:n,menuProps:r,content:o,disabled:i,onClose:a,onOpen:s}=e,l=(0,Ft.useRef)(null),[c,u]=(0,Ft.useState)(!1),[d,g]=(0,Ft.useState)(),[p,m]=(0,Ft.useState)(0),[h,f]=(0,Ft.useState)(0),b=()=>{g(void 0),u(!1),f(0),m(0)},C=e=>{e.stopPropagation(),e.preventDefault(),b(),a?.()},v=e=>{if(e.stopPropagation(),e.preventDefault(),!i&&(s?.(),l.current)){const t=l.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),r=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:o,clientY:i,target:s}=e,c=s;if(d!==c&&!(document.elementsFromPoint(o,i).some((e=>e===c))&&n<=o&&o<=n+t.width&&r<=i&&i<=r+t.height))return b(),void a?.();g(c),u(!0),f(i),m(o)}};return(0,E.jsxs)("div",{ref:l,className:t,onContextMenu:v,children:[n,(0,E.jsx)(Sn,{open:c,anchorPosition:{left:p,top:h},onClose:C,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:v},disableRestoreFocus:!0,transitionDuration:0,onClick:C,...r,children:c&&o},`${p}, ${h}`)]})},In=(0,Ft.forwardRef)((function(e,t){const{className:n,children:r,...o}=e;return(0,E.jsx)("div",{ref:t,className:(0,At.$)("menu",n),...o,children:r})})),kn=e=>{const{className:t,onClick:n,title:r,disabled:o,children:i,...a}=e;return(0,E.jsx)("button",{className:(0,At.$)("menu__item",t),disabled:Boolean(o),title:r,onClick:n,...a,children:i})};yt("MenuContentDivider","menu__divider"),yt("MenuContentItemIcon","menu__item__icon"),yt("MenuContentItemLabel","menu__item__label");var wn=n(87062),Rn=n(29163),On=n(30559);const Ln=e=>((0,Ft.useEffect)((()=>{On.A.initialize({startOnLoad:!0,theme:"dark"}),On.A.contentLoaded()}),[e.value]),(0,E.jsx)(wn.o,{className:(0,At.$)("markdown-content",e.className),remarkPlugins:[Rn.A],components:e.components??{code:e=>{const{children:t,className:n,node:r,...o}=e,i=/language-(?<language>\w+)/.exec(n??"");return i?.groups?.language?(0,E.jsx)("code",{...o,className:(0,At.$)(i.groups.language),children:t}):(0,E.jsx)("code",{...o,className:n,children:t})}},children:e.value.value}));var Fn=n(49073),Bn=n(89463),Pn=(n(11097),n(53213)),Dn=n(65318),jn=n(12777);function Mn(...e){return(0,Fn.QP)((0,At.$)(e))}function Un(e){const t=(0,Ft.useRef)(e?.skipOnMount),n=e?.refreshMode,r=e?.refreshRate??1e3,o=(0,Ft.useMemo)((()=>({leading:e?.refreshOptions?.leading,trailing:e?.refreshOptions?.trailing})),[e?.refreshOptions?.leading,e?.refreshOptions?.trailing]),[i,a]=(0,Ft.useState)({width:void 0,height:void 0}),s=(0,Ft.useRef)(null),l=(0,Ft.useMemo)((()=>e?.targetRef??s),[e?.targetRef]),c=e?.onResize,u=(0,Ft.useCallback)((e=>{t.current?t.current=!1:e.forEach((e=>{const t={width:e.contentRect.width,height:e.contentRect.height};a((n=>n.width===t.width&&n.height===t.height?n:(c?.({width:t.width,height:t.height,entry:e}),t)))}))}),[t,c]),d=(0,Ft.useMemo)((()=>{switch(n){case"debounce":return(0,Dn.A)(u,r,o);case"throttle":return(0,jn.A)(u,r,o);default:return u}}),[u,n,r,o]);return(0,Ft.useEffect)((()=>{let e;return l.current?(e=new window.ResizeObserver(d),e.observe(l.current)):(c?.({width:void 0,height:void 0,entry:void 0}),a({width:void 0,height:void 0})),()=>{e?.disconnect(),"cancel"in d&&d.cancel()}}),[d,c,l]),{ref:l,...i}}const Gn=e=>{const{children:t}=e,{ref:n,width:r,height:o}=Un({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[i,a]=(0,Ft.useState)(!1),{ref:s,width:l,height:c}=Un({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Ft.useEffect)((()=>{a((l??0)>(r??0)+40&&(c??0)>(o??0)+40)}),[l,c,r,o]),(0,E.jsx)("div",{ref:s,className:"panel__content__blank",children:(0,E.jsx)("div",{ref:n,className:(0,At.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!i}),children:t})})};var Hn=n(31122),Vn=n(14779),Wn=n(38347);const Yn=e=>{const{children:t,options:n,size:r,className:o,...i}=e,a=((e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n})(n,r);return(0,E.jsxs)("div",{className:(0,At.$)("mui-radio-group",o),children:[a.map(((e,t)=>(0,E.jsx)("div",{children:(0,E.jsx)(Hn.A,{className:"mui-radio-group__group",...i,children:e.map((e=>(0,E.jsx)(Vn.A,{className:"mui-radio-group__group__column",style:{width:100/r+"%"},value:e,control:(0,E.jsx)(Wn.A,{className:"mui-radio-group__group__item__radio-btn",classes:{checked:"mui-radio-group__group__item__radio-btn--checked"}}),label:(0,E.jsx)("div",{className:"mui-radio-group__group__item__label",children:e})},e)))})},t))),t]})};var $n=n(92895);const zn=e=>{const{children:t,...n}=e;return(0,E.jsx)($n.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children})};var Xn,Kn=n(64);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(Xn||(Xn={}));const qn=(0,vt.PA)((e=>{const{entry:t}=e,n=Pt(),r=()=>{t.isOpen||Ge.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},o=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,E.jsx)(xn,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsx)(In,{children:(0,E.jsx)(kn,{onClick:o,children:"Copy Documentation Key"})}),children:(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry",children:[(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,E.jsx)("button",{className:(0,At.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:r,children:t.isOpen?(0,E.jsx)(hn,{}):(0,E.jsx)(En,{})}),t.url?(0,E.jsx)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Ge.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title}):(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__title",onClick:r,children:t.title})]}),t.isOpen&&t.content&&(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content",children:G(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content}):(0,E.jsx)(Ln,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content})})]})})})),Jn=(0,vt.PA)((()=>{const e=Pt(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),r=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),o=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,E.jsxs)(xn,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(In,{children:[(0,E.jsx)(kn,{onClick:n,children:"Copy Context ID"}),(0,E.jsx)(kn,{onClick:r,children:"Copy Current Context ID"}),(0,E.jsx)(kn,{onClick:o,children:"Copy Context Stack"})]}),children:[t&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__title",children:t.title}),t.content&&(0,E.jsx)(E.Fragment,{children:G(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__text",children:t.content}):(0,E.jsx)(Ln,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content})}),t.related.length&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]}),t.related.map((e=>(0,E.jsx)(qn,{entry:e},e.uuid)))]})]}),!t&&(0,E.jsx)(Gn,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(dn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"})]})})]})})),Qn=(0,vt.PA)((()=>{const e=Pt(),t=(0,Ft.useRef)(null),n=e.assistantService,r=n.searchText,o=(0,Ft.useMemo)((()=>(0,Dn.A)((()=>n.search()),100)),[n]);return(0,Ft.useEffect)((()=>{t.current?.focus()}),[]),(0,E.jsxs)("div",{className:"virtual-assistant__search",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__header",children:[(0,E.jsx)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,At.$)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":r}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),o()},value:r,placeholder:"Ask me a question"}),r&&(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")}),(0,E.jsx)("button",{className:(0,At.$)("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,E.jsx)(Qt,{})}),r?(0,E.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,E.jsx)(qt,{})}):(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,E.jsx)(tn,{})})]}),(0,E.jsxs)("div",{className:"virtual-assistant__search__content",children:[(0,E.jsx)(Gt,{isLoading:n.searchState.isInProgress}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(Xn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,E.jsx)("div",{onClick:()=>n.openDocumentationEntryLink(Xn.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,E.jsx)(Zt,{})})]}),(0,E.jsx)("div",{children:(0,E.jsx)(Yn,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Le.STANDARD,Le.INCLUDE,Le.EXACT,Le.INVERSE],size:1})})]})}),n.currentDocumentationEntry&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:(0,E.jsx)(qn,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid)}),!n.currentDocumentationEntry&&(0,E.jsxs)(E.Fragment,{children:[Boolean(n.searchResults.length)&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,E.jsx)(qn,{entry:e},e.uuid)))}),r&&!n.searchResults.length&&(0,E.jsx)(Gn,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(gn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."})]})}),!r&&!n.searchResults.length&&(0,E.jsx)(xn,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(In,{children:[(0,E.jsx)(kn,{onClick:()=>{ce(`documentation-registry_${(0,Kn.GP)(new Date(Date.now()),qe)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),te.APPLICATION_JSON)},children:"Download documentation registry"}),(0,E.jsx)(kn,{onClick:()=>{ce(`documentation-registry_${(0,Kn.GP)(new Date(Date.now()),qe)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),te.APPLICATION_JSON)},children:"Download contextual documentation mapping"})]}),children:(0,E.jsxs)("div",{className:"virtual-assistant__character",children:[(0,E.jsxs)("div",{className:"virtual-assistant__character__figure",children:[(0,E.jsx)(un,{className:"virtual-assistant__character__hat"}),(0,E.jsx)(mn,{className:"virtual-assistant__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__character__beard"})]}),(0,E.jsx)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"}),(0,E.jsx)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"})]})})]})]})]})})),Zn=(0,vt.PA)((e=>{const{triggerElement:t}=e,n=Pt(),r=n.assistantService,o=r.currentContextualDocumentationEntry,i=r.selectedTab,a=n.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraVirtualAssistantViewConfigurations?.()??[])),s=a.find((e=>e.key===i));return(0,E.jsx)(zn,{open:r.isOpen,className:"virtual-assistant__panel__container",anchorEl:t,hideBackdrop:!0,PaperProps:{classes:{root:"virtual-assistant__panel__container__root"}},disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"},children:(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__panel",{"virtual-assistant__panel--maximized":r.isPanelMaximized}),tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header",children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Fe.SEARCH}),onClick:()=>r.setSelectedTab(Fe.SEARCH),title:"Search",children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,E.jsx)(tn,{})})}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Fe.CONTEXTUAL_SUPPORT}),onClick:()=>r.setSelectedTab(Fe.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,E.jsx)(cn,{}),o&&(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"})]})}),a.map((e=>(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===e.key}),onClick:()=>{r.setSelectedTab(e.key),e.autoExpandOnOpen&&r.setIsPanelMaximized(!0)},title:e.title,children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:e.icon??(0,E.jsx)(Zt,{})})},e.key)))]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__actions",children:[(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>r.setIsPanelMaximized(!r.isPanelMaximized),title:r.isPanelMaximized?"Minimize":"Maximize",children:r.isPanelMaximized?(0,E.jsx)(sn,{}):(0,E.jsx)(ln,{})}),(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>r.setIsOpen(!1),title:"Close",children:(0,E.jsx)(Xt,{className:"virtual-assistant__panel__icon__close"})})]})]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__content",children:[i===Fe.SEARCH&&(0,E.jsx)(Qn,{}),i===Fe.CONTEXTUAL_SUPPORT&&(0,E.jsx)(Jn,{}),s?.renderer()]})]})},r.panelRenderingKey)})),er=(0,vt.PA)((()=>{const[e,t]=(0,Ft.useState)(!1),[n,r]=(0,Ft.useState)((0,i.A)()),o=Pt(),a=(0,Ft.useRef)(null),s=o.assistantService,l=s.currentContextualDocumentationEntry,c=()=>{!s.isOpen&&l&&s.setSelectedTab(Fe.CONTEXTUAL_SUPPORT),s.setIsOpen(!s.isOpen)};return(0,Ft.useEffect)((()=>{s.isHidden&&r((0,i.A)())}),[s.isHidden]),(0,E.jsx)(Bn,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),nodeRef:a,handle:".virtual-assistant__station__drag-handle",children:(0,E.jsxs)("div",{className:"virtual-assistant",ref:a,children:[(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__station",{"virtual-assistant__station--hidden":s.isHidden,"virtual-assistant__station--active":Boolean(l)}),children:[(0,E.jsx)("button",{className:"virtual-assistant__station__hide-button",title:"Hide assistant",onClick:()=>{o.assistantService.toggleAssistant()},children:(0,E.jsx)(nn,{})}),(0,E.jsx)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:c,title:s.isOpen?"Click to close assistant panel":(l?"Contextual support available.\n":"")+"Click to open Assistant...",children:(0,E.jsxs)("div",{className:"virtual-assistant__station__character",children:[(0,E.jsx)(un,{className:"virtual-assistant__station__character__hat"}),(0,E.jsx)(mn,{className:"virtual-assistant__station__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__station__character__beard"})]})}),(0,E.jsx)("div",{className:"virtual-assistant__station__label",onClick:c,children:"Assistant"}),(0,E.jsx)(xn,{className:(0,At.$)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(In,{children:[(0,E.jsx)(kn,{onClick:()=>{s.setIsOpen(!1),r((0,i.A)())},children:"Reset Position"}),(0,E.jsx)(kn,{onClick:()=>o.assistantService.hideAssistant(),children:"Hide Assistant"})]}),children:(0,E.jsx)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,E.jsx)(Kt,{})})})]},l?.uuid??""),!e&&s.isOpen&&!s.isHidden&&a.current&&(0,E.jsx)(Zn,{triggerElement:a.current})]})},n)}));var tr;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(tr||(tr={}));const nr=["Meta+KeyP","Control+KeyP","Meta+KeyS","Control+KeyS","F8","F10","F11","Meta+Shift+KeyP","Control+Backquote","Control+Shift+KeyN","Control+Shift+KeyP","Meta+KeyB","Control+KeyB","F7","Alt+F7","Control+Shift+KeyB","Alt+KeyZ"],rr=(e,t)=>{const n={};return e.forEach(((e,r)=>{e.length&&(n[r]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:nr,handler:(e,t)=>{t.preventDefault()}},n},or=e=>(0,E.jsx)("div",{className:"backdrop__container","data-elementid":e.elementId}),ir=(0,vt.PA)((e=>{const{children:t}=e,n=Pt(),r=rr(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{nr.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Ft.useEffect)((()=>{const e=ut(r);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[r]),(0,Ft.useEffect)((()=>{const e=()=>{document.hidden&&(Ge.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,E.jsxs)(Et,{children:[(0,E.jsx)(Ht,{}),(0,E.jsx)(Ut,{}),(0,E.jsx)(An,{}),(0,E.jsx)(er,{}),n.layoutService.showBackdrop&&(0,E.jsx)(bt.A,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??tr.BACKDROP_CONTAINER)??null,children:(0,E.jsx)(Ct.A,{className:"backdrop",open:n.layoutService.showBackdrop})}),(0,E.jsx)(_t.Q,{backend:Tt.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":tr.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(or,{elementId:tr.BACKDROP_CONTAINER}),t]})})]})})),ar=(0,vt.PA)((e=>{const{children:t}=e,n=Pt(),r=rr(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{nr.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Ft.useEffect)((()=>{const e=ut(r);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[r]),(0,E.jsx)(Et,{children:(0,E.jsx)(_t.Q,{backend:Tt.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":tr.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(or,{elementId:tr.BACKDROP_CONTAINER}),t]})})})})),sr={foreground:"#cccccc",background:"#1e1e1e",cursor:"#cccccc",selectionBackground:"#264f78",black:"#000000",red:"#cd3131",green:"#0dbc79",yellow:"#e5e510",blue:"#2472c8",magenta:"#bc3fbc",cyan:"#11a8cd",white:"#e5e5e5",brightBlack:"#666666",brightRed:"#f14c4c",brightGreen:"#23d18b",brightYellow:"#f5f543",brightBlue:"#3b8eea",brightMagenta:"#d670d6",brightCyan:"#29b8db",brightWhite:"#e5e5e5"},lr={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},cr=`\n${Je.BOLD}${Je.BRIGHT_BLUE}$purist${Je.RESET}\n${Je.BOLD}${Je.MAGENTA}❯${Je.RESET} `,ur="❯ ";class dr{terminal;regex;handler;constructor(e,t,n){this.terminal=e,this.regex=t,this.handler=n}provideLinks(e,t){t(this.computeLink(e).map((e=>({range:e.range,text:e.text,activate:this.handler}))))}computeLink(e){const[t,n]=this.translateBufferLineToStringWithWrap(e-1),r=new RegExp(this.regex.source,`${this.regex.flags||""}g`);let o,i=-1;const a=[];for(;null!==(o=r.exec(t));){const e=o[0];if(!e)break;if(i=t.indexOf(e,i+1),r.lastIndex=i+e.length,i<0)break;a.push({text:e,range:{start:this.stringIndexToBufferPosition(i,n,!1),end:this.stringIndexToBufferPosition(i+e.length-1,n,!0)}})}return a}translateBufferLineToStringWithWrap(e){let t,n,r="";do{const t=this.terminal.buffer.active.getLine(e);if(!t)break;t.isWrapped&&e--,n=t.isWrapped}while(n);const o=e;do{const n=this.terminal.buffer.active.getLine(e+1);t=!!n&&n.isWrapped;const o=this.terminal.buffer.active.getLine(e);if(!o)break;r+=o.translateToString(!0).substring(0,this.terminal.cols),e++}while(t);return[r,o]}stringIndexToBufferPosition(e,t,n){const r=this.terminal.buffer.active.getNullCell();for(;e;){const o=this.terminal.buffer.active.getLine(t);if(!o)return{x:0,y:0};const i=o.length;let a=0;for(;a<i;){if(o.getCell(a,r),(e-=r.getChars().length)<0)return{x:a+(n?r.getWidth():1),y:t+1};a+=r.getWidth()}t++}return{x:1,y:t+1}}}class gr extends tt{instance;resizer;renderer;searcher;linkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=ke.create();constructor(e){super(e),this.instance=new Ye.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:'"Roboto Mono", Menlo, Consolas, monospace',tabStopWidth:2,theme:sr,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new $e.FitAddon,this.searcher=new ze.SearchAddon,this.renderer=new Ke.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new I("Terminal is already set up");this.setupState.complete(),this.renderer.onContextLoss((()=>{this.renderer.dispose()})),this.instance.loadAddon(this.resizer),this.instance.loadAddon(this.searcher),this.instance.loadAddon(this.renderer),this.instance.loadAddon(new Xe.Unicode11Addon),this.instance.unicode.activeVersion="11",this.instance.attachCustomKeyEventHandler((e=>ct(e,"Control+KeyF")||ct(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(ct(e,"Control+KeyC")&&this.instance.hasSelection()||ct(e,"Control+KeyV")))),e?.webLinkProvider&&(this.linkProvider=this.instance.registerLinkProvider(new dr(this.instance,e.webLinkProvider.regex,e.webLinkProvider.handler))),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(ge.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE),`Found multiple duplicated terminal commands '${t}'`):this.commandRegistry.set(t,e)}))})),this.searcher.onDidChangeResults((e=>{this.setSearchResultCount(e.resultCount),this.setSearchCurrentResultIndex(e.resultIndex)})),this._TEMPORARY__onKeyListener=this.instance.onKey((({key:e,domEvent:t})=>{var n,r;if("ArrowUp"!==t.code)if("ArrowDown"!==t.code)if(this.commandHistoryNavigationIdx=void 0,"Enter"===t.code){if(this.command.trim()){const e=this.command,[t,...n]=e.replaceAll(/\s+/g," ").split(" ");if(this.addCommandToHistory(this.command),!t)return;const r=this.commandRegistry.get(t);if(!r)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,r.handler(n.map((e=>e.trim())),t,e).catch((()=>{})).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(ct(t,"Control+KeyD")||ct(t,"Control+KeyC")&&!this.instance.hasSelection())this.abort();else if("Backspace"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);else if("Delete"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);else if("ArrowLeft"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else if("ArrowRight"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else e.match(/^[A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]$/)?this.writeToCommand(e):(n=t,r=this.applicationStore,r.layoutService.getElementByID(tr.TOP_LEVEL_CONTAINER)?.dispatchEvent(new KeyboardEvent(n.type,n)));else void 0!==this.commandHistoryNavigationIdx&&this.setCommandFromHistory(0===this.commandHistoryNavigationIdx?void 0:this.commandHistoryNavigationIdx-1);else this.setCommandFromHistory(void 0!==this.commandHistoryNavigationIdx?this.commandHistoryNavigationIdx+1:0)})),this._TEMPORARY__onDataListener=this.instance.onData((e=>{e.length>1&&!e.startsWith("")&&this.writeToCommand(e.replaceAll(/[^A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]/g,"").trimEnd())}))}getCommandRange(){const e=this.instance.buffer.active,t=this.instance.cols,n=`${ur}${this.command}`,r=`${ur}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let o=0,i=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(P(e.getLine(n)).translateToString()===r){o=n,i+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}i+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:o,startX:2,endY:o+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:i}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,r=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))r||(r=!0);else if(r){n=t.cursorIdx-e-1;break}}else for(let e=t.cursorIdx+1;e<this.command.length;++e)if(this.command.charAt(e).match(/\w/))r||(r=!0);else if(r){n=e-t.cursorIdx-1;break}return void 0===n&&(n=e?t.cursorIdx:this.command.length-t.cursorIdx),e?-n:n}computeCursorMovement(e,t=!0){const n=this.instance.buffer.active,r=this.instance.cols,o=this.instance.rows,i=this.getCommandRange(),a=t?e<0?i.cursorIdx:this.command.length-i.cursorIdx:e,s=Math.min(Math.abs(e),a);let l=n.cursorX,c=n.cursorY,u=n.baseY+n.cursorY;e<0?(l=(r+(n.cursorX-s)%r)%r,c=n.cursorY-(s>n.cursorX?Math.ceil(s/r):0),u=c+n.baseY,c=Math.max(c,-1)):e>0&&(l=(n.cursorX+s)%r,c=n.cursorY+(n.cursorX+s>=r?Math.floor((n.cursorX+s)/r):0),u=c+n.baseY,c=Math.min(c,o-1));const d=u>n.viewportY+o?u-(n.viewportY+o):u<n.viewportY?u-n.viewportY:0;return{seq:Qe(c+1,l+1),scroll:d}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),r=this.command.slice(t.cursorIdx),o=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(o.scroll),this.instance.write(e+r+o.seq),this.setCommand(n+e+r)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,r=Math.min(Math.abs(e),n);let o,i,a;if(0===e)return;e<0?(o=this.command.slice(0,t.cursorIdx-r),i=this.command.slice(t.cursorIdx,this.command.length),a=-r):(o=this.command.slice(0,t.cursorIdx),i=this.command.slice(t.cursorIdx+r,this.command.length),a=0);const s=this.computeCursorMovement(a);this.instance.scrollLines(s.scroll),this.instance.write(Qe(t.startY+1,t.startX+1)+o+i+" ".repeat(r)+s.seq),this.setCommand(o+i)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new I("XTerm terminal has not been set up yet");this.instance.open(e)}dispose(){this.searcher.dispose(),this.resizer.dispose(),this.renderer.dispose(),this.linkProvider?.dispose(),this._TEMPORARY__onKeyListener?.dispose(),this._TEMPORARY__onDataListener?.dispose(),this.instance.dispose()}autoResize(){this.resizer.fit()}focus(){this.instance.focus()}addCommandToHistory(e){e!==this.commandHistory.at(0)&&this.commandHistory.unshift(e)}setCommandFromHistory(e){const t=void 0===e?this.currentCommandSearchString:this.commandHistory.filter((e=>e.startsWith(this.currentCommandSearchString))).at(e);if(void 0!==t){let n=this.getCommandRange();this.instance.write(Qe(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(Qe(n.endY+1,n.endX+1)),this.commandHistoryNavigationIdx=e}}setCommand(e){this.command=e,this.currentCommandSearchString=e,this.commandHistoryNavigationIdx=void 0}newCommand(){this.instance.write(cr),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${Je.DIM}(system: ${e})\n${Je.RESET}`))}flushScreen(){this.instance.write("c"),this.instance.reset()}get isFlushed(){const e=this.instance.buffer.active;let t=!0;for(let n=e.baseY+e.cursorY;n>-1;--n){const r=P(e.getLine(n)).translateToString();if(r.trim()){t=r!==ur;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(Je.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${Je.BRIGHT_BLACK}+-------------------------------------------------------+${Je.RESET}\n${Je.BRIGHT_BLACK}|${Je.RESET} ${Je.BRIGHT_GREEN}[@@]${Je.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${Je.BRIGHT_BLACK}|${Je.RESET}\n${Je.BRIGHT_BLACK}|${Je.RESET} ${Je.BRIGHT_GREEN}/|__|\\${Je.RESET} ${Je.BRIGHT_BLACK}|${Je.RESET}\n${Je.BRIGHT_BLACK}+--${Je.RESET} ${Je.BRIGHT_GREEN}d b${Je.RESET} ${Je.BRIGHT_BLACK}-----------------------------------------------+${Je.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,nt.A)(Array.from(e.values()),(e=>e.command)).map((e=>`${Je.BRIGHT_GREEN}${e.command.padEnd(30)}${Je.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${Je.DIM}${e.usage}${Je.RESET}`)).join("\n")}`)),this.abort()}showCommonANSIEscapeSequences(){this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write(`\nCommon ANSI Escape Sequences for Styling:\n\n${Object.entries(Je).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?it(e.trim().replace(/_+/gu," ").toLowerCase()):rt(e.trim()).split(/(?<chunk>[A-Z][a-z]+|[0-9]+)/).map((e=>e.toUpperCase()===e?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).filter(Boolean).join(" ").replace(/_+/gu," ").replace(/\s+/gu," "):"")(e).padEnd(20)}${Je.RESET} ${t.replace("","\\u001b")}`)).join("\n")}`),this.abort()}abort(){this.resetANSIStyling(),this.instance.write("\n"),this.newCommand(),this.instance.scrollToBottom(),this.isRunningCommand=!1}fail(e,t){t?.systemCommand&&this.newSystemCommand(t.systemCommand),this.instance.write(`\n${e}`),this.abort()}output(e,t){this.resetANSIStyling(),t?.clear&&!this.preserveLog||!t?.systemCommand||this.newSystemCommand(t.systemCommand),!this.preserveLog&&t?.clear?this.flushScreen():(this.preserveLog||this.isRunningCommand)&&this.instance.write("\n"),this.instance.write(e),this.resetANSIStyling(),this.instance.write("\n"),this.instance.scrollToBottom(),this.newCommand()}search(e){this.searcher.findNext(e,{decorations:lr,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive,incremental:!0})}clearSearch(){this.searcher.clearDecorations(),this.instance.clearSelection(),this.setSearchText(""),this.setSearchResultCount(void 0),this.setSearchCurrentResultIndex(void 0)}findPrevious(){this.searcher.findPrevious(this.searchConfig.searchText,{decorations:lr,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:lr,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}getContent(){const e=this.instance.buffer.active,t=[];for(let n=0;n<e.length;++n){const r=P(e.getLine(n));t.push(r.translateToString())}return t.join("\n").trimEnd()}copy(){this.instance.hasSelection()?this.applicationStore.clipboardService.copyTextToClipboard(this.instance.getSelection()).catch(this.applicationStore.alertUnhandledError):this.applicationStore.notificationService.notifyWarning("Ther terminal has no selection to copy")}copyAll(){this.applicationStore.clipboardService.copyTextToClipboard(this.getContent()).catch(this.applicationStore.alertUnhandledError)}}class pr{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new gr(e)}}const mr="(unknown)";class hr{applicationStore;currentUser=mr;constructor(e){(0,Ie.Gn)(this,{currentUser:Ie.sH,setCurrentUser:Ie.XI}),this.applicationStore=e}get isAnonymous(){return this.currentUser===mr}setCurrentUser(e){this.currentUser=e}}var fr,Er=n(75992);class br{get localStorage(){return P(window.localStorage,"'window.localStorage' object is not available in non-web environment")}setItem(e,t){this.localStorage.setItem(e,t)}getItem(e){return this.localStorage.getItem(e)}removeItem(e){this.localStorage.removeItem(e)}clear(){this.localStorage.clear()}hasItem(e){return this.localStorage.hasItem(e)}}class Cr{storeIndex;storageService;data;constructor(e,t){this.storageService=e,this.storeIndex=t,this.data=this.storageService.getIndex(this.storeIndex)??{}}getValue(e){return this.data[e]}getNumericValue(e){const t=this.getValue(e);return void 0!==t?$(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?Y(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?z(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!W(e))throw new O(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return F(this.data[e])}persistValue(e,t){void 0!==t?this.data[e]=t:delete this.data[e],this.storageService.updateIndex(this.storeIndex,this.data)}}class vr{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new br;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?R((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,Er.A)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class _r{applicationStore;plugins=[];constructor(e){this.applicationStore=e}registerPlugins(e){this.plugins=e}setup(){const e={userId:this.applicationStore.identityService.currentUser,appName:this.applicationStore.config.appName,appEnv:this.applicationStore.config.env,appVersion:this.applicationStore.config.appVersion,appSessionId:this.applicationStore.uuid,appStartTime:this.applicationStore.timeService.timestamp};this.plugins.forEach((t=>t.setup(e)))}logEvent(e,t){this.plugins.forEach((n=>n.logEvent(e,t)))}}class Tr{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,r=e.startTime,o=r+n,i={...t??{},...Object.fromEntries(e.records),total:n};let a=0;for(const e of this.interruptions)if(e>=r&&e<=o)a++;else if(e>o)break;return a>0?{...i,__numberOfInteruptions:a}:i}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(fr||(fr={}));const Nr={name:"Default Dark (default)",key:fr.DEFAULT_DARK,TEMPORARY__globalCSSClassName:"theme__default-dark",colors:{"data-access-overview.chart.access-granted":"#6a9955","data-access-overview.chart.access-approved":"#007acc","data-access-overview.chart.access-requested":"#fbbc05","data-access-overview.chart.access-not-granted":"#ea4646","data-access-overview.chart.unsupported-access":"#2d2d2d"}},Ar={name:"Legacy Light",key:fr.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},yr={name:"High-Contrast Light",key:fr.HIGH_CONTRAST_LIGHT,TEMPORARY__globalCSSClassName:"theme__hc-light",colors:{"data-access-overview.chart.access-granted":"#52a31d","data-access-overview.chart.access-approved":"#3d8df5","data-access-overview.chart.access-requested":"#f5c518","data-access-overview.chart.access-not-granted":"#fa5343","data-access-overview.chart.unsupported-access":"#e1e7ea"}};var Sr;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(Sr||(Sr={}));const xr={[Sr.COLOR_THEME]:{defaultValue:fr.DEFAULT_DARK}};class Ir{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,Ie.Gn)(this,{currentColorTheme:Ie.sH.ref,TEMPORARY__isLightColorThemeEnabled:Ie.EW,backdropContainerElementID:Ie.sH,showBackdrop:Ie.sH,setBackdropContainerElementID:Ie.XI,setShowBackdrop:Ie.XI,setColorTheme:Ie.XI}),this.applicationStore=e,this.colorThemeRegistry.set(fr.DEFAULT_DARK,Nr),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(c.create(ge.COLOR_THEME_CONFIGURATION_CHECK__FAILURE),`Found duplicated color themes with key '${e.key}'`):this.colorThemeRegistry.set(e.key,e)}));const t=this.applicationStore.settingService.getStringValue(Sr.COLOR_THEME)??fr.DEFAULT_DARK;this.currentColorTheme=P(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setWindowTitle(e){document.title=e}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==fr.DEFAULT_DARK}TEMPORARY__syncGlobalCSSClassName(e,t){t&&document.body.classList.remove(t.TEMPORARY__globalCSSClassName),document.body.classList.add(e.TEMPORARY__globalCSSClassName)}setColorTheme(e,t){const n=this.colorThemeRegistry.get(e);if(e===this.currentColorTheme.key||!n)return;const r=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,r),t?.persist&&this.applicationStore.settingService.persistValue(Sr.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??P(this.colorThemeRegistry.get(fr.DEFAULT_DARK)).colors?.[e]??"transparent"}}class kr{applicationStore;constructor(e){this.applicationStore=e}async copyTextToClipboard(e,t){await navigator.clipboard.writeText(e).catch((e=>{this.applicationStore.notificationService.notifyError(e)})).finally((()=>{t?.notifySuccessMessage&&this.applicationStore.notificationService.notifySuccess(t.notifySuccessMessage)}))}}class wr{navigator;constructor(e){this.navigator=e}}var Rr=n(42853);class Or{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new Cr(this.applicationStore.storageService,"application-settings-storage"),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraSettingConfigurationEntries?.()??[])).forEach((e=>{this.registry.has(e.key)?this.applicationStore.logService.warn(c.create(ge.SETTING_CONFIGURATION_CHECK__FAILURE),`Found duplicated setting with key '${e.key}'`):this.registry.set(e.key,e)}))}getNumericValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve numeric value for setting '${e}'`)}getStringValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve string value for setting '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve boolean value for setting '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||W(t))return t;this.applicationStore.logService.warn(c.create(ge.SETTING_RETRIVE_FAILURE),`Can't retrieve object value for setting '${e}'`)}persistValue(e,t){const n=this.registry.get(e)?.defaultValue;this.storage.persistValue(e,void 0!==n&&(0,Rr.A)(n,t)?void 0:t)}}class Lr{goToLocation(e,t){throw new k("Navigator does not support this operation")}reload(e){throw new k("Navigator does not support this operation")}goToAddress(e,t){throw new k("Navigator does not support this operation")}visitAddress(e){throw new k("Navigator does not support this operation")}generateAddress(e){throw new k("Navigator does not support this operation")}updateCurrentLocation(e){throw new k("Navigator does not support this operation")}updateCurrentZone(e){throw new k("Navigator does not support this operation")}resetZone(){throw new k("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new k("Navigator does not support this operation")}getCurrentAddress(){throw new k("Navigator does not support this operation")}getCurrentLocation(){throw new k("Navigator does not support this operation")}getCurrentLocationParameters(){throw new k("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new k("Navigator does not support this operation")}getCurrentZone(){throw new k("Navigator does not support this operation")}blockNavigation(e,t,n){throw new k("Navigator does not support this operation")}unblockNavigation(){throw new k("Navigator does not support this operation")}get isNavigationBlocked(){throw new k("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new k("Navigator does not support this operation")}}class Fr{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new Cr(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(void 0===t||W(t))return t;this.applicationStore.logService.warn(c.create(ge.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve object value for user data '${e}'`)}persistValue(e,t){this.storage.persistValue(e,t)}}const Br=e=>/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/.test(e);var Pr;!function(e){e.BUG_FIX="BUG_FIX",e.ENHANCEMENT="ENHANCEMENT"}(Pr||(Pr={}));const Dr="application.lastOpenedVersion";class jr{applicationStore;releaseNotes;showCurrentReleaseModal=!0;showReleaseLog=!1;isConfigured=!1;constructor(e){(0,Ie.Gn)(this,{showCurrentReleaseModal:Ie.sH,showReleaseLog:Ie.sH,isConfigured:Ie.sH,setShowCurrentRelease:Ie.XI,configure:Ie.XI,setReleaseLog:Ie.XI}),this.applicationStore=e}configure(e){this.isConfigured=!0,this.releaseNotes=(e=>e.map((e=>(M(e.version,"Release notes 'version' is missing"),e.notes?.map((e=>(M(e.type,"Release note 'type' is missing"),M(e.description,"Release note 'description' is missing"),e))),e))))(e)}setShowCurrentRelease(e){this.showCurrentReleaseModal=e}setReleaseLog(e){this.showReleaseLog=e}getViewedVersion(){return this.applicationStore.userDataService.getStringValue(Dr)}updateViewedVersion(){this.applicationStore.userDataService.persistValue(Dr,this.applicationStore.config.appVersion)}showVersion(e,t){const n=e.version;return!(!Br(n)||!Br(t)||1!==(r=t,n.localeCompare(r,void 0,{numeric:!0})));var r}showableVersions(){const e=this.getViewedVersion();if(e)return this.releaseNotes?.filter((t=>this.showVersion(t,e)))}}class Mr{uuid=(0,i.A)();extensionStates=[];config;pluginManager;initState=ke.create();platform;timeService;logService;storageService;userDataService;settingService;alertService;notificationService;identityService;commandService;keyboardShortcutsService;layoutService;clipboardService;terminalService;navigationService;navigationContextService;documentationService;assistantService;releaseNotesService;eventService;telemetryService;tracerService;constructor(e,t){this.config=e,this.pluginManager=t,this.timeService=new Tr,this.logService=new d,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new vr(this),this.settingService=new Or(this),this.userDataService=new Fr(this),this.alertService=new Lt(this),this.notificationService=new Nn,this.identityService=new hr(this),this.layoutService=new Ir(this),this.clipboardService=new kr(this),this.terminalService=new pr(this),this.commandService=new Ve(this),this.keyboardShortcutsService=new We(this),this.navigationService=new wr(new Lr),this.navigationContextService=new He(this),this.documentationService=new ye(this),this.assistantService=new Me(this),this.releaseNotesService=new jr(this),this.eventService=new Ue,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new _r(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new Re,this.tracerService.registerPlugins(t.getTracerServicePlugins()),this.extensionStates=this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationExtensionStateBuilders?.()??[])).map((e=>e(this))).filter(F)}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new I("Platform is already configured");this.platform=e,this.navigationService=new wr(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){w(e),this.notificationService.notifyError(e),this.logService.error(c.create(ge.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logUnhandledError(e),this.notificationService.notifyIllegalState(e.message)};logUnhandledError=e=>{this.logService.error(c.create(ge.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e)};guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}var Ur;!function(e){e.TAG_REQUEST="download-request",e.TAG_RESPONSE="download-response",e.STREAM_CLOSED="#stream-closed",e.STREAM_ABORTED="#stream-aborted"}(Ur||(Ur={}));class Gr{}class Hr extends Gr{debug(e,...t){console.debug(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}info(e,...t){console.info(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}warn(e,...t){console.warn(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}error(e,...t){console.error(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}class Vr{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;downloadHelperServiceWorkerPath;downloadHelper=!1;releaseNotes;constructor(e){this.pluginManager=e,this.logger=new Hr}setup(e){return this.baseAddress=M(e.baseAddress,"Can't setup application: 'baseAddress' is missing or empty"),this.pluginRegister=e.pluginRegister,this._isConfigured=!0,this}withBasePresets(e){return this.basePresets=e,this.withPresets([])}withBasePlugins(e){return this.basePlugins=e,this.withPlugins([])}withPresets(e){return this.pluginManager.usePresets([...this.basePresets,...e]),this}withPlugins(e){return this.pluginManager.usePlugins([...this.basePlugins,...e]),this}withDownloadHelper(e){return this.downloadHelper=!0,this.downloadHelperServiceWorkerPath=e,this}withReleaseNotes(e){return this.releaseNotes=e,this}setupApplicationStore(e){this.releaseNotes&&e.releaseNotesService.configure(this.releaseNotes)}async fetchApplicationConfiguration(){const e=new le;let t,n;try{t=await e.get(`${window.location.origin}${this.baseAddress}config.json`)}catch(e){w(e),this.logger.error(c.create(ge.APPLICATION_CONFIGURATION__FAILURE),e)}B(t,"Can't fetch Legend application configuration");try{n=await e.get(`${window.location.origin}${this.baseAddress}version.json`)}catch(e){w(e),this.logger.error(c.create(ge.APPLICATION_CONFIGURATION__FAILURE),e)}return B(n,"Can't fetch Legend application version"),[await this.configureApplication({configData:t,versionData:n,baseAddress:this.baseAddress}),t.extensions??{}]}async loadDocumentationRegistryData(e){const t={};await Promise.all([...e.documentationRegistryEntries,...this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraDocumentationRegistryEntries?.()??[]))].map((async e=>{try{const n=new le(e.simple?{options:{credentials:"omit"}}:{}),r=await n.get(M(e.url,"Can't load documentation registry: 'url' field is missing or empty"));B(r.entries,"Can't load documentation registry data: 'entries' field is missing");const o=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(r.entries).forEach((([e,n])=>{o&&!o.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){w(e),this.logger.warn(c.create(ge.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...Ae(t),...e.keyedDocumentationEntries]}async start(){B(this._isConfigured,"Legend application has not been configured properly. Make sure to run setup() before start()");try{const[e,t]=await this.fetchApplicationConfiguration();this.config=e,this.pluginRegister?.(this.pluginManager,this.config),this.pluginManager.configure(t),this.pluginManager.install(),await Promise.all([this.loadDocumentationRegistryData(e)]);const n=new Mr(this.config,this.pluginManager);await Promise.all(this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationSetups?.()??[])).map((e=>e(n)))),this.setupApplicationStore(n),await this.loadApplication(n),this.logger.info(c.create(ge.APPLICATION_LOAD__SUCCESS),"Legend application loaded"),this.downloadHelper&&function(e){if("serviceWorker"in navigator){const t=e??"/ServiceWorker.js";navigator.serviceWorker.register(t).then((e=>{console.debug(`register service worker success with path: ${t}`,e)})).catch((e=>{console.debug(`register service worker error with path: ${t}`,e)}))}}(this.downloadHelperServiceWorkerPath)}catch(e){throw w(e),this.logger.error(c.create(ge.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const Wr="legend-application-root";class Yr extends l{loggerPlugins=[];telemetryServicePlugins=[];tracerServicePlugins=[];eventNotifierPlugins=[];applicationPlugins=[];registerLoggerPlugin(e){this.loggerPlugins.push(e)}registerTelemetryServicePlugin(e){this.telemetryServicePlugins.push(e)}registerTracerServicePlugin(e){this.tracerServicePlugins.push(e)}registerEventNotifierPlugin(e){this.eventNotifierPlugins.push(e)}registerApplicationPlugin(e){this.applicationPlugins.push(e)}getLoggerPlugins(){return[...this.loggerPlugins]}getTelemetryServicePlugins(){return[...this.telemetryServicePlugins]}getTracerServicePlugins(){return[...this.tracerServicePlugins]}getEventNotifierPlugins(){return[...this.eventNotifierPlugins]}getApplicationPlugins(){return[...this.applicationPlugins]}}const $r=JSON.parse('{"rE":"16.0.18","XO":{"c":"@finos/legend-application-plugin-core"}}');class zr extends s{}n(18850);class Xr extends zr{static NAME=$r.XO.c;constructor(){super(Xr.NAME,$r.rE)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{}]}getExtraColorThemes(){return[Ar,yr]}getExtraSettingConfigurationEntries(){return e=xr,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class Kr{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=M(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=M(e.configData.env,"Can't configure application: 'env' field is missing or empty"),this.applicationStorageKey=e.configData.application?.storageKey??this.getDefaultApplicationStorageKey(),this.documentationUrl=e.configData.documentation?.url,this.documentationLinkEntries=(t=e.configData.documentation?.links??{},Object.entries(t).map((e=>({key:M(e[0],"Documentation link 'key' is missing"),label:M(e[1].label,"Documentation link 'label' is missing"),url:M(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=Ae(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=P(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=e.versionData.buildTime,this.appVersionCommitId=e.versionData.commitSHA}static resolveAbsoluteUrl(e){return e.trim().startsWith("/")?window.location.origin+e:e}}class qr extends Kr{replUrl;useDynamicREPLServer=!1;constructor(e){super(e),B(e.configData.repl,"Can't configure application: 'repl' field is missing"),this.replUrl=Kr.resolveAbsoluteUrl(M(e.configData.repl.url,"Can't configure application: 'repl.url' field is missing or empty")),void 0!==e.configData.repl.dynamic&&(this.useDynamicREPLServer=Boolean(e.configData.repl.dynamic))}getDefaultApplicationStorageKey(){return"legend-repl"}}var Jr,Qr=n(86234);function Zr(e){let t=e;for(;t.endsWith("/");)t=t.slice(0,-1);return t}class eo{navigate;baseUrl;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="",e.preventDefault())};onBlock;onNativePlatformNavigationBlock;constructor(e,t){(0,Ie.Gn)(this,{_isNavigationBlocked:Ie.sH,isNavigationBlocked:Ie.EW,blockNavigation:Ie.XI,unblockNavigation:Ie.XI}),this.navigate=e,this.baseUrl=t}get window(){return P(window,"Window object is not available in non-web environment")}goToLocation(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=this.generateAddress(e)};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}reload(e){e?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const t=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.reload()};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(t):t()}goToAddress(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=e};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}visitAddress(e){this.window.open(e,"_blank")}generateAddress(e){return this.window.location.origin+this.baseUrl+e}updateCurrentLocation(e){Promise.resolve(this.navigate(e)).catch((()=>{}))}updateCurrentZone(e){this.window.location.hash="#"+e}resetZone(){this.updateCurrentLocation(this.getCurrentLocation())}getCurrentBaseAddress(e){return e?.withAppRoot?this.generateAddress(""):this.window.location.origin}getCurrentAddress(){return this.window.location.href}getCurrentLocation(){return this.window.location.pathname.substring(this.baseUrl.length)}getCurrentLocationParameters(){const e={},t=ue((n=this.getCurrentAddress(),(0,J.J)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=de(n,t)})),e}getCurrentLocationParameterValue(e){return this.getCurrentLocationParameters()[e]}getCurrentZone(){return this.window.location.hash.substring(1)}blockNavigation(e,t,n){this._isNavigationBlocked=!0,this.onBlock=t,this.onNativePlatformNavigationBlock=n,this.window.history.pushState(null,"",this.getCurrentAddress()),this.window.onpopstate=()=>{window.history.forward(),this.onNativePlatformNavigationBlock?.()},this._blockCheckers=e,this.window.removeEventListener("beforeunload",this._beforeUnloadListener),this.window.addEventListener("beforeunload",this._beforeUnloadListener)}unblockNavigation(){this._isNavigationBlocked=!1,this.onBlock=void 0,this.window.onpopstate=null,this._blockCheckers=[],this.window.removeEventListener("beforeunload",this._beforeUnloadListener)}get isNavigationBlocked(){return this._isNavigationBlocked}INTERNAL__internalizeTransientParameter(e){const t=this.getCurrentZone(),n=this.getCurrentLocationParameters();var r,o;delete n[e],this.updateCurrentLocation((r=this.getCurrentLocation(),o=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),q.A.stringify(t)})(n),o?`${r}?${o}`:r)),this.updateCurrentZone(t)}}class to{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(Jr||(Jr={}));class no extends to{navigator;constructor(e,t){super(e),this.navigator=new eo(t.navigate,t.baseUrl)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(Jr.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(Jr.INITIAL_COLOR_THEME))}}const ro=(0,Ft.createContext)(void 0),oo=({children:e,baseUrl:t})=>{const n=Pt(),r=(0,Qr.Zp)(),o=(0,vt.iz)((()=>new no(n,{navigate:r,baseUrl:Zr(t)})));return(0,E.jsx)(ro.Provider,{value:o,children:e})},io=({children:e,baseUrl:t})=>(0,E.jsx)(Qr.Kd,{basename:Zr(t),children:(0,E.jsx)(oo,{baseUrl:t,children:e})});var ao=n(47262),so=n(25314),lo=n(95236),co=n(86251),uo=n(49787);const go={AdvancedSettings:uo.teB,AlertError:Vt.Zt1,AlertInfo:Vt.$Mj,AlertSuccess:Vt.U4T,AlertWarning:Vt.vDk,Calculate:uo.FZE,Calendar:uo.rOy,CaretDown:uo.UgJ,CaretRight:uo.Izh,Checkbox:ao.Pvj,CheckboxSelected:ao.Kad,ChevronLeft:uo.h$A,ChevronRight:uo.klJ,ChevronDown:uo.ciu,CircleChecked:uo.Vor,CircledFailed:uo.Viv,Clipboard:uo.lP0,Code:uo.sAL,ClockEdit:uo.xNI,Cube:uo.keA,Debug:uo.$mE,Documentation:uo.KHb,DocumentationHint:Vt.Jzf,FilterAddOperator:uo.r2j,FilterRemoveOperator:uo.$9n,FilterGroupOperator:uo.auD,FilterNotOperator:uo.vem,FontBold:so.ux7,FontCase:co.tEi,FontItalic:so.LPp,FontUnderline:so.dgX,FontStrikethrough:so.kKc,LetterCase:uo.XOD,Loader:uo.C5G,Menu:uo.Gb_,Note:uo.Jb_,Pin:zt.Cxm,Search:uo.PuI,Settings:uo.yRe,Table:uo.ZIs,TableColumn:uo.QKp,TableColumnOptions__Settings:uo.uRn,TableColumns:uo.N9Z,TableExtendedColumn:uo.w28,TableFilter:uo.XPy,TableFilterPlus:uo.VmB,TableFilterCode:uo.awR,TableGroupBy:uo.PAn,TableOptions:uo.v$W,TablePagination:so.Hs5,TablePivot:uo.ba8,TablePlus:uo.ZQn,TableRemoveColumn:uo.F6Q,TableRow:uo.wV0,TableRowColumn:uo.QE3,TableScroll:lo.cfM,TableSort:uo.r9t,TextAlignLeft:lo.T4j,TextAlignCenter:lo.roG,TextAlignRight:lo.QHN,User:uo.aGB,Window:zt.PV7,X:zt.D9N,Warning:uo.fQM,WarningCircle:uo.Ajk,WordWrap:Vt.LkA};class po{title;contentRenderer;window={};constructor(e,t){this.contentRenderer=t,this.title=e}}class mo{uuid=(0,i.A)();configuration;onClose;ownerId;specification;constructor(e,t,n){this.configuration=e,this.onClose=t,this.ownerId=n}setSpecification(e){this.specification=e}}const ho=50,fo={width:800,height:600,minWidth:300,minHeight:300,center:!0},Eo={width:500,height:200,minWidth:200,minHeight:80,center:!0};class bo{layout;configuration;ownerId;window;constructor(e,t,n,r){(0,Ie.Gn)(this,{window:Ie.sH,isOpen:Ie.EW,open:Ie.XI,close:Ie.XI}),this.layout=e,this.configuration=new po(t,n),this.configuration.window=fo,this.ownerId=r}get isOpen(){return Boolean(this.window)}open(){this.window?this.layout.bringWindowFront(this.window):(this.window=new mo(this.configuration,(()=>(0,Ie.h5)((()=>{this.window=void 0}))),this.ownerId),this.layout.newWindow(this.window,this.ownerId))}close(){this.window&&(this.layout.closeWindow(this.window),this.window=void 0)}}class Co{windows=[];constructor(){(0,Ie.Gn)(this,{windows:Ie.sH,newWindow:Ie.XI,bringWindowFront:Ie.XI,closeWindow:Ie.XI,closeWindows:Ie.XI})}newDisplay(e,t,n,r){const o=new bo(this,e,t,r);return n&&(o.configuration.window=n),o}newWindow(e,t){e.ownerId=e.ownerId??t,this.windows.push(e)}bringWindowFront(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),this.windows.push(e))}closeWindow(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),e.onClose?.())}closeWindows(e){this.windows=this.windows.filter((t=>!e.find((e=>e.uuid===t.uuid)))),e.forEach((e=>e.onClose?.()))}}class vo{uuid=(0,i.A)();manager;constructor(e){(0,Ie.Gn)(this,{windows:Ie.EW}),this.manager=e??new Co}get windows(){return this.manager.windows.filter((e=>e.ownerId===this.uuid))}newDisplay(e,t,n){return this.manager.newDisplay(e,t,n,this.uuid)}newWindow(e){this.manager.newWindow(e,this.uuid)}bringWindowFront(e){this.manager.bringWindowFront(e)}closeWindow(e){this.manager.closeWindow(e)}dispose(){this.manager.closeWindows(this.windows)}}const _o=e=>{const{parent:t,layout:n,windowState:r}=e,o=r.configuration.window,[i,a]=(0,Ft.useState)((()=>{if(r.specification)return r.specification;const e=o.x??ho,n=o.y??ho,i=o.width??800,a=o.height??600,s=t?.current??document.body,{width:l,height:c}=s.getBoundingClientRect();if(o.center){const e=i+100>l?l-100:i,t=a+100>c?c-100:a;return{x:(l-e)/2,y:(c-t)/2,width:e,height:t}}const u=i+Math.abs(e)+ho>l?l-Math.abs(e)-ho:i,d=a+Math.abs(n)+ho>c?c-Math.abs(n)-ho:a,g={x:e<0?l-Math.abs(e)-u:e,y:n<0?c-Math.abs(n)-d:n,width:u,height:d};return r.setSpecification(g),g})),s=e=>{a(e),r.setSpecification(e)};return(0,E.jsx)(Pn.p,{className:"absolute z-10",handle:`.data-cube__window-${r.uuid}`,position:{x:i.x,y:i.y},size:{width:i.width,height:i.height},minWidth:o.minWidth??300,minHeight:o.minHeight??300,onDragStop:(e,t)=>{s({...i,x:t.x,y:t.y})},dragHandleClassName:`data-cube__window-${r.uuid}`,onResize:(e,t,n,r,o)=>{s({...o,width:n.offsetWidth,height:n.offsetHeight})},enableResizing:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},resizeHandleStyles:{top:{cursor:"ns-resize"},right:{cursor:"ew-resize"},bottom:{cursor:"ns-resize"},left:{cursor:"ew-resize"},topRight:{cursor:"nesw-resize",width:14,height:14,top:-7,right:-7},bottomRight:{cursor:"nwse-resize",width:14,height:14,bottom:-7,right:-7},bottomLeft:{cursor:"nesw-resize",width:14,height:14,bottom:-7,left:-7},topLeft:{cursor:"nwse-resize",width:14,height:14,top:-7,left:-7}},children:(0,E.jsxs)("div",{className:"h-full w-full border border-neutral-400 bg-neutral-200 shadow-xl",onMouseDown:()=>{n.bringWindowFront(r)},children:[(0,E.jsxs)("div",{className:Mn(`data-cube__window-${r.uuid}`,"flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white active:cursor-move"),children:[(0,E.jsx)("div",{className:"px-2",children:r.configuration.title}),(0,E.jsx)("button",{className:"flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white",onClick:()=>n.closeWindow(r),children:(0,E.jsx)(go.X,{})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)] w-full overflow-auto",children:r.configuration.contentRenderer(r.configuration)})]})})},To=(0,vt.PA)((e=>{const{layout:t}=e;return(0,E.jsx)(E.Fragment,{children:t.windows.map((e=>(0,E.jsx)(_o,{layout:t,windowState:e},e.uuid)))})}));var No=n(29179);const Ao="monaco-editor-overflow-widgets-root";function yo(){return(0,E.jsx)("div",{id:Ao,className:"monaco-editor"})}var So=n(66813),xo=n(23993),Io=n(27802),ko=n(15428),wo=n(21598),Ro=n(99499),Oo=n(91937);const Lo=e=>Ro.sha1().update(e).digest("hex"),Fo=e=>Lo(e.filter(F).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?Lo(e):e.hashCode)).join(",")),Bo=(e,t)=>(U(W(e),"Can't hash non-object value"),Oo(e,t)),Po="::";var Do,jo,Mo,Uo,Go,Ho,Vo,Wo,Yo;!function(e){e.CORE="CORE",e.MAIN="ROOT",e.MODEL_GENERATION="MODEL_GENERATION_ROOT",e.SYSTEM="SYSTEM_ROOT",e.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT"}(Do||(Do={})),(Uo=jo||(jo={})).STRING="String",Uo.BOOLEAN="Boolean",Uo.BINARY="Binary",Uo.NUMBER="Number",Uo.INTEGER="Integer",Uo.FLOAT="Float",Uo.DECIMAL="Decimal",Uo.DATE="Date",Uo.STRICTDATE="StrictDate",Uo.DATETIME="DateTime",Uo.STRICTTIME="StrictTime",Uo.LATESTDATE="LatestDate",Uo.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest",e.Function_Test="functionTest"}(Mo||(Mo={})),function(e){e.ANY="meta::pure::metamodel::type::Any",e.NIL="meta::pure::metamodel::type::Nil",e.RELATION="meta::pure::metamodel::relation::Relation",e.PROFILE_DOC="meta::pure::profiles::doc",e.PROFILE_TEMPORAL="meta::pure::profiles::temporal",e.PROFILE="meta::pure::metamodel::extension::Profile",e.ENUMERATION="meta::pure::metamodel::type::Enumeration",e.MEASURE="meta::pure::metamodel::type::Measure",e.CLASS="meta::pure::metamodel::type::Class",e.ASSOCIATION="meta::pure::metamodel::relationship::Association",e.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",e.FLAT_DATA="meta::flatData::metamodel::FlatData",e.DATABASE="meta::relational::metamodel::Database",e.MAPPING="meta::pure::mapping::Mapping",e.SERVICE="meta::legend::service::metamodel::Service",e.CONNECTION="meta::pure::runtime::PackageableConnection",e.RUNTIME="meta::pure::runtime::PackageableRuntime",e.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",e.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",e.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",e.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",e.DATA_ELEMENT="meta::pure::data::DataElement",e.SNOWFLAKE_APP="meta::external::function::activator::snowflakeApp::SnowflakeApp",e.HOSTED_SERVICE="meta::external::function::activator::hostedService::HostedService",e.TABULAR_RESULT="meta::pure::mapping::Result"}(Go||(Go={})),function(e){e.BUSINESS_TEMPORAL="businesstemporal",e.PROCESSING_TEMPORAL="processingtemporal",e.BITEMPORAL="bitemporal"}(Ho||(Ho={})),function(e){e.ALL_VERSIONS="AllVersions",e.ALL_VERSIONS_IN_RANGE="AllVersionsInRange"}(Vo||(Vo={})),function(e){e.CLASS="CLASS",e.STORE="STORE",e.MAPPING="MAPPING",e.RUNTIME="RUNTIME",e.FUNCTION="FUNCTION",e.FILE_GENERATION="FILE_GENERATION",e.SERVICE="SERVICE",e.DATA="DATA",e.ENUMERATION="ENUMERATION",e.ASSOCIATION="ASSOCIATION",e.BINDING="BINDING"}(Wo||(Wo={})),function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(Yo||(Yo={}));const $o="yyyy-MM-dd",zo={transparent:"#00000000",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}};var Xo,Ko,qo,Jo,Qo,Zo,ei,ti,ni,ri,oi,ii,ai,si,li,ci;function ui(e){switch(e){case jo.NUMBER:case jo.INTEGER:case jo.DECIMAL:case jo.FLOAT:return li.NUMBER;case jo.DATE:case jo.STRICTDATE:return li.DATE;case jo.DATETIME:return li.TIME;case jo.STRING:default:return li.TEXT}}function di(e,t){return t.includes(ui(e))}(ci=Xo||(Xo={})).EXTEND="meta::pure::functions::relation::extend",ci.FILTER="meta::pure::functions::relation::filter",ci.GROUP_BY="meta::pure::functions::relation::groupBy",ci.LIMIT="meta::pure::functions::relation::limit",ci.PIVOT="meta::pure::functions::relation::pivot",ci.SELECT="meta::pure::functions::relation::select",ci.SLICE="meta::pure::functions::relation::slice",ci.SORT="meta::pure::functions::relation::sort",ci.CAST="meta::pure::functions::lang::cast",ci.FROM="meta::pure::mapping::from",ci.ASCENDING="meta::pure::functions::relation::ascending",ci.DESCENDING="meta::pure::functions::relation::descending",ci.ABS="meta::pure::functions::math::abs",ci.AND="meta::pure::functions::boolean::and",ci.OR="meta::pure::functions::boolean::or",ci.NOT="meta::pure::functions::boolean::not",ci.TO_LOWERCASE="meta::pure::functions::string::toLower",ci.CONTAINS="meta::pure::functions::string::contains",ci.ENDS_WITH="meta::pure::functions::string::endsWith",ci.EQUAL="meta::pure::functions::boolean::equal",ci.GREATER_THAN="meta::pure::functions::boolean::greaterThan",ci.GREATER_THAN_OR_EQUAL="meta::pure::functions::boolean::greaterThanEqual",ci.IN="meta::pure::functions::collection::in",ci.IS_EMPTY="meta::pure::functions::collection::isEmpty",ci.LESS_THAN="meta::pure::functions::boolean::lessThan",ci.LESS_THAN_OR_EQUAL="meta::pure::functions::boolean::lessThanEqual",ci.STARTS_WITH="meta::pure::functions::string::startsWith",ci.AVERAGE="meta::pure::functions::math::average",ci.COUNT="meta::pure::functions::collection::count",ci.DISTINCT="meta::pure::functions::collection::distinct",ci.FIRST="meta::pure::functions::collection::first",ci.JOIN_STRINGS="meta::pure::functions::string::joinStrings",ci.LAST="meta::pure::functions::collection::last",ci.MAX="meta::pure::functions::collection::max",ci.MIN="meta::pure::functions::collection::min",ci.SUM="meta::pure::functions::math::sum",ci.STANDARD_DEVIATION_POPULATION="meta::pure::functions::math::stdDevPopulation",ci.STANDARD_DEVIATION_SAMPLE="meta::pure::functions::math::stdDevSample",ci.UNIQUE_VALUE_ONLY="meta::pure::functions::collection::uniqueValueOnly",ci.VARIANCE_POPULATION="meta::pure::functions::math::variancePopulation",ci.VARIANCE_SAMPLE="meta::pure::functions::math::varianceSample",function(e){e.BASIS_POINT="Basis Points (bp)",e.PERCENT="Percent (%)",e.THOUSANDS="Thousands (k)",e.MILLIONS="Millions (m)",e.BILLIONS="Billions (b)",e.TRILLIONS="Trillions (t)",e.AUTO="Auto (k/m/b/t)"}(Ko||(Ko={})),function(e){e.ARIAL="Arial",e.ROBOTO="Roboto",e.ROBOTO_CONDENSED="Roboto Condensed",e.TIMES_NEW_ROMAN="Times New Roman",e.GEORGIA="Georgia",e.ROBOTO_SERIF="Roboto Serif",e.JERBRAINS_MONO="Jetbrains Mono",e.ROBOTO_MONO="Roboto Mono",e.UBUNTU_MONO="Ubuntu Mono"}(qo||(qo={})),function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(Jo||(Jo={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Qo||(Qo={})),function(e){e.SOLID="solid",e.DASHED="dashed",e.DOTTED="dotted",e.DOUBLE="double",e.WAVY="wavy"}(Zo||(Zo={})),function(e){e.MEASURE="Measure",e.DIMENSION="Dimension"}(ei||(ei={})),function(e){e.COLUMN="COLUMN"}(ti||(ti={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.COUNT="count",e.MIN="min",e.MAX="max",e.UNIQUE="uniq",e.FIRST="first",e.LAST="last",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample",e.JOIN_STRINGS="strjoin"}(ni||(ni={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.MEDIAN="median",e.COUNT="count",e.MIN="min",e.MAX="max",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample"}(ri||(ri={})),function(e){e.LESS_THAN="<",e.LESS_THAN_OR_EQUAL="<=",e.EQUAL="=",e.NOT_EQUAL="!=",e.GREATER_THAN=">",e.GREATER_THAN_OR_EQUAL=">=",e.IN="in",e.NOT_IN="not in",e.IS_NULL="is null",e.IS_NOT_NULL="is not null",e.EQUAL_CASE_INSENSITIVE="= (case-insensitive)",e.NOT_EQUAL_CASE_INSENSITIVE="!= (case-insensitive)",e.IN_CASE_INSENSITIVE="in (case-insensitive)",e.NOT_IN_CASE_INSENSITIVE="not in (case-insensitive)",e.CONTAIN="contains",e.CONTAIN_CASE_INSENSITIVE="contains (case-insensitive)",e.NOT_CONTAIN="does not contain",e.START_WITH="starts with",e.START_WITH_CASE_INSENSITIVE="starts with (case-insensitive)",e.NOT_START_WITH="does not start with",e.END_WITH="ends with",e.END_WITH_CASE_INSENSITIVE="ends with (case-insensitive)",e.NOT_END_WITH="does not end with",e.LESS_THAN_COLUMN="< value in column",e.LESS_THAN_OR_EQUAL_COLUMN="<= value in column",e.EQUAL_COLUMN="= value in column",e.EQUAL_CASE_INSENSITIVE_COLUMN="= (case-insensitive) value in column",e.NOT_EQUAL_COLUMN="!= value in column",e.NOT_EQUAL_CASE_INSENSITIVE_COLUMN="!= (case-insensitive) value in column",e.GREATER_THAN_COLUMN="> value in column",e.GREATER_THAN_OR_EQUAL_COLUMN=">= value in column"}(oi||(oi={})),function(e){e.AND="and",e.OR="or"}(ii||(ii={})),function(e){e.ASCENDING="Ascending",e.DESCENDING="Descending"}(ai||(ai={})),function(e){e.LEFT="Left",e.RIGHT="Right"}(si||(si={})),function(e){e.NUMBER="Numeric",e.TEXT="Text",e.DATE="Date",e.TIME="Time"}(li||(li={}));const gi="__|__";function pi(e){return e.includes(gi)}function mi(e){if(!pi(e))throw new I(`Column '${e}' is not a pivot result column`);return e.substring(e.lastIndexOf(gi)+5)}const hi="__/__",fi="x",Ei="New Report",bi=ai.ASCENDING,Ci="[ROOT]",vi="dataCube.linkLabel",_i=zo.neutral[300],Ti="#d7e0eb",Ni=qo.ROBOTO,Ai=!1,yi=!1,Si=void 0,xi=!1,Ii=Jo.LEFT,ki=zo.black,wi=zo.transparent,Ri=zo.white,Oi=zo.red[500],Li=zo.neutral[400],Fi=zo.blue[600],Bi="(None)";class Pi{name;type;kind=ei.DIMENSION;displayName;decimals;displayCommas=!1;negativeNumberInParens=!1;numberScale;missingValueDisplayText;unit;fontFamily;fontSize;fontBold;fontItalic;fontUnderline;fontStrikethrough;fontCase;textAlign;normalForegroundColor;negativeForegroundColor;zeroForegroundColor;errorForegroundColor;normalBackgroundColor;negativeBackgroundColor;zeroBackgroundColor;errorBackgroundColor;isSelected=!0;hideFromView=!1;blur=!1;fixedWidth;minWidth;maxWidth;pinned;displayAsLink=!1;linkLabelParameter;aggregateOperator;aggregationParameters=[];excludedFromPivot=!0;pivotSortDirection;pivotStatisticColumnFunction;constructor(e,t){this.name=e,this.type=t}static serialization=new me((0,pe.PL)(Pi,{aggregateOperator:(0,pe.MY)(),aggregationParameters:(0,pe.p_)((0,pe.lS)()),blur:(0,pe.MY)(),decimals:(0,pe.lq)((0,pe.MY)()),displayAsLink:(0,pe.MY)(),displayCommas:(0,pe.MY)(),displayName:(0,pe.lq)((0,pe.MY)()),errorBackgroundColor:(0,pe.lq)((0,pe.MY)()),errorForegroundColor:(0,pe.lq)((0,pe.MY)()),excludedFromPivot:(0,pe.MY)(),fixedWidth:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.lq)((0,pe.MY)()),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.lq)((0,pe.MY)()),fontItalic:(0,pe.lq)((0,pe.MY)()),fontSize:(0,pe.lq)((0,pe.MY)()),fontStrikethrough:(0,pe.lq)((0,pe.MY)()),fontUnderline:(0,pe.lq)((0,pe.MY)()),hideFromView:(0,pe.MY)(),isSelected:(0,pe.MY)(),kind:(0,pe.MY)(),linkLabelParameter:(0,pe.lq)((0,pe.MY)()),maxWidth:(0,pe.lq)((0,pe.MY)()),minWidth:(0,pe.lq)((0,pe.MY)()),missingValueDisplayText:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.lq)((0,pe.MY)()),negativeForegroundColor:(0,pe.lq)((0,pe.MY)()),normalBackgroundColor:(0,pe.lq)((0,pe.MY)()),normalForegroundColor:(0,pe.lq)((0,pe.MY)()),negativeNumberInParens:(0,pe.MY)(),numberScale:(0,pe.lq)((0,pe.MY)()),pinned:(0,pe.lq)((0,pe.MY)()),pivotSortDirection:(0,pe.lq)((0,pe.MY)()),pivotStatisticColumnFunction:(0,pe.lq)((0,pe.MY)()),textAlign:(0,pe.lq)((0,pe.MY)()),type:(0,pe.MY)(),unit:(0,pe.lq)((0,pe.MY)()),zeroBackgroundColor:(0,pe.lq)((0,pe.MY)()),zeroForegroundColor:(0,pe.lq)((0,pe.MY)())}));serialize(){return Pi.serialization.toJson(this)}}class Di{expandedPaths=[];static serialization=new me((0,pe.PL)(Di,{expandedPaths:(0,pe.p_)((0,pe.MY)())}));serialize(){return Di.serialization.toJson(this)}}class ji{name=Ei;description;columns=[];showHorizontalGridLines=!1;showVerticalGridLines=!0;gridLineColor=_i;fontFamily=Ni;fontSize=11;fontBold=Ai;fontItalic=yi;fontUnderline=Si;fontStrikethrough=xi;fontCase=void 0;textAlign=Ii;normalForegroundColor=ki;negativeForegroundColor=Oi;zeroForegroundColor=Li;errorForegroundColor=Fi;normalBackgroundColor=wi;negativeBackgroundColor=wi;zeroBackgroundColor=wi;errorBackgroundColor=wi;alternateRows=!1;alternateRowsStandardMode=!0;alternateRowsColor=Ti;alternateRowsCount=1;showSelectionStats=!1;showWarningForTruncatedResult=!0;initialExpandLevel;showRootAggregation=!1;showLeafCount=!0;treeColumnSortDirection=bi;pivotStatisticColumnName="Total";pivotStatisticColumnPlacement;pivotLayout=new Di;static serialization=new me((0,pe.PL)(ji,{alternateRows:(0,pe.MY)(),alternateRowsColor:(0,pe.MY)(),alternateRowsCount:(0,pe.MY)(),alternateRowsStandardMode:(0,pe.MY)(),columns:(0,pe.p_)(he(Pi.serialization.schema)),errorBackgroundColor:(0,pe.MY)(),errorForegroundColor:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.MY)(),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.MY)(),fontItalic:(0,pe.MY)(),fontSize:(0,pe.MY)(),fontStrikethrough:(0,pe.MY)(),fontUnderline:(0,pe.lq)((0,pe.MY)()),gridLineColor:(0,pe.MY)(),initialExpandLevel:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.MY)(),negativeForegroundColor:(0,pe.MY)(),normalBackgroundColor:(0,pe.MY)(),normalForegroundColor:(0,pe.MY)(),pivotStatisticColumnName:(0,pe.MY)(),pivotStatisticColumnPlacement:(0,pe.lq)((0,pe.MY)()),pivotLayout:he(Di.serialization.schema),showHorizontalGridLines:(0,pe.MY)(),showLeafCount:(0,pe.MY)(),showSelectionStats:(0,pe.MY)(),showRootAggregation:(0,pe.MY)(),showVerticalGridLines:(0,pe.MY)(),showWarningForTruncatedResult:(0,pe.MY)(),textAlign:(0,pe.MY)(),treeColumnSortDirection:(0,pe.MY)(),zeroBackgroundColor:(0,pe.MY)(),zeroForegroundColor:(0,pe.MY)()}));serialize(){return ji.serialization.toJson(this)}clone(){return ji.serialization.fromJson(ji.serialization.toJson(this))}}class Mi{}class Ui extends Mi{name;multiplicity;genericType;accept_ValueSpecificationVisitor(e){return e.visit_Variable(this)}}class Gi{subTrees=[];subTypeTrees=[]}var Hi,Vi;(Vi=Hi||(Hi={})).INTERNAL__UNKNOWN_ELEMENT="INTERNAL__UNKNOWN_ELEMENT",Vi.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",Vi.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",Vi.PACKAGE="PACKAGE",Vi.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",Vi.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",Vi.PROFILE="PROFILE",Vi.TAG_POINTER="TAG_POINTER",Vi.STEREOTYPE_POINTER="STEREOTYPE_POINTER",Vi.TAGGED_VALUE="TAGGED_VALUE",Vi.ENUMERATION="ENUMERATION",Vi.ENUM_VALUE="ENUM_VALUE",Vi.CLASS="CLASS",Vi.PROPERTY="PROPERTY",Vi.PROPERTY_DEFAULT_VALUE="PROPERTY_DEFAULT_VALUE",Vi.PROPERTY_POINTER="PROPERTY_POINTER",Vi.MULTIPLICITY="MULTIPLICITY",Vi.CONSTRAINT="CONSTRAINT",Vi.DERIVED_PROPERTY="DERIVED_PROPERTY",Vi.ASSOCIATION="ASSOCIATION",Vi.FUNCTION="FUNCTION",Vi.MEASURE="MEASURE",Vi.UNIT="UNIT",Vi.FUNCTION_TEST_SUITE="FUNCTION_TEST_SUITE",Vi.FUNCTION_TEST="FUNCTION_TEST",Vi.FUNCTION_STORE_TEST_DATA="FUNCTION_STORE_TEST_DATA",Vi.FUNCTION_PARAMETER_VALUE="FUNCTION_PARAMETER_VALUE",Vi.FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES="FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES",Vi.ASSERT_FAIL="ASSERT_FAIL",Vi.ASSERT_PASS="ASSERT_PASS",Vi.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",Vi.EQUAL_TO="EQUAL_TO",Vi.EQUAL_TO_JSON="EQUAL_TO_JSON",Vi.EQUAL_TO_TDS="EQUAL_TO_TDS",Vi.SECTION_INDEX="SECTION_INDEX",Vi.SECTION="SECTION",Vi.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",Vi.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",Vi.RAW_LAMBDA="RAW_LAMBDA",Vi.RAW_VARIABLE="RAW_VARIABLE",Vi.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",Vi.BINDING_TRANSFORMER="BINDING_TRANSFORMER",Vi.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",Vi.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",Vi.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",Vi.EXPRESSION="EXPRESSION",Vi.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",Vi.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",Vi.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",Vi.INSTANCE_VALUE="INSTANCE_VALUE",Vi.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",Vi.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",Vi.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",Vi.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",Vi.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",Vi.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",Vi.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",Vi.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",Vi.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",Vi.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",Vi.FUNCTION_TYPE="FUNCTION_TYPE",Vi.LAMBDA_FUNCTION="LAMBDA_FUNCTION",Vi.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",Vi.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",Vi.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",Vi.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",Vi.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",Vi.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",Vi.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",Vi.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",Vi.RELATION_COL_SPEC_ARRAY="RELATION_COL_SPEC_ARRAY",Vi.RELATION_COL_SPEC="RELATION_COL_SPEC",Vi.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_STORE",Vi.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",Vi.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",Vi.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",Vi.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",Vi.MAPPING="MAPPING",Vi.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",Vi.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",Vi.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",Vi.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",Vi.ENUMERATION_MAPPING="ENUMERATION_MAPPING",Vi.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",Vi.SET_IMPLEMENTATION="SET_IMPLEMENTATION",Vi.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",Vi.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",Vi.PROPERTY_MAPPING="PROPERTY_MAPPING",Vi.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",Vi.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",Vi.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",Vi.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",Vi.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",Vi.MAPPING_TEST="MAPPING_TEST",Vi.STORE_TEST_DATA="STORE_TEST_DATA",Vi.INPUT_DATA="INPUT_DATA",Vi.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",Vi.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",Vi.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",Vi.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",Vi.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",Vi.FILTER_MAPPING="FILTER_MAPPING",Vi.COLUMN_MAPPING="COLUMN_MAPPING",Vi.GROUP_BY_MAPPING="GROUP_BY_MAPPING",Vi.RUNTIME="RUNTIME",Vi.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",Vi.ENGINE_RUNTIME="ENGINE_RUNTIME",Vi.SINGLE_ENGINE_RUNTIME="SINGLE_ENGINE_RUNTIME",Vi.LEGACY_RUNTIME="LEGACY_RUNTIME",Vi.RUNTIME_POINTER="RUNTIME_POINTER",Vi.STORE_CONNECTIONS="STORE_CONNECTIONS",Vi.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",Vi.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",Vi.CONNECTION_POINTER="CONNECTION_POINTER",Vi.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",Vi.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",Vi.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",Vi.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",Vi.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",Vi.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",Vi.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",Vi.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",Vi.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",Vi.GENERATION_TREE="GENERATION_TREE",Vi.GENERATION_TREE_NODE="GENERATION_TREE_NODE",Vi.FILE_GENERATION="FILE_GENERATION",Vi.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",Vi.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",Vi.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",Vi.MODEL_STORE_DATA="MODEL_STORE_DATA",Vi.MODEL_DATA="MODEL_DATA",Vi.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",Vi.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",Vi.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",Vi.DATA_ELEMENT="DATA_ELEMENT",Vi.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",Vi.RELATIONAL_TDS="RELATIONAL_TDS",Vi.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",Vi.BINDING="BINDING",Vi.SCHEMA_SET="SCHEMA_SET",Vi.SCHEMA="SCHEMA",Vi.MODEL_UNIT="MODEL_UNIT",Vi.URL_STREAM="URL_STREAM",Vi.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",Vi.SERVICE="SERVICE",Vi.SERVICE_OWNER="SERVICE_OWNER",Vi.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",Vi.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",Vi.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",Vi.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",Vi.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",Vi.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",Vi.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",Vi.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",Vi.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",Vi.SERVICE_TEST_DATA="SERVICE_TEST_DATA",Vi.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",Vi.SERVICE_TEST="SERVICE_TEST",Vi.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",Vi.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",Vi.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",Vi.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",Vi.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",Vi.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",Vi.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",Vi.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",Vi.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",Vi.DATABASE="DATABASE",Vi.DATABASE_SCHEMA="DATABASE_SCHEMA",Vi.DATABASE_JOIN="DATABASE_JOIN",Vi.DATABASE_FILTER="DATABASE_FILTER",Vi.DATBASE_VIEW="DATBASE_VIEW",Vi.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",Vi.DATABASE_SCHEMA_TABULARFUNCTION="DATABASE_SCHEMA_TABULARFUNCTION",Vi.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",Vi.RELATIONAL="RELATIONAL",Vi.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",Vi.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",Vi.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",Vi.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",Vi.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",Vi.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",Vi.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",Vi.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",Vi.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",Vi.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",Vi.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",Vi.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",Vi.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",Vi.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",Vi.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",Vi.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",Vi.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",Vi.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",Vi.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",Vi.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",Vi.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",Vi.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",Vi.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",Vi.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",Vi.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",Vi.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",Vi.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Vi.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Vi.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",Vi.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Vi.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Vi.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Vi.BUSINESS_MILESTONING="BUSINESS_MILESTONING",Vi.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",Vi.PROCESSING_MILESTONING="PROCESSING_MILESTONING",Vi.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",Vi.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",Vi.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",Vi.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",Vi.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",Vi.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",Vi.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",Vi.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",Vi.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",Vi.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",Vi.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",Vi.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",Vi.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",Vi.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",Vi.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",Vi.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",Vi.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Vi.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",Vi.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",Vi.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Vi.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",Vi.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",Vi.SCHEMA_MAPPER="SCHEMA_MAPPER",Vi.TABLE_MAPPER="TABLE_MAPPER",Vi.FLAT_DATA="FLAT_DATA",Vi.FLAT_DATA_SECTION="FLAT_DATA_SECTION",Vi.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",Vi.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",Vi.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",Vi.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",Vi.FLAT_DATA_STRING="FLAT_DATA_STRING",Vi.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",Vi.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",Vi.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",Vi.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",Vi.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",Vi.FLAT_DATA_DATE="FLAT_DATA_DATE",Vi.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",Vi.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",Vi.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",Vi.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",Vi.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",Vi.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",Vi.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",Vi.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER",Vi.SNOWFLAKE_APP="SNOWFLAKE_APP",Vi.HOSTED_SERVICE="HOSTED_SERVICE",Vi.HOSTED_SERVICE_OWNER="HOSTED_SERVICE_OWNER",Vi.RELATION_TYPE="RELATION_TYPE",Vi.RELATION_COLUMN="RELATION_COLUMN";class Wi extends Gi{class;accept_GraphFetchTreeVisitor(e){return e.visit_RootGraphFetchTree(this)}get hashCode(){return Fo([Hi.ROOT_GRAPH_FETCH_TREE,Fo(this.subTrees),Fo(this.subTypeTrees),this.class])}}class Yi{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return Fo([Hi.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Yi(0,0);static ZERO_ONE=new Yi(0,1);static ZERO_MANY=new Yi(0,void 0);static ONE=new Yi(1,1);static ONE_MANY=new Yi(1,void 0)}class $i extends Mi{multiplicity=Yi.ONE}class zi extends $i{body=[];parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_Lambda(this)}}class Xi extends Mi{multiplicity=Yi.ONE}class Ki{name;startType;path=[]}class qi extends Mi{multiplicity=Yi.ONE}class Ji extends qi{function;fControl;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedFunction(this)}}class Qi extends Mi{multiplicity=Yi.ONE_MANY;values=[];accept_ValueSpecificationVisitor(e){return e.visit_Collection(this)}}class Zi extends Xi{}class ea extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CDecimal(this)}}class ta extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CInteger(this)}}class na extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CString(this)}}class ra extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CFloat(this)}}class oa extends Zi{}class ia extends oa{value;accept_ValueSpecificationVisitor(e){return e.visit_CDateTime(this)}}class aa extends oa{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictDate(this)}}class sa extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictTime(this)}}class la extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CBoolean(this)}}class ca{mapFn;aggregateFn}class ua{first;second}class da{runtime}class ga{executionContext}class pa extends Gi{property;parameters=[];alias;subType;accept_GraphFetchTreeVisitor(e){return e.visit_PropertyGraphFetchTree(this)}get hashCode(){return Fo([Hi.PROPERTY_GRAPH_FETCH_TREE,Fo(this.subTrees),this.property,this.alias??"",this.subType??""])}}class ma extends Gi{subTypeClass;accept_GraphFetchTreeVisitor(e){return e.visit_SubTypeGraphFetchTree(this)}get hashCode(){return Fo([Hi.SUBTYPE_GRAPH_FETCH_TREE,Fo(this.subTrees),this.subTypeClass])}}class ha{includeType;typeKeyName;includeEnumType;removePropertiesWithNullValues;removePropertiesWithEmptySets;fullyQualifiedTypePath;includeObjectReference}class fa extends $i{add;expression;key;accept_ValueSpecificationVisitor(e){return e.visit_KeyExpression(this)}}class Ea{values=[]}class ba{name;pmapFn;aggregateFn}class Ca{name;columnFn}class va{column;direction}class _a{function}class Ta{function;columnName}class Na{colSpecs=[]}class Aa{name;type;function1;function2}class ya{path=[]}class Sa{package;name;get path(){return`${this.package}${Po}${this.name}`}get hashCode(){return Fo([Hi.PACKAGEABLE_ELEMENT,this.path])}}const xa=new me((0,pe.PL)(class{sourceId;startLine;startColumn;endLine;endColumn},{sourceId:(0,pe.MY)(),startLine:(0,pe.MY)(),startColumn:(0,pe.MY)(),endLine:(0,pe.MY)(),endColumn:(0,pe.MY)()}));class Ia{package;name;sourceInformation;static serialization=new me((0,pe.PL)(Ia,{package:(0,pe.MY)(),name:(0,pe.MY)(),sourceInformation:be(xa.schema)}))}(0,pe.PL)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return Fo([Hi.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())});const ka=(0,pe.PL)(Yi,{lowerBound:(0,pe.MY)(),upperBound:(0,pe.lq)((0,pe.MY)())}),wa=((0,pe.PL)(class{profile;value;get hashCode(){return Fo([Hi.STEREOTYPE_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}),(0,pe.PL)(class{profile;value;get hashCode(){return Fo([Hi.TAG_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}));(0,pe.PL)(class{tag;value;get hashCode(){return Fo([Hi.TAGGED_VALUE,this.tag,this.value])}},{tag:he(wa),value:(0,pe.MY)()});class Ra{}class Oa extends Ra{property;parameters=[]}class La extends qi{class;property;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedProperty(this)}}class Fa{}class Ba extends Fa{mappings=[];connectionStores=[];connections=[];get hashCode(){return Fo([Hi.ENGINE_RUNTIME,Fo(this.mappings),Fo(this.connectionStores),Fo(this.connections)])}}class Pa extends Ba{get hashCode(){return Fo([Hi.SINGLE_ENGINE_RUNTIME,Fo(this.mappings),Fo(this.connectionStores),Fo(this.connections)])}}class Da extends Fa{runtime;get hashCode(){return Fo([Hi.RUNTIME_POINTER,this.runtime])}}var ja;!function(e){e.RUNTIME_POINTER="runtimePointer",e.LEGACY_RUNTIME="legacyRuntime",e.ENGINE_RUNTIME="engineRuntime",e.SINGLE_ENGINE_RUNTIME="localEngineRuntime"}(ja||(ja={}));const Ma=(0,pe.PL)(Da,{_type:fe(ja.RUNTIME_POINTER),runtime:(0,pe.MY)()});(0,pe.PL)(class extends Sa{runtimeValue;get hashCode(){return Fo([Hi.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}},{_type:fe("runtime"),name:(0,pe.MY)(),package:(0,pe.MY)(),runtimeValue:(0,pe.Ie)((e=>{return(t=e)instanceof Pa?(0,pe.lK)(Pa,t):(0,pe.lK)(Ba,t);var t}),(e=>{return(t=e)._type===ja.SINGLE_ENGINE_RUNTIME?(0,pe.iu)(Pa,t):(0,pe.iu)(Ba,t);var t}))});class Ua{queryTimeOutInSeconds;enableConstraints}class Ga extends Ua{useAnalytics;toFlowSetFunction}class Ha extends Ua{}class Va extends Mi{multiplicity=Yi.ONE;fullPath;accept_ValueSpecificationVisitor(e){return e.visit_PackageableElementPtr(this)}}class Wa extends Mi{multiplicity=Yi.ONE;genericType;accept_ValueSpecificationVisitor(e){return e.visit_GenericTypeInstance(this)}}class Ya extends Mi{multiplicity=Yi.ONE;type;value;accept_ValueSpecificationVisitor(e){return e.visit_ClassInstance(this)}}class $a{rawType;typeArguments=[];multiplicityArguments=[];typeVariableValues=[];get hashCode(){return this.rawType.hashCode}}class za extends Va{get hashCode(){return this.fullPath}}var Xa=n(18492);const Ka=e=>P((0,Xa.A)(e.split(Po))),qa=(e,t)=>Array.isArray(t)?t.some((t=>qa(e,t))):e===t||Ka(t)===e;class Ja{name;genericType;get hashCode(){return Fo([Hi.RELATION_TYPE,this.name,this.genericType])}}class Qa{columns=[];get hashCode(){return Fo([Hi.RELATION_TYPE,Fo(this.columns)])}}const Za=e=>{if(e.rawType instanceof za)return e.rawType.fullPath;throw new k("Can't extract type path from generic type")};function es(e){const t=new $a,n=new za;return n.fullPath=e,t.rawType=n,t}function ts(e){const t=new $a;return t.rawType=e,t}function ns(e){const t=new Qa;return t.columns=e,t}var rs;!function(e){e.PACKAGEABLE_TYPE="packageableType",e.RELATION_TYPE="relationType"}(rs||(rs={}));const os=(0,pe.PL)($a,{multiplicityArguments:(ls=e=>(0,pe.lK)(ka,e),cs=e=>(0,pe.iu)(ka,e),us={INTERNAL__forceReturnEmptyInTest:!0},(0,pe.Ie)((e=>ve(e,(e=>ls(e)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:us?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>cs(e)),{skipIfEmpty:!1})))),rawType:(0,pe.Ie)((e=>function(e){if(e instanceof za)return(0,pe.lK)(is,e);if(e instanceof Qa)return(0,pe.lK)(ss,e);throw new k("Can't serialize type",e)}(e)),(e=>function(e){switch(e._type){case rs.PACKAGEABLE_TYPE:return(0,pe.iu)(is,e);case rs.RELATION_TYPE:return(0,pe.iu)(ss,e);default:throw new k(`Can't deserialize type: '${e._type}'`)}}(e))),typeArguments:_e((e=>(0,pe.lK)($a,e)),(e=>(0,pe.iu)($a,e)),{INTERNAL__forceReturnEmptyInTest:!0}),typeVariableValues:_e((e=>pe._Z),(e=>pe._Z),{INTERNAL__forceReturnEmptyInTest:!0})}),is=(0,pe.PL)(za,{_type:fe(rs.PACKAGEABLE_TYPE),fullPath:(0,pe.MY)()}),as=(0,pe.PL)(Ja,{name:(0,pe.MY)(),genericType:(0,pe.Ie)((e=>(0,pe.lK)(os,e)),(e=>gs(e)),{beforeDeserialize:function(e,t,n){void 0!==n.type&&void 0===n.genericType?e(null,n.type):e(null,n.genericType)}})}),ss=(0,pe.PL)(Qa,{_type:fe(rs.RELATION_TYPE),columns:(0,pe.p_)(he(as))});var ls,cs,us;const ds=e=>{e.multiplicityArguments=[new Yi(1,void 0)];const t=new za;t.fullPath=Go.ANY;const n=new $a;n.rawType=t,e.typeArguments=[n]};function gs(e){let t;if(G(e)){t=new $a;const n=new za;n.fullPath=e,t.rawType=n,qa(e,Go.TABULAR_RESULT)&&ds(t)}else t=(0,pe.iu)(os,e);const n=R((()=>Za(t)));return n&&qa(n,Go.TABULAR_RESULT)&&!t.multiplicityArguments.length&&!t.typeArguments.length&&ds(t),t}var ps,ms,hs,fs,Es;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext",e.ANALYTICS_EXECUTION_CONTEXT="AnalyticsExecutionContext"}(ps||(ps={})),function(e){e.PROPERTY_PATH_ELEMENT="propertyPath"}(ms||(ms={})),function(e){e.PROPERTY_GRAPH_FETCH_TREE="propertyGraphFetchTree"}(hs||(hs={})),function(e){e.ROOT_GRAPH_FETCH_TREE="rootGraphFetchTree",e.SUBTYPE_GRAPH_FETCH_TREE="subTypeGraphFetchTree",e.PATH="path",e.AGGREGATE_VALUE="aggregateValue",e.EXECUTION_CONTEXT_INSTANCE="executionContextInstance",e.PAIR="pair",e.PURE_LIST="listInstance",e.RUNTIME_INSTANCE="runtimeInstance",e.SERIALIZATION_CONFIG="alloySerializationConfig",e.COL_SPEC="colSpec",e.COL_SPEC_ARRAY="colSpecArray",e.RELATION_STORE_ACCESSOR=">",e.TDS_AGGREGATE_VALUE="tdsAggregateValue",e.TDS_COLUMN_INFORMATION="tdsColumnInformation",e.TDS_SORT_INFORMATION="tdsSortInformation",e.TDS_OLAP_RANK="tdsOlapRank",e.TDS_OLAP_AGGREGATION="tdsOlapAggregation"}(fs||(fs={})),function(e){e.VARIABLE="var",e.LAMBDA="lambda",e.KEY_EXPRESSION="keyExpression",e.APPLIED_FUNCTION="func",e.APPLIED_PROPERTY="property",e.PACKAGEABLE_ELEMENT_PTR="packageableElementPtr",e.GENERIC_TYPE_INSTANCE="genericTypeInstance",e.ENUM_VALUE="enumValue",e.COLLECTION="collection",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CBYTEARRAY="byteArray",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate",e.CLASS_INSTANCE="classInstance",e.HACKED_CLASS="hackedClass",e.HACKED_UNIT="hackedUnit",e.UNIT_TYPE="unitType",e.PRIMITIVE_TYPE="primitiveType",e.CLASS="class",e.ENUM="enum",e.MAPPING_INSTANCE="mappingInstance"}(Es||(Es={}));const bs=(0,pe.PL)(Ui,{_type:fe(Es.VARIABLE),genericType:Ee((e=>(0,pe.lK)(os,e)),(e=>gs(e)),{beforeDeserialize:function(e,t,n){void 0!==n.class&&void 0===n.genericType?e(null,n.class):e(null,n.genericType)}}),multiplicity:he(ka),name:(0,pe.MY)()}),Cs=e=>(0,pe.PL)(zi,{_type:fe(Es.LAMBDA),body:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))),parameters:(0,pe.p_)(he(bs))}),vs=e=>(0,pe.PL)(fa,{_type:fe(Es.KEY_EXPRESSION),add:(0,pe.lq)((0,pe.MY)()),expression:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))),key:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))}),_s=e=>(0,pe.PL)(Ji,{_type:fe(Es.APPLIED_FUNCTION),function:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),Ts=e=>(0,pe.PL)(La,{_type:fe(Es.APPLIED_PROPERTY),class:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))),property:(0,pe.MY)()}),Ns=e=>(0,pe.PL)(Va,{_type:fe(Es.PACKAGEABLE_ELEMENT_PTR),fullPath:(0,pe.MY)()}),As=e=>(0,pe.PL)(Wa,{_type:fe(Es.GENERIC_TYPE_INSTANCE),genericType:(0,pe.Ie)((e=>(0,pe.lK)(os,e)),(e=>gs(e)),{beforeDeserialize:function(e,t,n){void 0!==n.fullPath&&void 0===n.genericType?e(null,n.fullPath):e(null,n.genericType)}})}),ys=e=>{const t=new Wa;return G(e.unitType)?t.genericType=es(e.unitType):t.genericType=es(Y(e.fullPath,"Can't deserialize hacked unit: either field 'fullPath' or 'unitType' must be a non-empty string")),t},Ss=e=>{const t=new Wa;return t.genericType=es(Y(e.fullPath,"Can't deserialize hacked class: field 'fullPath' must be a non-empty string")),t},xs=e=>(0,pe.PL)(Qi,{_type:fe(Es.COLLECTION),multiplicity:he(ka),values:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),Is=(0,pe.PL)(class extends Xi{fullPath;value;accept_ValueSpecificationVisitor(e){return e.visit_EnumValue(this)}},{_type:fe(Es.ENUM_VALUE),fullPath:(0,pe.MY)(),value:(0,pe.MY)()}),ks=(0,pe.PL)(ea,{_type:fe(Es.CDECIMAL),value:(0,pe.MY)()}),ws=(0,pe.PL)(ta,{_type:fe(Es.CINTEGER),value:(0,pe.MY)()}),Rs=(0,pe.PL)(na,{_type:fe(Es.CSTRING),value:(0,pe.MY)()}),Os=(0,pe.PL)(ra,{_type:fe(Es.CFLOAT),value:(0,pe.MY)()}),Ls=(0,pe.PL)(ia,{_type:fe(Es.CDATETIME),value:(0,pe.MY)()}),Fs=(0,pe.PL)(sa,{_type:fe(Es.CSTRICTTIME),value:(0,pe.MY)()}),Bs=(0,pe.PL)(aa,{_type:fe(Es.CSTRICTDATE),value:(0,pe.MY)()}),Ps=(0,pe.PL)(class extends oa{accept_ValueSpecificationVisitor(e){return e.visit_CLatestDate(this)}},{_type:fe(Es.CLATESTDATE)}),Ds=(0,pe.PL)(la,{_type:fe(Es.CBOOLEAN),value:(0,pe.MY)()}),js=(0,pe.PL)(class extends Zi{value;accept_ValueSpecificationVisitor(e){return e.visit_CByteArray(this)}},{_type:fe(Es.CBYTEARRAY),value:(0,pe.MY)()}),Ms=(e,t,n)=>{if(Array.isArray(e.values)){if(0===e.values.length){const e=new Qi;return e.multiplicity=Yi.ZERO,e}return 1===e.values.length?n({...e,value:e.values[0]}):dl({...e,_type:Es.COLLECTION},t)}return n(e)},Us=e=>(0,pe.PL)(Ya,{_type:fe(Es.CLASS_INSTANCE),multiplicity:he(ka),type:(0,pe.MY)(),value:(0,pe.Ie)((t=>function(e,t){if(e instanceof Ki)return(0,pe.lK)(Hs(t),e);if(e instanceof Wi)return(0,pe.lK)(Vs(t),e);if(e instanceof ga)return(0,pe.lK)(qs(t),e);if(e instanceof ca)return(0,pe.lK)(Js(t),e);if(e instanceof ua)return(0,pe.lK)(Qs(t),e);if(e instanceof Ea)return(0,pe.lK)(el(t),e);if(e instanceof da)return(0,pe.lK)(Zs,e);if(e instanceof ha)return(0,pe.lK)(tl,e);if(e instanceof ba)return(0,pe.lK)(nl(t),e);if(e instanceof Ca)return(0,pe.lK)(rl(t),e);if(e instanceof Ta)return(0,pe.lK)(cl(t),e);if(e instanceof _a)return(0,pe.lK)(ll(t),e);if(e instanceof va)return(0,pe.lK)(ol,e);if(e instanceof Aa)return(0,pe.lK)(al(t),e);if(e instanceof Na)return(0,pe.lK)(sl(t),e);if(e instanceof ya)return(0,pe.lK)(il,e);const n=t.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolSerializers?.()??[]));for(const r of n){const n=r(e,t);if(n)return n}throw new k("Can't serialize class instance value: no compatible serializer available from plugins",e)}(t,e)),((t,n)=>function(e,t,n){switch(t){case fs.PATH:return(0,pe.iu)(Hs(n),e);case fs.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Vs(n),e);case fs.AGGREGATE_VALUE:return(0,pe.iu)(Js(n),e);case fs.EXECUTION_CONTEXT_INSTANCE:return(0,pe.iu)(qs(n),e);case fs.PAIR:return(0,pe.iu)(Qs(n),e);case fs.PURE_LIST:return(0,pe.iu)(el(n),e);case fs.RUNTIME_INSTANCE:return(0,pe.iu)(Zs,e);case fs.SERIALIZATION_CONFIG:return(0,pe.iu)(tl,e);case fs.TDS_AGGREGATE_VALUE:return(0,pe.iu)(nl(n),e);case fs.TDS_COLUMN_INFORMATION:return(0,pe.iu)(rl(n),e);case fs.TDS_OLAP_AGGREGATION:return(0,pe.iu)(cl(n),e);case fs.TDS_OLAP_RANK:return(0,pe.iu)(ll(n),e);case fs.TDS_SORT_INFORMATION:return(0,pe.iu)(ol,e);case fs.COL_SPEC:return(0,pe.iu)(al(n),e);case fs.COL_SPEC_ARRAY:return(0,pe.iu)(sl(n),e);case fs.RELATION_STORE_ACCESSOR:return(0,pe.iu)(il,e);default:{const r=n.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolDeserializers?.()??[]));for(const o of r){const r=o(e,t,n);if(r)return r}throw new k(`Can't deserialize value specification of type '${e._type}': no compatible deserializer available from plugins`)}}}(t,n.json.type,e)))}),Gs=e=>(0,pe.PL)(Oa,{_type:fe(ms.PROPERTY_PATH_ELEMENT),property:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),Hs=e=>(0,pe.PL)(Ki,{_type:fe(fs.PATH),name:(0,pe.MY)(),startType:(0,pe.MY)(),path:(0,pe.p_)((0,pe.Ie)((t=>function(e,t){return e instanceof Oa?(0,pe.lK)(Gs(t),e):pe._Z}(t,e)),(t=>function(e,t){return e._type===ms.PROPERTY_PATH_ELEMENT?(0,pe.iu)(Gs(t),e):pe._Z}(t,e))))}),Vs=e=>(0,pe.PL)(Wi,{_type:fe(fs.ROOT_GRAPH_FETCH_TREE),class:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e))))}),Ws=e=>(0,pe.PL)(pa,{_type:fe(hs.PROPERTY_GRAPH_FETCH_TREE),alias:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))),property:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subType:(0,pe.lq)((0,pe.MY)())}),Ys=e=>(0,pe.PL)(ma,{_type:fe(fs.SUBTYPE_GRAPH_FETCH_TREE),subTrees:(0,pe.p_)((0,pe.Ie)((t=>$s(t,e)),(t=>zs(t,e)))),subTypeClass:(0,pe.MY)()});function $s(e,t){const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolSerializers?.()??[]));for(const r of n){const n=r(e,t);if(n)return n}if(e instanceof pa)return(0,pe.lK)(Ws(t),e);if(e instanceof Wi)return(0,pe.lK)(Vs(t),e);if(e instanceof ma)return(0,pe.lK)(Ys(t),e);throw new k("Can't serialize graph fetch tree: no compatible serializer available from plugins",e)}function zs(e,t){switch(e._type){case hs.PROPERTY_GRAPH_FETCH_TREE:return(0,pe.iu)(Ws(t),e);case fs.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Vs(t),e);case fs.SUBTYPE_GRAPH_FETCH_TREE:return(0,pe.iu)(Ys(t),e);default:{const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolDeserializers?.()??[]));for(const r of n){const n=r(e,t);if(n)return n}throw new k(`Can't deserialize graph fetch tree node of type '${e._type}': no compatible deserializer available from plugins`)}}}const Xs=e=>(0,pe.PL)(Ga,{_type:fe(ps.ANALYTICS_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)()),toFlowSetFunction:he(Cs(e)),useAnalytics:(0,pe.MY)()}),Ks=(0,pe.PL)(Ha,{_type:fe(ps.BASE_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)())}),qs=e=>(0,pe.PL)(ga,{_type:fe(fs.EXECUTION_CONTEXT_INSTANCE),executionContext:(0,pe.Ie)((t=>function(e,t){return e instanceof Ga?(0,pe.lK)(Xs(t),e):e instanceof Ha?(0,pe.lK)(Ks,e):pe._Z}(t,e)),(t=>function(e,t){switch(e._type){case ps.ANALYTICS_EXECUTION_CONTEXT:return(0,pe.iu)(Xs(t),e);case ps.BASE_EXECUTION_CONTEXT:return(0,pe.iu)(Ks,e);default:return pe._Z}}(t,e)))}),Js=e=>(0,pe.PL)(ca,{_type:fe(fs.AGGREGATE_VALUE),mapFn:he(Cs(e)),aggregateFn:he(Cs(e))}),Qs=e=>(0,pe.PL)(ua,{_type:fe(fs.PAIR),first:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))),second:(0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e)))}),Zs=(0,pe.PL)(da,{_type:fe(fs.RUNTIME_INSTANCE),runtime:(0,pe.Ie)((e=>(e=>{if(e instanceof Ba)return(0,pe.lK)(Ba,e);if(e instanceof Da)return(0,pe.lK)(Ma,e);throw new k("Can't serialize runtime",e)})(e)),(e=>(0,pe.iu)(Ba,e)))}),el=e=>(0,pe.PL)(Ea,{_type:fe(fs.PURE_LIST),values:(0,pe.p_)((0,pe.Ie)((t=>gl(t,e)),(t=>dl(t,e))))}),tl=(0,pe.PL)(ha,{_type:fe(fs.SERIALIZATION_CONFIG),includeType:(0,pe.lq)((0,pe.MY)()),typeKeyName:(0,pe.MY)(),includeEnumTypee:(0,pe.lq)((0,pe.MY)()),removePropertiesWithNullValuese:(0,pe.lq)((0,pe.MY)()),removePropertiesWithEmptySetse:(0,pe.lq)((0,pe.MY)()),fullyQualifiedTypePathe:(0,pe.lq)((0,pe.MY)()),includeObjectReferencee:(0,pe.lq)((0,pe.MY)())}),nl=e=>(0,pe.PL)(ba,{_type:fe(fs.TDS_AGGREGATE_VALUE),name:(0,pe.MY)(),pmapFn:he(Cs(e)),aggregateFn:he(Cs(e))}),rl=e=>(0,pe.PL)(Ca,{_type:fe(fs.TDS_COLUMN_INFORMATION),name:(0,pe.MY)(),columnFn:he(Cs(e))}),ol=(0,pe.PL)(va,{_type:fe(fs.TDS_SORT_INFORMATION),column:(0,pe.MY)(),direction:(0,pe.MY)()}),il=(0,pe.PL)(ya,{path:(0,pe.p_)((0,pe.MY)())}),al=e=>(0,pe.PL)(Aa,{function1:(0,pe.lq)(he(Cs(e))),function2:(0,pe.lq)(he(Cs(e))),name:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())}),sl=e=>(0,pe.PL)(Na,{colSpecs:(0,pe.p_)(he(al(e)))}),ll=e=>(0,pe.PL)(_a,{_type:fe(fs.TDS_OLAP_RANK),function:he(Cs(e))}),cl=e=>(0,pe.PL)(Ta,{_type:fe(fs.TDS_OLAP_AGGREGATION),function:he(Cs(e)),columnName:(0,pe.MY)()});class ul{plugins=[];constructor(e){this.plugins=e}visit_INTERNAL__UnknownValueSpecfication(e){return e.content}visit_Variable(e){return(0,pe.lK)(bs,e)}visit_Lambda(e){return(0,pe.lK)(Cs(this.plugins),e)}visit_KeyExpression(e){return(0,pe.lK)(vs(this.plugins),e)}visit_PackageableElementPtr(e){return(0,pe.lK)(Ns(),e)}visit_GenericTypeInstance(e){return(0,pe.lK)(As(this.plugins),e)}visit_AppliedFunction(e){return(0,pe.lK)(_s(this.plugins),e)}visit_AppliedProperty(e){return(0,pe.lK)(Ts(this.plugins),e)}visit_Collection(e){return(0,pe.lK)(xs(this.plugins),e)}visit_EnumValue(e){return(0,pe.lK)(Is,e)}visit_CInteger(e){return(0,pe.lK)(ws,e)}visit_CDecimal(e){return(0,pe.lK)(ks,e)}visit_CString(e){return(0,pe.lK)(Rs,e)}visit_CBoolean(e){return(0,pe.lK)(Ds,e)}visit_CByteArray(e){return(0,pe.lK)(js,e)}visit_CFloat(e){return(0,pe.lK)(Os,e)}visit_CDateTime(e){return(0,pe.lK)(Ls,e)}visit_CStrictDate(e){return(0,pe.lK)(Bs,e)}visit_CStrictTime(e){return(0,pe.lK)(Fs,e)}visit_CLatestDate(e){return(0,pe.lK)(Ps,e)}visit_ClassInstance(e){return(0,pe.lK)(Us(this.plugins),e)}}function dl(e,t){switch(e._type){case Es.APPLIED_FUNCTION:return(0,pe.iu)(_s(t),e);case Es.APPLIED_PROPERTY:return(0,pe.iu)(Ts(t),e);case Es.VARIABLE:return(0,pe.iu)(bs,e);case Es.LAMBDA:return(0,pe.iu)(Cs(t),e);case Es.KEY_EXPRESSION:return(0,pe.iu)(vs(t),e);case Es.COLLECTION:return(0,pe.iu)(xs(t),e);case Es.ENUM_VALUE:return(0,pe.iu)(Is,e);case Es.CBOOLEAN:return Ms(e,t,(e=>(0,pe.iu)(Ds,e)));case Es.CBYTEARRAY:return Ms(e,t,(e=>(0,pe.iu)(js,e)));case Es.CDATETIME:return Ms(e,t,(e=>(0,pe.iu)(Ls,e)));case Es.CSTRICTTIME:return Ms(e,t,(e=>(0,pe.iu)(Fs,e)));case Es.CDECIMAL:return Ms(e,t,(e=>(0,pe.iu)(ks,e)));case Es.CFLOAT:return Ms(e,t,(e=>(0,pe.iu)(Os,e)));case Es.CINTEGER:return Ms(e,t,(e=>(0,pe.iu)(ws,e)));case Es.CLATESTDATE:return Ms(e,t,(e=>(0,pe.iu)(Ps,e)));case Es.CSTRICTDATE:return Ms(e,t,(e=>(0,pe.iu)(Bs,e)));case Es.CSTRING:if(Array.isArray(e.values)&&!e.values.length&&(n=e.multiplicity,W(n)&&"Object"===n.constructor.name)&&1===e.multiplicity.upperBound){const e=new na;return e.value="",e}return Ms(e,t,(e=>(0,pe.iu)(Rs,e)));case Es.CLASS_INSTANCE:return(0,pe.iu)(Us(t),e);case fs.PAIR:case fs.AGGREGATE_VALUE:case fs.EXECUTION_CONTEXT_INSTANCE:case fs.PATH:case fs.ROOT_GRAPH_FETCH_TREE:case fs.PURE_LIST:case fs.RUNTIME_INSTANCE:case fs.SERIALIZATION_CONFIG:case fs.TDS_AGGREGATE_VALUE:case fs.TDS_COLUMN_INFORMATION:case fs.TDS_OLAP_AGGREGATION:case fs.TDS_OLAP_RANK:case fs.TDS_SORT_INFORMATION:return(0,pe.iu)(Us(t),{_type:Es.CLASS_INSTANCE,type:e._type,value:e});case Es.HACKED_CLASS:return Ss(e);case Es.UNIT_TYPE:case Es.HACKED_UNIT:return ys(e);case Es.PRIMITIVE_TYPE:case Es.ENUM:case Es.CLASS:case Es.MAPPING_INSTANCE:case Es.PACKAGEABLE_ELEMENT_PTR:return(0,pe.iu)(Ns(),e);case Es.GENERIC_TYPE_INSTANCE:return(0,pe.iu)(As(t),e);default:throw new k(`Can't deserialize value specification of type '${e._type}'`)}var n}function gl(e,t){return e.accept_ValueSpecificationVisitor(new ul(t))}function pl(e){return j(dl(e,[]),zi)}function ml(e){return dl(e,[])}function hl(e){return gl(e,[])}function fl(e){const t=new Ui;return t.name=e??fi,t}function El(e,t){const n=new La;return n.property=e,n.parameters.push(t??fl()),n}function bl(e,t){const n=new zi;return n.parameters=e,n.body=t,n}const Cl=["meta::pure::metamodel","meta::pure::metamodel::type","meta::pure::metamodel::type::generics","meta::pure::metamodel::relationship","meta::pure::metamodel::valuespecification","meta::pure::metamodel::multiplicity","meta::pure::metamodel::function","meta::pure::metamodel::function::property","meta::pure::metamodel::extension","meta::pure::metamodel::import","meta::pure::functions::date","meta::pure::functions::string","meta::pure::functions::collection","meta::pure::functions::meta","meta::pure::functions::constraints","meta::pure::functions::lang","meta::pure::functions::boolean","meta::pure::functions::tools","meta::pure::functions::relation","meta::pure::functions::io","meta::pure::functions::math","meta::pure::functions::asserts","meta::pure::functions::test","meta::pure::functions::multiplicity","meta::pure::router","meta::pure::service","meta::pure::tds","meta::pure::tools","meta::pure::profiles"];function vl(e){const t=(e=>{const t=e.lastIndexOf(Po);return-1===t?void 0:e.substring(0,t)})(e);return t&&Cl.includes(t)?Ka(e):e}function _l(e,t){const n=new Ji;return n.function=vl(e),n.parameters=t,n}function Tl(e){const t=new Qi;return t.multiplicity=new Yi(e.length,e.length),t.values=e,t}function Nl(e,t){const n=(e,t)=>(e.value=t,e);switch(e){case jo.STRING:return n(new na,Y(t));case jo.BOOLEAN:return n(new la,z(t));case jo.NUMBER:case jo.DECIMAL:return n(new ea,$(t));case jo.INTEGER:return n(new ta,$(t));case jo.FLOAT:return n(new ra,$(t));case jo.DATE:case jo.STRICTDATE:return n(new aa,Y(t));case jo.DATETIME:return n(new ia,Y(t));case jo.STRICTTIME:return n(new sa,Y(t));default:throw new k(`Unsupported value type '${e}'`)}}function Al(e){const t=new Va;return t.fullPath=e,t}function yl(e,t){const n=new Ya;return n.type=e,n.value=t,n}function Sl(e,t,n,r){const o=new Aa;return o.name=e,o.function1=t,o.function2=n,o.type=r,o}function xl(e,t){switch(e.type){case jo.STRING:case jo.BOOLEAN:case jo.NUMBER:case jo.DECIMAL:case jo.INTEGER:case jo.FLOAT:case jo.DATE:case jo.DATETIME:case jo.STRICTDATE:case jo.STRICTTIME:return Array.isArray(e.value)?Tl(e.value.map((t=>Nl(e.type,t)))):Nl(e.type,e.value);case ti.COLUMN:return El(Y(e.value),t);default:throw new k(`Unsupported value type '${e.type}'`)}}function Il(e){return _l(vl(Xo.NOT),[e])}function kl(e,t,n){return yl(fs.COL_SPEC,Sl(e,t,n))}function wl(e){const t=new Na;return t.colSpecs=e,yl(fs.COL_SPEC_ARRAY,t)}function Rl(e){const t=fl();return e.length?e:[Sl("INTERNAL__filler_count_agg_column",bl([t],[t]),bl([t],[_l(Xo.COUNT,[t])]))]}function Ol(e,t){const n=fl();return Sl(e.name,bl([n],[El(e.name,n)]),bl([n],[_l(vl(t),[n])]))}function Ll(e,t,n,r){return Rl(n.columns.filter((n=>n.isSelected&&n.kind===ei.MEASURE&&!e.find((e=>e.name===n.name))&&!n.excludedFromPivot&&!t.data.groupExtendedColumns.find((e=>e.name===n.name)))).map((e=>{const t=r.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumn(e);if(!n)throw new k(`Unsupported aggregate operation '${e.aggregateOperator}'`);return n})))}function Fl(e){const t=new Wa;return t.genericType=es(Go.RELATION),t.genericType.typeArguments=[ts(ns(e.map((e=>function(e,t){const n=new Ja;return n.name=e,n.genericType=es(t),n}(e.name,e.type)))))],t}function Bl(e,t,n,r){const o=t.data.pivot;if(!o)return Rl(n.columns.filter((n=>n.isSelected&&!e.find((e=>e.name===n.name))&&!t.data.groupExtendedColumns.find((e=>e.name===n.name)))).map((e=>{const t=r.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumn(e);if(!n)throw new k(`Unsupported aggregate operation '${e.aggregateOperator}'`);return n})));const i=o.castColumns.filter((e=>pi(e.name))),a=o.castColumns.filter((e=>!pi(e.name)));return Rl([...i.map((e=>{const t=mi(e.name);return{...e,matchingColumnConfiguration:n.columns.find((e=>e.name===t))}})).filter((e=>e.matchingColumnConfiguration)).map((e=>{const t=Pi.serialization.fromJson(P(e.matchingColumnConfiguration).serialize());t.name=e.name;const n=r.find((e=>e.operator===t.aggregateOperator)),o=n?.buildAggregateColumn(t);if(!o)throw new k(`Unsupported aggregate operation '${t.aggregateOperator}'`);return o})),...a.filter((t=>!e.find((e=>e.name===t.name)))).map((e=>{const t=P(n.columns.find((t=>t.name===e.name))),o=r.find((e=>e.operator===t.aggregateOperator)),i=o?.buildAggregateColumn(t);if(!i)throw new k(`Unsupported aggregate operation '${t.aggregateOperator}'`);return i}))])}function Pl(e,t){if("groupOperator"in e){const n=e,r=n.groupOperator===ii.AND?Xo.AND:Xo.OR;let o=[];n.conditions.forEach((e=>{o.push(Pl(e,t)),2===o.length&&(o=[_l(r,o)])}));const i=P(o[0]);return n.not?Il(i):i}{const n=e,r=t.find((e=>e.operator===n.operator)),o=r?.buildConditionExpression(n);if(!o)throw new k(`Unsupported filter operation '${n.operator}'`);return n.not?Il(o):o}}function Dl(e,t,n,r,o,i){const a=e.data,s=ji.serialization.fromJson(a.configuration),l=[],c={},u=function(e,t){return(n,r)=>{e.push(r),t[n]=r}}(l,c);if(a.leafExtendedColumns.length){const e=a.leafExtendedColumns.map((e=>_l(Xo.EXTEND,[kl(e.name,pl(e.mapFn))])));u("leafExtend",P(e[0])),e.slice(1).forEach((e=>{l.push(e)}))}if(a.filter&&u("filter",_l(Xo.FILTER,[bl([fl()],[Pl(a.filter,r)])])),a.selectColumns.length&&u("select",_l(Xo.SELECT,[wl(a.selectColumns.map((e=>Sl(e.name))))])),a.pivot){const t=a.pivot;u("sort",_l(Xo.SORT,[Tl(a.pivot.columns.map((e=>_l(Xo.ASCENDING,[kl(e.name)]))))])),u("pivot",_l(Xo.PIVOT,[wl(t.columns.map((e=>Sl(e.name)))),wl(Ll(t.columns,e,s,o))])),t.castColumns.length&&u("pivotCast",_l(Xo.CAST,[Fl(t.castColumns)]))}if(a.groupBy){const t=a.groupBy;s.showRootAggregation&&i?.rootAggregation&&l.push((d=i.rootAggregation.columnName,_l(Xo.EXTEND,[kl(d,bl([fl()],[Nl(jo.STRING,Ci)]))]))),u("groupBy",_l(Xo.GROUP_BY,[wl(t.columns.map((e=>Sl(e.name)))),wl(Bl(t.columns,e,s,o))])),u("groupBySort",_l(Xo.SORT,[Tl(t.columns.map((e=>_l(s.treeColumnSortDirection===ai.ASCENDING?Xo.ASCENDING:Xo.DESCENDING,[kl(e.name)]))))]))}var d;if(a.groupExtendedColumns.length){const e=a.groupExtendedColumns.map((e=>_l(Xo.EXTEND,[kl(e.name,pl(e.mapFn))])));u("groupExtend",P(e[0])),e.slice(1).forEach((e=>{l.push(e)}))}a.sortColumns.length&&u("sort",_l(Xo.SORT,[Tl(a.sortColumns.map((e=>_l(e.direction===ai.ASCENDING?Xo.ASCENDING:Xo.DESCENDING,[kl(e.name)]))))])),void 0!==a.limit&&u("limit",_l(Xo.LIMIT,[Nl(jo.INTEGER,a.limit)])),i?.pagination&&l.push(_l(Xo.SLICE,[Nl(jo.INTEGER,i.pagination.start),Nl(jo.INTEGER,i.pagination.end)]));const g=n(t);if(g&&l.push(g),i?.postProcessor?.(e,l,c,s,r,o),0===l.length)return t.query;for(let e=0;e<l.length;e++)P(l[e]).parameters.unshift(0===e?t.query:P(l[e-1]));return P(l[l.length-1])}function jl(e,t){return e?.find((e=>e.name===t))}function Ml(e){return{name:e.name,type:e.type}}const Ul=(e,t)=>e.name.localeCompare(t.name);function Gl(e,t,n){return U(e.parameters.length>=t+1,`Can't process ${Ka(e.function)}() expression: Expected at least ${t+1} parameter(s)`),j(e.parameters[t],n,`Can't process ${Ka(e.function)}() expression: Found unexpected type for parameter at index ${t}`)}function Hl(e,t){return j(Gl(e,t,Ya).value,Aa,`Can't process ${Ka(e.function)}() expression: Expected parameter at index ${t} to be a column specification`)}function Vl(e,t){return j(Gl(e,t,Ya).value,Na,`Can't process ${Ka(e.function)}() expression: Expected parameter at index ${t} to be a column specification list`)}function Wl(e,t,n){const r=Math.min(e.length,t.length);if(!r)return[];let o=-1;for(let n=0;n<r&&P(e[n]).name===P(t[n]).name&&P(e[n]).type===P(t[n]).type;n++)o=n;return n.filter((e=>e.split(hi).length<=o+1)).sort()}function Yl(e,t){const n={},r=[];if(e instanceof Ji){switch(e.function){case ii.OR:case ii.AND:n.groupOperator=e.function;break;default:n.groupOperator=ii.AND}e.function===ii.AND||e.function===ii.OR?e.parameters.forEach((e=>{r.push($l(e,t))})):r.push($l(e,t))}return n.conditions=r,n}function $l(e,t){if(e instanceof Ji){if(Object.values(Xo).map((e=>vl(e))).includes(e.function)&&e.function!==vl(Xo.NOT)){const n=function(e){if(e.parameters[1]&&e.parameters[1]instanceof La)switch(e.function){case vl(Xo.EQUAL):return[e,oi.EQUAL_COLUMN];case vl(Xo.GREATER_THAN):return[e,oi.GREATER_THAN_COLUMN];case vl(Xo.GREATER_THAN_OR_EQUAL):case vl(Xo.LESS_THAN):return[e,oi.GREATER_THAN_OR_EQUAL_COLUMN];case vl(Xo.LESS_THAN):return[e,oi.LESS_THAN_COLUMN];case vl(Xo.LESS_THAN_OR_EQUAL):return[e,oi.LESS_THAN_OR_EQUAL_COLUMN];default:return}else{if(e.parameters[0]instanceof Ji&&e.parameters[0].function===vl(Xo.TO_LOWERCASE))return function(e){const t=e;if(e.parameters[0]instanceof Ji&&e.parameters[1]instanceof Ji&&(t.parameters=[e.parameters[0].parameters[0],e.parameters[1].parameters[0]]),t.parameters[1]&&t.parameters[1]instanceof La)return e.function===vl(Xo.EQUAL)?[t,oi.EQUAL_CASE_INSENSITIVE_COLUMN]:void 0;switch(e.function){case vl(Xo.CONTAINS):return[t,oi.CONTAIN_CASE_INSENSITIVE];case vl(Xo.ENDS_WITH):return[t,oi.END_WITH_CASE_INSENSITIVE];case vl(Xo.EQUAL):return[t,oi.EQUAL_CASE_INSENSITIVE];case vl(Xo.STARTS_WITH):return[t,oi.START_WITH_CASE_INSENSITIVE];default:return}}(e);switch(e.function){case vl(Xo.CONTAINS):return[e,oi.CONTAIN];case vl(Xo.ENDS_WITH):return[e,oi.END_WITH];case vl(Xo.EQUAL):return[e,oi.EQUAL];case vl(Xo.GREATER_THAN):return[e,oi.GREATER_THAN];case vl(Xo.GREATER_THAN_OR_EQUAL):return[e,oi.GREATER_THAN_OR_EQUAL];case vl(Xo.IS_EMPTY):return[e,oi.IS_NULL];case vl(Xo.LESS_THAN):return[e,oi.LESS_THAN];case vl(Xo.LESS_THAN_OR_EQUAL):return[e,oi.LESS_THAN_OR_EQUAL];case vl(Xo.STARTS_WITH):return[e,oi.START_WITH];default:return}}}(e);return Xl(n[0],n[1],t)}if(e.function===vl(Xo.NOT)){const n=function(e){if(e.parameters[1]&&e.parameters[1]instanceof La)return e.function===vl(Xo.EQUAL)?[e,oi.NOT_EQUAL_COLUMN]:void 0;if(e.parameters[0]instanceof Ji&&e.parameters[0].function===vl(Xo.TO_LOWERCASE)){if(e.function===vl(Xo.EQUAL)){const t=e;return e.parameters[0]instanceof Ji&&e.parameters[1]instanceof Ji&&(t.parameters=[e.parameters[0].parameters[0],e.parameters[1].parameters[0]]),t.parameters[1]&&t.parameters[1]instanceof La?[t,oi.NOT_EQUAL_CASE_INSENSITIVE_COLUMN]:[t,oi.NOT_EQUAL_CASE_INSENSITIVE]}}else switch(e.function){case vl(Xo.CONTAINS):return[e,oi.NOT_CONTAIN];case vl(Xo.ENDS_WITH):return[e,oi.NOT_END_WITH];case vl(Xo.EQUAL):return[e,oi.NOT_EQUAL];case vl(Xo.IS_EMPTY):return[e,oi.IS_NOT_NULL];case vl(Xo.STARTS_WITH):return[e,oi.NOT_START_WITH];default:return}}(e.parameters[0]);if(n)return Xl(n[0],n[1],t);{const n=Yl(e.parameters[0],t);return n.not=!0,n}}if(e.parameters[0]instanceof Ji)return Yl(e,t)}}function zl(e){switch(!0){case e instanceof na:return Kl(jo.STRING,e.value);case e instanceof la:return Kl(jo.BOOLEAN,e.value);case e instanceof ea:return Kl(jo.DECIMAL,e.value);case e instanceof ta:return Kl(jo.INTEGER,e.value);case e instanceof ra:return Kl(jo.FLOAT,e.value);case e instanceof aa:return Kl(jo.STRICTDATE,e.value);case e instanceof ia:return Kl(jo.DATETIME,e.value);case e instanceof sa:return Kl(jo.STRICTTIME,e.value);default:throw new k(`Unsupported primitive value '${e}'`)}}function Xl(e,t,n){const r=n.find((e=>e.operator===t));return r?.buildConditionSnapshot(e)}function Kl(e,t){return{value:t,type:e}}function ql(e,t){return{name:e.property,operator:t,type:e.class}}function Jl(e,t){return P(t.columns.find((t=>t.name===e)),`Can't find configuration for column '${e}'`)}var Ql;!function(e){e.WHITESPACE="",e.KEYWORD="keyword",e.IDENTIFIER="identifier",e.OPERATOR="operator",e.DELIMITER="delimiter",e.PARSER="parser",e.NUMBER="number",e.DATE="date",e.COLOR="color",e.PACKAGE="package",e.STRING="string",e.COMMENT="comment",e.LANGUAGE_STRUCT="language-struct",e.MULTIPLICITY="multiplicity",e.GENERICS="generics",e.PROPERTY="property",e.PARAMETER="parameter",e.VARIABLE="variable",e.TYPE="type",e.INVALID="invalid"}(Ql||(Ql={}));const Zl=(e,t,n,r)=>{const o=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=G(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const r={};e.settings.foreground&&G(e.settings.foreground)&&(r.foreground=e.settings.foreground),e.settings.background&&G(e.settings.background)&&(r.background=e.settings.background),e.settings.fontStyle&&G(e.settings.fontStyle)&&(r.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(F(e)||!Object.keys(r).length)return;const n={...r,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{Array.isArray(t)?t.length&&(n[e]=A(t,0)):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...o,base:t,colors:{...o.colors,...n},rules:[...o.rules,...r]}},ec=JSON.parse('{"name":"Solarized (dark)","tokenColors":[{"settings":{"foreground":"#839496"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown"],"settings":{"foreground":"#839496"}},{"name":"Comment","scope":"comment","settings":{"fontStyle":"italic","foreground":"#586E75"}},{"name":"String","scope":"string","settings":{"foreground":"#2AA198"}},{"name":"Regexp","scope":"string.regexp","settings":{"foreground":"#DC322F"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#D33682"}},{"name":"Variable","scope":["variable.language","variable.other"],"settings":{"foreground":"#268BD2"}},{"name":"Keyword","scope":"keyword","settings":{"foreground":"#859900"}},{"name":"Storage","scope":"storage","settings":{"fontStyle":"bold","foreground":"#93A1A1"}},{"name":"Class name","scope":["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],"settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"Function name","scope":"entity.name.function","settings":{"foreground":"#268BD2"}},{"name":"Variable start","scope":"punctuation.definition.variable","settings":{"foreground":"#859900"}},{"name":"Embedded code markers","scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#DC322F"}},{"name":"Built-in constant","scope":["constant.language","meta.preprocessor"],"settings":{"foreground":"#B58900"}},{"name":"Support.construct","scope":["support.function.construct","keyword.other.new"],"settings":{"foreground":"#CB4B16"}},{"name":"User-defined constant","scope":["constant.character","constant.other"],"settings":{"foreground":"#CB4B16"}},{"name":"Inherited class","scope":"entity.other.inherited-class","settings":{"foreground":"#6C71C4"}},{"name":"Function argument","scope":"variable.parameter","settings":{}},{"name":"Tag name","scope":"entity.name.tag","settings":{"foreground":"#268BD2"}},{"name":"Tag start/end","scope":"punctuation.definition.tag","settings":{"foreground":"#586E75"}},{"name":"Tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#93A1A1"}},{"name":"Library function","scope":"support.function","settings":{"foreground":"#268BD2"}},{"name":"Continuation","scope":"punctuation.separator.continuation","settings":{"foreground":"#DC322F"}},{"name":"Library constant","scope":["support.constant","support.variable"],"settings":{}},{"name":"Library class/type","scope":["support.type","support.class"],"settings":{"foreground":"#859900"}},{"name":"Library Exception","scope":"support.type.exception","settings":{"foreground":"#CB4B16"}},{"name":"Library variable","scope":"support.other.variable","settings":{}},{"name":"Invalid","scope":"invalid","settings":{"foreground":"#DC322F"}},{"name":"diff: header","scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#268BD2"}},{"name":"diff: deleted","scope":"markup.deleted","settings":{"fontStyle":"","foreground":"#DC322F"}},{"name":"diff: changed","scope":"markup.changed","settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"diff: inserted","scope":"markup.inserted","settings":{"foreground":"#859900"}},{"name":"Markup Quote","scope":"markup.quote","settings":{"foreground":"#859900"}},{"name":"Markup Lists","scope":"markup.list","settings":{"foreground":"#B58900"}},{"name":"Markup Styling","scope":["markup.bold","markup.italic"],"settings":{"foreground":"#D33682"}},{"name":"Markup: Strong","scope":"markup.bold","settings":{"fontStyle":"bold"}},{"name":"Markup: Emphasis","scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"name":"Markup Inline","scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#2AA198"}},{"name":"Markup Headings","scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#268BD2"}},{"name":"Markup Setext Header","scope":"markup.heading.setext","settings":{"fontStyle":"","foreground":"#268BD2"}}],"colors":{"focusBorder":"#2AA19899","selection.background":"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.infoBorder":"#363b5f","inputValidation.infoBackground":"#052730","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","errorForeground":"#ffeaea","badge.background":"#047aa6","progressBar.background":"#047aa6","dropdown.background":"#00212B","dropdown.border":"#2AA19899","button.background":"#2AA19899","list.activeSelectionBackground":"#005A6F","quickInputList.focusBackground":"#005A6F","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","editor.background":"#002B36","editor.foreground":"#839496","editorWidget.background":"#00212B","editorCursor.foreground":"#D30102","editorWhitespace.foreground":"#93A1A180","editor.lineHighlightBackground":"#073642","editorLineNumber.activeForeground":"#949494","editor.selectionBackground":"#274642","minimap.selectionHighlight":"#274642","editorIndentGuide.background":"#93A1A180","editorIndentGuide.activeBackground":"#C3E1E180","editorHoverWidget.background":"#004052","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","peekViewResult.background":"#00212B","peekViewEditor.background":"#10192c","peekViewTitle.background":"#00212B","peekView.border":"#2b2b4a","peekViewEditor.matchHighlightBackground":"#7744AA40","titleBar.activeBackground":"#002C39","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","tab.activeForeground":"#d6dbdb","tab.activeBackground":"#002B37","tab.inactiveForeground":"#93A1A1","tab.inactiveBackground":"#004052","tab.border":"#003847","tab.lastPinnedBorder":"#2AA19844","activityBar.background":"#003847","panel.border":"#2b2b4a","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.noFolderBackground":"#00212B","statusBarItem.remoteBackground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","debugToolBar.background":"#00212B","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","pickerGroup.foreground":"#2AA19899","pickerGroup.border":"#2AA19899","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightYellow":"#657b83","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightWhite":"#fdf6e3"},"semanticHighlighting":true}'),tc=JSON.parse('{"name":"GitHub Dark","colors":{"focusBorder":"#005cc5","foreground":"#d1d5da","descriptionForeground":"#959da5","errorForeground":"#f97583","textLink.foreground":"#79b8ff","textLink.activeForeground":"#c8e1ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","badge.foreground":"#c8e1ff","badge.background":"#044289","progressBar.background":"#0366d6","titleBar.activeForeground":"#e1e4e8","titleBar.activeBackground":"#24292e","titleBar.inactiveForeground":"#959da5","titleBar.inactiveBackground":"#1f2428","titleBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBar.background":"#24292e","activityBarBadge.foreground":"#fff","activityBarBadge.background":"#0366d6","activityBar.activeBorder":"#f9826c","activityBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBarTitle.foreground":"#e1e4e8","sideBarSectionHeader.foreground":"#e1e4e8","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","list.hoverForeground":"#e1e4e8","list.inactiveSelectionForeground":"#e1e4e8","list.activeSelectionForeground":"#e1e4e8","list.hoverBackground":"#282e34","list.inactiveSelectionBackground":"#282e34","list.activeSelectionBackground":"#39414a","list.inactiveFocusBackground":"#1d2d3e","list.focusBackground":"#044289","tree.indentGuidesStroke":"#2f363d","notificationCenterHeader.foreground":"#959da5","notificationCenterHeader.background":"#24292e","notifications.foreground":"#e1e4e8","notifications.background":"#2f363d","notifications.border":"#1b1f23","notificationsErrorIcon.foreground":"#ea4a5a","notificationsWarningIcon.foreground":"#ffab70","notificationsInfoIcon.foreground":"#79b8ff","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","statusBar.foreground":"#d1d5da","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.noFolderBackground":"#24292e","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteForeground":"#d1d5da","statusBarItem.remoteBackground":"#24292e","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGroup.border":"#1b1f23","tab.activeForeground":"#e1e4e8","tab.inactiveForeground":"#959da5","tab.inactiveBackground":"#1f2428","tab.activeBackground":"#24292e","tab.hoverBackground":"#24292e","tab.unfocusedHoverBackground":"#24292e","tab.border":"#1b1f23","tab.unfocusedActiveBorderTop":"#1b1f23","tab.activeBorder":"#24292e","tab.unfocusedActiveBorder":"#24292e","tab.activeBorderTop":"#f9826c","breadcrumb.foreground":"#959da5","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumbPicker.background":"#2b3036","editor.foreground":"#e1e4e8","editor.background":"#24292e","editorWidget.background":"#1f2428","editor.foldBackground":"#58606915","editor.lineHighlightBackground":"#2b3036","editorLineNumber.foreground":"#444d56","editorLineNumber.activeForeground":"#e1e4e8","editorIndentGuide.background":"#2f363d","editorIndentGuide.activeBackground":"#444d56","editorWhitespace.foreground":"#444d56","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorWarning.foreground":"#ffea7f","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.linkedEditingBackground":"#3392FF22","editor.inactiveSelectionBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorGutter.modifiedBackground":"#2188ff","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","scrollbar.shadow":"#0008","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","scrollbarSlider.activeBackground":"#6a737d88","editorOverviewRuler.border":"#1b1f23","panel.background":"#1f2428","panel.border":"#1b1f23","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","panelInput.border":"#2f363d","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiWhite":"#d1d5da","terminal.ansiBrightBlack":"#959da5","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiGreen":"#34d058","terminal.ansiBrightGreen":"#85e89d","terminal.ansiCyan":"#39c5cf","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiRed":"#ea4a5a","terminal.ansiBrightRed":"#f97583","terminal.ansiMagenta":"#b392f0","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiYellow":"#ffea7f","terminal.ansiBrightYellow":"#ffea7f","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.untrackedResourceForeground":"#34d058","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.submoduleResourceForeground":"#6a737d","debugToolBar.background":"#2b3036","editor.stackFrameHighlightBackground":"#C6902625","editor.focusedStackFrameHighlightBackground":"#2b6a3033","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.matchHighlightBackground":"#ffd33d33","peekViewEditor.background":"#1f242888","peekViewResult.background":"#1f2428","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f97583","foreground":"#24292e","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2f363d","background":"#79b8ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#b392f0","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#dbedff","fontStyle":"underline"}}]}'),nc=JSON.parse('{"name":"GitHub Dark Dimmed","colors":{"focusBorder":"#316dca","foreground":"#adbac7","descriptionForeground":"#768390","errorForeground":"#e5534b","textLink.foreground":"#539bf5","textLink.activeForeground":"#539bf5","textBlockQuote.background":"#1c2128","textBlockQuote.border":"#444c56","textCodeBlock.background":"#636e7b66","textPreformat.foreground":"#768390","textSeparator.foreground":"#373e47","icon.foreground":"#768390","keybindingLabel.foreground":"#adbac7","button.background":"#347d39","button.foreground":"#ffffff","button.hoverBackground":"#46954a","button.secondaryBackground":"#3d444d","button.secondaryForeground":"#adbac7","button.secondaryHoverBackground":"#444c56","checkbox.background":"#2d333b","checkbox.border":"#444c56","dropdown.background":"#2d333b","dropdown.border":"#444c56","dropdown.foreground":"#adbac7","dropdown.listBackground":"#2d333b","input.background":"#22272e","input.border":"#444c56","input.foreground":"#adbac7","input.placeholderForeground":"#636e7b","badge.foreground":"#cdd9e5","badge.background":"#316dca","progressBar.background":"#316dca","titleBar.activeForeground":"#768390","titleBar.activeBackground":"#22272e","titleBar.inactiveForeground":"#768390","titleBar.inactiveBackground":"#1c2128","titleBar.border":"#444c56","activityBar.foreground":"#adbac7","activityBar.inactiveForeground":"#768390","activityBar.background":"#22272e","activityBarBadge.foreground":"#cdd9e5","activityBarBadge.background":"#316dca","activityBar.activeBorder":"#ec775c","activityBar.border":"#444c56","sideBar.foreground":"#adbac7","sideBar.background":"#1c2128","sideBar.border":"#444c56","sideBarTitle.foreground":"#adbac7","sideBarSectionHeader.foreground":"#adbac7","sideBarSectionHeader.background":"#1c2128","sideBarSectionHeader.border":"#444c56","list.hoverForeground":"#adbac7","list.inactiveSelectionForeground":"#adbac7","list.activeSelectionForeground":"#adbac7","list.hoverBackground":"#636e7b1a","list.inactiveSelectionBackground":"#636e7b66","list.activeSelectionBackground":"#636e7b66","list.focusForeground":"#adbac7","list.focusBackground":"#4184e426","list.inactiveFocusBackground":"#4184e426","list.highlightForeground":"#539bf5","tree.indentGuidesStroke":"#373e47","notificationCenterHeader.foreground":"#768390","notificationCenterHeader.background":"#2d333b","notifications.foreground":"#adbac7","notifications.background":"#2d333b","notifications.border":"#444c56","notificationsErrorIcon.foreground":"#e5534b","notificationsWarningIcon.foreground":"#c69026","notificationsInfoIcon.foreground":"#539bf5","pickerGroup.border":"#444c56","pickerGroup.foreground":"#768390","quickInput.background":"#2d333b","quickInput.foreground":"#adbac7","statusBar.foreground":"#768390","statusBar.background":"#22272e","statusBar.border":"#444c56","statusBar.focusBorder":"#316dca80","statusBar.noFolderBackground":"#22272e","statusBar.debuggingForeground":"#cdd9e5","statusBar.debuggingBackground":"#c93c37","statusBarItem.prominentBackground":"#636e7b66","statusBarItem.remoteForeground":"#adbac7","statusBarItem.remoteBackground":"#444c56","statusBarItem.hoverBackground":"#adbac714","statusBarItem.activeBackground":"#adbac71f","statusBarItem.focusBorder":"#316dca","editorGroupHeader.tabsBackground":"#1c2128","editorGroupHeader.tabsBorder":"#444c56","editorGroup.border":"#444c56","tab.activeForeground":"#adbac7","tab.inactiveForeground":"#768390","tab.inactiveBackground":"#1c2128","tab.activeBackground":"#22272e","tab.hoverBackground":"#22272e","tab.unfocusedHoverBackground":"#636e7b1a","tab.border":"#444c56","tab.unfocusedActiveBorderTop":"#444c56","tab.activeBorder":"#22272e","tab.unfocusedActiveBorder":"#22272e","tab.activeBorderTop":"#ec775c","breadcrumb.foreground":"#768390","breadcrumb.focusForeground":"#adbac7","breadcrumb.activeSelectionForeground":"#768390","breadcrumbPicker.background":"#2d333b","editor.foreground":"#adbac7","editor.background":"#22272e","editorWidget.background":"#2d333b","editor.foldBackground":"#636e7b1a","editor.lineHighlightBackground":"#636e7b1a","editorLineNumber.foreground":"#636e7b","editorLineNumber.activeForeground":"#adbac7","editorIndentGuide.background":"#adbac71f","editorIndentGuide.activeBackground":"#adbac73d","editorWhitespace.foreground":"#545d68","editorCursor.foreground":"#539bf5","editor.findMatchBackground":"#966600","editor.findMatchHighlightBackground":"#eac55f80","editor.linkedEditingBackground":"#539bf512","editor.selectionHighlightBackground":"#57ab5a40","editor.wordHighlightBackground":"#636e7b80","editor.wordHighlightBorder":"#636e7b99","editor.wordHighlightStrongBackground":"#636e7b4d","editor.wordHighlightStrongBorder":"#636e7b99","editorBracketMatch.background":"#57ab5a40","editorBracketMatch.border":"#57ab5a99","editorInlayHint.background":"#76839033","editorInlayHint.foreground":"#768390","editorInlayHint.typeBackground":"#76839033","editorInlayHint.typeForeground":"#768390","editorInlayHint.paramBackground":"#76839033","editorInlayHint.paramForeground":"#768390","editorGutter.modifiedBackground":"#ae7c1466","editorGutter.addedBackground":"#46954a66","editorGutter.deletedBackground":"#e5534b66","diffEditor.insertedLineBackground":"#347d3926","diffEditor.insertedTextBackground":"#57ab5a4d","diffEditor.removedLineBackground":"#c93c3726","diffEditor.removedTextBackground":"#f470674d","scrollbar.shadow":"#545d6833","scrollbarSlider.background":"#76839033","scrollbarSlider.hoverBackground":"#7683903d","scrollbarSlider.activeBackground":"#76839047","editorOverviewRuler.border":"#1c2128","minimapSlider.background":"#76839033","minimapSlider.hoverBackground":"#7683903d","minimapSlider.activeBackground":"#76839047","panel.background":"#1c2128","panel.border":"#444c56","panelTitle.activeBorder":"#ec775c","panelTitle.activeForeground":"#adbac7","panelTitle.inactiveForeground":"#768390","panelInput.border":"#444c56","debugIcon.breakpointForeground":"#e5534b","debugConsole.infoForeground":"#768390","debugConsole.warningForeground":"#c69026","debugConsole.errorForeground":"#ff938a","debugConsole.sourceForeground":"#daaa3f","debugConsoleInputIcon.foreground":"#b083f0","debugTokenExpression.name":"#6cb6ff","debugTokenExpression.value":"#96d0ff","debugTokenExpression.string":"#96d0ff","debugTokenExpression.boolean":"#6bc46d","debugTokenExpression.number":"#6bc46d","debugTokenExpression.error":"#ff938a","symbolIcon.arrayForeground":"#e0823d","symbolIcon.booleanForeground":"#539bf5","symbolIcon.classForeground":"#e0823d","symbolIcon.colorForeground":"#6cb6ff","symbolIcon.constructorForeground":"#dcbdfb","symbolIcon.enumeratorForeground":"#e0823d","symbolIcon.enumeratorMemberForeground":"#539bf5","symbolIcon.eventForeground":"#636e7b","symbolIcon.fieldForeground":"#e0823d","symbolIcon.fileForeground":"#c69026","symbolIcon.folderForeground":"#c69026","symbolIcon.functionForeground":"#b083f0","symbolIcon.interfaceForeground":"#e0823d","symbolIcon.keyForeground":"#539bf5","symbolIcon.keywordForeground":"#f47067","symbolIcon.methodForeground":"#b083f0","symbolIcon.moduleForeground":"#f47067","symbolIcon.namespaceForeground":"#f47067","symbolIcon.nullForeground":"#539bf5","symbolIcon.numberForeground":"#57ab5a","symbolIcon.objectForeground":"#e0823d","symbolIcon.operatorForeground":"#6cb6ff","symbolIcon.packageForeground":"#e0823d","symbolIcon.propertyForeground":"#e0823d","symbolIcon.referenceForeground":"#539bf5","symbolIcon.snippetForeground":"#539bf5","symbolIcon.stringForeground":"#6cb6ff","symbolIcon.structForeground":"#e0823d","symbolIcon.textForeground":"#6cb6ff","symbolIcon.typeParameterForeground":"#6cb6ff","symbolIcon.unitForeground":"#539bf5","symbolIcon.variableForeground":"#e0823d","symbolIcon.constantForeground":["#b4f1b4","#8ddb8c","#6bc46d","#57ab5a","#46954a","#347d39","#2b6a30","#245829","#1b4721","#113417"],"terminal.foreground":"#adbac7","terminal.ansiBlack":"#545d68","terminal.ansiRed":"#f47067","terminal.ansiGreen":"#57ab5a","terminal.ansiYellow":"#c69026","terminal.ansiBlue":"#539bf5","terminal.ansiMagenta":"#b083f0","terminal.ansiCyan":"#39c5cf","terminal.ansiWhite":"#909dab","terminal.ansiBrightBlack":"#636e7b","terminal.ansiBrightRed":"#ff938a","terminal.ansiBrightGreen":"#6bc46d","terminal.ansiBrightYellow":"#daaa3f","terminal.ansiBrightBlue":"#6cb6ff","terminal.ansiBrightMagenta":"#dcbdfb","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightWhite":"#cdd9e5","editorBracketHighlight.foreground1":"#6cb6ff","editorBracketHighlight.foreground2":"#6bc46d","editorBracketHighlight.foreground3":"#daaa3f","editorBracketHighlight.foreground4":"#ff938a","editorBracketHighlight.foreground5":"#fc8dc7","editorBracketHighlight.foreground6":"#dcbdfb","editorBracketHighlight.unexpectedBracket.foreground":"#768390","gitDecoration.addedResourceForeground":"#57ab5a","gitDecoration.modifiedResourceForeground":"#c69026","gitDecoration.deletedResourceForeground":"#e5534b","gitDecoration.untrackedResourceForeground":"#57ab5a","gitDecoration.ignoredResourceForeground":"#636e7b","gitDecoration.conflictingResourceForeground":"#cc6b2c","gitDecoration.submoduleResourceForeground":"#768390","debugToolBar.background":"#2d333b","editor.stackFrameHighlightBackground":"#ae7c1466","editor.focusedStackFrameHighlightBackground":"#46954a66","peekViewEditor.matchHighlightBackground":"#ae7c1466","peekViewResult.matchHighlightBackground":"#ae7c1466","peekViewEditor.background":"#636e7b1a","peekViewResult.background":"#22272e","settings.headerForeground":"#adbac7","settings.modifiedItemIndicator":"#ae7c1466","welcomePage.buttonBackground":"#373e47","welcomePage.buttonHoverBackground":"#444c56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#768390"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#f47067"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#6cb6ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#f69d50"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#adbac7"}},{"scope":"entity.name.function","settings":{"foreground":"#dcbdfb"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#8ddb8c"}},{"scope":"keyword","settings":{"foreground":"#f47067"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f47067"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#adbac7"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#96d0ff"}},{"scope":"support","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.property-name","settings":{"foreground":"#6cb6ff"}},{"scope":"variable","settings":{"foreground":"#f69d50"}},{"scope":"variable.other","settings":{"foreground":"#adbac7"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f47067","foreground":"#cdd9e5","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#ff938a"}},{"scope":"string variable","settings":{"foreground":"#6cb6ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#96d0ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#96d0ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#8ddb8c"}},{"scope":"support.constant","settings":{"foreground":"#6cb6ff"}},{"scope":"support.variable","settings":{"foreground":"#6cb6ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#8ddb8c"}},{"scope":"meta.module-reference","settings":{"foreground":"#6cb6ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#f69d50"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"markup.quote","settings":{"foreground":"#8ddb8c"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#adbac7"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#adbac7"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#6cb6ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#5d0f12","foreground":"#ff938a"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#f47067"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#113417","foreground":"#8ddb8c"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#682d0f","foreground":"#f69d50"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2d333b","background":"#6cb6ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#dcbdfb","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"meta.output","settings":{"foreground":"#6cb6ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#768390"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ff938a"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#96d0ff"}}]}'),rc=JSON.parse('{"name":"GitHub Light Default","colors":{"focusBorder":"#0969da","foreground":"#1f2328","descriptionForeground":"#656d76","errorForeground":"#cf222e","textLink.foreground":"#0969da","textLink.activeForeground":"#0969da","textBlockQuote.background":"#f6f8fa","textBlockQuote.border":"#d0d7de","textCodeBlock.background":"#afb8c133","textPreformat.foreground":"#656d76","textSeparator.foreground":"#d8dee4","icon.foreground":"#656d76","keybindingLabel.foreground":"#1f2328","button.background":"#1f883d","button.foreground":"#ffffff","button.hoverBackground":"#1a7f37","button.secondaryBackground":"#ebecf0","button.secondaryForeground":"#24292f","button.secondaryHoverBackground":"#f3f4f6","checkbox.background":"#f6f8fa","checkbox.border":"#d0d7de","dropdown.background":"#ffffff","dropdown.border":"#d0d7de","dropdown.foreground":"#1f2328","dropdown.listBackground":"#ffffff","input.background":"#ffffff","input.border":"#d0d7de","input.foreground":"#1f2328","input.placeholderForeground":"#6e7781","badge.foreground":"#ffffff","badge.background":"#0969da","progressBar.background":"#0969da","titleBar.activeForeground":"#656d76","titleBar.activeBackground":"#ffffff","titleBar.inactiveForeground":"#656d76","titleBar.inactiveBackground":"#f6f8fa","titleBar.border":"#d0d7de","activityBar.foreground":"#1f2328","activityBar.inactiveForeground":"#656d76","activityBar.background":"#ffffff","activityBarBadge.foreground":"#ffffff","activityBarBadge.background":"#0969da","activityBar.activeBorder":"#fd8c73","activityBar.border":"#d0d7de","sideBar.foreground":"#1f2328","sideBar.background":"#f6f8fa","sideBar.border":"#d0d7de","sideBarTitle.foreground":"#1f2328","sideBarSectionHeader.foreground":"#1f2328","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#d0d7de","list.hoverForeground":"#1f2328","list.inactiveSelectionForeground":"#1f2328","list.activeSelectionForeground":"#1f2328","list.hoverBackground":"#eaeef280","list.inactiveSelectionBackground":"#afb8c133","list.activeSelectionBackground":"#afb8c133","list.focusForeground":"#1f2328","list.focusBackground":"#ddf4ff","list.inactiveFocusBackground":"#ddf4ff","list.highlightForeground":"#0969da","tree.indentGuidesStroke":"#d8dee4","notificationCenterHeader.foreground":"#656d76","notificationCenterHeader.background":"#f6f8fa","notifications.foreground":"#1f2328","notifications.background":"#ffffff","notifications.border":"#d0d7de","notificationsErrorIcon.foreground":"#cf222e","notificationsWarningIcon.foreground":"#9a6700","notificationsInfoIcon.foreground":"#0969da","pickerGroup.border":"#d0d7de","pickerGroup.foreground":"#656d76","quickInput.background":"#ffffff","quickInput.foreground":"#1f2328","statusBar.foreground":"#656d76","statusBar.background":"#ffffff","statusBar.border":"#d0d7de","statusBar.focusBorder":"#0969da80","statusBar.noFolderBackground":"#ffffff","statusBar.debuggingForeground":"#ffffff","statusBar.debuggingBackground":"#cf222e","statusBarItem.prominentBackground":"#afb8c133","statusBarItem.remoteForeground":"#1f2328","statusBarItem.remoteBackground":"#eaeef2","statusBarItem.hoverBackground":"#1f232814","statusBarItem.activeBackground":"#1f23281f","statusBarItem.focusBorder":"#0969da","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#d0d7de","editorGroup.border":"#d0d7de","tab.activeForeground":"#1f2328","tab.inactiveForeground":"#656d76","tab.inactiveBackground":"#f6f8fa","tab.activeBackground":"#ffffff","tab.hoverBackground":"#ffffff","tab.unfocusedHoverBackground":"#eaeef280","tab.border":"#d0d7de","tab.unfocusedActiveBorderTop":"#d0d7de","tab.activeBorder":"#ffffff","tab.unfocusedActiveBorder":"#ffffff","tab.activeBorderTop":"#fd8c73","breadcrumb.foreground":"#656d76","breadcrumb.focusForeground":"#1f2328","breadcrumb.activeSelectionForeground":"#656d76","breadcrumbPicker.background":"#ffffff","editor.foreground":"#1f2328","editor.background":"#ffffff","editorWidget.background":"#ffffff","editor.foldBackground":"#6e77811a","editor.lineHighlightBackground":"#eaeef280","editorLineNumber.foreground":"#8c959f","editorLineNumber.activeForeground":"#1f2328","editorIndentGuide.background":"#1f23281f","editorIndentGuide.activeBackground":"#1f23283d","editorWhitespace.foreground":"#afb8c1","editorCursor.foreground":"#0969da","editor.findMatchBackground":"#bf8700","editor.findMatchHighlightBackground":"#fae17d80","editor.linkedEditingBackground":"#0969da12","editor.selectionHighlightBackground":"#4ac26b40","editor.wordHighlightBackground":"#eaeef280","editor.wordHighlightBorder":"#afb8c199","editor.wordHighlightStrongBackground":"#afb8c14d","editor.wordHighlightStrongBorder":"#afb8c199","editorBracketMatch.background":"#4ac26b40","editorBracketMatch.border":"#4ac26b99","editorInlayHint.background":"#afb8c133","editorInlayHint.foreground":"#656d76","editorInlayHint.typeBackground":"#afb8c133","editorInlayHint.typeForeground":"#656d76","editorInlayHint.paramBackground":"#afb8c133","editorInlayHint.paramForeground":"#656d76","editorGutter.modifiedBackground":"#d4a72c66","editorGutter.addedBackground":"#4ac26b66","editorGutter.deletedBackground":"#ff818266","diffEditor.insertedLineBackground":"#aceebb4d","diffEditor.insertedTextBackground":"#6fdd8b80","diffEditor.removedLineBackground":"#ffcecb4d","diffEditor.removedTextBackground":"#ff818266","scrollbar.shadow":"#6e778133","scrollbarSlider.background":"#8c959f33","scrollbarSlider.hoverBackground":"#8c959f3d","scrollbarSlider.activeBackground":"#8c959f47","editorOverviewRuler.border":"#ffffff","minimapSlider.background":"#8c959f33","minimapSlider.hoverBackground":"#8c959f3d","minimapSlider.activeBackground":"#8c959f47","panel.background":"#f6f8fa","panel.border":"#d0d7de","panelTitle.activeBorder":"#fd8c73","panelTitle.activeForeground":"#1f2328","panelTitle.inactiveForeground":"#656d76","panelInput.border":"#d0d7de","debugIcon.breakpointForeground":"#cf222e","debugConsole.infoForeground":"#57606a","debugConsole.warningForeground":"#7d4e00","debugConsole.errorForeground":"#cf222e","debugConsole.sourceForeground":"#9a6700","debugConsoleInputIcon.foreground":"#6639ba","debugTokenExpression.name":"#0550ae","debugTokenExpression.value":"#0a3069","debugTokenExpression.string":"#0a3069","debugTokenExpression.boolean":"#116329","debugTokenExpression.number":"#116329","debugTokenExpression.error":"#a40e26","symbolIcon.arrayForeground":"#953800","symbolIcon.booleanForeground":"#0550ae","symbolIcon.classForeground":"#953800","symbolIcon.colorForeground":"#0a3069","symbolIcon.constructorForeground":"#3e1f79","symbolIcon.enumeratorForeground":"#953800","symbolIcon.enumeratorMemberForeground":"#0550ae","symbolIcon.eventForeground":"#57606a","symbolIcon.fieldForeground":"#953800","symbolIcon.fileForeground":"#7d4e00","symbolIcon.folderForeground":"#7d4e00","symbolIcon.functionForeground":"#6639ba","symbolIcon.interfaceForeground":"#953800","symbolIcon.keyForeground":"#0550ae","symbolIcon.keywordForeground":"#a40e26","symbolIcon.methodForeground":"#6639ba","symbolIcon.moduleForeground":"#a40e26","symbolIcon.namespaceForeground":"#a40e26","symbolIcon.nullForeground":"#0550ae","symbolIcon.numberForeground":"#116329","symbolIcon.objectForeground":"#953800","symbolIcon.operatorForeground":"#0a3069","symbolIcon.packageForeground":"#953800","symbolIcon.propertyForeground":"#953800","symbolIcon.referenceForeground":"#0550ae","symbolIcon.snippetForeground":"#0550ae","symbolIcon.stringForeground":"#0a3069","symbolIcon.structForeground":"#953800","symbolIcon.textForeground":"#0a3069","symbolIcon.typeParameterForeground":"#0a3069","symbolIcon.unitForeground":"#0550ae","symbolIcon.variableForeground":"#953800","symbolIcon.constantForeground":"#116329","terminal.foreground":"#1f2328","terminal.ansiBlack":"#24292f","terminal.ansiRed":"#cf222e","terminal.ansiGreen":"#116329","terminal.ansiYellow":"#4d2d00","terminal.ansiBlue":"#0969da","terminal.ansiMagenta":"#8250df","terminal.ansiCyan":"#1b7c83","terminal.ansiWhite":"#6e7781","terminal.ansiBrightBlack":"#57606a","terminal.ansiBrightRed":"#a40e26","terminal.ansiBrightGreen":"#1a7f37","terminal.ansiBrightYellow":"#633c01","terminal.ansiBrightBlue":"#218bff","terminal.ansiBrightMagenta":"#a475f9","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightWhite":"#8c959f","editorBracketHighlight.foreground1":"#0969da","editorBracketHighlight.foreground2":"#1a7f37","editorBracketHighlight.foreground3":"#9a6700","editorBracketHighlight.foreground4":"#cf222e","editorBracketHighlight.foreground5":"#bf3989","editorBracketHighlight.foreground6":"#8250df","editorBracketHighlight.unexpectedBracket.foreground":"#656d76","gitDecoration.addedResourceForeground":"#1a7f37","gitDecoration.modifiedResourceForeground":"#9a6700","gitDecoration.deletedResourceForeground":"#cf222e","gitDecoration.untrackedResourceForeground":"#1a7f37","gitDecoration.ignoredResourceForeground":"#6e7781","gitDecoration.conflictingResourceForeground":"#bc4c00","gitDecoration.submoduleResourceForeground":"#656d76","debugToolBar.background":"#ffffff","editor.stackFrameHighlightBackground":"#d4a72c66","editor.focusedStackFrameHighlightBackground":"#4ac26b66","settings.headerForeground":"#1f2328","settings.modifiedItemIndicator":"#d4a72c66","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#f3f4f6"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6e7781"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#cf222e"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#0550ae"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#953800"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#1f2328"}},{"scope":"entity.name.function","settings":{"foreground":"#8250df"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#116329"}},{"scope":"keyword","settings":{"foreground":"#cf222e"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#cf222e"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#1f2328"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#0a3069"}},{"scope":"support","settings":{"foreground":"#0550ae"}},{"scope":"meta.property-name","settings":{"foreground":"#0550ae"}},{"scope":"variable","settings":{"foreground":"#953800"}},{"scope":"variable.other","settings":{"foreground":"#1f2328"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#cf222e","foreground":"#f6f8fa","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#82071e"}},{"scope":"string variable","settings":{"foreground":"#0550ae"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#0a3069"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#0a3069"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#116329"}},{"scope":"support.constant","settings":{"foreground":"#0550ae"}},{"scope":"support.variable","settings":{"foreground":"#0550ae"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#116329"}},{"scope":"meta.module-reference","settings":{"foreground":"#0550ae"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#953800"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"markup.quote","settings":{"foreground":"#116329"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#1f2328"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#1f2328"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#0550ae"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffebe9","foreground":"#82071e"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#cf222e"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#dafbe1","foreground":"#116329"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffd8b5","foreground":"#953800"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#eaeef2","background":"#0550ae"}},{"scope":"meta.diff.range","settings":{"foreground":"#8250df","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#0550ae"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"meta.output","settings":{"foreground":"#0550ae"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#57606a"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#82071e"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#0a3069"}}]}'),oc=JSON.parse('{"name":"Material-Theme-Default","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#546E7A"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#80CBC420","button.foreground":"#ffffff","dropdown.background":"#263238","input.background":"#303C41","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#263238","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#263238","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#263238","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#546E7A","sideBar.background":"#263238","sideBarSectionHeader.background":"#263238","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#263238","tab.border":"#263238","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#263238","tab.activeModifiedBorder":"#607a86","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#263238","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#37474F","editorLineNumber.activeForeground":"#607a86","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#80CBC420","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#263238","editorHoverWidget.background":"#263238","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#263238","panel.border":"#26323860","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#263238","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#263238","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#546E7A20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#263238","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#546E7A","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#263238","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#37474F","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#37474F","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#607a86","sideBar.border":"#26323860","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#26323860","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#37474F70","editorIndentGuide.activeBackground":"#37474F","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#26323860","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#546E7A","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#607a86","tab.activeBackground":"#263238","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#26323860","statusBar.foreground":"#546E7A","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#263238","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#263238","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#263238","titleBar.inactiveForeground":"#607a86","titleBar.border":"#26323860","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#263238","quickInput.foreground":"#607a86","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#263238","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#263238","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#80CBC420","peekViewEditor.matchHighlightBackground":"#80CBC420","peekViewResult.selectionBackground":"#607a8670","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#607a8690","breadcrumb.background":"#263238","breadcrumb.foreground":"#607a86","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#263238","menu.background":"#263238","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#263238","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#263238","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#263238","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#263238","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),ic=JSON.parse('{"name":"Material-Theme-Darker","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#545454"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#61616150","button.foreground":"#ffffff","dropdown.background":"#212121","input.background":"#2B2B2B","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#212121","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#212121","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#545454","sideBar.background":"#212121","sideBarSectionHeader.background":"#212121","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#212121","tab.border":"#212121","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#212121","tab.activeModifiedBorder":"#616161","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#212121","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#424242","editorLineNumber.activeForeground":"#616161","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#61616150","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#212121","editorHoverWidget.background":"#212121","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#212121","panel.border":"#21212160","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#212121","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#212121","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#54545420","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#212121","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#545454","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#212121","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#424242","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#424242","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#616161","sideBar.border":"#21212160","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#21212160","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#42424270","editorIndentGuide.activeBackground":"#424242","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#21212160","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#545454","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#616161","tab.activeBackground":"#212121","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#21212160","statusBar.foreground":"#616161","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#212121","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#212121","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#212121","titleBar.inactiveForeground":"#616161","titleBar.border":"#21212160","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#212121","quickInput.foreground":"#616161","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#212121","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#212121","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#61616150","peekViewEditor.matchHighlightBackground":"#61616150","peekViewResult.selectionBackground":"#61616170","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#61616190","breadcrumb.background":"#212121","breadcrumb.foreground":"#616161","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#212121","menu.background":"#212121","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#212121","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#212121","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#212121","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#212121","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),ac=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e","fontStyle":"italic"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}},{"name":"js/ts italic","scope":"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super","settings":{"fontStyle":"italic"}},{"name":"comment","scope":"comment.line.double-slash,comment.block.documentation","settings":{"fontStyle":"italic"}},{"name":"Python Keyword Control","scope":"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python","settings":{"fontStyle":"italic"}},{"name":"markup.italic.markdown","scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}}],"colors":{"activityBar.background":"#282c34","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#282c34","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#21252b","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#21252b","dropdown.border":"#21252b","editor.background":"#282c34","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#21252b","editorHoverWidget.background":"#21252b","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#21252b","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#21252b","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#21252b","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#282c34","settings.headerForeground":"#fff","sideBar.background":"#21252b","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#282c34","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#21252b","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#21252b","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#282c34","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#21252b","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#282c34","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#282c34","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#21252b","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),sc=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}}],"colors":{"activityBar.background":"#23272e","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#23272e","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#1e2227","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#1e2227","dropdown.border":"#1e2227","editor.background":"#23272e","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#1e2227","editorHoverWidget.background":"#1e2227","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#1e2227","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#1e2227","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#1e2227","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#1e2227","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#23272e","settings.headerForeground":"#fff","sideBar.background":"#1e2227","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#23272e","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#1e2227","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#1e2227","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#23272e","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#1e2227","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#23272e","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#23272e","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#1e2227","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),lc=[{token:Ql.IDENTIFIER,foreground:"dcdcaa"},{token:Ql.NUMBER,foreground:"b5cea8"},{token:Ql.DATE,foreground:"b5cea8"},{token:Ql.COLOR,foreground:"b5cea8"},{token:Ql.PACKAGE,foreground:"808080"},{token:Ql.PARSER,foreground:"c586c0"},{token:Ql.LANGUAGE_STRUCT,foreground:"c586c0"},{token:Ql.MULTIPLICITY,foreground:"2d796b"},{token:Ql.GENERICS,foreground:"2d796b"},{token:Ql.PROPERTY,foreground:"9cdcfe"},{token:Ql.PARAMETER,foreground:"9cdcfe"},{token:Ql.VARIABLE,foreground:"4fc1ff"},{token:Ql.TYPE,foreground:"3dc9b0"},{token:`${Ql.STRING}.escape`,foreground:"d7ba7d"}];var cc,uc;(uc=cc||(cc={})).DEFAULT_DARK="default-dark",uc.GITHUB_LIGHT="github-light",uc.GITHUB_DARK="github-dark",uc.GITHUB_DARK_DIMMED="github-dark-dimmed",uc.SOLARIZED_DARK="solarized-dark",uc.ONE_DARK_PRO="one-dark-pro",uc.ONE_DARK_PRO_DARKER="one-dark-pro-darker",uc.MATERIAL_DEFAULT="material-default",uc.MATERIAL_DARKER="material-darker",uc.BUILT_IN__VSCODE_LIGHT="vs",uc.BUILT_IN__VSCODE_DARK="vs-dark",uc.BUILT_IN__VSCODE_HC_BLACK="hc-black",uc.BUILT_IN__VSCODE_HC_LIGHT="hc-light";const dc={base:"vs-dark",inherit:!0,colors:{},rules:[...lc,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},gc=Zl(ec,cc.BUILT_IN__VSCODE_DARK,{},[]),pc=Zl(tc,cc.BUILT_IN__VSCODE_DARK,{},[]),mc=Zl(rc,cc.BUILT_IN__VSCODE_LIGHT,{},[]),hc=Zl(nc,cc.BUILT_IN__VSCODE_DARK,{},[]),fc=Zl(oc,cc.BUILT_IN__VSCODE_DARK,{},[]),Ec=Zl(ic,cc.BUILT_IN__VSCODE_DARK,{},[]),bc=Zl(ac,cc.BUILT_IN__VSCODE_DARK,{},[]),Cc=Zl(sc,cc.BUILT_IN__VSCODE_DARK,{},[]),vc="dummy_problem_marker_owner",_c=(e,t,n)=>{No.editor.setModelMarkers(e,n??vc,t.map((e=>({startLineNumber:e.startLineNumber,startColumn:e.startColumn,endLineNumber:e.endLineNumber,endColumn:e.endColumn+1,message:""===e.message?"(no error message)":e.message,severity:No.MarkerSeverity.Error}))))};var Tc;!function(e){e.TEXT="plaintext",e.PURE="pure",e.JSON="json",e.JAVA="java",e.MARKDOWN="markdown",e.SQL="sql",e.XML="xml",e.YAML="yaml",e.GRAPHQL="graphql"}(Tc||(Tc={}));var Nc=n(42787),Ac=n(41289),yc=n(92824);function Sc(){const[e,t]=(0,Ft.useState)(null);return[e=>t(e.currentTarget),()=>t(null),{anchorEl:e,onClose:()=>t(null)},Boolean(e)]}function xc(e){const{menuProps:t,children:n,onClosed:r,onClose:o,anchorEl:i}=e,[a,s]=(0,Ft.useState)(!1);return(0,Ft.useEffect)((()=>{a&&!i&&r?.()}),[i,a,r]),i?(0,E.jsx)(yn.A,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:i,open:Boolean(i),slotProps:{root:{slotProps:{backdrop:{invisible:!0}}}},elevation:1,marginThreshold:0,transitionDuration:0,TransitionProps:{onEnter:()=>s(!0)},onClose:o,...t,children:n}):null}function Ic(e){return(0,E.jsx)(yc.A,{...e,style:{cursor:"default"}})}var kc=n(59389),wc=n(20007);const Rc=(0,Ft.createContext)(void 0),Oc=Rc.Provider,Lc=()=>P((0,Ft.useContext)(Rc),"Can't find DataCube state in context");function Fc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 flex h-2.5 flex-shrink-0 select-none items-center rounded-md bg-sky-500 px-1 font-semibold leading-[10px] text-white",title:"Work In Progress",children:"WIP"})}function Bc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 select-none rounded-md bg-amber-500 px-1 py-0.5 font-semibold text-white",title:"Advanced: Becareful when using this feature!",children:"ADV"})}const Pc=(0,Ft.forwardRef)((function(e,t){const{className:n,compact:r,...o}=e;return(0,E.jsx)("button",{ref:t,...o,className:Mn("flex h-6 min-w-20 items-center justify-center border border-neutral-400 bg-neutral-300 px-2.5 hover:brightness-95 disabled:cursor-not-allowed disabled:border-neutral-300 disabled:text-neutral-400 disabled:hover:brightness-100",{"h-5 text-sm":Boolean(r)},n)})})),Dc=(0,Ft.forwardRef)((function(e,t){const{min:n,max:r,step:o,value:i,setValue:a,isValid:s,isDecimal:l,defaultValue:c,disabled:u,className:d,...g}=e,[p,m]=(0,Ft.useState)(i??""),h=(0,Ft.useRef)(null),f=(0,Nc.A)(h,t);return(0,Ft.useEffect)((()=>{m(i??"")}),[i]),(0,E.jsx)("input",{className:Mn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",d),ref:f,...g,inputMode:"numeric",type:"number",min:n,max:r,step:o,value:p,disabled:Boolean(u),onKeyDown:e=>{if("Escape"===e.code)h.current?.select();else if("ArrowUp"===e.code){if(e.preventDefault(),void 0!==i&&void 0!==o){const e=i+o;if(void 0!==n&&e<n||void 0!==r&&e>r)return;m(e.toString()),a(e)}}else if("ArrowDown"===e.code&&(e.preventDefault(),void 0!==i&&void 0!==o)){const e=i-o;if(void 0!==n&&e<n||void 0!==r&&e>r)return;m(e.toString()),a(e)}},onChange:e=>{const t=e.target.value;m(t);const o=l?Number(t):parseInt(t,10);isNaN(o)||G(t)&&!t||(void 0!==s?!s(o):void 0!==n&&o<n||void 0!==r&&o>r)||a(o)},onBlur:()=>{const e=l?Number(p):parseInt(p.toString(),10);isNaN(e)||G(p)&&!p||(void 0!==s?!s(e):void 0!==n&&e<n||void 0!==r&&e>r)?(a(c),m(c??"")):m(i??"")}})})),jc=(0,Ft.forwardRef)((function(e,t){const{className:n,...r}=e,o=(0,Ft.useRef)(null),i=(0,Nc.A)(o,t);return(0,E.jsx)("input",{ref:i,className:Mn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",n),onKeyDown:e=>{"Escape"===e.code&&o.current?.select()},...r})}));function Mc(e){const{label:t,className:n,onChange:r,disabled:o,...i}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Ac.A,{icon:(0,E.jsx)(go.Checkbox,{}),checkedIcon:(0,E.jsx)(go.CheckboxSelected,{}),disableRipple:!0,classes:{root:Mn("p-0 text-neutral-600 [&_*]:stroke-[1.5px] -ml-[1px]",n),checked:"data-cube-editor-checkbox--checked",disabled:"data-cube-editor-checkbox--disabled"},onChange:r,disabled:o,...i}),Boolean(t)&&(0,E.jsx)("button",{className:"flex-shrink-0 pl-1 text-sm disabled:text-neutral-300",onClick:r,disabled:o,tabIndex:-1,children:t})]})}const Uc=(0,Ft.forwardRef)((function(e,t){const{children:n,className:r,open:o,showAsPlaceholder:i,...a}=e;return(0,E.jsxs)("button",{ref:t,className:Mn("group flex h-5 flex-shrink-0 items-center justify-between border border-neutral-400 bg-white pl-1.5 text-sm disabled:select-none disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",{"border-sky-600":Boolean(o),"bg-sky-100":Boolean(o),"text-neutral-400":Boolean(i)},r),...a,children:[(0,E.jsx)("div",{className:"w-[calc(100%_-_12px)] overflow-hidden overflow-ellipsis whitespace-nowrap text-left",children:e.children}),(0,E.jsx)("div",{className:"flex h-full w-3 items-center justify-center text-neutral-500 group-disabled:text-neutral-400",children:(0,E.jsx)(go.CaretDown,{})})]})}));function Gc(e){const{className:t,...n}=e;return(0,E.jsx)(xc,{...n,menuProps:{classes:{paper:"rounded-none mt-[1px]",list:Mn("p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto",t)}}})}function Hc(e){const{className:t,...n}=e;return(0,E.jsx)(Ic,{className:Mn("flex h-5 w-full items-center px-1.5 text-sm hover:bg-neutral-100 focus:bg-sky-600 focus:text-white",t),...n})}function Vc(){return(0,E.jsx)("div",{className:"my-0.5 h-[1px] w-full bg-neutral-200"})}function Wc(e){const{onChange:t,onClose:n,defaultColor:r}=e,[o,i]=(0,Ft.useState)(e.color),a=()=>{t(0===(0,kc.A)(o).alpha?zo.transparent:o),n()};return(0,E.jsxs)("div",{className:"data-cube-color-picker rounded-none border border-neutral-400 bg-white",children:[(0,E.jsx)("div",{className:"p-2",children:(0,E.jsx)(wc.dp,{color:o,onChange:i})}),(0,E.jsx)("div",{className:"flex justify-center px-2",children:["slate","neutral","red","orange","amber","yellow","lime","green","emerald","teal","sky","blue","indigo","violet","purple","fuchsia","pink","rose"].map((e=>(0,E.jsx)("div",{className:"mr-0.5 flex flex-col border-[0.5px] border-neutral-300 last:mr-0",children:[50,100,200,300,400,500,600,700,800,900,950].map((t=>(0,E.jsx)("button",{className:"h-3 w-3 flex-shrink-0",style:{background:zo[e][t]},onClick:()=>{i(zo[e][t])},onDoubleClick:()=>{i(zo[e][t]),a()}},`${e}-${t}`)))},e)))}),(0,E.jsx)("div",{className:"flex justify-center px-2 pb-1 pt-0.5",children:(0,E.jsx)("div",{className:"flex",children:[zo.transparent,"#000000","#aaaaaa","#dddddd","#ffffff","#ff4136","#ff851b","#ffdc00","#01ff70","#2ecc40","#3d9970","#39cccc","#7fdbff","#0074d9","#001f3f","#b10dc9","#f012be","#85144b"].map((e=>(0,E.jsx)("div",{className:Mn("mr-0.5 border-[0.5px] border-neutral-300 last:mr-0",{"data-cube-color-picker--transparent border-neutral-400":e===zo.transparent}),children:(0,E.jsx)("button",{className:"flex h-3 w-3 flex-shrink-0",style:{background:e},onClick:()=>{i(e)},onDoubleClick:()=>{i(e),a()}})},e)))})}),(0,E.jsx)("div",{className:"h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-6 items-center justify-between p-1",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)("div",{className:"h-4 w-4 flex-shrink-0 rounded-sm border-[0.5px] border-neutral-300",style:{background:o}}),(0,E.jsx)(wc.HC,{className:"ml-0.5 h-4 w-14 border border-neutral-400 px-1 text-sm",color:o,autoFocus:!0,tabIndex:0,onChange:i,prefix:"#",alpha:!0})]}),(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)(Pc,{className:"h-4 w-9",onClick:()=>{n()},children:"Cancel"}),(0,E.jsx)(Pc,{className:"ml-1 h-4 w-9 text-xs",disabled:void 0===r,onClick:()=>{void 0!==r&&i(r)},children:"Reset"}),(0,E.jsx)(Pc,{className:"ml-1 h-4 w-9",onClick:()=>{a()},children:"OK"})]})]})]})}function Yc(e){const{color:t,onChange:n,className:r,disabled:o,defaultColor:i}=e,[a,s]=(0,Ft.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:Mn("group h-5 w-10 border border-neutral-300 p-[1px] disabled:border-neutral-200",{"data-cube-color-picker--disabled":Boolean(o),"data-cube-color-picker--transparent":!o&&t===zo.transparent},r),onClick:e=>{s(e.currentTarget)},disabled:o,children:(0,E.jsx)("div",{className:"h-full w-full group-disabled:hidden",style:{background:t}})}),Boolean(a)&&(0,E.jsx)(zn,{open:Boolean(a),anchorEl:a,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},onClose:()=>s(null),children:(0,E.jsx)(Wc,{color:t,onChange:n,onClose:()=>s(null),defaultColor:i})})]})}const $c=({documentationKey:e,title:t,className:n})=>{const r=Lc(),o=r.documentationService,i=r.documentationService.getEntry(e);return i&&(i.url||o.shouldDisplayDocumentationEntry(i))?(0,E.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation();const n=o.getEntry(e);n&&(o.shouldDisplayDocumentationEntry(n)?(r.documentationService.setCurrentEntry(n),r.documentationService.display.open()):n.url&&r.navigationService.openLink(n.url))},title:t??i.text??"Click to see documentation",className:Mn("cursor-pointer text-xl text-sky-500",n),children:(0,E.jsx)(go.DocumentationHint,{})}):null};function zc(e){const{message:t,type:n,text:r,actions:o=[],onClose:i}=e;return(0,E.jsxs)("div",{className:"h-full w-full",children:[(0,E.jsxs)("div",{className:Mn("flex w-full overflow-auto p-6",{"h-[calc(100%_-_40px)]":0!==o.length,"h-full":!o.length}),children:[(0,E.jsxs)("div",{className:"mr-3",children:[n===qc.ERROR&&(0,E.jsx)(go.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"}),n===qc.INFO&&(0,E.jsx)(go.AlertInfo,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-sky-500"}),n===qc.SUCCESS&&(0,E.jsx)(go.AlertSuccess,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-green-500"}),n===qc.WARNING&&(0,E.jsx)(go.AlertWarning,{className:"flex-shrink-0 stroke-[0.3px] text-[40px] text-amber-500"})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:r})]})]}),0!==o.length&&(0,E.jsx)("div",{className:"flex h-10 items-center justify-center border border-t-neutral-300 px-2",children:o.map(((e,t)=>(0,E.jsx)(Pc,{className:"ml-2 first-of-type:ml-0",onClick:()=>{e.handler(),i?.()},autoFocus:0===t,children:e.label},t)))})]})}const Xc="`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?";function Kc(e){const{editorModel:t,error:n,message:r,text:o}=e,i=(0,Ft.useRef)(null),[a,s]=(0,Ft.useState)();return(0,Ft.useEffect)((()=>{if(!a&&i.current){const e=i.current,n=No.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,language:Tc.PURE,theme:cc.GITHUB_LIGHT,wordSeparators:Xc,fixedOverflowWidgets:!0,overflowWidgetsDomNode:document.getElementById(Ao),readOnly:!0,renderValidationDecorations:"on"});n.setModel(t),s(n)}}),[a,t]),(0,Ft.useEffect)((()=>{n.sourceInformation&&(_c(t,[{message:n.message,startLineNumber:n.sourceInformation.startLine,startColumn:n.sourceInformation.startColumn,endLineNumber:n.sourceInformation.endLine,endColumn:n.sourceInformation.endColumn}]),a&&((e,t)=>{e.hasTextFocus()||e.focus(),e.revealPositionInCenter(t,0),e.setPosition(t)})(a,{lineNumber:n.sourceInformation.startLine,column:n.sourceInformation.startColumn}))}),[a,t,n]),(0,Ft.useEffect)((()=>()=>{a&&a.dispose()}),[a]),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto",children:[(0,E.jsxs)("div",{className:"flex w-full p-6 pb-2.5",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(go.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:r}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:o})]})]}),(0,E.jsx)("div",{className:"h-60 justify-center border px-2",children:(0,E.jsx)("div",{className:"h-full w-full p-2 pt-1",children:(0,E.jsx)("div",{className:"relative h-full w-full border border-red-500",children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:i})})})})]})}var qc;!function(e){e.ERROR="ERROR",e.INFO="INFO",e.SUCCESS="SUCCESS",e.WARNING="WARNING"}(qc||(qc={}));class Jc{_logService;_layoutService;constructor(e,t){this._logService=e,this._layoutService=t}alert(e){const{message:t,type:n,text:r,actions:o,windowTitle:i,windowConfig:a}=e,s=new mo(new po(i??"",(()=>(0,E.jsx)(zc,{type:n,message:t,text:r,actions:o,onClose:()=>this._layoutService.closeWindow(s)}))));s.configuration.window=a??Eo,this._layoutService.newWindow(s)}alertError(e,t){const{message:n,text:r,actions:o,windowTitle:i,windowConfig:a}=t,s=new mo(new po(i??"Error",(()=>(0,E.jsx)(zc,{type:qc.ERROR,message:n,text:r,actions:o}))));s.configuration.window=a??Eo,this._layoutService.newWindow(s)}alertUnhandledError(e){this._logService.logUnhandledError(e),this.alertError(e,{message:e.message})}alertCodeCheckError(e,t,n,r){const{message:o,text:a,windowTitle:s,windowConfig:l}=r;if(e.sourceInformation){e.sourceInformation.startColumn-=1===e.sourceInformation.startLine?n.length:0,e.sourceInformation.endColumn-=1===e.sourceInformation.endLine?n.length:0;const r=No.editor.createModel(t,Tc.PURE,No.Uri.file(`/${(0,i.A)()}.pure`)),c=r.getFullModelRange();(e.sourceInformation.startLine<1||1===e.sourceInformation.startLine&&e.sourceInformation.startColumn<1||e.sourceInformation.endLine>c.endLineNumber||e.sourceInformation.endLine===c.endLineNumber&&e.sourceInformation.endColumn>c.endColumn)&&(e.sourceInformation.startColumn=c.startColumn,e.sourceInformation.startLine=c.startLineNumber,e.sourceInformation.endColumn=c.endColumn,e.sourceInformation.endLine=c.endLineNumber);const u=new mo(new po(s??"Error",(()=>(0,E.jsx)(Kc,{editorModel:r,error:e,message:o,text:a}))));u.configuration.window=l??{width:500,height:400,minWidth:300,minHeight:300,center:!0},this._layoutService.newWindow(u)}}}var Qc,Zc,eu,tu=n(21895);function nu(){const e=fl();return Sl(fu,bl([e],[e]),bl([e],[_l(Xo.COUNT,[e])]))}function ru(e){return(t,n,r,o,i,a)=>{const s=function(e,t){return n=>{const r=t[n];r&&(e.splice(e.indexOf(r),1),t[n]=void 0)}}(n,r),l=t.data;if(r.groupBy){const c=P(l.groupBy);if(e.groupKeys.length&&n.splice(n.indexOf(r.groupBy),0,_l(Xo.FILTER,[bl([fl()],[Pl({conditions:e.groupKeys.map(((e,t)=>{const n=P(c.columns[t]);if(L(e)||e===gu)return{...n,operator:oi.IS_NULL,value:void 0};const r={...n,operator:oi.EQUAL,value:void 0};switch(n.type){case jo.BOOLEAN:return{...r,value:{type:jo.BOOLEAN,value:"true"===e}};case jo.INTEGER:return{...r,value:{type:n.type,value:parseInt(e,10)}};case jo.NUMBER:case jo.DECIMAL:case jo.FLOAT:return{...r,value:{type:n.type,value:parseFloat(e)}};case jo.STRING:case jo.DATE:case jo.DATETIME:case jo.STRICTDATE:case jo.STRICTTIME:default:return{...r,value:{type:n.type,value:e}}}})),groupOperator:ii.AND},i)])])),e.groupKeys.length<c.columns.length){const i=[];!function(e,t){if(e.pivot&&e.pivotCast){Vl(e.pivot,1).colSpecs.push(nu());const n=j(j(j(e.pivotCast.parameters[0],Wa).genericType.typeArguments[0],$a).rawType,Qa).columns.map((e=>Sl(e.name,void 0,void 0,Za(e.genericType))));(0,Ne.A)(n.filter((e=>pi(e.name))).map((e=>e.name.substring(0,e.name.lastIndexOf(gi))))).map((e=>e+gi+fu)).map((e=>Sl(e,void 0,void 0,jo.INTEGER))).forEach((e=>{n.push(e),t.push(e)}))}}(r,i);const s=n.indexOf(r.groupBy),l=c.columns.slice(0,e.groupKeys.length+1),u=_l(Xo.GROUP_BY,[wl(l.map((e=>Sl(e.name)))),wl([...Bl(l,t,o,a),...i.length?i.map((e=>function(e){const t=fl();return Sl(e,bl([t],[El(e,t)]),bl([t],[_l(Xo.SUM,[t])]))}(e.name))):[nu()]])]);n[s]=u,r.groupBy=u,P(r.groupBySort).parameters[0]=Tl(l.map((e=>_l(o.treeColumnSortDirection===ai.ASCENDING?Xo.ASCENDING:Xo.DESCENDING,[kl(e.name)]))))}else s("groupBy"),s("groupBySort")}}}!function(e){e.DEBUGGER__ENABLE_DEBUG_MODE="dataCube.debugger.enableDebugMode",e.DEBUGGER__ACTION__RELOAD="dataCube.debugger.action.reload",e.GRID_CLIENT__ROW_BUFFER="dataCube.grid.rowBuffer",e.GRID_CLIENT__PURGE_CLOSED_ROW_NODES="dataCube.grid.purgeClosedRowNodes",e.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING="dataCube.grid.suppressLargeDatasetWarning",e.GRID_CLIENT__ACTION__RETRY_FAILED_DATA_FETCHES="dataCube.grid.action.retryFailedDataFetches"}(Qc||(Qc={})),function(e){e.CSV="CSV",e.EXCEL="EXCEL",e.PLAIN_TEXT="PLAIN_TEXT",e.HTML="HTML",e.PDF="PDF"}(Zc||(Zc={})),function(e){e.ROOT="data-cube-grid.ag-theme-quartz",e.HIGHLIGHT_ROW="data-cube-grid__utility--highlight-row",e.SHOW_VERTICAL_GRID_LINES="data-cube-grid__utility--show-vertical-grid-lines",e.SHOW_HORIZONTAL_GRID_LINES="data-cube-grid__utility--show-horizontal-grid-lines",e.BLUR="data-cube-grid__utility--blur",e.FONT_FAMILY_PREFIX="data-cube-grid__utility--font-family-",e.FONT_SIZE_PREFIX="data-cube-grid__utility--font-size-",e.FONT_BOLD="data-cube-grid__utility--font-style-bold",e.FONT_ITALIC="data-cube-grid__utility--font-style-italic",e.FONT_UNDERLINE_PREFIX="data-cube-grid__utility--font-style-underline-",e.FONT_STRIKETHROUGH="data-cube-grid__utility--font-style-strikethrough",e.FONT_CASE_PREFIX="data-cube-grid__utility--font-style-case-",e.TEXT_ALIGN_PREFIX="data-cube-grid__utility--text-align-",e.TEXT_COLOR_PREFIX="data-cube-grid__utility--text-color-",e.BACKGROUND_COLOR_PREFIX="data-cube-grid__utility--background-color-",e.PIVOT_COLUMN_GROUP="data-cube-grid__utility--pivot-column-group",e.PIVOT_COLUMN_GROUP_PREFIX="data-cube-grid__utility--pivot-column-group-"}(eu||(eu={}));const ou=e=>`${eu.FONT_FAMILY_PREFIX}${e.replaceAll(" ","-")}`,iu=e=>`${eu.FONT_SIZE_PREFIX}${e}`,au=e=>`${eu.FONT_UNDERLINE_PREFIX}${e??"none"}`,su=e=>`${eu.FONT_CASE_PREFIX}${e??"none"}`,lu=e=>`${eu.TEXT_ALIGN_PREFIX}${e}`,cu=(e,t)=>`${eu.TEXT_COLOR_PREFIX}${t}-${e.substring(1)}`,uu=(e,t)=>`${eu.BACKGROUND_COLOR_PREFIX}${t}-${e.substring(1)}`,du=1e3,gu="__MISSING",pu="ag-Grid-AutoColumn",mu="INTERNAL__rootAggregation",hu="INTERNAL__dataFetchManualTrigger",fu="INTERNAL__count";var Eu,bu;function Cu(e){const t=[];return e.forEachNode((e=>{e.data&&t.push(e.data)})),t}function vu(e){const t=[];return e.forEachNodeAfterFilter((e=>{e.data&&t.push(e.data)})),t}function _u(e,t){return Bo(T({configuration:{showRootAggregation:t.showRootAggregation,pivotStatisticColumnPlacement:t.pivotStatisticColumnPlacement,treeColumnSortDirection:t.treeColumnSortDirection,columns:t.columns.map((e=>({name:e.name,type:e.type,kind:e.kind,aggregateOperator:e.aggregateOperator,aggregationParameters:e.aggregationParameters,excludedFromPivot:e.excludedFromPivot,pivotSortDirection:e.pivotSortDirection,pivotStatisticColumnFunction:e.pivotStatisticColumnFunction}))).sort(Ul)},leafExtendedColumns:e.data.leafExtendedColumns,filter:e.data.filter,selectColumns:e.data.selectColumns.toSorted(Ul),groupExtendedColumns:e.data.groupExtendedColumns,limit:e.data.limit}))}!function(e){e.LEFT="left",e.RIGHT="right"}(Eu||(Eu={})),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(bu||(bu={}));class Tu{_view;_grid;rowCount=void 0;constructor(e,t){(0,Ie.Gn)(this,{rowCount:Ie.sH}),this._grid=e,this._view=t}async fetchRows(e){const t=this._view.taskService.newTask("Fetching data"),n=P(this._grid.getLatestSnapshot()),r={startRow:e.request.startRow,endRow:e.request.endRow,rowGroupColumns:e.request.rowGroupCols.map((e=>e.id)),groupKeys:e.request.groupKeys.map((e=>e)),pivotColumns:e.request.pivotCols.map((e=>e.id)),sortColumns:e.request.sortModel.map((e=>({name:e.colId,direction:e.sort})))},o=0===r.groupKeys.length;let i=n;if(o){if(i=function(e,t){const n=t.clone(),r=ji.serialization.fromJson(n.data.configuration),o=e.rowGroupColumns.filter((e=>e!==mu));return n.data.selectColumns=(0,nt.A)([...n.data.selectColumns,...e.pivotColumns.map((e=>Jl(e,r))),...o.map((e=>Jl(e,r)))],(e=>e.name)).map(Ml),n.data.pivot=e.pivotColumns.length?{columns:e.pivotColumns.map((e=>Ml(Jl(e,r)))),castColumns:t.data.pivot?.castColumns??[]}:void 0,n.data.groupBy=o.length?{columns:o.map((e=>Ml(Jl(e,r))))}:void 0,n.data.sortColumns=e.sortColumns.filter((e=>![pu,mu].includes(e.name))).map((e=>({name:e.name,type:Jl(pi(e.name)?mi(e.name):e.name,r).type,direction:e.direction===bu.ASCENDING?ai.ASCENDING:ai.DESCENDING}))),r.pivotLayout.expandedPaths=Wl(t.data.groupBy?.columns??[],n.data.groupBy?.columns??[],r.pivotLayout.expandedPaths),!e.rowGroupColumns.includes(mu)&&r.showRootAggregation&&(r.showRootAggregation=!1),n.data.configuration=r.serialize(),n}(r,n),(!this._grid.isPaginationEnabled||0===r.startRow)&&i.data.pivot)try{const e=await async function(e,t){if(!e.data.pivot)throw new I("Can't build cast columns collector query when no pivot is specified");const n=e.clone();P(n.data.pivot).castColumns=[],n.data.groupBy=void 0,n.data.sortColumns=[],n.data.limit=0;const r=Dl(n,t.source,(e=>t.engine.buildExecutionContext(e)),t.engine.filterOperations,t.engine.aggregateOperations,{postProcessor:(t,n,r,o,i,a)=>{r.groupExtend&&(e=>{const t=r[e];t&&(n.splice(n.indexOf(t),1),r[e]=void 0)})("groupExtend"),r.pivot&&e.data.groupBy&&Vl(r.pivot,1).colSpecs.push(nu())}}),o=new zi;return o.body.push(r),(await t.engine.executeQuery(o,t.source,{debug:t.settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)})).result.builder.columns.map((e=>({name:e.name,type:e.type})))}(i,this._view);i.data.pivot.castColumns=e,i.data.sortColumns=i.data.sortColumns.filter((t=>[...e,...i.data.groupExtendedColumns].find((e=>t.name===e.name))))}catch(n){return w(n),this._view.alertService.alertError(n,{message:`Query Validation Failure: Can't retrieve pivot results column metadata. ${n.message}`}),e.fail(),void this._view.taskService.endTask(t)}i.finalize(),i.hashCode!==n.hashCode&&(i.markAsPatchChange(),await this._grid.applySnapshot(i,n),this._grid.publishSnapshot(i))}try{const t=function(e,t,n,r,o,i,a){const s=t.clone();return ji.serialization.fromJson(s.data.configuration).showRootAggregation&&(s.data.groupBy={columns:[{name:mu,type:jo.STRING},...s.data.groupBy?.columns??[]]}),Dl(s,n,r,o,i,{postProcessor:ru(e),rootAggregation:{columnName:mu},pagination:a&&void 0!==e.startRow&&void 0!==e.endRow?{start:e.startRow,end:e.endRow}:void 0})}(r,i,this._view.source,(e=>this._view.engine.buildExecutionContext(e)),this._view.engine.filterOperations,this._view.engine.aggregateOperations,this._grid.isPaginationEnabled),n=new zi;n.body.push(t);const a=await this._view.engine.executeQuery(n,this._view.source,{debug:this._view.settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)}),s=function(e,t){return e.rows.map(((n,r)=>{const o={},i=e.columns;return n.values.forEach(((n,r)=>{o[i[r]]=V(n)?String(n):F(n)?n:gu,t.data.pivot&&t.data.groupBy&&(o[fu]=Number((0,tu.czq)(e.columns.filter((e=>pi(e)&&e.endsWith(fu))).map((e=>o[e]??0))).toString()))})),o}))}(a.result.result,i);this._view.settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)&&this._view.engine.debugProcess("Execution",["Query",a.executedQuery],["Config",`pagination=${this._grid.isPaginationEnabled}`],["Stats",`${s.length} rows, ${a.result.result.columns.length} columns`],["SQL",a.executedSQL]),this._grid.isPaginationEnabled?(e.success({rowData:s}),o&&(0,Ie.h5)((()=>{this.rowCount=(r.startRow??0)+s.length})),o&&0===r.startRow&&0===s.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()):(s.length>du&&(this._view.settingService.getBooleanValue(Qc.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING)||this._view.alertService.alert({message:"Large dataset (>1000 rows) detected!",text:"Overall app performance can be impacted by large dataset due to longer query execution time and increased memory usage. At its limit, the engine can crash!\nTo boost performance, consider enabling pagination while working with large dataset.",type:qc.WARNING,actions:[{label:"Enable Pagination",handler:()=>{this._grid.setPaginationEnabled(!0)}},{label:"Dismiss Warning",handler:()=>{this._view.settingService.updateValue(this._view.dataCube.api,Qc.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING,!0)}}],windowConfig:{...Eo,width:600,minWidth:300,minHeight:150}}),e.api.ensureIndexVisible(e.parentNode.rowIndex??0,"top")),e.success({rowData:s,rowCount:s.length}),o&&(0,Ie.h5)((()=>{this.rowCount=s.length})),o&&0===s.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()),setTimeout((()=>{this._grid.client.autoSizeAllColumns()}),0)}catch(t){w(t),this._view.alertService.alertError(t,{message:`Data Fetch Failure: ${t.message}`}),e.fail()}finally{this._view.taskService.endTask(t)}}getRows(e){this.fetchRows(e).catch((e=>{w(e),this._view.logService.logIllegalStateError("Error ocurred while fetching data for grid should have been handled gracefully",e)}))}}function Nu(e,t){switch(t){case Ko.PERCENT:return{value:100*e,unit:"%"};case Ko.BASIS_POINT:return{value:1e4*e,unit:"bp"};case Ko.THOUSANDS:return{value:e/1e3,unit:"k"};case Ko.MILLIONS:return{value:e/1e6,unit:"m"};case Ko.BILLIONS:return{value:e/1e9,unit:"b"};case Ko.TRILLIONS:return{value:e/1e12,unit:"t"};case Ko.AUTO:return Nu(e,e>=1e12?Ko.TRILLIONS:e>=1e9?Ko.BILLIONS:e>=1e6?Ko.MILLIONS:e>=1e3?Ko.THOUSANDS:void 0);default:return{value:e,unit:void 0}}}function Au(e){return e.node.failedLoad?(0,E.jsx)("span",{className:"inline-flex items-center",children:"#ERR"}):(0,E.jsxs)("span",{className:"inline-flex items-center",children:[(0,E.jsx)(go.Loader,{className:"mr-1 animate-spin stroke-2"}),"Loading"]})}function yu(e){const{column:t}=e;return ui(t.type)===li.TEXT&&t.displayAsLink?function(e){var n;if(n=e.value,!Boolean(R((()=>new URL(n)))))return e.value;const r=e.value,o=de(t.linkLabelParameter??vi,ue(r,!0));return(0,E.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",className:"text-blue-600 underline",children:o??r})}:null}function Su(e){const{name:t,snapshot:n,column:r,configuration:o}=e,i=ui(r.type),a=r.fontFamily??o.fontFamily,s=r.fontSize??o.fontSize,l=r.fontBold??o.fontBold,c=r.fontItalic??o.fontItalic,u=r.fontStrikethrough??o.fontStrikethrough,d=r.fontUnderline??o.fontUnderline,g=r.fontCase??o.fontCase,p=r.textAlign??o.textAlign,m=r.normalForegroundColor??o.normalForegroundColor,h=r.normalBackgroundColor??o.normalBackgroundColor,f=r.negativeForegroundColor??o.negativeForegroundColor,E=r.negativeBackgroundColor??o.negativeBackgroundColor,b=r.zeroForegroundColor??o.zeroForegroundColor,C=r.zeroBackgroundColor??o.zeroBackgroundColor,v=r.errorForegroundColor??o.errorForegroundColor,_=r.errorBackgroundColor??o.errorBackgroundColor;return{cellDataType:!1,hide:r.hideFromView||!r.isSelected||Boolean(n.data.pivot&&!n.data.pivot.castColumns.find((e=>e.name===t)))&&!n.data.groupExtendedColumns.find((e=>e.name===t)),lockVisible:!r.isSelected||Boolean(n.data.pivot&&!n.data.pivot.castColumns.find((e=>e.name===t)))&&!n.data.groupExtendedColumns.find((e=>e.name===t)),pinned:void 0!==r.pinned?r.pinned===si.RIGHT?Eu.RIGHT:Eu.LEFT:null,headerClass:pi(t)?"pl-1 border border-neutral-300":"pl-1 border border-neutral-200",cellClassRules:{[ou(a)]:()=>!0,[iu(s)]:()=>!0,[eu.FONT_BOLD]:()=>l,[eu.FONT_ITALIC]:()=>c,[eu.FONT_STRIKETHROUGH]:()=>u,[au(d)]:()=>Boolean(d),[su(g)]:e=>i===li.TEXT&&Boolean(g),[lu(p)]:()=>!0,[cu(m,"normal")]:()=>!0,[uu(h,"normal")]:()=>!0,[cu(b,"zero")]:e=>i===li.NUMBER&&H(e.value)&&0===e.value,[uu(C,"zero")]:e=>i===li.NUMBER&&H(e.value)&&0===e.value,[cu(f,"negative")]:e=>i===li.NUMBER&&H(e.value)&&e.value<0,[uu(E,"negative")]:e=>i===li.NUMBER&&H(e.value)&&e.value<0,[cu(v,"error")]:e=>Boolean(e.node.failedLoad),[uu(_,"error")]:e=>Boolean(e.node.failedLoad),[eu.BLUR]:()=>r.blur},valueFormatter:i===li.NUMBER?e=>{const t=e.value;if(L(t)||t===gu)return r.missingValueDisplayText??"";const n=r.negativeNumberInParens&&t<0,o=Nu(t,r.numberScale),i=(n?Math.abs(o.value):o.value).toLocaleString(void 0,{useGrouping:r.displayCommas,...void 0!==r.decimals?{minimumFractionDigits:r.decimals,maximumFractionDigits:r.decimals}:{}});let a=(n?`(${i})`:i)+(o.unit?` ${o.unit}`:"");return r.unit&&(a=r.unit.startsWith("_")?`${r.unit.substring(1)}${a}`:`${a}${r.unit}`),a}:e=>e.value===gu?r.missingValueDisplayText??"":e.value,tooltipValueGetter:e=>F(e.value)&&e.value!==gu?`Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`:"Missing Value",cellRenderer:yu(e)}}function xu(e,t){const n=t.fontFamily,r=t.fontSize,o=t.fontBold,i=t.fontItalic,a=t.fontStrikethrough,s=t.fontUnderline,l=t.fontCase,c=t.textAlign,u=t.normalForegroundColor,d=t.normalBackgroundColor;return{cellDataType:!1,hide:!e.data.groupBy,lockPosition:!0,lockPinned:!0,pinned:Eu.LEFT,cellClassRules:{[ou(n)]:()=>!0,[iu(r)]:()=>!0,[eu.FONT_BOLD]:()=>o,[eu.FONT_ITALIC]:()=>i,[eu.FONT_STRIKETHROUGH]:()=>a,[au(s)]:()=>Boolean(s),[su(l)]:e=>Boolean(l),[lu(c)]:()=>!0,[cu(u,"normal")]:()=>!0,[uu(d,"normal")]:()=>!0},tooltipValueGetter:e=>F(e.value)&&e.value!==gu?`Group Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`+(void 0!==e.data[fu]?` (${e.data[fu]})`:""):null}}function Iu(e){const{column:t}=e;return{resizable:void 0===t.fixedWidth,suppressAutoSize:void 0!==t.fixedWidth,suppressSizeToFit:void 0!==t.fixedWidth,width:t.fixedWidth,minWidth:Math.max(t.minWidth??50,50),maxWidth:t.maxWidth}}function ku(e){const{name:t,snapshot:n}=e,r=n.data.sortColumns,o=jl(r,t);return{sortable:!0,sort:o?o.direction===ai.ASCENDING?bu.ASCENDING:bu.DESCENDING:null,sortIndex:o?r.indexOf(o):null}}function wu(e){const{name:t,snapshot:n,column:r,configuration:o}=e,i=n.data,a=jl(i.pivot?.columns,t),s=jl(i.groupBy?.columns,t),l=Boolean(jl(i.groupExtendedColumns,t)),c=!l&&s?i.groupBy?.columns.indexOf(s)??null:null;return{enableRowGroup:!l&&r.kind===ei.DIMENSION,rowGroup:!l&&Boolean(s),rowGroupIndex:null!==c?o.showRootAggregation?c+1:c:null,enablePivot:!l&&r.kind===ei.DIMENSION,pivot:!l&&Boolean(a),pivotIndex:!l&&a?i.pivot?.columns.indexOf(a)??null:null,aggFunc:l?null:r.aggregateOperator,enableValue:!1,allowedAggFuncs:[]}}function Ru(e){const t=e.grid;return{rowGroupPanelShow:"always",groupDisplayType:"singleColumn",suppressGroupChangesColumnVisibility:!0,suppressAggFuncInHeader:!0,getChildCount:e=>e[fu],alwaysMultiSort:!0,rowHeight:20,headerHeight:24,noRowsOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(go.WarningCircle,{className:"mr-1 stroke-2 text-lg"})}),"0 rows"]}),loadingOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(go.Loader,{className:"mr-1 animate-spin stroke-2 text-lg"})}),"Loading..."]}),onBodyScroll:e=>{const n=e.api.getDisplayedRowCount(),r=e.api.getVerticalPixelRange(),o=Math.max(1,Math.ceil(r.top/20)+1),i=Math.min(n,Math.floor(r.bottom/20));t.setScrollHintText(`${o}-${i}/${n}`),e.api.hidePopupMenu()},onBodyScrollEnd:()=>t.setScrollHintText(void 0),preventDefaultOnContextMenu:!0,columnMenu:"new",getContextMenuItems:e=>t.controller.menuBuilder?.(e,!1)??[],getMainMenuItems:e=>t.controller.menuBuilder?.(e,!0)??[],onColumnMenuVisibleChanged:e=>{if(!e.column){const t=document.querySelector(`.${eu.ROOT} .ag-popup .ag-menu`);t&&(t.style.display="none"),e.api.hidePopupMenu()}},autoSizePadding:10,autoSizeStrategy:{type:"fitCellContents"},tooltipShowDelay:1500,tooltipInteraction:!1,suppressDragLeaveHidesColumns:!0,suppressScrollOnNewData:!0,loadingCellRenderer:Au,serverSideSortAllLevels:!0,cellSelection:!0,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",minWidth:200,width:200,toolPanelParams:{suppressValues:!0,suppressPivotMode:!0}}],position:"right"},allowDragFromColumnsToolPanel:!0,animateRows:!1,suppressColumnMoveAnimation:!0}}function Ou(e,t,n){const r=e.split(gi);if(!t.data.pivot||r.length>t.data.pivot.columns.length+1)return r.join(" / ");if(r.length===t.data.pivot.columns.length+1){const e=P(r[r.length-1]),o=jl(n.columns,e);return`Column = ${o?o.displayName?`${o.displayName} (${o.name})`:o.name:e} ~ [ ${t.data.pivot.columns.map(((e,t)=>`${jl(n.columns,e.name)?.displayName??e.name} = ${r[t]}`)).join(", ")} ]`}return`[ ${t.data.pivot.columns.slice(0,r.length).map(((e,t)=>`${jl(n.columns,e.name)?.displayName??e.name} = ${r[t]}`)).join(", ")} ]`}function Lu(e,t,n){const r=e.map((e=>({...e,values:e.name.split(gi)}))).filter((e=>e.values.length>1)),o=[];return r.forEach((e=>{const r=[];let i,a="";for(let o=0;o<e.values.length;o++){const s=A(e.values,o);if(a=""===a?A(e.values,o):`${a}${gi}${s}`,o!==e.values.length-1)r.push({groupId:a,children:[],suppressColumnsToolPanel:!0,headerName:s,headerTooltip:Ou(a,t,n)});else{const r=jl(n.columns,s);if(r){const o={name:e.name,snapshot:t,column:r,configuration:n};i={headerName:r.displayName??r.name,colId:e.name,field:e.name,menuTabs:[],...Su(o),...ku(o),...Iu(o),pinned:!1,lockPinned:!0,lockPosition:!0,suppressColumnsToolPanel:!0,headerTooltip:Ou(a,t,n)}}}}let s=o;r.forEach((e=>{const t=s.find((t=>"groupId"in t&&t.groupId===e.groupId));if(t)s=t.children;else{const t={...e,headerClass:`${eu.PIVOT_COLUMN_GROUP} ${eu.PIVOT_COLUMN_GROUP_PREFIX}${s.length%5}`};s.push(t),s=t.children}})),i&&(s.push(i),s.sort(((e,t)=>{const r=N(e.colId?.split(gi)??[]),o=r?jl(n.columns,r):void 0,i=N(t.colId?.split(gi)??[]),a=i?jl(n.columns,i):void 0;return(o?n.columns.indexOf(o):Number.MAX_VALUE)-(a?n.columns.indexOf(a):Number.MAX_VALUE)})))})),o}function Fu(e,t){const n=t.columns.filter((t=>e.data.selectColumns.find((e=>e.name===t.name))??e.data.groupExtendedColumns.find((e=>e.name===t.name))));let r=[];return e.data.pivot&&(r=e.data.pivot.castColumns.filter((e=>pi(e.name)))),[{colId:hu,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,filter:"agTextColumnFilter",suppressColumnsToolPanel:!0},...t.showRootAggregation?[{colId:mu,headerName:"Root",field:mu,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,suppressColumnsToolPanel:!0,rowGroup:!0,rowGroupIndex:0}]:[],...Lu(r,e,t),...n.map((n=>{const r={name:n.name,snapshot:e,column:n,configuration:t};return{headerName:n.displayName??n.name,headerTooltip:`Column = ${n.displayName?`${n.displayName} (${n.name})`:n.name}`,suppressSpanHeaderHeight:!0,colId:n.name,field:n.name,menuTabs:[],...Su(r),...Iu(r),...ku(r),...wu(r)}}))]}function Bu(e,t){return`${Array.from(new Set([t[`${e}ForegroundColor`],...t.columns.map((t=>t[`${e}ForegroundColor`])).filter(F)]).values()).map((t=>`.${eu.ROOT} .${cu(t,e)}{color:${t};}`)).join("\n")}`}function Pu(e,t){return`${Array.from(new Set([t[`${e}BackgroundColor`],...t.columns.map((t=>t[`${e}BackgroundColor`])).filter(F)]).values()).map((t=>`.${eu.ROOT} .${uu(t,e)}{background-color:${t};}`)).join("\n")};`}console.error;const Du=(0,vt.PA)((e=>{const{view:t}=e,n=t.grid,r=n.queryConfiguration;return(0,E.jsx)(ko.mL,{styles:ko.AH`
|
2
2
|
.${eu.ROOT} {
|
3
3
|
--ag-odd-row-background-color: ${n.queryConfiguration.alternateRowsStandardMode&&!n.queryConfiguration.alternateRows?Ti:Ri};
|
4
4
|
--ag-cell-horizontal-border: ${n.queryConfiguration.showVerticalGridLines?`1px solid\n ${n.queryConfiguration.gridLineColor}`:"none"};
|
@@ -42,4 +42,4 @@
|
|
42
42
|
filter: none;
|
43
43
|
}
|
44
44
|
`})})),ju=(0,vt.PA)((e=>{const{view:t}=e,n=t.grid.scrollHintText,r=document.querySelector(".data-cube-grid .ag-side-bar"),o=document.querySelector(".data-cube-grid .ag-body-vertical-scroll");return(0,E.jsxs)("div",{className:"absolute -top-10 flex items-center rounded-sm border border-neutral-300 bg-neutral-100 p-1 pr-2 text-neutral-500 shadow-sm",style:{right:(null!==r?r.getBoundingClientRect().width+6:10)+(null!==o?o.getBoundingClientRect().width:0)},children:[(0,E.jsx)(go.TableScroll,{className:"text-lg"}),(0,E.jsx)("div",{className:"ml-1 font-mono text-sm",children:n??""})]})})),Mu=(0,vt.PA)((e=>{const{view:t}=e,n=t.grid;return(0,E.jsxs)("div",{className:"relative flex h-5 w-full select-none justify-between border-b border-neutral-200 bg-neutral-100",children:[Boolean(n.scrollHintText)&&(0,E.jsx)(ju,{view:t}),(0,E.jsx)("div",{}),(0,E.jsxs)("div",{className:"flex h-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full items-center px-2 font-mono text-sm text-neutral-500",children:n.clientDataSource.rowCount?`Rows: ${n.clientDataSource.rowCount}`:""}),void 0!==n.rowLimit&&n.queryConfiguration.showWarningForTruncatedResult&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-full items-center px-2 text-orange-500",children:[(0,E.jsx)(go.Warning,{className:"stroke-[3px]"}),(0,E.jsx)("div",{className:"ml-1 text-sm font-semibold",children:`Results truncated to fit within row limit (${n.rowLimit})`})]})]}),(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("button",{className:"flex h-full items-center p-2",onClick:()=>n.setPaginationEnabled(!n.isPaginationEnabled),children:[(0,E.jsx)(wo.A,{checked:n.isPaginationEnabled,classes:{root:"p-0 w-6 h-5 flex items-center",input:"w-2",checked:"!translate-x-2 ease-in-out duration-100 transition",thumb:Mn("w-2 h-2",{"bg-sky-600":n.isPaginationEnabled,"bg-neutral-500":!n.isPaginationEnabled}),switchBase:"p-0.5 mt-1 translate-x-0 ease-in-out duration-100 transition",track:Mn("h-3 w-5 border",{"!bg-sky-100 border-sky-600":n.isPaginationEnabled,"!bg-neutral-100 border-neutral-500":!n.isPaginationEnabled})},disableRipple:!0,disableFocusRipple:!0}),(0,E.jsx)("div",{className:Mn("text-sm",{"text-sky-600":n.isPaginationEnabled,"text-neutral-500":!n.isPaginationEnabled}),children:"Pagination"})]})]})]})})),Uu=(0,vt.PA)((e=>{const{view:t}=e,n=t.grid;return(0,E.jsx)("div",{className:"relative h-[calc(100%_-_20px)] w-full",children:(0,E.jsx)(Io.W6,{theme:"legacy",className:"data-cube-grid ag-theme-quartz",rowModelType:"serverSide",serverSideDatasource:n.clientDataSource,context:{view:t},onGridReady:e=>{n.configureClient(e.api)},modules:[So.JKr,xo.fKx],...Ru(t)})})})),Gu=(0,vt.PA)((e=>{const{view:t}=e;return(0,E.jsxs)("div",{className:"h-[calc(100%_-_48px)] w-full",children:[(0,E.jsx)(Du,{view:t}),(0,E.jsx)(Uu,{view:t}),(0,E.jsx)(Mu,{view:t})]})}));var Hu=n(16481);const Vu=(0,vt.PA)((e=>{const{view:t,taskManager:n}=e,r=t?.taskService.tasks??n?.tasks;return(0,E.jsxs)("div",{className:"flex h-5 w-full justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsxs)("button",{className:"flex items-center px-2 text-sky-600 hover:text-sky-700 disabled:text-neutral-400",onClick:()=>t?.editor.display.open(),disabled:!t,children:[(0,E.jsx)(go.Settings,{className:"text-xl"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Properties"})]}),(0,E.jsx)("div",{className:"flex",children:(0,E.jsxs)("button",{className:"flex items-center text-sky-600 hover:text-sky-700 disabled:text-neutral-400",onClick:()=>{t?.filter.display.open()},disabled:!t,children:[(0,E.jsx)(go.TableFilter,{className:"text-lg"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Filter"})]})})]}),(0,E.jsx)("div",{className:"flex items-center px-2",children:(0,E.jsx)("div",{className:"flex h-3.5 w-48 border-[0.5px] border-neutral-300",children:void 0!==r&&r.length>0&&(0,E.jsx)(Hu.A,{classes:{root:"h-3.5 w-full bg-transparent",bar1Indeterminate:"bg-green-500",bar2Indeterminate:"bg-green-500"},variant:"indeterminate"})})})]})})),Wu=(0,vt.PA)((e=>{const{children:t,title:n,menuItems:r}=e,[o,i,a]=Sc();return(0,E.jsxs)("div",{className:"flex h-7 justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex select-none items-center pl-1 pr-2 text-lg font-medium",children:[(0,E.jsx)(go.Cube,{className:"mr-1 h-4 w-4"}),(0,E.jsx)("div",{children:n})]}),(0,E.jsxs)("div",{className:"flex",children:[t,(0,E.jsx)("button",{className:"flex aspect-square h-full flex-shrink-0 items-center justify-center text-lg disabled:text-neutral-400",onClick:o,disabled:!r?.length,children:(0,E.jsx)(go.Menu,{})}),(0,E.jsx)(xc,{...a,menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:"rounded-none mt-[1px]",list:"w-40 p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto py-0.5"}},children:r?.map(((e,t)=>(0,E.jsx)(Ic,{className:"flex h-[22px] w-full items-center px-2.5 text-base hover:bg-neutral-100 focus:bg-neutral-100",onClick:()=>{e.action(),i()},disabled:Boolean(e.disabled),children:e.label},t)))})]})]})})),Yu=e=>{const{message:t,prompt:n}=e;return(0,E.jsxs)("div",{className:"flex h-full w-full overflow-auto p-5",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(go.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:n})]})]})},$u=(0,vt.PA)((e=>{const{children:t,taskManager:n}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_48px)] w-full border border-x-0 border-neutral-200 bg-neutral-50",children:t??null}),(0,E.jsx)(Vu,{taskManager:n})]})})),zu=(0,vt.PA)((e=>{const{children:t,title:n,menuItems:r,headerContent:o,layoutManager:i,taskManager:a}=e;return(0,E.jsxs)("div",{className:"data-cube relative flex h-full w-full flex-col bg-white",children:[(0,E.jsx)(Wu,{title:n,menuItems:r,children:o??null}),(0,E.jsx)($u,{taskManager:a,children:t}),i?(0,E.jsx)(To,{layout:i}):null]})})),Xu=(0,vt.PA)((e=>{const{view:t}=e;return(0,Ft.useEffect)((()=>()=>t.dispose()),[t]),t.initializeState.hasFailed?(0,E.jsx)($u,{children:(0,E.jsx)(Yu,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Gu,{view:t}),(0,E.jsx)(Vu,{view:t})]})}));var Ku=n(61005);class qu{_engine;_settingService;_snapshotService;_latestSnapshot;constructor(e,t,n){this._engine=e,this._settingService=t,this._snapshotService=n}getLatestSnapshot(){return this._latestSnapshot}async receiveSnapshot(e){const t=this._latestSnapshot;this._latestSnapshot=e,await this.applySnapshot(e.INTERNAL__fullClone(),t)}publishSnapshot(e){const t=this._latestSnapshot;this._latestSnapshot=e,this._settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)&&this._engine.debugProcess("New Snapshot",["Publisher",this.getSnapshotSubscriberName()],["Snapshot",e],["Previous Snapshot",t],["Diff",(0,Ku.A)(t??{},e)]),this._snapshotService.broadcastSnapshot(e)}}class Ju{_engine;_logService;_subscribers=[];_snapshots=[];_initialSnapshot;_initialQuery;constructor(e,t){this._engine=e,this._logService=t}get currentSnapshot(){return P(this._snapshots[this._snapshots.length-1])}registerSubscriber(e){if(this._subscribers.find((t=>t.getSnapshotSubscriberName()===e.getSnapshotSubscriberName())))throw new I(`Subscriber with name '${e.getSnapshotSubscriberName()}' already exists`);this._subscribers.push(e)}initialize(e,t){if(this._initialSnapshot||this._initialQuery)throw new I("Snapshot manager has already been initialized");this._initialSnapshot=e,this._initialQuery=t}get initialSnapshot(){return P(this._initialSnapshot,"Snapshot manager has not been initialized")}get initialQuery(){return P(this._initialQuery,"Snapshot manager has not been initialized")}broadcastSnapshot(e){e.isFinalized()?(this._snapshots.push(e),this._subscribers.forEach((t=>{const n=t.getLatestSnapshot();n?.uuid!==e.uuid&&t.receiveSnapshot(e).catch((e=>{w(e),this._logService.logIllegalStateError("Error occured while subscribers receiving and applying new snapshot should be handled gracefully",e)}))}))):this._logService.logIllegalStateError("Snapshot must be finalized before broadcasting")}}function Qu({name:e,subMenu:t,checked:n}){return(0,Io.sd)({configureDefaults:()=>!0}),(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-icon"}),(0,E.jsxs)("span",{className:"ag-menu-option-part ag-menu-option-text !inline-flex items-center",children:[(0,E.jsx)("span",{className:"opacity-50",children:e}),(0,E.jsx)(Fc,{})]}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-shortcut"}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-popup-pointer select-none",children:t&&(0,E.jsx)("span",{className:"ag-icon ag-icon-small-right"})})]})}var Zu=n(43322);class ed{uuid=(0,i.A)();parent;not=!1;constructor(e,t){(0,Ie.Gn)(this,{parent:Ie.sH,setParent:Ie.XI,not:Ie.sH,setNot:Ie.XI}),this.parent=e,this.not=Boolean(t)}setNot(e){this.not=e}setParent(e){this.parent=e}}class td extends ed{column;operation;value;constructor(e,t,n,r,o){super(e,o),(0,Ie.Gn)(this,{column:Ie.sH,setColumn:Ie.XI,operation:Ie.sH,setOperation:Ie.XI,value:Ie.sH.ref,setValue:Ie.XI,updateValue:Ie.XI}),this.column=t,this.operation=n,this.setValue(r)}setColumn(e){this.column=e}setOperation(e){this.operation=e}setValue(e){this.value=e?(0,Ie.AT)(e)?e:(0,Ie.Gn)(e,{value:Ie.sH}):void 0}updateValue(e){this.value&&(this.value.value=e)}}class nd extends ed{children=[];operation=ii.AND;constructor(e,t,n){super(e,n),(0,Ie.Gn)(this,{children:Ie.sH,removeChild:Ie.XI,addChild:Ie.XI,operation:Ie.sH,setOperation:Ie.XI}),this.operation=t}setOperation(e){this.operation=e}removeChild(e){y(this.children,e)&&e.setParent(void 0)}addChild(e,t){this.children.includes(e)||(void 0!==t?(t=Math.max(0,Math.min(t,this.children.length)),this.children.splice(t,0,e)):this.children.push(e),e.setParent(this))}}function rd(e){return{groupOperator:e.operation,not:e.not,conditions:e.children.map((e=>{if(e instanceof td)return{name:e.column.name,type:e.column.type,operator:e.operation.operator,value:(0,Zu.A)(e.value),not:e.not};if(e instanceof nd)return rd(e);throw new I("Unknown filter node")}))}}function od(e,t,n,r){const o=new nd(t,e.groupOperator===ii.AND?ii.AND:ii.OR,e.not);return e.conditions.forEach((e=>{let t;t="groupOperator"in e?od(e,o,n,r):new td(o,{name:e.name,type:e.type},r(e.operator),e.value,e.not),o.addChild(t),n.set(t.uuid,t)})),n.set(o.uuid,o),o}class id{name;type;constructor(e,t){this.name=e,this.type=t}}class ad{_editor;selectedColumns=[];availableColumnsSearchText="";selectedColumnsSearchText="";onChange;constructor(e,t){(0,Ie.Gn)(this,{availableColumns:Ie.EW,availableColumnsForDisplay:Ie.EW,selectedColumnsForDisplay:Ie.EW,selectedColumns:Ie.sH,setSelectedColumns:Ie.XI,availableColumnsSearchText:Ie.sH,setAvailableColumnsSearchText:Ie.XI,selectedColumnsSearchText:Ie.sH,setSelectedColumnsSearchText:Ie.XI}),this._editor=e,this.onChange=t?.onChange}get availableColumnsForDisplay(){return this.availableColumns.filter((e=>!this.selectedColumns.find((t=>e.name===t.name)))).sort(Ul)}get selectedColumnsForDisplay(){return this.selectedColumns}setSelectedColumns(e){this.selectedColumns=e.map((e=>this.cloneColumn(e))),this.onChange?.(this)}setAvailableColumnsSearchText(e){this.availableColumnsSearchText=e}setSelectedColumnsSearchText(e){this.selectedColumnsSearchText=e}getColumn(e){return P(this.availableColumns.find((t=>t.name===e)),`Can't find column '${e}'`)}}class sd extends id{direction;constructor(e,t,n){super(e,t),(0,Ie.Gn)(this,{direction:Ie.sH,setDirection:Ie.XI}),this.direction=n}setDirection(e){this.direction=e}}class ld extends ad{cloneColumn(e){return new sd(e.name,e.type,e.direction)}get availableColumns(){return(0,nt.A)([...this._editor.horizontalPivots.selector.selectedColumns.length?[...this._editor.horizontalPivots.pivotResultColumns,...[...this._editor.columns.selector.selectedColumns,...this._editor.verticalPivots.selector.selectedColumns].filter((e=>this._editor.columnProperties.getColumnConfiguration(e.name).kind===ei.DIMENSION&&!this._editor.horizontalPivots.selector.selectedColumns.find((t=>t.name===e.name))))]:[...this._editor.columns.selector.selectedColumns,...this._editor.verticalPivots.selector.selectedColumns],...this._editor.groupExtendColumns],(e=>e.name)).map((e=>new sd(e.name,e.type,ai.ASCENDING)))}}class cd{selector;constructor(e){this.selector=new ld(e)}adaptPropagatedChanges(){this.selector.setSelectedColumns(this.selector.selectedColumns.filter((e=>this.selector.availableColumns.find((t=>t.name===e.name)))))}applySnaphot(e,t){this.selector.setSelectedColumns(e.data.sortColumns.map((e=>{const t=this.selector.getColumn(e.name);return new sd(t.name,t.type,e.direction)})))}buildSnapshot(e,t){e.data.sortColumns=this.selector.selectedColumns.map((e=>({...Ml(e),direction:e.direction})))}}function ud(e){const{name:t,type:n}=e,r=new Pi(t,n);switch(n){case jo.NUMBER:case jo.INTEGER:case jo.DECIMAL:case jo.FLOAT:r.kind=ei.MEASURE,r.decimals=n===jo.INTEGER?0:2,r.displayCommas=!0,r.negativeNumberInParens=!0,r.textAlign=Jo.RIGHT,r.excludedFromPivot=!1,r.aggregateOperator=ni.SUM,r.pivotStatisticColumnFunction=ni.SUM;break;default:r.kind=ei.DIMENSION,r.excludedFromPivot=!0,r.aggregateOperator=ni.UNIQUE}return r}function dd(e,t){return P(t.find((t=>t.operator===e)),`Can't find aggregate operation '${e}'`)}class gd{}class pd extends Pi{dataType;aggregateOperation;static create(e,t,n){const r=Object.assign(new pd("",""),Pi.serialization.fromJson(e));return r.dataType=ui(r.type),r.aggregateOperation=dd(r.aggregateOperator,n),(0,Ie.Gn)(r,{kind:Ie.sH,setKind:Ie.XI,displayName:Ie.sH,setDisplayName:Ie.XI,decimals:Ie.sH,setDecimals:Ie.XI,displayCommas:Ie.sH,setDisplayCommas:Ie.XI,negativeNumberInParens:Ie.sH,setNegativeNumberInParens:Ie.XI,numberScale:Ie.sH,setNumberScale:Ie.XI,missingValueDisplayText:Ie.sH,setMissingValueDisplayText:Ie.XI,unit:Ie.sH,setUnit:Ie.XI,fontFamily:Ie.sH,setFontFamily:Ie.XI,fontSize:Ie.sH,setFontSize:Ie.XI,fontBold:Ie.sH,setFontBold:Ie.XI,fontItalic:Ie.sH,setFontItalic:Ie.XI,fontUnderline:Ie.sH,setFontUnderline:Ie.XI,fontStrikethrough:Ie.sH,setFontStrikethrough:Ie.XI,fontCase:Ie.sH,setFontCase:Ie.XI,textAlign:Ie.sH,setTextAlign:Ie.XI,normalForegroundColor:Ie.sH,setNormalForegroundColor:Ie.XI,negativeForegroundColor:Ie.sH,setNegativeForegroundColor:Ie.XI,zeroForegroundColor:Ie.sH,setZeroForegroundColor:Ie.XI,errorForegroundColor:Ie.sH,setErrorForegroundColor:Ie.XI,normalBackgroundColor:Ie.sH,setNormalBackgroundColor:Ie.XI,negativeBackgroundColor:Ie.sH,setNegativeBackgroundColor:Ie.XI,zeroBackgroundColor:Ie.sH,setZeroBackgroundColor:Ie.XI,errorBackgroundColor:Ie.sH,setErrorBackgroundColor:Ie.XI,isSelected:Ie.sH,setIsSelected:Ie.XI,hideFromView:Ie.sH,setHideFromView:Ie.XI,blur:Ie.sH,setBlur:Ie.XI,fixedWidth:Ie.sH,setFixedWidth:Ie.XI,minWidth:Ie.sH,setMinWidth:Ie.XI,maxWidth:Ie.sH,setMaxWidth:Ie.XI,pinned:Ie.sH,setPinned:Ie.XI,displayAsLink:Ie.sH,setDisplayAsLink:Ie.XI,linkLabelParameter:Ie.sH,setLinkLabelParameter:Ie.XI,isUsingDefaultStyling:Ie.EW,useDefaultStyling:Ie.XI,aggregateOperator:Ie.sH,aggregateOperation:Ie.sH,setAggregateOperation:Ie.XI,aggregationParameters:Ie.sH,setAggregationParameters:Ie.XI,excludedFromPivot:Ie.sH,setExcludedFromPivot:Ie.XI,pivotSortDirection:Ie.sH,setPivotSortDirection:Ie.XI,pivotStatisticColumnFunction:Ie.sH,setPivotStatisticColumnFunction:Ie.XI}),r}static createDefault(e,t){return pd.create(Pi.serialization.toJson(ud(e)),void 0,t)}get isUsingDefaultStyling(){return void 0===this.fontFamily&&void 0===this.fontSize&&void 0===this.fontBold&&void 0===this.fontItalic&&void 0===this.fontUnderline&&void 0===this.fontStrikethrough&&void 0===this.textAlign&&void 0===this.normalForegroundColor&&void 0===this.negativeForegroundColor&&void 0===this.zeroForegroundColor&&void 0===this.errorForegroundColor&&void 0===this.normalBackgroundColor&&void 0===this.negativeBackgroundColor&&void 0===this.zeroBackgroundColor&&void 0===this.errorBackgroundColor}useDefaultStyling(){this.fontFamily=void 0,this.fontSize=void 0,this.fontBold=void 0,this.fontItalic=void 0,this.fontUnderline=void 0,this.fontStrikethrough=void 0,this.textAlign=void 0,this.normalForegroundColor=void 0,this.negativeForegroundColor=void 0,this.zeroForegroundColor=void 0,this.errorForegroundColor=void 0,this.normalBackgroundColor=void 0,this.negativeBackgroundColor=void 0,this.zeroBackgroundColor=void 0,this.errorBackgroundColor=void 0}setKind(e){this.kind=e}setDisplayName(e){this.displayName=e}setDecimals(e){this.decimals=e}setDisplayCommas(e){this.displayCommas=e}setNegativeNumberInParens(e){this.negativeNumberInParens=e}setNumberScale(e){this.numberScale=e}setMissingValueDisplayText(e){this.missingValueDisplayText=e}setUnit(e){this.unit=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setIsSelected(e){this.isSelected=e}setHideFromView(e){this.hideFromView=e}setBlur(e){this.blur=e}setFixedWidth(e){this.fixedWidth=e}setMinWidth(e){this.minWidth=e}setMaxWidth(e){this.maxWidth=e}setPinned(e){this.pinned=e}setDisplayAsLink(e){this.displayAsLink=e}setLinkLabelParameter(e){this.linkLabelParameter=e}setAggregateOperation(e){this.aggregateOperation=e,this.aggregateOperator=e.operator}setAggregationParameters(e){this.aggregationParameters=e}setExcludedFromPivot(e){this.excludedFromPivot=e}setPivotSortDirection(e){this.pivotSortDirection=e}setPivotStatisticColumnFunction(e){this.pivotStatisticColumnFunction=e}}class md extends Di{static create(e){const t=Object.assign(new md,Di.serialization.fromJson(e));return(0,Ie.Gn)(t,{expandedPaths:Ie.sH,setExpandedPaths:Ie.XI}),t}setExpandedPaths(e){this.expandedPaths=e}}class hd extends ji{static create(e){const t=Object.assign(new hd,ji.serialization.fromJson(e));return t.columns=[],(0,Ie.Gn)(t,{name:Ie.sH,setName:Ie.XI,description:Ie.sH,setDescription:Ie.XI,showHorizontalGridLines:Ie.sH,setShowHorizontalGridLines:Ie.XI,showVerticalGridLines:Ie.sH,setShowVerticalGridLines:Ie.XI,gridLineColor:Ie.sH,setGridLineColor:Ie.XI,fontFamily:Ie.sH,setFontFamily:Ie.XI,fontSize:Ie.sH,setFontSize:Ie.XI,fontBold:Ie.sH,setFontBold:Ie.XI,fontItalic:Ie.sH,setFontItalic:Ie.XI,fontUnderline:Ie.sH,setFontUnderline:Ie.XI,fontStrikethrough:Ie.sH,setFontStrikethrough:Ie.XI,fontCase:Ie.sH,setFontCase:Ie.XI,textAlign:Ie.sH,setTextAlign:Ie.XI,normalForegroundColor:Ie.sH,setNormalForegroundColor:Ie.XI,negativeForegroundColor:Ie.sH,setNegativeForegroundColor:Ie.XI,zeroForegroundColor:Ie.sH,setZeroForegroundColor:Ie.XI,errorForegroundColor:Ie.sH,setErrorForegroundColor:Ie.XI,normalBackgroundColor:Ie.sH,setNormalBackgroundColor:Ie.XI,negativeBackgroundColor:Ie.sH,setNegativeBackgroundColor:Ie.XI,zeroBackgroundColor:Ie.sH,setZeroBackgroundColor:Ie.XI,errorBackgroundColor:Ie.sH,setErrorBackgroundColor:Ie.XI,alternateRows:Ie.sH,setAlternateRows:Ie.XI,alternateRowsColor:Ie.sH,setAlternateRowsColor:Ie.XI,alternateRowsCount:Ie.sH,setAlternateRowsCount:Ie.XI,alternateRowsStandardMode:Ie.sH,setAlternateRowsStandardMode:Ie.XI,showSelectionStats:Ie.sH,setShowSelectionStats:Ie.XI,showWarningForTruncatedResult:Ie.sH,setShowWarningForTruncatedResult:Ie.XI,initialExpandLevel:Ie.sH,setInitialExpandLevel:Ie.XI,showRootAggregation:Ie.sH,setShowRootAggregation:Ie.XI,showLeafCount:Ie.sH,setShowLeafCount:Ie.XI,treeColumnSortDirection:Ie.sH,setTreeColumnSortDirection:Ie.XI,pivotStatisticColumnName:Ie.sH,setPivotStatisticColumnName:Ie.XI,pivotStatisticColumnPlacement:Ie.sH,setPivotStatisticColumnPlacement:Ie.XI,isUsingDefaultStyling:Ie.EW,useDefaultStyling:Ie.XI}),t}get isUsingDefaultStyling(){return this.fontFamily===Ni&&11===this.fontSize&&this.fontBold===Ai&&this.fontItalic===yi&&this.fontUnderline===Si&&this.fontStrikethrough===xi&&this.textAlign===Ii&&this.normalForegroundColor===ki&&this.negativeForegroundColor===Oi&&this.zeroForegroundColor===Li&&this.errorForegroundColor===Fi&&this.normalBackgroundColor===wi&&this.negativeBackgroundColor===wi&&this.zeroBackgroundColor===wi&&this.errorBackgroundColor===wi}useDefaultStyling(){this.fontFamily=Ni,this.fontSize=11,this.fontBold=Ai,this.fontItalic=yi,this.fontUnderline=Si,this.fontStrikethrough=xi,this.textAlign=Ii,this.normalForegroundColor=ki,this.negativeForegroundColor=Oi,this.zeroForegroundColor=Li,this.errorForegroundColor=Fi,this.normalBackgroundColor=wi,this.negativeBackgroundColor=wi,this.zeroBackgroundColor=wi,this.errorBackgroundColor=wi}setName(e){this.name=e}setDescription(e){this.description=e}setShowHorizontalGridLines(e){this.showHorizontalGridLines=e}setShowVerticalGridLines(e){this.showVerticalGridLines=e}setGridLineColor(e){this.gridLineColor=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setAlternateRows(e){this.alternateRows=e}setAlternateRowsColor(e){this.alternateRowsColor=e}setAlternateRowsCount(e){this.alternateRowsCount=e}setAlternateRowsStandardMode(e){this.alternateRowsStandardMode=e}setShowSelectionStats(e){this.showSelectionStats=e}setShowWarningForTruncatedResult(e){this.showWarningForTruncatedResult=e}setInitialExpandLevel(e){this.initialExpandLevel=e}setShowRootAggregation(e){this.showRootAggregation=e}setShowLeafCount(e){this.showLeafCount=e}setTreeColumnSortDirection(e){this.treeColumnSortDirection=e}setPivotStatisticColumnPlacement(e){this.pivotStatisticColumnPlacement=e}setPivotStatisticColumnName(e){this.pivotStatisticColumnName=e}setExpandedPaths(e){this.pivotLayout.expandedPaths=e}}class fd{limit=void 0;configuration=new hd;constructor(e){(0,Ie.Gn)(this,{configuration:Ie.sH,limit:Ie.sH,setLimit:Ie.XI,applySnaphot:Ie.XI})}setLimit(e){this.limit=e}applySnaphot(e,t){this.setLimit(void 0!==e.data.limit&&e.data.limit>=0?e.data.limit:void 0),this.configuration=hd.create(e.data.configuration)}buildSnapshot(e,t){const n=e.data;n.limit=void 0===this.limit||this.limit<0?void 0:this.limit,n.configuration=this.configuration.serialize()}}class Ed{_view;columns=[];selectedColumnName;showAdvancedSettings=!1;constructor(e){(0,Ie.Gn)(this,{columns:Ie.sH,setColumns:Ie.XI,selectedColumnName:Ie.sH,setSelectedColumnName:Ie.XI,selectedColumn:Ie.EW,showAdvancedSettings:Ie.sH,setShowAdvancedSettings:Ie.XI,applySnaphot:Ie.XI}),this._view=e.view}getColumnConfiguration(e){return P(this.columns.find((t=>t.name===e)),`Can't find configuration for column '${e}'`)}setColumns(e){this.columns=e}setSelectedColumnName(e){this.selectedColumnName=e}get selectedColumn(){return this.columns.find((e=>e.name===this.selectedColumnName))}setShowAdvancedSettings(e){this.showAdvancedSettings=e}applySnaphot(e,t){this.setColumns(e.data.configuration.columns.map((t=>pd.create(t,e,this._view.engine.aggregateOperations)))),!this.selectedColumn&&this.columns.length&&this.setSelectedColumnName(A(this.columns,0).name)}buildSnapshot(e,t){e.data.configuration={...e.data.configuration,columns:this.columns.map((e=>e.serialize()))}}}class bd extends ad{showHiddenColumns=!1;constructor(e,t){super(e,t),(0,Ie.Gn)(this,{availableColumnsForDisplay:Ie.$Z,selectedColumnsForDisplay:Ie.$Z,showHiddenColumns:Ie.sH,setShowHiddenColumns:Ie.XI})}cloneColumn(e){return new id(e.name,e.type)}get availableColumns(){return[...this._editor.sourceColumns,...this._editor.leafExtendColumns,...this._editor.groupExtendColumns].map((e=>new id(e.name,e.type)))}get availableColumnsForDisplay(){return super.availableColumnsForDisplay.filter((e=>this.showHiddenColumns||!this._editor.columnProperties.getColumnConfiguration(e.name).hideFromView))}get selectedColumnsForDisplay(){return super.selectedColumnsForDisplay.filter((e=>this.showHiddenColumns||!this._editor.columnProperties.getColumnConfiguration(e.name).hideFromView))}setShowHiddenColumns(e){this.showHiddenColumns=e}}class Cd{_editor;selector;constructor(e){(0,Ie.Gn)(this,{applySnaphot:Ie.XI}),this._editor=e,this.selector=new bd(e,{onChange:e=>{const t=e.selectedColumns.map((e=>this._editor.columnProperties.getColumnConfiguration(e.name))),n=this._editor.columnProperties.columns.filter((e=>!t.includes(e)));t.forEach((e=>e.setIsSelected(!0))),n.forEach((e=>e.setIsSelected(!1))),this._editor.columnProperties.setColumns([...t,...n])}})}propagateChanges(){this._editor.sorts.adaptPropagatedChanges()}applySnaphot(e,t){this.selector.setSelectedColumns(this._editor.columnProperties.columns.filter((e=>e.isSelected)).map((e=>{const t=this.selector.getColumn(e.name);return new id(t.name,t.type)})))}buildSnapshot(e,t){this.propagateChanges(),e.data.selectColumns=this.selector.selectedColumns.filter((e=>!this._editor.groupExtendColumns.find((t=>t.name===e.name)))).map(Ml)}}class vd extends ad{cloneColumn(e){return new id(e.name,e.type)}get availableColumns(){return this._editor.columnProperties.columns.filter((e=>e.kind===ei.DIMENSION&&!this._editor.groupExtendColumns.find((t=>t.name===e.name))&&!this._editor.horizontalPivots.selector.selectedColumns.find((t=>t.name===e.name)))).map((e=>new id(e.name,e.type)))}}class _d{selector;constructor(e){this.selector=new vd(e)}adaptPropagatedChanges(){this.selector.setSelectedColumns(this.selector.selectedColumns.filter((e=>this.selector.availableColumns.find((t=>t.name===e.name)))))}applySnaphot(e,t){this.selector.setSelectedColumns((e.data.groupBy?.columns??[]).map((e=>new id(e.name,e.type))))}buildSnapshot(e,t){e.data.groupBy=this.selector.selectedColumns.length?{columns:this.selector.selectedColumns.map(Ml)}:void 0,e.data.selectColumns=(0,nt.A)([...e.data.selectColumns,...this.selector.selectedColumns],(e=>e.name)).map(Ml)}}function Td(){return{modules:[So.JKr],className:"ag-theme-quartz",animateRows:!1,getRowId:e=>e.data.name,editType:"fullRow",rowDragMultiRow:!0,rowDragEntireRow:!0,rowSelection:{mode:"multiRow",checkboxes:!0,headerCheckbox:!0,enableClickSelection:!0},selectionColumnDef:{width:40,headerClass:"!pl-[23px]",cellClass:"!pl-1.5",rowDrag:!0,rowDragText:(e,t)=>t>1?`${t} columns`:(e.rowNode?.data).name,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0},suppressMoveWhenRowDragging:!0,rowHeight:20,headerHeight:20,suppressRowHoverHighlight:!1,noRowsOverlayComponent:e=>e.api.getQuickFilter()?(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-semibold text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(go.WarningCircle,{className:"mr-1 text-lg"})}),"No match found"]}):e.noColumnsSelectedRenderer?e.noColumnsSelectedRenderer():(0,E.jsx)("div",{}),onModelUpdated:e=>{0===e.api.getDisplayedRowCount()?e.api.showNoRowsOverlay():e.api.hideOverlay()}}}const Nd=(0,vt.PA)((function(e){const{selector:t,gridApi:n,scope:r}=e;return(0,E.jsxs)("div",{className:"flex items-center justify-center rounded-lg bg-neutral-500 px-1 py-0.5 font-mono text-xs font-bold text-white",children:[`${vu(n).length}/${"available"===r?t.availableColumnsForDisplay.length:t.selectedColumnsForDisplay.length}`,(0,E.jsx)("span",{className:"hidden",children:"available"===r?t.availableColumnsSearchText:t.selectedColumnsSearchText})]})})),Ad=(0,vt.PA)((function(e){const{selector:t,columnLabelRenderer:n,columnActionRenderer:r,noColumnsSelectedRenderer:o}=e,[i,a]=(0,Ft.useState)([]),[s,l]=(0,Ft.useState)([]),[c,u]=(0,Ft.useState)(null),[d,g]=(0,Ft.useState)(null),p=(0,Ft.useRef)(null),m=(0,Ft.useRef)(null),h=(0,Ft.useCallback)((e=>{t.setSelectedColumns(Cu(e.api))}),[t]),f=(0,Ft.useCallback)((e=>{const n=e.nodes.map((e=>e.data)).filter(F);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e))))}),[t]),b=(0,Ft.useCallback)((e=>{-1!==e.overIndex&&t.setSelectedColumns(Cu(e.api))}),[t]);return(0,Ft.useEffect)((()=>{if(!c||!d)return;const e=d.getRowDropZoneParams({onDragStop:e=>{h(e),c.clearFocusedCell()}});e&&(c.removeRowDropZone(e),c.addRowDropZone(e));const t=c.getRowDropZoneParams({onDragStop:e=>{f(e),d.clearFocusedCell()}});t&&(d.removeRowDropZone(t),d.addRowDropZone(t))}),[c,d,h,f]),(0,E.jsxs)("div",{className:"data-cube-column-selector flex h-full w-full",children:[(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Available columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 pr-6 placeholder-neutral-400",ref:p,placeholder:"Click here to search...",value:t.availableColumnsSearchText,onChange:e=>t.setAvailableColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),p.current?.select(),t.setAvailableColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(go.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.availableColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setAvailableColumnsSearchText(""),p.current?.focus()},children:(0,E.jsx)(go.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(Io.W6,{theme:"legacy",...Td(),rowDragManaged:!1,onGridReady:e=>u(e.api),onSelectionChanged:e=>{a(e.api.getSelectedNodes().map((e=>e.data)).filter(F))},quickFilterText:t.availableColumnsSearchText,rowData:t.availableColumnsForDisplay,columnDefs:[{field:"name",colId:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to add all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=vu(e.api);t.setSelectedColumns([...t.selectedColumns,...n]),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(Nd,{selector:t,gridApi:e.api,scope:"available"})]}),cellRenderer:e=>{const o=e.data;return o?(0,E.jsxs)("div",{className:"flex h-full w-full cursor-pointer items-center",title:`[${o.name}]\nDouble-click to add column`,onDoubleClick:()=>{t.setSelectedColumns([...t.selectedColumns,o]),e.api.clearFocusedCell()},children:[n?.({selector:t,column:o})??(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:o.name}),(0,E.jsx)("div",{className:"flex h-full",children:r?.({selector:t,column:o})??null})]}):null}}]})})]})]}),(0,E.jsx)("div",{className:"flex h-full w-10 items-center justify-center",children:(0,E.jsxs)("div",{className:"flex flex-col",children:[(0,E.jsx)("button",{className:"flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Add selected columns",onClick:()=>{if(!c)return;const e=vu(c),n=i.filter((t=>e.includes(t)));t.setSelectedColumns([...t.selectedColumns,...n]),c.clearFocusedCell()},disabled:0===i.length,children:(0,E.jsx)(go.ChevronRight,{className:"text-2xl"})}),(0,E.jsx)("button",{className:"mt-2 flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Remove selected columns",onClick:()=>{if(!d)return;const e=vu(d),n=s.filter((t=>e.includes(t)));t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),d.clearFocusedCell()},disabled:0===s.length,children:(0,E.jsx)(go.ChevronLeft,{className:"text-2xl"})})]})}),(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Selected columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 placeholder-neutral-400",ref:m,placeholder:"Click here to search...",value:t.selectedColumnsSearchText,onChange:e=>t.setSelectedColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),t.setSelectedColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(go.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.selectedColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setSelectedColumnsSearchText(""),m.current?.focus()},children:(0,E.jsx)(go.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(Io.W6,{theme:"legacy",...Td(),rowDragManaged:!0,onRowDragEnd:b,onGridReady:e=>g(e.api),onSelectionChanged:e=>{l(e.api.getSelectedNodes().map((e=>e.data)).filter(F))},quickFilterText:t.selectedColumnsSearchText,noRowsOverlayComponentParams:{noColumnsSelectedRenderer:o},rowData:t.selectedColumnsForDisplay,columnDefs:[{field:"name",colId:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to remove all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=vu(e.api);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(Nd,{selector:t,gridApi:e.api,scope:"selected"})]}),cellRenderer:e=>{const o=e.data;return o?(0,E.jsxs)("div",{className:"flex h-full w-full cursor-pointer items-center",title:`[${o.name}]\nDouble-click to add column`,onDoubleClick:()=>{t.setSelectedColumns(t.selectedColumns.filter((e=>e!==o))),e.api.clearFocusedCell()},children:[n?.({selector:t,column:o})??(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:o.name}),(0,E.jsx)("div",{className:"flex h-full",children:r?.({selector:t,column:o})??null})]}):null}}]})})]})]})]})})),yd=(0,vt.PA)((e=>{const{column:t}=e,[n,r,o,i]=Sc();return(0,E.jsxs)("div",{className:"group relative flex h-full items-center",children:[!i&&(0,E.jsx)("div",{className:"flex h-[18px] w-32 items-center border border-transparent px-2 text-sm text-neutral-400 group-hover:invisible",children:t.direction}),i&&(0,E.jsxs)("div",{className:"flex h-[18px] w-32 items-center justify-between border border-sky-600 bg-sky-50 pl-2 pr-0.5 text-sm",children:[(0,E.jsx)("div",{children:t.direction}),(0,E.jsx)("div",{children:(0,E.jsx)(go.CaretDown,{})})]}),(0,E.jsxs)("button",{className:"invisible absolute right-0 z-10 flex h-[18px] w-32 items-center justify-between border border-neutral-400 pl-2 pr-0.5 text-sm text-neutral-700 group-hover:visible",onClickCapture:e=>{e.stopPropagation(),n(e)},onClick:e=>e.stopPropagation(),children:[(0,E.jsx)("div",{children:t.direction}),(0,E.jsx)("div",{children:(0,E.jsx)(go.CaretDown,{})})]}),(0,E.jsx)(Gc,{className:"w-32",...o,children:[ai.ASCENDING,ai.DESCENDING].map((e=>(0,E.jsx)(Hc,{onClick:()=>{t.setDirection(e),r()},autoFocus:t.direction===e,children:e},e)))})]})})),Sd=(0,vt.PA)((e=>{const{column:t}=e;return(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:t.name.split(gi).join(" / ")})})),xd=(0,vt.PA)((e=>{const{view:t}=e,n=t.editor.sorts;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(go.TableSort,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Sorts"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ad,{selector:n.selector,columnLabelRenderer:e=>(0,E.jsx)(Sd,{...e}),columnActionRenderer:e=>(0,E.jsx)(yd,{...e})})})]})}));var Id;!function(e){e.EXTENDED_COLUMN_LEVELS="data-cube.extended-column.levels",e.GRID_CONFIGURATION_ROW_LIMIT="data-cube.grid-configuration.row-limit",e.COLUMN_CONFIGURATION_KIND="data-cube.column-configuration.kind",e.COLUMN_CONFIGURATION_UNIT="data-cube.column-configuration.unit",e.COLUMN_CONFIGURATION_DISPLAY_AS_LINK="data-cube.column-configuration.display-value-as-link",e.COLUMN_CONFIGURATION_MISSING_VALUE_FORMAT="data-cube.column-configuration.missing-value-format"}(Id||(Id={}));const kd=(0,vt.PA)((e=>{const{view:t}=e,n=t.editor.generalProperties,r=n.configuration,[o,i,a,s]=Sc(),[l,c,u,d]=Sc(),[g,p,m,h]=Sc(),[f,b,C,v]=Sc(),[_,T,N]=Sc(),[A,y,S]=Sc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(go.TableOptions,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"General Properties"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Report Title:"}),(0,E.jsx)(jc,{className:"h-6 w-96 text-lg font-semibold",value:r.name,onChange:e=>{r.setName(e.target.value)}})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Tree Column:"}),(0,E.jsx)(Mc,{label:"Show root aggregation",checked:r.showRootAggregation,onChange:()=>r.setShowRootAggregation(!r.showRootAggregation)}),(0,E.jsx)(Mc,{className:"ml-3",label:"Show leaf count",checked:r.showLeafCount,onChange:()=>r.setShowLeafCount(!r.showLeafCount)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)("div",{className:"mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Sort:"}),(0,E.jsx)(Uc,{className:"w-20",onClick:o,open:s,children:r.treeColumnSortDirection}),(0,E.jsx)(Gc,{className:"w-20",...a,children:[ai.ASCENDING,ai.DESCENDING].map((e=>(0,E.jsx)(Hc,{onClick:()=>{r.setTreeColumnSortDirection(e),i()},autoFocus:e===r.treeColumnSortDirection,children:e},e)))}),(0,E.jsx)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Initially expand to level:"}),(0,E.jsx)(Uc,{className:"w-16",onClick:l,open:d,showAsPlaceholder:void 0===r.initialExpandLevel,children:r.initialExpandLevel??Bi}),(0,E.jsx)(Gc,{className:"w-16",...u,children:[void 0,1,2,3,4,5,6,7,8].map((e=>(0,E.jsx)(Hc,{onClick:()=>{r.setInitialExpandLevel(e),c()},autoFocus:e===r.initialExpandLevel,children:e??Bi},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Row Limit:",(0,E.jsx)($c,{className:"ml-1",documentationKey:Id.GRID_CONFIGURATION_ROW_LIMIT})]}),(0,E.jsx)(Dc,{className:"w-16 text-sm",value:n.limit,min:0,step:1,defaultValue:void 0,placeholder:Bi,setValue:e=>n.setLimit(e)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)(Mc,{label:"Display warning when truncated",checked:r.showWarningForTruncatedResult,onChange:()=>r.setShowWarningForTruncatedResult(!r.showWarningForTruncatedResult)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Selection Stats?"}),(0,E.jsx)(Mc,{checked:r.showSelectionStats,onChange:()=>r.setShowSelectionStats(!r.showSelectionStats),disabled:!0}),(0,E.jsx)(Fc,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Lines?"}),(0,E.jsx)(Mc,{label:"Horizontal",checked:r.showHorizontalGridLines,onChange:()=>r.setShowHorizontalGridLines(!r.showHorizontalGridLines)}),(0,E.jsx)(Mc,{className:"ml-3",label:"Vertical",checked:r.showVerticalGridLines,onChange:()=>r.setShowVerticalGridLines(!r.showVerticalGridLines)}),(0,E.jsx)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Color:"}),(0,E.jsx)(Yc,{color:r.gridLineColor,defaultColor:_i,onChange:e=>r.setGridLineColor(e)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Hightlight Rows:"}),(0,E.jsx)(Mc,{label:"Standard mode",checked:r.alternateRowsStandardMode,onChange:()=>{r.alternateRowsStandardMode?r.setAlternateRowsStandardMode(!1):(r.setAlternateRowsStandardMode(!0),r.setAlternateRows(!1))}}),(0,E.jsx)(Mc,{className:"ml-3",checked:r.alternateRows,onChange:()=>{r.alternateRows?r.setAlternateRows(!1):(r.setAlternateRows(!0),r.setAlternateRowsStandardMode(!1))}}),(0,E.jsx)("div",{className:"ml-1 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Custom: Alternate color:"}),(0,E.jsx)(Yc,{disabled:!r.alternateRows,color:r.alternateRowsColor,defaultColor:Ti,onChange:e=>r.setAlternateRowsColor(e)}),(0,E.jsx)("div",{className:"ml-1 flex h-full flex-shrink-0 items-center text-sm",children:"every:"}),(0,E.jsx)(Dc,{className:"ml-1 w-16 text-sm",disabled:!r.alternateRows,min:1,step:1,defaultValue:1,isValid:e=>void 0!==e&&e>0,value:r.alternateRowsCount,setValue:e=>r.setAlternateRowsCount(e??1)}),(0,E.jsx)("div",{className:"ml-1 flex-shrink-0 text-sm",children:"rows"})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Default Font:"}),(0,E.jsx)(Uc,{className:"w-28",onClick:g,open:h,children:r.fontFamily}),(0,E.jsxs)(Gc,{className:"w-28",...m,children:[[qo.ARIAL,qo.ROBOTO,qo.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(Hc,{onClick:()=>{r.setFontFamily(e),p()},autoFocus:e===r.fontFamily,children:e},e))),(0,E.jsx)(Vc,{}),[qo.GEORGIA,qo.ROBOTO_SERIF,qo.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(Hc,{onClick:()=>{r.setFontFamily(e),p()},autoFocus:e===r.fontFamily,children:e},e))),(0,E.jsx)(Vc,{}),[qo.JERBRAINS_MONO,qo.ROBOTO_MONO,qo.UBUNTU_MONO].map((e=>(0,E.jsx)(Hc,{onClick:()=>{r.setFontFamily(e),p()},autoFocus:e===r.fontFamily,children:e},e)))]}),(0,E.jsx)(Uc,{className:"ml-1 w-10",onClick:f,open:v,children:r.fontSize}),(0,E.jsx)(Gc,{className:"w-10",...C,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(Hc,{onClick:()=>{r.setFontSize(e),b()},autoFocus:e===r.fontSize,children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:Mn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":r.fontBold}),onClick:()=>r.setFontBold(!r.fontBold),children:(0,E.jsx)(go.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":r.fontItalic}),onClick:()=>r.setFontItalic(!r.fontItalic),children:(0,E.jsx)(go.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(r.fontUnderline?` (${r.fontUnderline})`:""),className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==r.fontUnderline}),onClick:()=>{void 0===r.fontUnderline?(r.setFontUnderline(Zo.SOLID),r.setFontStrikethrough(!1)):r.setFontUnderline(void 0)},children:(0,E.jsx)(go.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:_,children:[(0,E.jsx)("div",{className:Mn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==r.fontUnderline})}),(0,E.jsx)(go.CaretDown,{})]}),(0,E.jsx)(Gc,{className:"w-14",...N,children:[Zo.SOLID,Zo.DASHED,Zo.DOTTED,Zo.DOUBLE,Zo.WAVY].map((e=>(0,E.jsx)(Hc,{className:"relative",onClick:()=>{r.setFontUnderline(e),r.setFontStrikethrough(!1),T()},autoFocus:e===r.fontUnderline,children:(0,E.jsx)("div",{className:Mn("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===Zo.SOLID,"!hover:decoration-dashed !decoration-dashed":e===Zo.DASHED,"!hover:decoration-dotted !decoration-dotted":e===Zo.DOTTED,"!hover:decoration-double !decoration-double":e===Zo.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===Zo.WAVY}),children:" "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":r.fontStrikethrough}),onClick:()=>{r.fontStrikethrough?r.setFontStrikethrough(!1):(r.setFontStrikethrough(!0),r.setFontUnderline(void 0))},children:(0,E.jsx)(go.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(r.fontCase?` (${r.fontCase})`:""),className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==r.fontCase}),onClick:()=>{r.setFontCase(void 0===r.fontCase?Qo.UPPERCASE:void 0)},children:(0,E.jsx)(go.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:A,children:[(0,E.jsx)("div",{className:Mn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==r.fontCase})}),(0,E.jsx)(go.CaretDown,{})]}),(0,E.jsx)(Gc,{className:"w-20",...S,children:[Qo.LOWERCASE,Qo.UPPERCASE,Qo.CAPITALIZE].map((e=>(0,E.jsx)(Hc,{onClick:()=>{r.setFontCase(e),y()},autoFocus:e===r.fontCase,children:(0,E.jsx)("div",{className:Mn({lowercase:e===Qo.LOWERCASE,uppercase:e===Qo.UPPERCASE,capitalize:e===Qo.CAPITALIZE}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:Mn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":r.textAlign===Jo.LEFT}),onClick:()=>r.setTextAlign(Jo.LEFT),children:(0,E.jsx)(go.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":r.textAlign===Jo.CENTER}),onClick:()=>r.setTextAlign(Jo.CENTER),children:(0,E.jsx)(go.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":r.textAlign===Jo.RIGHT}),onClick:()=>r.setTextAlign(Jo.RIGHT),children:(0,E.jsx)(go.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Default Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.normalForegroundColor,defaultColor:ki,onChange:e=>r.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.negativeForegroundColor,defaultColor:Oi,onChange:e=>r.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.zeroForegroundColor,defaultColor:Li,onChange:e=>r.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.errorForegroundColor,defaultColor:Fi,onChange:e=>r.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.normalBackgroundColor,defaultColor:wi,onChange:e=>r.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.negativeBackgroundColor,defaultColor:wi,onChange:e=>r.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.zeroBackgroundColor,defaultColor:wi,onChange:e=>r.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:r.errorBackgroundColor,defaultColor:wi,onChange:e=>r.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)(Pc,{compact:!0,disabled:r.isUsingDefaultStyling,onClick:()=>r.useDefaultStyling(),children:"Use Default Styling"})]})]})]})})]})})),wd=(0,vt.PA)((e=>{const{column:t,editor:n}=e,r=n.columnProperties.getColumnConfiguration(t.name).hideFromView;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:Mn("items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",{"text-neutral-400":r}),children:t.name}),Boolean(n.leafExtendColumns.find((e=>e.name===t.name)))&&(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(n.groupExtendColumns.find((e=>e.name===t.name)))&&(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]})})),Rd=(0,vt.PA)((e=>{const{view:t}=e,n=t.editor,r=n.columns;return(0,Ft.useEffect)((()=>()=>r.propagateChanges()),[r]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(go.TableColumns,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Columns"})]}),(0,E.jsx)("div",{className:"flex h-full items-center pr-2",children:(0,E.jsx)(Mc,{label:"Show hidden columns?",checked:r.selector.showHiddenColumns,onChange:()=>r.selector.setShowHiddenColumns(!r.selector.showHiddenColumns)})})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ad,{selector:r.selector,noColumnsSelectedRenderer:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-200 p-2 font-semibold text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(go.Warning,{className:"mr-1 text-lg"})}),"No columns selected"]}),columnLabelRenderer:e=>(0,E.jsx)(wd,{...e,editor:n})})})]})})),Od=(0,vt.PA)((e=>{const{view:t}=e,n=t.editor.verticalPivots;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(go.TableGroupBy,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Vertical Pivots"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ad,{selector:n.selector})})]})})),Ld=(0,vt.PA)((e=>(0,E.jsx)("div",{className:"relative flex h-full items-center",children:(0,E.jsxs)("div",{className:"flex h-[18px] w-32 items-center border border-transparent px-2 text-sm text-neutral-400",children:["Ascending",(0,E.jsx)(Fc,{})]})}))),Fd=(0,vt.PA)((e=>{const{view:t}=e,n=t.editor.horizontalPivots;return(0,Ft.useEffect)((()=>()=>n.propagateChanges()),[n]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(go.TablePivot,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Horizontal Pivots"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ad,{selector:n.selector,columnActionRenderer:e=>(0,E.jsx)(Ld,{...e})})})]})})),Bd=(0,vt.PA)((e=>{const{view:t}=e,n=t.editor,r=n.columnProperties,o=t.editor.generalProperties.configuration,i=r.selectedColumn,[a,s,l,c]=Sc(),[u,d,g,p]=Sc(),[m,h,f,b]=Sc(),[C,v,_,T]=Sc(),[N,A,y,S]=Sc(),[x,I,k,w]=Sc(),[R,O,L,F]=Sc(),[B,P,D]=Sc(),[j,M,U]=Sc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsxs)("div",{className:"relative flex h-6 items-center text-xl font-medium",children:[(0,E.jsx)(go.TableColumn,{}),(0,E.jsx)(go.TableColumnOptions__Settings,{className:"absolute bottom-1 right-0 bg-white text-xs"})]}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Column Properties"})]}),(0,E.jsxs)("div",{className:"flex h-full items-center pr-2",children:[(0,E.jsx)(Mc,{label:"Show advanced settings?",checked:r.showAdvancedSettings,onChange:()=>r.setShowAdvancedSettings(!r.showAdvancedSettings)}),(0,E.jsx)(Bc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Choose Column:"}),(0,E.jsx)(Uc,{className:"w-80",onClick:a,open:c,children:(0,E.jsxs)("div",{className:"flex h-full w-full items-center",children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:i?.name??Bi}),i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:i.dataType}),Boolean(n.leafExtendColumns.find((e=>e.name===i.name)))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(n.groupExtendColumns.find((e=>e.name===i.name)))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]})]})}),(0,E.jsx)(Gc,{className:"w-80",...l,children:r.columns.toSorted(Ul).map((e=>(0,E.jsxs)(Hc,{onClick:()=>{r.setSelectedColumnName(e.name),s()},autoFocus:e.name===i?.name,children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:e.name}),(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:e.dataType}),Boolean(n.leafExtendColumns.find((t=>t.name===e.name)))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(n.groupExtendColumns.find((t=>t.name===e.name)))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]},e.name)))}),r.showAdvancedSettings&&i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"mx-2 h-[1px] w-4 flex-shrink-0 bg-neutral-400"}),(0,E.jsxs)("div",{className:"flex h-6 items-center",children:[(0,E.jsxs)("div",{className:"flex h-full flex-shrink-0 items-center text-sm",children:["Column Kind:",(0,E.jsx)($c,{className:"ml-1",documentationKey:Id.COLUMN_CONFIGURATION_KIND})]}),(0,E.jsx)(Uc,{className:"ml-1.5 w-20",onClick:u,open:p,disabled:Boolean(n.verticalPivots.selector.selectedColumns.find((e=>e.name===i.name))??n.horizontalPivots.selector.selectedColumns.find((e=>e.name===i.name))),children:i.kind}),(0,E.jsx)(Gc,{className:"w-20",...g,children:[ei.DIMENSION,ei.MEASURE].map((e=>(0,E.jsx)(Hc,{onClick:()=>{e!==i.kind&&(i.setKind(e),i.setExcludedFromPivot(e===ei.DIMENSION),i.setPivotStatisticColumnFunction(e===ei.DIMENSION?void 0:ri.SUM)),d()},autoFocus:e===i.kind,children:e},e)))}),(0,E.jsx)(Bc,{})]})]})]}),(0,E.jsx)("div",{className:"-ml-2 mb-2 mt-3 h-[1px] w-[calc(100%_+_16px)] bg-neutral-200"}),i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Display Name:"}),(0,E.jsx)(jc,{className:"w-80",value:i.displayName??"",onChange:e=>{const t=e.target.value;i.setDisplayName(""!==t?t:void 0)}})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Aggregation:"}),(0,E.jsx)(Uc,{className:"w-32",onClick:m,disabled:i.kind===ei.DIMENSION,open:b,children:i.aggregateOperation.operator}),(0,E.jsx)(Gc,{className:"w-32",...f,children:t.engine.aggregateOperations.filter((e=>e.isCompatibleWithColumn(i))).map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setAggregateOperation(e),h()},autoFocus:e===i.aggregateOperation,children:e.label},e.operator)))}),(0,E.jsx)(Mc,{className:"ml-3",label:"Exclude from horizontal pivot",checked:i.excludedFromPivot,onChange:()=>i.setExcludedFromPivot(!i.excludedFromPivot),disabled:i.kind===ei.DIMENSION})]}),i.dataType===li.NUMBER&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Number Format:"}),(0,E.jsx)(Dc,{className:"w-16 text-sm",min:0,step:1,value:i.decimals??0,setValue:e=>{i.setDecimals(e)}}),(0,E.jsx)("div",{className:"ml-1 flex-shrink-0 text-sm",children:"decimal places"}),(0,E.jsx)(Mc,{className:"ml-3",label:"Display commas",checked:i.displayCommas,onChange:()=>i.setDisplayCommas(!i.displayCommas)}),(0,E.jsx)(Mc,{className:"ml-3",label:"Negative number in parens",checked:i.negativeNumberInParens,onChange:()=>i.setNegativeNumberInParens(!i.negativeNumberInParens)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)("div",{className:"mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Scale:"}),(0,E.jsx)(Uc,{className:"w-32",onClick:C,open:T,showAsPlaceholder:void 0===i.numberScale,children:i.numberScale??Bi}),(0,E.jsx)(Gc,{className:"w-32",..._,children:[void 0,Ko.PERCENT,Ko.BASIS_POINT,Ko.THOUSANDS,Ko.MILLIONS,Ko.BILLIONS,Ko.TRILLIONS,Ko.AUTO].map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setNumberScale(e),v()},autoFocus:e===i.numberScale,children:e??Bi},e??"")))}),(0,E.jsxs)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:["Unit:",(0,E.jsx)($c,{className:"ml-1",documentationKey:Id.COLUMN_CONFIGURATION_UNIT})]}),(0,E.jsx)(jc,{className:"w-16",value:i.unit??"",onChange:e=>{const t=e.target.value.trim();i.setUnit(""!==t.trim()?t:void 0)},placeholder:Bi})]})]}),i.dataType===li.TEXT&&(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Dislay as Link?",(0,E.jsx)($c,{className:"ml-1",documentationKey:Id.COLUMN_CONFIGURATION_DISPLAY_AS_LINK})]}),(0,E.jsx)(Mc,{checked:i.displayAsLink,onChange:()=>i.setDisplayAsLink(!i.displayAsLink)}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)("div",{className:"ml-2 mr-1.5 flex h-full flex-shrink-0 items-center text-sm",children:"Use parameter in link as label:"}),(0,E.jsx)(jc,{className:"w-48",placeholder:vi,value:i.linkLabelParameter??"",onChange:e=>{const t=e.target.value.trim();i.setLinkLabelParameter(""!==t?t:void 0)}})]})}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Missing Value Format:",(0,E.jsx)($c,{className:"ml-1",documentationKey:Id.COLUMN_CONFIGURATION_MISSING_VALUE_FORMAT})]}),(0,E.jsx)(jc,{className:"w-16",value:i.missingValueDisplayText??"",onChange:e=>{const t=e.target.value;i.setMissingValueDisplayText(""!==t?t:void 0)},placeholder:Bi})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Visibility:"}),(0,E.jsx)(Mc,{label:"Blur content",checked:i.blur,onChange:()=>i.setBlur(!i.blur),disabled:i.hideFromView}),(0,E.jsx)(Mc,{className:"ml-3",label:"Hide from view",checked:i.hideFromView,onChange:()=>i.setHideFromView(!i.hideFromView)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Pin:"}),(0,E.jsx)(Uc,{className:"w-16",onClick:N,open:S,showAsPlaceholder:void 0===i.pinned,children:i.pinned??Bi}),(0,E.jsx)(Gc,{className:"w-16",...y,children:[void 0,si.LEFT,si.RIGHT].map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setPinned(e),A()},autoFocus:e===i.pinned,children:e??Bi},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-1.5 flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Width:"}),(0,E.jsx)(Mc,{label:"(Any)",checked:void 0===i.fixedWidth&&void 0===i.minWidth&&void 0===i.maxWidth,onChange:()=>{void 0===i.fixedWidth&&void 0===i.minWidth&&void 0===i.maxWidth?(i.setFixedWidth(300),i.setMinWidth(void 0),i.setMaxWidth(void 0)):(i.setFixedWidth(void 0),i.setMinWidth(void 0),i.setMaxWidth(void 0))}}),(0,E.jsx)(Mc,{className:"ml-3",label:"Fixed",checked:void 0!==i.fixedWidth,onChange:()=>{i.setFixedWidth(void 0!==i.fixedWidth?void 0:300),i.setMinWidth(void 0),i.setMaxWidth(void 0)}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Dc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:i.fixedWidth,setValue:e=>{i.setFixedWidth(e)},disabled:void 0!==i.minWidth||void 0!==i.maxWidth}),(0,E.jsx)(Mc,{className:"ml-3",label:"In range",checked:void 0!==i.minWidth||void 0!==i.maxWidth,onChange:()=>{void 0===i.minWidth&&void 0===i.maxWidth?(i.setMinWidth(50),i.setMaxWidth(void 0),i.setFixedWidth(void 0)):(i.setMinWidth(void 0),i.setMaxWidth(void 0),i.setFixedWidth(void 0))}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Dc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:i.minWidth,setValue:e=>{i.setMinWidth(e)},disabled:void 0!==i.fixedWidth}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-1 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Dc,{className:"ml-1 w-16 text-sm",min:i.minWidth??0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>=(i.minWidth??0),value:i.maxWidth,setValue:e=>{i.setMaxWidth(e)},disabled:void 0!==i.fixedWidth})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Font:"}),(0,E.jsx)(Uc,{className:"w-28",onClick:x,open:w,children:i.fontFamily??o.fontFamily}),(0,E.jsxs)(Gc,{className:"w-28",...k,children:[[qo.ARIAL,qo.ROBOTO,qo.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??o.fontFamily),children:e},e))),(0,E.jsx)(Vc,{}),[qo.GEORGIA,qo.ROBOTO_SERIF,qo.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??o.fontFamily),children:e},e))),(0,E.jsx)(Vc,{}),[qo.JERBRAINS_MONO,qo.ROBOTO_MONO,qo.UBUNTU_MONO].map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??o.fontFamily),children:e},e)))]}),(0,E.jsx)(Uc,{className:"ml-1 w-10",onClick:R,open:F,children:i.fontSize??o.fontSize}),(0,E.jsx)(Gc,{className:"w-10",...L,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setFontSize(e),O()},autoFocus:e===(i.fontSize??o.fontSize),children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:Mn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontBold??o.fontBold}),onClick:()=>i.setFontBold(!(i.fontBold??o.fontBold)),children:(0,E.jsx)(go.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontItalic??o.fontItalic}),onClick:()=>i.setFontItalic(!(i.fontItalic??o.fontItalic)),children:(0,E.jsx)(go.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(i.fontUnderline??o.fontUnderline?` (${i.fontUnderline??o.fontUnderline})`:""),className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==(i.fontUnderline??o.fontUnderline)}),onClick:()=>{void 0===(i.fontUnderline??o.fontUnderline)?(i.setFontUnderline(Zo.SOLID),i.setFontStrikethrough(!1)):i.setFontUnderline(void 0)},children:(0,E.jsx)(go.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:B,children:[(0,E.jsx)("div",{className:Mn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(i.fontUnderline??o.fontUnderline)})}),(0,E.jsx)(go.CaretDown,{})]}),(0,E.jsx)(Gc,{className:"w-14",...D,children:[Zo.SOLID,Zo.DASHED,Zo.DOTTED,Zo.DOUBLE,Zo.WAVY].map((e=>(0,E.jsx)(Hc,{className:"relative",onClick:()=>{i.setFontUnderline(e),i.setFontStrikethrough(!1),P()},autoFocus:e===(i.fontUnderline??o.fontUnderline),children:(0,E.jsx)("div",{className:Mn("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===Zo.SOLID,"!hover:decoration-dashed !decoration-dashed":e===Zo.DASHED,"!hover:decoration-dotted !decoration-dotted":e===Zo.DOTTED,"!hover:decoration-double !decoration-double":e===Zo.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===Zo.WAVY}),children:" "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontStrikethrough??o.fontStrikethrough}),onClick:()=>{i.fontStrikethrough??o.fontStrikethrough?i.setFontStrikethrough(!1):(i.setFontStrikethrough(!0),i.setFontUnderline(void 0))},children:(0,E.jsx)(go.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(i.fontCase??o.fontCase?` (${i.fontCase??o.fontCase})`:""),className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==(i.fontCase??o.fontCase)}),onClick:()=>{void 0===(i.fontCase??o.fontCase)?i.setFontCase(Qo.UPPERCASE):i.setFontCase(void 0)},children:(0,E.jsx)(go.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:j,children:[(0,E.jsx)("div",{className:Mn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(i.fontCase??o.fontCase)})}),(0,E.jsx)(go.CaretDown,{})]}),(0,E.jsx)(Gc,{className:"w-20",...U,children:[Qo.LOWERCASE,Qo.UPPERCASE,Qo.CAPITALIZE].map((e=>(0,E.jsx)(Hc,{onClick:()=>{i.setFontCase(e),M()},autoFocus:e===(i.fontCase??o.fontCase),children:(0,E.jsx)("div",{className:Mn({lowercase:e===Qo.LOWERCASE,uppercase:e===Qo.UPPERCASE,capitalize:e===Qo.CAPITALIZE}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:Mn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??o.textAlign)===Jo.LEFT}),onClick:()=>i.setTextAlign(Jo.LEFT),children:(0,E.jsx)(go.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??o.textAlign)===Jo.CENTER}),onClick:()=>i.setTextAlign(Jo.CENTER),children:(0,E.jsx)(go.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:Mn("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??o.textAlign)===Jo.RIGHT}),onClick:()=>i.setTextAlign(Jo.RIGHT),children:(0,E.jsx)(go.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.normalForegroundColor??o.normalForegroundColor,defaultColor:o.normalForegroundColor,onChange:e=>i.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.negativeForegroundColor??o.negativeForegroundColor,defaultColor:o.negativeForegroundColor,onChange:e=>i.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.zeroForegroundColor??o.zeroForegroundColor,defaultColor:o.zeroForegroundColor,onChange:e=>i.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.errorForegroundColor??o.errorForegroundColor,defaultColor:o.errorForegroundColor,onChange:e=>i.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.normalBackgroundColor??o.normalBackgroundColor,defaultColor:o.normalBackgroundColor,onChange:e=>i.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.negativeBackgroundColor??o.negativeBackgroundColor,defaultColor:o.negativeBackgroundColor,onChange:e=>i.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.zeroBackgroundColor??o.zeroBackgroundColor,defaultColor:o.zeroBackgroundColor,onChange:e=>i.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Yc,{color:i.errorBackgroundColor??o.errorBackgroundColor,defaultColor:o.errorBackgroundColor,onChange:e=>i.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)(Pc,{compact:!0,disabled:i.isUsingDefaultStyling,onClick:()=>i.useDefaultStyling(),children:"Use Default Styling"})]})]})]})]})})]})})),Pd=(0,vt.PA)((e=>{const t=Lc().alertService,{view:n}=e,r=n.editor,o=r.currentTab,i=[Gd.COLUMNS,Gd.VERTICAL_PIVOTS,Gd.HORIZONTAL_PIVOTS,Gd.SORTS,Gd.GENERAL_PROPERTIES,Gd.COLUMN_PROPERTIES];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"relative h-[calc(100%_-_40px)] w-full px-2 pt-8",children:[(0,E.jsx)("div",{className:"absolute top-0 flex h-9 w-[calc(100%_-_16px)] overflow-y-hidden pt-2",children:i.map((e=>(0,E.jsx)("button",{onClick:()=>r.setCurrentTab(e),className:Mn("relative flex h-6 items-center justify-center whitespace-nowrap border border-b-0 border-l-0 border-neutral-300 px-2 first:border-l focus:z-10",{"-top-0.5 h-[27px] border-b-0 bg-white":e===o}),children:e},e)))}),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:[o===Gd.COLUMNS&&(0,E.jsx)(Rd,{view:n}),o===Gd.VERTICAL_PIVOTS&&(0,E.jsx)(Od,{view:n}),o===Gd.HORIZONTAL_PIVOTS&&(0,E.jsx)(Fd,{view:n}),o===Gd.SORTS&&(0,E.jsx)(xd,{view:n}),o===Gd.GENERAL_PROPERTIES&&(0,E.jsx)(kd,{view:n}),o===Gd.COLUMN_PROPERTIES&&(0,E.jsx)(Bd,{view:n})]})]}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Pc,{onClick:()=>r.display.close(),children:"Cancel"}),(0,E.jsx)(Pc,{className:"ml-2",disabled:r.finalizationState.isInProgress,onClick:()=>{r.applyChanges().catch((e=>t.alertUnhandledError(e)))},children:"Apply"}),(0,E.jsx)(Pc,{className:"ml-2",disabled:r.finalizationState.isInProgress,onClick:()=>{r.applyChanges({closeAfterApply:!0}).catch((e=>t.alertUnhandledError(e)))},children:"OK"})]})]})}));class Dd extends ad{cloneColumn(e){return new id(e.name,e.type)}get availableColumns(){return this._editor.columnProperties.columns.filter((e=>e.kind===ei.DIMENSION&&!this._editor.groupExtendColumns.find((t=>t.name===e.name)))).map((e=>new id(e.name,e.type)))}}class jd{_editor;selector;castColumns=[];constructor(e){(0,Ie.Gn)(this,{castColumns:Ie.sH.ref,pivotResultColumns:Ie.EW,setCastColumns:Ie.XI,applySnaphot:Ie.XI}),this._editor=e,this.selector=new Dd(e)}get pivotResultColumns(){return this.castColumns.filter((e=>pi(e.name))).map(Ml)}setCastColumns(e){this.castColumns=e}propagateChanges(){this._editor.verticalPivots.adaptPropagatedChanges(),this._editor.sorts.adaptPropagatedChanges()}applySnaphot(e,t){this.selector.setSelectedColumns((e.data.pivot?.columns??[]).map((e=>new id(e.name,e.type)))),this.setCastColumns(e.data.pivot?.castColumns??[])}buildSnapshot(e,t){e.data.pivot=this.selector.selectedColumns.length?{columns:this.selector.selectedColumns.map(Ml),castColumns:this.castColumns.map(Ml)}:void 0,e.data.selectColumns=(0,nt.A)([...e.data.selectColumns,...this.selector.selectedColumns],(e=>e.name)).map(Ml)}}class Md{_editor;pivotLayout=new md;constructor(e){(0,Ie.Gn)(this,{pivotLayout:Ie.sH,applySnaphot:Ie.XI}),this._editor=e}applySnaphot(e,t){this.pivotLayout=md.create(e.data.configuration.pivotLayout)}buildSnapshot(e,t){this.pivotLayout.setExpandedPaths(Wl(t.data.groupBy?.columns??[],this._editor.verticalPivots.selector.selectedColumns,this.pivotLayout.expandedPaths)),e.data.configuration={...e.data.configuration,pivotLayout:this.pivotLayout.serialize()}}}class Ud extends S{sourceInformation}var Gd;!function(e){e.GENERAL_PROPERTIES="General Properties",e.COLUMN_PROPERTIES="Column Properties",e.COLUMNS="Columns",e.VERTICAL_PIVOTS="Vertical Pivots",e.HORIZONTAL_PIVOTS="Horizontal Pivots",e.SORTS="Sorts"}(Gd||(Gd={}));class Hd extends qu{view;display;finalizationState=ke.create();generalProperties;pivotLayout;columnProperties;columns;horizontalPivots;verticalPivots;sorts;currentTab=Gd.GENERAL_PROPERTIES;sourceColumns=[];leafExtendColumns=[];groupExtendColumns=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,Ie.Gn)(this,{currentTab:Ie.sH,setCurrentTab:Ie.XI,sourceColumns:Ie.sH.ref,leafExtendColumns:Ie.sH.ref,groupExtendColumns:Ie.sH.ref,applySnapshot:Ie.XI,applyChanges:Ie.XI}),this.view=e,this.display=this.view.dataCube.layoutService.newDisplay("Properties",(()=>(0,E.jsx)(Pd,{view:this.view}))),this.generalProperties=new fd(this),this.pivotLayout=new Md(this),this.columnProperties=new Ed(this),this.columns=new Cd(this),this.horizontalPivots=new jd(this),this.verticalPivots=new _d(this),this.sorts=new cd(this)}setCurrentTab(e){this.currentTab=e}async applySnapshot(e,t){this.sourceColumns=e.data.sourceColumns,this.leafExtendColumns=e.data.leafExtendedColumns,this.groupExtendColumns=e.data.groupExtendedColumns;const n=ji.serialization.fromJson(e.data.configuration);this.generalProperties.applySnaphot(e,n),this.pivotLayout.applySnaphot(e,n),this.columnProperties.applySnaphot(e,n),this.columns.applySnaphot(e,n),this.horizontalPivots.applySnaphot(e,n),this.verticalPivots.applySnaphot(e,n),this.sorts.applySnaphot(e,n)}getSnapshotSubscriberName(){return"editor"}async applyChanges(e){this.finalizationState.inProgress();const t=P(this.getLatestSnapshot()),n=t.clone();if(this.generalProperties.buildSnapshot(n,t),this.pivotLayout.buildSnapshot(n,t),this.columnProperties.buildSnapshot(n,t),this.columns.buildSnapshot(n,t),this.horizontalPivots.buildSnapshot(n,t),this.verticalPivots.buildSnapshot(n,t),this.sorts.buildSnapshot(n,t),n.finalize(),n.hashCode!==t.hashCode){const e=this.view.taskService.newTask("Validate query"),t=n.clone();t.data.pivot&&(t.data.pivot.castColumns=this.sorts.selector.availableColumns.filter((e=>!t.data.groupExtendedColumns.find((t=>t.name===e.name)))).map(Ml));const r="->",o=await this.view.engine.getPartialQueryCode(t,!0);try{await this.view.engine.getQueryCodeRelationReturnType(r+o,bl([],[this.view.source.query]),this.view.source)}catch(e){return w(e),void(e instanceof Ud?this.view.dataCube.alertService.alertCodeCheckError(e,o,r,{message:"Query Validation Failure: Can't safely apply changes. Check the query code below for more details.",text:`Error: ${e.message}`}):this.view.dataCube.alertService.alertError(e,{message:"Query Validation Failure: Can't safely apply changes.",text:`Error: ${e.message}`}))}finally{this.view.taskService.endTask(e),this.finalizationState.complete()}this.publishSnapshot(n)}else this.finalizationState.complete();e?.closeAfterApply&&this.display.close()}}function Vd(e,t,n,r){const o=r.view.engine.getFilterOperation(t);return{name:`Add Filter: ${e.name} ${o.textLabel}${n?` ${n.label}`:""}`,action:()=>{r.addNewFilterCondition(new td(r.filterTree.root,{name:e.name,type:e.type},o,n?.value,void 0))}}}class Wd extends qu{view;constructor(e){super(e.engine,e.settingService,e.snapshotService),this.view=e}configuration=new ji;menuBuilder;getColumnConfiguration(e){return this.configuration.columns.find((t=>t.name===e))}filterTree={nodes:new Map};addNewFilterCondition(e){if(this.filterTree.root)if(this.filterTree.root.operation===ii.AND)this.filterTree.root.addChild(e),this.filterTree.nodes.set(e.uuid,e);else{const t=this.filterTree.root;if(1===t.children.length)t.operation=ii.AND,t.addChild(e),this.filterTree.nodes.set(e.uuid,e);else{const n=new nd(void 0,ii.AND,void 0);this.filterTree.nodes.set(n.uuid,n),this.filterTree.root=n,n.addChild(t),n.addChild(e),this.filterTree.nodes.set(e.uuid,e)}}else{const t=new nd(void 0,ii.AND,void 0);this.filterTree.nodes.set(t.uuid,t),this.filterTree.root=t,t.addChild(e),this.filterTree.nodes.set(e.uuid,e)}this.applyChanges()}clearFilters(){this.filterTree.root=void 0,this.filterTree.nodes=new Map,this.applyChanges()}selectColumns=[];leafExtendedColumns=[];groupExtendedColumns=[];pinColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.pinned=t,this.applyChanges())}rearrangeColumns(e){const t=e.map((e=>this.getColumnConfiguration(e))).filter(F);this.configuration.columns=[...t,...this.configuration.columns.filter((e=>!t.includes(e)))];const n=e.map((e=>this.selectColumns.find((t=>t.name===e)))).filter(F);this.selectColumns=[...n,...n.filter((e=>!n.includes(e)))],this.applyChanges()}removeAllPins(){this.configuration.columns.forEach((e=>e.pinned=void 0)),this.applyChanges()}showColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.hideFromView=!t,this.applyChanges())}horizontalPivotColumns=[];horizontalPivotCastColumns=[];get horizontalPivotResultColumns(){return this.horizontalPivotCastColumns.filter((e=>pi(e.name))).map(Ml)}getHorizontalPivotableColumn(e){return this.configuration.columns.filter((e=>e.kind===ei.DIMENSION&&!this.groupExtendedColumns.find((t=>t.name===e.name)))).find((t=>t.name===e))}setHorizontalPivotOnColumn(e){const t=this.getHorizontalPivotableColumn(e);t&&(this.horizontalPivotColumns=[t],this.applyChanges())}addHorizontalPivotOnColumn(e){const t=this.getHorizontalPivotableColumn(e);t&&(this.horizontalPivotColumns=[...this.horizontalPivotColumns,t],this.applyChanges())}clearAllHorizontalPivots(){this.horizontalPivotColumns=[],this.horizontalPivotCastColumns=[],this.applyChanges()}excludeColumnFromHorizontalPivot(e){if(pi(e)){const t=mi(e),n=this.getColumnConfiguration(t);n&&!n.excludedFromPivot&&(n.excludedFromPivot=!0,this.applyChanges())}}includeColumnInHorizontalPivot(e){const t=this.getColumnConfiguration(e);t?.excludedFromPivot&&(t.excludedFromPivot=!1,this.applyChanges())}verticalPivotColumns=[];getVerticalPivotableColumn(e){return this.configuration.columns.filter((e=>e.kind===ei.DIMENSION&&!this.groupExtendedColumns.find((t=>t.name===e.name))&&!this.horizontalPivotColumns.find((t=>t.name===e.name)))).find((t=>t.name===e))}setVerticalPivotOnColumn(e){const t=this.getVerticalPivotableColumn(e);t&&(this.verticalPivotColumns=[t],this.applyChanges())}addVerticalPivotOnColumn(e){const t=this.getVerticalPivotableColumn(e);t&&(this.verticalPivotColumns=[...this.verticalPivotColumns,t],this.applyChanges())}removeVerticalPivotOnColumn(e){this.verticalPivotColumns=this.verticalPivotColumns.filter((t=>t.name!==e)),this.applyChanges()}clearAllVerticalPivots(){this.verticalPivotColumns=[],this.applyChanges()}collapseAllPaths(){this.view.grid.client.collapseAll(),this.configuration.pivotLayout.expandedPaths=[],this.applyChanges()}expandPath(e){this.configuration.pivotLayout.expandedPaths=(0,Ne.A)([...this.configuration.pivotLayout.expandedPaths,e]).sort(),this.applyChanges()}collapsePath(e){this.configuration.pivotLayout.expandedPaths=this.configuration.pivotLayout.expandedPaths.filter((t=>t!==e)),this.applyChanges()}sortColumns=[];getSortableColumn(e){if(e)return[...this.horizontalPivotCastColumns.length?this.horizontalPivotCastColumns:this.selectColumns,...this.groupExtendedColumns].find((t=>t.name===e))}setSortByColumn(e,t){const n=this.getSortableColumn(e);n&&(this.sortColumns=[{...n,direction:t}],this.applyChanges())}addSortByColumn(e,t){const n=this.getSortableColumn(e);n&&(this.sortColumns=[...this.sortColumns,{...n,direction:t}],this.applyChanges())}clearSortByColumn(e){this.sortColumns=this.sortColumns.filter((t=>t.name!==e)),this.applyChanges()}clearAllSorts(){this.sortColumns=[],this.applyChanges()}getSnapshotSubscriberName(){return"grid-controller"}async applySnapshot(e,t){this.configuration=ji.serialization.fromJson(e.data.configuration),this.filterTree.nodes=new Map,this.filterTree.root=e.data.filter?od(e.data.filter,void 0,this.filterTree.nodes,(e=>this.view.engine.getFilterOperation(e))):void 0,this.selectColumns=e.data.selectColumns,this.leafExtendedColumns=e.data.leafExtendedColumns,this.groupExtendedColumns=e.data.groupExtendedColumns,this.horizontalPivotColumns=e.data.pivot?.columns??[],this.horizontalPivotCastColumns=e.data.pivot?.castColumns??[],this.verticalPivotColumns=e.data.groupBy?.columns??[],this.sortColumns=e.data.sortColumns,this.menuBuilder=function(e){const t=e.view,n=t.dataCube,r=t.filter,o=t.editor,i=t.extend;return(a,s)=>{const l=a.column??void 0,c=l?.getColId(),u=e.getColumnConfiguration(c),d=c&&pi(c)?e.getColumnConfiguration(mi(c)):void 0,g=c&&[...e.leafExtendedColumns,...e.groupExtendedColumns].find((e=>e.name===c)),p="value"in a?a.value:void 0,m=[{name:"Sort",subMenu:[...l&&c&&e.getSortableColumn(c)?[{name:"Ascending",action:()=>e.setSortByColumn(c,ai.ASCENDING)},{name:"Descending",action:()=>e.setSortByColumn(c,ai.DESCENDING)},{name:"Clear Sort",disabled:!e.sortColumns.find((e=>e.name===c)),action:()=>e.clearSortByColumn(c)},"separator",{name:"Add Ascending",disabled:Boolean(e.sortColumns.find((e=>e.name===c&&e.direction===ai.ASCENDING))),action:()=>e.addSortByColumn(c,ai.ASCENDING)},{name:"Add Descending",disabled:Boolean(e.sortColumns.find((e=>e.name===c&&e.direction===ai.DESCENDING))),action:()=>e.addSortByColumn(c,ai.DESCENDING)},"separator"]:[],{name:"Clear All Sorts",disabled:0===e.sortColumns.length,action:()=>e.clearAllSorts()}]}];let h=[];if(l&&void 0!==p){let t=u;if(l.getColId()===pu&&e.verticalPivotColumns.length&&"node"in a&&a.node){const n=e.verticalPivotColumns[a.node.level];t=e.getColumnConfiguration(n?.name)}if(t)if(p!==gu){const n=function(e,t){const n=`${t.type===jo.STRING?`'${e}'`:e}`;let r;switch(t.type){case jo.STRING:r=e;break;case jo.NUMBER:case jo.DECIMAL:case jo.FLOAT:case jo.INTEGER:r=$(Number(e));break;case jo.DATE:case jo.STRICTDATE:case jo.DATETIME:r=e;break;default:throw new k(`Can't filter on column with unsupported type '${t.type}'`)}return{label:n,value:{type:t.type,value:r}}}(p,t),r=function(e){switch(e.type){case jo.STRING:return[oi.EQUAL,oi.NOT_EQUAL,oi.LESS_THAN,oi.LESS_THAN_OR_EQUAL,oi.GREATER_THAN,oi.GREATER_THAN_OR_EQUAL,oi.CONTAIN,oi.NOT_CONTAIN,oi.START_WITH,oi.NOT_START_WITH,oi.END_WITH,oi.NOT_END_WITH];case jo.NUMBER:case jo.DECIMAL:case jo.FLOAT:case jo.INTEGER:case jo.DATE:case jo.STRICTDATE:case jo.DATETIME:return[oi.EQUAL,oi.NOT_EQUAL,oi.LESS_THAN,oi.LESS_THAN_OR_EQUAL,oi.GREATER_THAN,oi.GREATER_THAN_OR_EQUAL];default:return[]}}(t);if(r.length&&r.includes(oi.EQUAL)){const o=r.filter((e=>e!==oi.EQUAL));h=[Vd(t,oi.EQUAL,n,e),o.length?{name:`More Filters on ${c}...`,subMenu:o.map((r=>Vd(t,r,n,e)))}:void 0].filter(F)}}else h=[Vd(t,oi.IS_NULL,void 0,e),Vd(t,oi.IS_NOT_NULL,void 0,e)]}return[{name:"Export",subMenu:[{name:"HTML",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel",action:()=>t.grid.exportEngine.exportFile(Zc.EXCEL)},{name:"CSV",action:()=>t.grid.exportEngine.exportFile(Zc.CSV)},"separator",{name:"DataCube Specification",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Email",subMenu:[{name:"HTML",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"HTML Attachment",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text Attachment",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF Attachment",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel Attachment",action:()=>{t.grid.exportEngine.exportEmail(Zc.EXCEL).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:"CSV Attachment",action:()=>{t.grid.exportEngine.exportEmail(Zc.CSV).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:"DataCube Specification Attachment",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Copy",menuItem:Qu,cssClasses:["!opacity-100"],subMenu:[{name:"Plain Text",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Rows as Plain Text",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Column as Plain Text",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0}]},"separator",...m,{name:"Filter",subMenu:[...h,h.length?"separator":void 0,{name:"Filters...",action:()=>{r.display.open()}},{name:"Clear All Filters",action:()=>e.clearFilters()}].filter(F)},{name:"Pivot",subMenu:[...l&&c&&u?.kind===ei.DIMENSION&&e.getVerticalPivotableColumn(c)?[{name:`Vertical Pivot on ${c}`,action:()=>e.setVerticalPivotOnColumn(c)},{name:`Add Vertical Pivot on ${c}`,disabled:Boolean(e.verticalPivotColumns.find((e=>e.name===c))),action:()=>e.addVerticalPivotOnColumn(c)},{name:`Remove Vertical Pivot on ${c}`,disabled:!e.verticalPivotColumns.find((e=>e.name===c)),action:()=>e.removeVerticalPivotOnColumn(c)},"separator"]:[],...l&&c&&u?.kind===ei.DIMENSION&&e.getHorizontalPivotableColumn(c)?[{name:`Horizontal Pivot on ${c}`,action:()=>e.setHorizontalPivotOnColumn(c)},{name:`Add Horizontal Pivot on ${c}`,disabled:Boolean(e.horizontalPivotColumns.find((e=>e.name===c))),action:()=>e.addHorizontalPivotOnColumn(c)},"separator"]:[],...l&&c&&d?.kind===ei.MEASURE&&!d.excludedFromPivot&&0!==e.horizontalPivotColumns.length?[{name:`Exclude Column ${d.name} from Horizontal Pivot`,action:()=>e.excludeColumnFromHorizontalPivot(c)},"separator"]:[],...l&&c&&u?.kind===ei.MEASURE&&u.excludedFromPivot&&0!==e.horizontalPivotColumns.length?[{name:`Include Column ${c} in Horizontal Pivot`,action:()=>e.includeColumnInHorizontalPivot(c)},"separator"]:[],{name:"Clear All Vertical Pivots",disabled:0===e.verticalPivotColumns.length,action:()=>e.clearAllVerticalPivots()},{name:"Clear All Horizontal Pivots",disabled:0===e.horizontalPivotColumns.length,action:()=>e.clearAllHorizontalPivots()}]},{name:"Extended Columns",subMenu:[{name:"Add New Column...",action:()=>{i.openNewColumnEditor().catch((e=>n.alertService.alertUnhandledError(e)))}},...u&&c?[{name:`Extend Column ${c}...`,action:()=>{i.openNewColumnEditor(u).catch((e=>n.alertService.alertUnhandledError(e)))}}]:[],...g?["separator",{name:`Edit Column ${c}...`,action:()=>{i.openExistingColumnEditor(c).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:`Delete Column ${c}`,action:()=>{i.deleteColumn(c).catch((e=>n.alertService.alertUnhandledError(e)))}}]:[]]},"separator",{name:"Resize",subMenu:[{name:"Auto-size to Fit Content",disabled:!l||!u||void 0!==u.fixedWidth,action:()=>a.api.autoSizeColumns([l?.getColId()].filter(F))},{name:"Minimize Column",disabled:!l||!u||void 0!==u.fixedWidth,action:()=>{l&&u&&a.api.setColumnWidths([{key:u.name,newWidth:u.minWidth??50}])}},"separator",{name:"Auto-size All Columns",action:()=>a.api.autoSizeColumns([...e.configuration.columns.filter((e=>void 0===e.fixedWidth&&e.isSelected&&!e.hideFromView)).map((e=>e.name)),...e.horizontalPivotCastColumns.map((t=>{if(pi(t.name)){const n=e.configuration.columns.find((e=>e.name===mi(t.name)));if(n&&void 0===n.fixedWidth&&n.isSelected&&!n.hideFromView)return t.name}})).filter(F)])},{name:"Minimize All Columns",action:()=>{a.api.setColumnWidths([...e.configuration.columns.filter((e=>void 0===e.fixedWidth)).map((e=>({key:e.name,newWidth:u?.minWidth??50}))),...e.horizontalPivotCastColumns.map((t=>{if(pi(t.name)){const n=e.configuration.columns.find((e=>e.name===mi(t.name)));if(n&&void 0===n.fixedWidth&&n.isSelected&&!n.hideFromView)return{key:t.name,newWidth:n.minWidth??50}}})).filter(F)])}},{name:"Size Grid to Fit Screen",action:()=>a.api.sizeColumnsToFit()}]},{name:"Pin",subMenu:[...u?[{name:"Pin Left",disabled:!l||l.isPinnedLeft(),checked:Boolean(l?.isPinnedLeft()),action:()=>e.pinColumn(c,si.LEFT)},{name:"Pin Right",disabled:!l||l.isPinnedRight(),checked:Boolean(l?.isPinnedRight()),action:()=>e.pinColumn(c,si.RIGHT)},{name:"Unpin",disabled:!l?.isPinned(),action:()=>e.pinColumn(c,void 0)},"separator"]:[],{name:"Remove All Pinnings",disabled:e.configuration.columns.every((e=>void 0===e.pinned)),action:()=>e.removeAllPins()}]},{name:"Hide",disabled:!u,action:()=>e.showColumn(c,!1)},...c===pu?["separator",{name:"Collapse All",action:()=>{e.collapseAllPaths()}}]:[],"separator",{name:"Heatmap",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!l,subMenu:l?[{name:`Add to ${l.getColId()}`,menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:`Remove from ${l.getColId()}`,menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0}]:[]},{name:"Show Plot...",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},{name:"Show TreeMap...",menuItem:Qu,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"Properties...",disabled:o.display.isOpen,action:()=>{l&&s&&(o.setCurrentTab(Gd.COLUMN_PROPERTIES),o.columnProperties.setSelectedColumnName(d?.name??u?.name??c)),o.display.open()}}]}}(this)}propagateChanges(e){this.verticalPivotColumns=this.verticalPivotColumns.filter((e=>!this.horizontalPivotColumns.find((t=>t.name===e.name)))),this.configuration.pivotLayout.expandedPaths=Wl(e.data.groupBy?.columns??[],this.verticalPivotColumns,this.configuration.pivotLayout.expandedPaths),this.selectColumns=(0,nt.A)([...this.configuration.columns.filter((e=>e.isSelected&&!this.groupExtendedColumns.find((t=>t.name===e.name)))),...this.horizontalPivotColumns,...this.verticalPivotColumns],(e=>e.name)).map(Ml);const t=(0,nt.A)([...this.horizontalPivotColumns.length?[...this.horizontalPivotResultColumns,...[...this.configuration.columns.filter((e=>e.isSelected)),...this.verticalPivotColumns].filter((e=>this.getColumnConfiguration(e.name)?.kind===ei.DIMENSION&&!this.horizontalPivotColumns.find((t=>t.name===e.name))))]:[...this.configuration.columns.filter((e=>e.isSelected)),...this.verticalPivotColumns],...this.groupExtendedColumns],(e=>e.name));this.sortColumns=this.sortColumns.filter((e=>t.find((t=>t.name===e.name))))}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();this.propagateChanges(e),t.data.configuration=this.configuration.serialize(),t.data.filter=this.filterTree.root?rd(this.filterTree.root):void 0,t.data.selectColumns=this.selectColumns,t.data.pivot=this.horizontalPivotColumns.length?{columns:this.horizontalPivotColumns,castColumns:this.horizontalPivotCastColumns}:void 0,t.data.groupBy=this.verticalPivotColumns.length?{columns:this.verticalPivotColumns}:void 0,t.data.sortColumns=this.sortColumns,t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}function Yd(e){return new Promise(((t,n)=>{const r=new FileReader;r.onloadend=()=>{const e=r.result;if(G(e)){const n=e.split(",")[1];if(n)return void t(n)}n(new Error("Can't base64 encode blob data"))},r.onerror=e=>n(e),r.readAsDataURL(e)}))}const $d="mixed_boundary",zd="alternative_boundary",Xd=`\nFrom:\nTo:\nSubject:\nX-Unsent: 1\nContent-Type: multipart/mixed; boundary="${$d}"\n\n--${$d}\nContent-Type: multipart/alternative; boundary="${zd}"\n\n--${zd}\nContent-Type: text/plain; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n\n\n--${zd}\nContent-Type: text/html; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n<html><body><p></p><body></html>\n\n--${zd}--\n\n`;class Kd{_grid;constructor(e){this._grid=e}generateFileName(){return`${this._grid.queryConfiguration.name} - ${(0,Kn.GP)(new Date,"EEE MMM dd yyyy HH_mm_ss")}`}exportFile(e){const t=this.generateFileName();switch(e){case Zc.CSV:return void this._grid.client.exportDataAsCsv({fileName:`${t}.csv`});case Zc.EXCEL:return void this._grid.client.exportDataAsExcel({fileName:`${t}.xlsx`})}}async exportEmail(e){const t=this.generateFileName();let n,r,o=t;switch(e){case Zc.CSV:o=`${t}.csv`,r=te.TEXT_CSV,n=await Yd(new Blob([this._grid.client.getDataAsCsv()??""],{type:te.TEXT_CSV}));break;case Zc.EXCEL:{o+=`${t}.xlsx`,r=te.APPLICATION_XLSX;const e=this._grid.client.getDataAsExcel();let i;if(e instanceof Blob)i=e;else{if("string"!=typeof e)throw new I("Can't export Excel content");i=new Blob([e],{type:te.APPLICATION_XLSX})}n=await Yd(i);break}default:throw new k(`Can't export email in format '${e}'`)}ce(`${t}.eml`,`${Xd.trimStart()}--${$d}\nContent-Type: ${r}; name="${o}"\nContent-Transfer-Encoding: base64\nContent-Disposition: attachment; filename="${o}"\n\n${n}\n\n--${$d}--`,te.MESSAGE_RFC822)}}class qd extends qu{_view;controller;exportEngine;_client;clientDataSource;queryConfiguration;rowLimit;isPaginationEnabled=!0;scrollHintText;debouncedAutoResizeColumns;constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,Ie.Gn)(this,{clientDataSource:Ie.sH,queryConfiguration:Ie.sH,rowLimit:Ie.sH,isPaginationEnabled:Ie.sH,setPaginationEnabled:Ie.XI,scrollHintText:Ie.sH,setScrollHintText:Ie.XI,applySnapshot:Ie.XI}),this._view=e,this.controller=new Wd(this._view),this.exportEngine=new Kd(this),this.queryConfiguration=new ji,this.clientDataSource=new Tu(this,this._view)}setPaginationEnabled(e){this.isPaginationEnabled=e,this.clientDataSource=new Tu(this,this._view),this.client.updateGridOptions({cacheBlockSize:e?500:du})}setScrollHintText(e){this.scrollHintText=e}get isClientConfigured(){return Boolean(this._client)}get client(){return P(this._client,"Grid client is not configured")}configureClient(e){this._client=e,this.debouncedAutoResizeColumns=(0,Dn.A)((()=>e?.autoSizeAllColumns()),100)}getSnapshotSubscriberName(){return"grid"}async applySnapshot(e,t){const n=ji.serialization.fromJson(e.data.configuration);this.queryConfiguration=n,this.rowLimit=e.data.limit;const r=function(e,t,n){return{isServerSideGroupOpenByDefault:e=>{if(void 0!==t.initialExpandLevel&&t.initialExpandLevel>0&&e.rowNode.level<=(t.showRootAggregation?t.initialExpandLevel+1:t.initialExpandLevel)-1)return!0;const n=e.rowNode.getRoute()??[];if(!n.length)return!1;if(t.showRootAggregation&&1===n.length&&n[0]===Ci)return!0;t.showRootAggregation&&n.shift();const r=n.join(hi);return!!t.pivotLayout.expandedPaths.includes(r)},rowClassRules:t.alternateRows?{[eu.HIGHLIGHT_ROW]:e=>e.rowIndex%(2*t.alternateRowsCount)>=t.alternateRowsCount}:{},onColumnPinned:e=>{if("api"!==e.source&&e.column){const t=e.column,r=t.getPinned();n.grid.controller.pinColumn(t.getColId(),null===r?void 0:r===Eu.LEFT?si.LEFT:si.RIGHT)}},onColumnMoved:e=>{"api"!==e.source&&e.column&&e.finished&&n.grid.controller.rearrangeColumns((e.api.getColumnDefs()??[]).filter((e=>!("children"in e))).map((e=>e.colId??"")))},onColumnVisible:e=>{if("api"!==e.source&&e.column){const t=e.column,r=t.isVisible();n.grid.controller.showColumn(t.getColId(),r)}},onRowGroupOpened:e=>{if(e.event){const r=e.node.getRoute()??[];r.length&&t.showRootAggregation&&r.shift();const o=r.join(hi);if(!o)return;e.expanded?n.grid.controller.expandPath(o):n.grid.controller.collapsePath(o)}},onVirtualColumnsChanged:()=>{n.grid.debouncedAutoResizeColumns?.cancel(),n.grid.debouncedAutoResizeColumns?.()},columnDefs:Fu(e,t),autoGroupColumnDef:{colId:pu,headerName:"",cellRendererParams:{suppressCount:!t.showLeafCount},...xu(e,t),minWidth:200,sortable:!0,showRowGroup:!0,suppressSpanHeaderHeight:!0}}}(e,n,this._view);this._settingService.getBooleanValue(Qc.DEBUGGER__ENABLE_DEBUG_MODE)&&this._engine.debugProcess("New Grid Options",["Grid Options",r]),this.client.updateGridOptions({...r,rowBuffer:this._settingService.getNumericValue(Qc.GRID_CLIENT__ROW_BUFFER),purgeClosedRowNodes:this._settingService.getBooleanValue(Qc.GRID_CLIENT__PURGE_CLOSED_ROW_NODES),cacheBlockSize:this.isPaginationEnabled?500:du}),this.client.setFilterModel({[hu]:{type:"equals",filter:_u(e,n)}})}}class Jd extends qu{_view;name="";constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,Ie.Gn)(this,{name:Ie.sH,applySnapshot:Ie.XI}),this._view=e}getSnapshotSubscriberName(){return"info"}async applySnapshot(e,t){const n=e.data,r=ji.serialization.fromJson(n.configuration);r.name!==this.name&&(this.name=r.name,this._view.dataCube.options?.onNameChanged?.({api:this._view.dataCube.api,name:this.name,source:this._view.source}))}}class Qd{uuid=(0,i.A)();data;_isPatchChange=!1;_finalized=!1;_hashCode;constructor(e){this.data={configuration:e,sourceColumns:[],leafExtendedColumns:[],selectColumns:[],filter:void 0,groupBy:void 0,pivot:void 0,groupExtendedColumns:[],sortColumns:[],limit:void 0}}static create(e){return new Qd(e)}markAsPatchChange(){this._isPatchChange=!0}isPatchChange(){return this._isPatchChange}isFinalized(){return this._finalized}finalize(){return this._finalized||(this._hashCode=Bo(T(this.data)),this._finalized=!0),this}get hashCode(){if(!this._finalized||!this._hashCode)throw new I("Snapshot is not finalized");return this._hashCode}clone(){const e=new Qd({});return e.data=JSON.parse(JSON.stringify(this.data)),e}INTERNAL__fullClone(){const e=new Qd({});return e.uuid=this.uuid,e.data=JSON.parse(JSON.stringify(this.data)),e._isPatchChange=this._isPatchChange,e._finalized=this._finalized,e._hashCode=this._hashCode,e}}const Zd=[{func:Xo.EXTEND,parameters:2},{func:Xo.FILTER,parameters:1},{func:Xo.SELECT,parameters:1},{func:Xo.GROUP_BY,parameters:2},{func:Xo.PIVOT,parameters:2},{func:Xo.CAST,parameters:1},{func:Xo.SORT,parameters:1},{func:Xo.LIMIT,parameters:1}];var eg;!function(e){e.LEAF_EXTEND="leaf_extend",e.FILTER="filter",e.SELECT="select",e.PIVOT__GROUP="pivot__group",e.PIVOT_SORT="pivot_sort",e.PIVOT="pivot",e.PIVOT_CAST="pivot_cast",e.GROUP_BY__GROUP="group_by__group",e.GROUP_BY="group_by",e.GROUP_BY_SORT="group_by_sort",e.GROUP_EXTEND="group_extend",e.SORT="sort",e.LIMIT="limit"}(eg||(eg={}));const tg=[{name:eg.LEAF_EXTEND,func:Xo.EXTEND,repeat:!0},{name:eg.FILTER,func:Xo.FILTER},{name:eg.SELECT,func:Xo.SELECT},{name:eg.PIVOT__GROUP,funcs:[{name:eg.PIVOT_SORT,func:Xo.SORT,required:!0},{name:eg.PIVOT,func:Xo.PIVOT,required:!0},{name:eg.PIVOT_CAST,func:Xo.CAST,required:!0}]},{name:eg.GROUP_BY__GROUP,funcs:[{name:eg.GROUP_BY,func:Xo.GROUP_BY,required:!0},{name:eg.GROUP_BY_SORT,func:Xo.SORT,required:!0}]},{name:eg.GROUP_EXTEND,func:Xo.EXTEND,repeat:!0},{name:eg.SORT,func:Xo.SORT},{name:eg.LIMIT,func:Xo.LIMIT}],ng=new RegExp(`^${tg.map((e=>"funcs"in e?`(${e.funcs.map((e=>`(?<${e.name}><${Ka(e.func)}>____\\d+)${e.repeat?"*":e.required?"":"?"}`)).join("")})${e.repeat?"*":e.required?"":"?"}`:`(?<${e.name}><${Ka(e.func)}>____\\d+)${e.repeat?"*":e.required?"":"?"}`)).join("")}$`);var rg=n(60720),og=n(56148),ig=n(36868);const ag=(0,Ft.forwardRef)((function(e,t){return(0,E.jsx)(rg.x,{ref:t,...e})})),sg=(0,Ft.forwardRef)((function(e,t){return(0,E.jsx)(og.l,{ref:t,...e})})),lg=(0,Ft.forwardRef)((function(e,t){const{inputRef:n,className:r,disabled:o,InputProps:{ref:i,endAdornment:a}={},ownerState:s,enableAccessibleFieldDOMStructure:l,clearable:c,onClear:u,error:d,focused:g,...p}=e,m=(0,Nc.A)(i,t);return(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",position:"relative"},ref:m,children:[(0,E.jsx)("input",{className:r,disabled:o,ref:n,...p}),a]})})),cg=(0,Ft.forwardRef)((function(e,t){const{slots:n,slotProps:r,onClear:o,...i}=e,a=(0,ig.c)({...i});return(0,E.jsx)(lg,{...a,ref:t})}));var ug=n(15179),dg=n(3686);const gg=(0,vt.PA)((0,Ft.forwardRef)((function(e,t){const{value:n,updateValue:r}=e,o=(0,Ft.useRef)(null),i=(0,Nc.A)(o,t);return(0,E.jsx)("input",{ref:i,className:"h-5 w-full flex-shrink-0 border border-neutral-400 px-1 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",value:n,onKeyDown:e=>{"Escape"===e.code&&o.current?.select()},onChange:e=>{r(e.target.value)}})}))),pg="#ERR",mg=(0,vt.PA)((0,Ft.forwardRef)((function(e,t){const{value:n,updateValue:r,defaultValue:o=0,step:i=1}=e,[a,s]=(0,Ft.useState)(n.toString()),l=(0,Ft.useRef)(null),c=(0,Nc.A)(l,t),u=()=>{const e=Number(a);if(""===a)s(o.toString()),r(o);else if(isNaN(e)){if(a===pg)return void s(n.toString());try{const e=$((0,dg._3)(a));s(e.toString()),r(e)}catch{s(pg),r(o)}}};return(0,Ft.useEffect)((()=>{s(n.toString())}),[n]),(0,E.jsxs)("div",{className:"relative h-5 w-full flex-shrink-0",children:[(0,E.jsx)("input",{ref:c,inputMode:"numeric",spellCheck:!1,type:"text",className:"h-full w-full border border-neutral-400 px-1 pr-5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",value:a,onKeyDown:e=>{if("Enter"===e.code)u(),l.current?.focus();else if("Escape"===e.code)l.current?.select();else if("ArrowUp"===e.code){e.preventDefault();const t=n+i;s(t.toString()),r(t)}else if("ArrowDown"===e.code){e.preventDefault();const t=n-i;s(t.toString()),r(t)}},onChange:e=>{const t=e.target.value;s(t);const n=Number(t);!isNaN(n)&&t&&r(n)},onBlur:()=>u()}),(0,E.jsx)("div",{className:"absolute right-0 top-0 flex h-5 w-5 items-center justify-center",children:(0,E.jsx)("button",{className:"text-lg text-neutral-500 hover:text-neutral-600",title:"Evaluate Expression (Enter)",onClick:u,tabIndex:-1,children:(0,E.jsx)(go.Calculate,{})})})]})}))),hg=(0,Ft.forwardRef)((function(e,t){return(0,E.jsx)(cg,{...e,ref:t,className:"h-5 w-full flex-shrink-0 border border-neutral-400 px-1 pr-5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300"})})),fg=(0,vt.PA)((e=>{const{value:t,updateValue:n}=e,[r,o]=(0,Ft.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-5 w-5 items-center justify-center",title:"Open Date Picker...",onClick:e=>{o(e.currentTarget)},tabIndex:-1,children:(0,E.jsx)(go.Calendar,{className:"text-lg text-neutral-500 hover:text-neutral-600"})}),(0,E.jsx)(zn,{open:Boolean(r),anchorEl:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:()=>o(null),classes:{root:"data-cube-editor-date-calendar mt-0.5",paper:"shadow-md rounded-none border border-neutral-300"},children:(0,E.jsx)(ag,{autoFocus:!0,value:(0,ug.H)(t),onChange:e=>{n((0,Kn.GP)(e,$o)),o(null)}})})]})})),Eg=(0,vt.PA)((0,Ft.forwardRef)((function(e,t){const{value:n,updateValue:r}=e;return(0,E.jsx)(sg,{ref:t,value:(0,ug.H)(n),format:$o,slots:{field:hg,openPickerButton:()=>(0,E.jsx)(fg,{value:n,updateValue:r})},onChange:e=>{e&&r((0,Kn.GP)(e,$o))}})}))),bg=(0,vt.PA)((0,Ft.forwardRef)((function(e,t){const{value:n,updateValue:r,view:o}=e,i=o.filter,a=i.columns.find((e=>e.name===n)),[s,l,c,u]=Sc();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Uc,{ref:t,className:"relative mr-1 w-32",onClick:s,open:u,children:n}),(0,E.jsx)(Gc,{className:"w-32",...c,children:i.columns.filter((e=>a&&ui(a.type)===ui(e.type))).map((e=>(0,E.jsx)(Hc,{onClick:()=>{r(e.name),l()},autoFocus:n===e.name,children:e.name},e.name)))})]})}))),Cg=(0,vt.PA)((0,Ft.forwardRef)((function(e,t){const{value:n,updateValue:r,view:o}=e;switch(n.type){case jo.STRING:return(0,E.jsx)(gg,{ref:t,value:n.value,updateValue:e=>r(e)});case jo.NUMBER:case jo.DECIMAL:case jo.FLOAT:case jo.INTEGER:return(0,E.jsx)(mg,{ref:t,value:n.value,updateValue:e=>r(e)});case jo.DATE:case jo.STRICTDATE:case jo.DATETIME:return(0,E.jsx)(Eg,{ref:t,value:n.value,updateValue:e=>r(e)});case ti.COLUMN:return(0,E.jsx)(bg,{ref:t,value:n.value,updateValue:e=>r(e),view:o});default:return null}})));function vg(){return(0,E.jsxs)("div",{className:"relative flex pl-2.5",children:[(0,E.jsx)("div",{className:"pointer-events-none absolute -left-2 h-0 w-0 border-[9px] border-neutral-600 border-b-transparent border-l-transparent border-t-transparent"}),(0,E.jsx)("div",{className:"mr-1 flex h-[18px] w-10 flex-shrink-0 items-center bg-neutral-600 pl-2 text-sm font-medium text-white",title:"Filter is inverted: select all but what matches.",children:"NOT"})]})}const _g=(0,vt.PA)((e=>{const{className:t,node:n,view:r}=e,o=r.filter;return(0,E.jsxs)("div",{className:Mn("flex h-3.5 w-14 flex-shrink-0 bg-neutral-100",t),children:[(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 hover:bg-neutral-200",onClick:()=>o.addFilterNode(n),title:"Insert a new column filter, just after this filter.",children:(0,E.jsx)(go.FilterAddOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center border border-l-0 border-neutral-400 hover:bg-neutral-200",onClick:()=>o.removeFilterNode(n),title:"Remove this filter",children:(0,E.jsx)(go.FilterRemoveOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center border border-l-0 border-neutral-400 hover:bg-neutral-200",onClick:()=>o.layerFilterNode(n),title:"Put this filter in its own sub-group (and combine it with other filters).",children:(0,E.jsx)(go.FilterGroupOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:Mn("flex h-3.5 w-3.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 hover:bg-neutral-200",{"bg-neutral-600":n.not,"border-neutral-600":n.not,"text-white":n.not,"hover:bg-neutral-600":n.not}),onClick:()=>n.setNot(!n.not),title:n.not?"Turn off the NOT operator on this filter to select only what matches.":"Turn on the NOT operator on this filter to select all but what matches.",children:(0,E.jsx)(go.FilterNotOperator,{className:"stroke-[3] text-xs"})})]})})),Tg=(0,vt.PA)((e=>{const{node:t,level:n,view:r}=e,o=Lc(),i=r.filter,a=t.parent,s=a?a.children.indexOf(t):void 0,l=(0,Ft.useRef)(null),[c,u,d,g]=Sc(),[p,m,h,f]=Sc(),b=(0,Ft.useCallback)((()=>l.current?.focus()),[]);return(0,E.jsxs)("div",{className:"group flex h-6 items-center",children:[(0,E.jsx)("div",{className:Mn("z-1 absolute h-6 w-full bg-opacity-50 group-hover:bg-sky-100 group-hover:bg-opacity-50",{"bg-sky-50":t===i.selectedNode,"border-[0.5px] border-l-2 border-sky-200 border-l-sky-600":t===i.selectedNode}),onClick:()=>i.setSelectedNode(t)}),(0,E.jsx)("div",{style:{paddingLeft:36*n+10+60*(n-1)+"px"},className:"relative h-6 flex-shrink-0",onClick:()=>i.setSelectedNode(t),children:a&&(0,E.jsxs)("div",{className:"absolute top-0 flex h-6 items-center justify-end",style:{width:"22px",right:"8px"},children:[(0,E.jsx)("div",{className:Mn("h-[1px] w-full flex-1 bg-neutral-200",{"bg-sky-600":a===i.selectedGroupNode})}),void 0!==s&&s>0&&(0,E.jsx)("div",{className:Mn("flex h-6 items-center justify-center pl-1 text-xs text-neutral-600",{"text-sky-600":a===i.selectedGroupNode}),children:a.operation===ii.AND?"and":"or"})]})}),(0,E.jsx)(_g,{className:"relative mr-1",node:t,view:r}),t.not&&(0,E.jsx)(vg,{}),(0,E.jsx)(Uc,{className:"relative mr-1 w-32",onClick:c,open:g,children:t.column.name}),(0,E.jsx)(Gc,{className:"w-32",...d,onClosed:b,children:i.columns.map((e=>(0,E.jsx)(Hc,{onClick:()=>{if(e!==t.column){const r=t.operation.isCompatibleWithColumn(e)?t.operation:(n=o.engine.filterOperations.filter((t=>t.isCompatibleWithColumn(e)))).length?n[0]:void 0;r&&(t.setColumn(e),t.setOperation(r),t.setValue(r.generateDefaultValue(e)))}var n;u()},autoFocus:t.column.name===e.name,children:e.name},e.name)))}),(0,E.jsx)(Uc,{className:"relative mr-1 w-24",onClick:p,open:f,children:t.operation.label}),(0,E.jsx)(Gc,{className:"w-24",...h,onClosed:b,children:o.engine.filterOperations.filter((e=>e.isCompatibleWithColumn(t.column))).map((e=>(0,E.jsx)(Hc,{onClick:()=>{e!==t.operation&&e.isCompatibleWithColumn(t.column)&&(t.setOperation(e),t.setValue(e.generateDefaultValue(t.column))),m()},autoFocus:t.operation.operator===e.operator,children:e.label},e.operator)))}),(0,E.jsx)("div",{className:"relative w-32 flex-shrink-0",children:t.value&&(0,E.jsx)(Cg,{ref:l,value:t.value,updateValue:e=>t.updateValue(e),view:r})})]})})),Ng=(0,vt.PA)((e=>{const{node:t,level:n,view:r}=e,o=r.filter,i=t.parent,a=i?i.children.indexOf(t):void 0,[s,l,c,u]=Sc();return(0,E.jsxs)("div",{className:"group flex h-6 items-center",children:[(0,E.jsx)("div",{className:Mn("z-1 absolute h-6 w-full bg-opacity-50 group-hover:bg-sky-100 group-hover:bg-opacity-50",{"bg-sky-50":t===o.selectedNode,"border-[0.5px] border-l-2 border-sky-200 border-l-sky-600":t===o.selectedNode}),onClick:()=>o.setSelectedNode(t)}),(0,E.jsx)("div",{style:{paddingLeft:36*n+10+(0!==n?60*(n-1):0)+"px"},className:"relative h-6 flex-shrink-0",onClick:()=>o.setSelectedNode(t),children:0!==n&&i&&(0,E.jsxs)("div",{className:"absolute top-0 flex h-6 items-center justify-end",style:{width:"22px",right:"8px"},children:[(0,E.jsx)("div",{className:Mn("h-[1px] w-full flex-1 bg-neutral-200",{"bg-sky-600":i===o.selectedGroupNode})}),void 0!==a&&a>0&&(0,E.jsx)("div",{className:Mn("flex h-6 items-center justify-center pl-1 text-xs text-neutral-600",{"text-sky-600":i===o.selectedGroupNode}),children:i.operation===ii.AND?"and":"or"})]})}),0!==n&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(_g,{className:"relative mr-1",node:t,view:r}),t.not&&(0,E.jsx)(vg,{})]}),(0,E.jsx)(Uc,{className:"relative w-14",onClick:s,open:u,children:t.operation===ii.AND?"All of":"Any of"}),(0,E.jsxs)(Gc,{className:"w-14",...c,children:[(0,E.jsx)(Hc,{onClick:()=>{t.setOperation(ii.AND),l()},autoFocus:t.operation===ii.AND,children:"All of"}),(0,E.jsx)(Hc,{onClick:()=>{t.setOperation(ii.OR),l()},autoFocus:t.operation===ii.OR,children:"Any of"})]})]})})),Ag=(0,vt.PA)((e=>{const{node:t,level:n,view:r}=e,o=r.filter;return(0,E.jsxs)("div",{className:"relative w-full",children:[(0,E.jsx)("div",{className:Mn("pointer-events-none absolute h-full",{"border-[0.5px] border-sky-200 bg-sky-50":t===o.selectedGroupNode}),style:{marginLeft:36*n+10+60*n-2+"px",width:`calc(100% - ${36*n+10+60*n-4}px)`}}),(0,E.jsx)(Ng,{node:t,level:n,view:r}),(0,E.jsxs)("div",{className:"relative",children:[(0,E.jsx)("div",{className:Mn("pointer-events-none absolute z-10 h-[calc(100%_-_12px)] w-0 border-l border-neutral-200",{"border-sky-600":t===o.selectedGroupNode}),style:{marginLeft:36*n+10+6+60*n+"px"}}),t.children.map((e=>e instanceof td?(0,E.jsx)(Tg,{level:n+1,node:e,view:r},e.uuid):e instanceof nd?(0,E.jsx)(Ag,{level:n+1,node:e,view:r},e.uuid):null))]})]})})),yg=(0,vt.PA)((e=>{const{view:t}=e,n=t.filter;return(0,Ft.useEffect)((()=>{n.setSelectedNode(void 0)}),[n]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"relative h-[calc(100%_-_40px)] w-full px-2 pt-2",children:(0,E.jsx)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:(0,E.jsx)("div",{className:"h-full w-full select-none p-2",children:(0,E.jsx)("div",{className:"flex h-full w-full",children:(0,E.jsxs)("div",{className:"relative flex h-full w-full overflow-auto rounded-sm border border-neutral-200",onClick:()=>n.setSelectedNode(void 0),children:[!n.tree.root&&(0,E.jsxs)("div",{className:"h-full w-full p-3",children:[(0,E.jsx)("div",{children:"No filter is specified. Click the button below to start."}),(0,E.jsx)(Pc,{onClick:()=>{n.initializeTree()},children:"Create New Filter"})]}),n.tree.root&&(0,E.jsxs)("div",{className:"flex flex-col py-1",onClick:e=>e.stopPropagation(),children:[(0,E.jsx)(Ag,{node:n.tree.root,level:0,view:t}),(0,E.jsx)("div",{className:"min-h-6 w-full flex-1",onClick:()=>n.setSelectedNode(void 0)})]})]})})})})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Pc,{onClick:()=>n.display.close(),children:"Cancel"}),(0,E.jsx)(Pc,{className:"ml-2",onClick:()=>n.applyChanges(),children:"Apply"}),(0,E.jsx)(Pc,{className:"ml-2",onClick:()=>{n.applyChanges(),n.display.close()},children:"OK"})]})]})}));class Sg extends qu{_view;display;tree;selectedNode;columns=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,Ie.Gn)(this,{tree:Ie.sH.ref,initializeTree:Ie.XI,refreshTree:Ie.XI,columns:Ie.sH.struct,applySnapshot:Ie.XI,selectedNode:Ie.sH,selectedGroupNode:Ie.EW,setSelectedNode:Ie.XI,addFilterNode:Ie.XI,removeFilterNode:Ie.XI,layerFilterNode:Ie.XI}),this._view=e,this.display=this._view.dataCube.layoutService.newDisplay("Filter",(()=>(0,E.jsx)(yg,{view:this._view})),{x:-50,y:50,width:600,height:400,minWidth:300,minHeight:200,center:!1}),this.tree={nodes:new Map}}initializeTree(){if(void 0===this.tree.root&&0===this.tree.nodes.size){const e=new nd(void 0,ii.AND,void 0);this.tree.nodes.set(e.uuid,e),this.tree.root=e;const t=this.generateNewFilterNode(e);t&&(e.addChild(t),this.tree.nodes.set(t.uuid,t)),this.refreshTree()}}refreshTree(){this.tree={...this.tree}}get selectedGroupNode(){return this.selectedNode instanceof nd?this.selectedNode:this.selectedNode?.parent}setSelectedNode(e){this.selectedNode=e}generateNewFilterNode(e){if(e instanceof td)return new td(void 0,e.column,e.operation,(0,Zu.A)(e.value),e.not);if(e instanceof nd&&0!==this.columns.length){const e=A(this.columns,0),t={name:e.name,type:e.type},n=this._engine.getFilterOperation(oi.EQUAL);return new td(void 0,t,n,n.generateDefaultValue(t),void 0)}}addFilterNode(e){if(this.tree.root){const t=this.generateNewFilterNode(e),n=e.parent;n&&t&&(n.addChild(t,e instanceof td?n.children.indexOf(e)+1:void 0),this.tree.nodes.set(t.uuid,t),this.refreshTree())}}removeFilterNode(e){if(this.tree.root){const t=e.parent;if(e!==this.tree.root&&t){let n=[e];for(;n.length;)n.forEach((e=>{e instanceof nd&&e.children.forEach((e=>{e.setParent(void 0)})),this.tree.nodes.delete(e.uuid)})),n=Array.from(this.tree.nodes.values()).filter((e=>e!==this.tree.root&&!e.parent));if(t.removeChild(e),this.tree.nodes.delete(e.uuid),1===t.children.length){if(t!==this.tree.root){const e=A(t.children,0),n=P(t.parent);t.removeChild(e);const r=n.children.indexOf(t);n.removeChild(t),this.tree.nodes.delete(t.uuid),n.addChild(e,r)}}else 0===t.children.length&&t===this.tree.root&&(this.tree.root=void 0,this.tree.nodes.delete(t.uuid));this.refreshTree(),this.selectedNode===e&&this.setSelectedNode(void 0)}}}layerFilterNode(e){if(this.tree.root){const t=this.generateNewFilterNode(e),n=e.parent;if(n&&t){const r=n.children.indexOf(e);n.removeChild(e);const o=new nd(void 0,ii.OR,void 0);o.addChild(e),o.addChild(t),n.addChild(o,r),this.tree.nodes.set(o.uuid,o),this.tree.nodes.set(t.uuid,t),this.refreshTree(),this.selectedNode===e&&this.setSelectedNode(o)}}}getSnapshotSubscriberName(){return"filter-editor"}async applySnapshot(e,t){const n=ji.serialization.fromJson(e.data.configuration);this.columns=n.columns.filter((t=>!e.data.groupExtendedColumns.find((e=>e.name===t.name)))),this.tree.nodes=new Map,this.tree.root=e.data.filter?od(e.data.filter,void 0,this.tree.nodes,(e=>this._engine.getFilterOperation(e))):void 0,this.setSelectedNode(void 0),this.refreshTree()}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();t.data.filter=this.tree.root?rd(this.tree.root):void 0,t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}var xg;!function(e){e.LEAF_LEVEL_MEASURE="Leaf Level Measure",e.LEAF_LEVEL_DIMENSION="Leaf Level Dimension",e.GROUP_LEVEL="Group Level"}(xg||(xg={}));const Ig=(0,vt.PA)((e=>{const{state:t}=e,n=Lc(),r=t.view,o=r.extend,i=(0,Ft.useRef)(null),a=t.isGroupLevel?xg.GROUP_LEVEL:t.columnKind===ei.MEASURE?xg.LEAF_LEVEL_MEASURE:xg.LEAF_LEVEL_DIMENSION,[s,l,c,u]=Sc(),[d,g,p,m]=Sc(),h=(0,Ft.useRef)(void 0),f=(0,Ft.useRef)(null),[b,C]=(0,Ft.useState)(),v=(0,Ft.useMemo)((()=>(0,Dn.A)((()=>{t.getReturnType().catch((e=>n.alertService.alertUnhandledError(e)))}),500)),[t,n]);return(0,Ft.useEffect)((()=>{if(!b&&f.current){const e=f.current,n=No.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,language:Tc.PURE,theme:cc.GITHUB_LIGHT,wordSeparators:Xc,fixedOverflowWidgets:!0,overflowWidgetsDomNode:document.getElementById(Ao)});h.current?.dispose(),h.current=No.languages.registerCompletionItemProvider(Tc.PURE,{triggerCharacters:[...Xc,"$"],provideCompletionItems:async(e,n,o)=>{let i=[];return e.uri===t.editorModelUri&&(i=i.concat(await async function(e,n,r,o,i){const a=n.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),s=n.getWordAtPosition(e);let l=[];try{l=await o.getQueryTypeahead((r??"")+a,t.buildExtendBaseQuery(),i)}catch{}return l.map((t=>({label:t.display,kind:No.languages.CompletionItemKind.Text,filterText:t.display,insertTextRules:No.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:t.completion,range:{startLineNumber:e.lineNumber,startColumn:s?.startColumn??e.column,endLineNumber:e.lineNumber,endColumn:s?.endColumn??e.column}})))}(n,e,t.codePrefix,r.engine,r.source))),{suggestions:i}}}),n.setModel(t.editorModel),n.onDidChangeModelContent((()=>{const e=n.getValue();e!==t.code&&(t.code=e,t.clearError(),t.setReturnType(void 0),v.cancel(),v())})),n.focus(),n.setPosition({lineNumber:1,column:t.code.length+1}),t.setEditor(n),C(n)}}),[t,b,v,r]),(0,Ft.useEffect)((()=>()=>{b&&(b.dispose(),h.current?.dispose())}),[b]),(0,Ft.useEffect)((()=>{t.editor?.updateOptions({readOnly:t.finalizationState.isInProgress})}),[t,t.finalizationState.isInProgress]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full px-2 pt-2",children:(0,E.jsx)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:(0,E.jsxs)("div",{className:"h-full w-full select-none p-0",children:[(0,E.jsxs)("div",{className:"h-24 w-full p-2",children:[(0,E.jsxs)("div",{className:"mt-1 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:"Column Name:"}),(0,E.jsx)(jc,{className:"w-32",ref:i,disabled:t.finalizationState.isInProgress,value:t.name,onChange:e=>{t.setName(e.target.value)}}),(0,E.jsx)("div",{className:"ml-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center text-lg",children:t.isNameValid?(0,E.jsx)(go.CircleChecked,{className:"text-green-500"}):(0,E.jsx)(go.CircledFailed,{className:"text-red-500"})})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:["Column Kind:",(0,E.jsx)($c,{className:"ml-1",documentationKey:Id.EXTENDED_COLUMN_LEVELS})]}),(0,E.jsx)(Uc,{className:"w-32",onClick:s,open:u,disabled:t.finalizationState.isInProgress,children:a}),(0,E.jsx)(Gc,{className:"w-32",...c,children:[xg.LEAF_LEVEL_MEASURE,xg.LEAF_LEVEL_DIMENSION,xg.GROUP_LEVEL].map((e=>(0,E.jsx)(Hc,{onClick:()=>{switch(e){case xg.LEAF_LEVEL_MEASURE:t.setColumnKind(!1,ei.MEASURE);break;case xg.LEAF_LEVEL_DIMENSION:t.setColumnKind(!1,ei.DIMENSION);break;case xg.GROUP_LEVEL:t.setColumnKind(!0,void 0);break;default:return}t.clearError(),t.setReturnType(void 0),v.cancel(),v(),l()},autoFocus:e===a,children:e},e)))})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:"Value Type:"}),(0,E.jsx)(Uc,{className:"w-32",onClick:d,open:m,disabled:t.finalizationState.isInProgress,children:t.expectedType}),(0,E.jsx)("div",{className:"ml-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center text-lg",children:t.validationState.isInProgress?(0,E.jsx)(go.Loader,{className:"animate-spin stroke-2 text-neutral-400"}):t.returnType?t.isTypeValid?(0,E.jsx)(go.CircleChecked,{className:"text-green-500"}):(0,E.jsx)(go.CircledFailed,{className:"text-red-500"}):null}),(0,E.jsx)(Gc,{className:"w-32",...p,children:[li.TEXT,li.NUMBER,li.DATE].map((e=>(0,E.jsx)(Hc,{onClick:()=>{t.setExpectedType(e),g()},autoFocus:e===t.expectedType,children:e},e)))})]})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_96px)] w-full p-2 pt-1",children:(0,E.jsx)("div",{className:Mn("relative h-full w-full border border-neutral-200",{"border-red-500":Boolean(t.codeError)}),children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:f})})})]})})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Pc,{onClick:()=>t.close(),children:"Cancel"}),t instanceof Rg&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Pc,{className:"ml-2",onClick:()=>{o.deleteColumn(t.initialData.name).catch((e=>n.alertService.alertUnhandledError(e)))},children:"Delete"}),(0,E.jsx)(Pc,{className:"ml-2",onClick:()=>{t.reset().catch((e=>n.alertService.alertUnhandledError(e)))},children:"Reset"})]}),(0,E.jsx)(Pc,{className:"ml-2",disabled:!t.isNameValid||!t.isTypeValid||t.validationState.isInProgress||t.finalizationState.isInProgress,onClick:()=>{t.applyChanges().catch((e=>n.alertService.alertUnhandledError(e)))},children:"OK"})]})]})}));class kg{uuid=(0,i.A)();_manager;view;_name=`col_${this.uuid.replaceAll("-","_")}`;display;validationState=ke.create();finalizationState=ke.create();name;expectedType;isGroupLevel;columnKind;code="";codePrefix;codeSuffix;editor;editorModel;editorModelUri;codeError;returnType;constructor(e,t,n,r,o){(0,Ie.Gn)(this,{name:Ie.sH,setName:Ie.XI,isNameValid:Ie.EW,expectedType:Ie.sH,setExpectedType:Ie.XI,isTypeValid:Ie.EW,isGroupLevel:Ie.sH,columnKind:Ie.sH,setColumnKind:Ie.XI,editor:Ie.sH.ref,setEditor:Ie.XI,codeError:Ie.sH.ref,showError:Ie.XI,clearError:Ie.XI,returnType:Ie.sH,setReturnType:Ie.XI}),this._manager=e,this.view=e.view,this.display=this.newDisplay(this),this.name=t,this.expectedType=n,this.isGroupLevel=r,this.columnKind=o,this.codePrefix=`->extend(~${this._name}:`,this.codeSuffix=")",this.editorModelUri=No.Uri.file(`/${this.uuid}.pure`),this.editorModel=No.editor.createModel("",Tc.PURE,this.editorModelUri)}async initialize(){this.code=await this.getInitialCode(),this.editorModel.setValue(this.code)}setName(e){this.name=e}get isNameValid(){return!this._manager.allColumnNames.includes(this.name)}setExpectedType(e){this.expectedType=e}get isTypeValid(){return void 0!==this.returnType&&this.expectedType===ui(this.returnType)}setColumnKind(e,t){this.isGroupLevel=e,this.columnKind=t}setEditor(e){this.editor=e}setReturnType(e){this.returnType=e}showError(e){this.codeError=e,e.sourceInformation&&_c(this.editorModel,[{message:e.message,startLineNumber:e.sourceInformation.startLine,startColumn:e.sourceInformation.startColumn,endLineNumber:e.sourceInformation.endLine,endColumn:e.sourceInformation.endColumn}],this.uuid)}clearError(){var e;this.codeError=void 0,e=this.uuid,No.editor.removeAllMarkers(e??vc)}buildExtendBaseQuery(){const e=P(this._manager.getLatestSnapshot()).clone();return this.isGroupLevel||(e.data.leafExtendedColumns=[],e.data.selectColumns=[],e.data.filter=void 0,e.data.groupBy=void 0,e.data.pivot=void 0),e.data.groupExtendedColumns=[],e.data.sortColumns=[],e.data.limit=void 0,bl([],[Dl(e,this.view.source,(()=>{}),this.view.engine.filterOperations,this.view.engine.aggregateOperations)])}async getReturnType(){this.validationState.inProgress(),this.clearError(),this.setReturnType(void 0);try{const e=await this.view.engine.getQueryCodeRelationReturnType(this.codePrefix+this.code+this.codeSuffix,this.buildExtendBaseQuery(),this.view.source);let t=e.columns.find((e=>e.name===this._name))?.type;return t=t&&Object.values(jo).includes(t)?t:void 0,this.setReturnType(t),t}catch(e){if(w(e),e instanceof Ud){if(this.validationState.fail(),e.sourceInformation){e.sourceInformation.startColumn-=1===e.sourceInformation.startLine?this.codePrefix.length:0,e.sourceInformation.endColumn-=1===e.sourceInformation.endLine?this.codePrefix.length:0;const t=this.editorModel.getFullModelRange();(e.sourceInformation.startLine<1||1===e.sourceInformation.startLine&&e.sourceInformation.startColumn<1||e.sourceInformation.endLine>t.endLineNumber||e.sourceInformation.endLine===t.endLineNumber&&e.sourceInformation.endColumn>t.endColumn)&&(e.sourceInformation.startColumn=t.startColumn,e.sourceInformation.startLine=t.startLineNumber,e.sourceInformation.endColumn=t.endColumn,e.sourceInformation.endLine=t.endLineNumber)}return void this.showError(e)}this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.validationState.complete()}}close(){this.editorModel.dispose(),this.editor?.dispose(),this.display.close()}}class wg extends kg{initialCode;constructor(e,t){super(e,`col_${e.allColumnNames.length+1}`,t?ui(t.type):li.NUMBER,!1,t?t.kind:ei.MEASURE),this.initialCode=t?`${fi}|$${fi}.${t.name}`:`${fi}|`}async getInitialCode(){return this.initialCode}newDisplay(e){return this.view.dataCube.layoutService.newDisplay("Add New Column",(()=>(0,E.jsx)(Ig,{state:this})),{x:50,y:50,width:500,height:300,minWidth:300,minHeight:200,center:!1})}async applyChanges(){if(!this.validationState.hasCompleted||!this.isNameValid||!this.isTypeValid)return;let e,t;this.finalizationState.inProgress();try{[e,t]=await Promise.all([this.view.engine.parseValueSpecification(this.code,!1),this.getReturnType()])}catch(e){return w(e),void this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.finalizationState.complete()}e instanceof zi?t?(this._manager.addNewColumn({name:this.name,type:t,mapFn:hl(e)},this.isGroupLevel,this.columnKind,this),this.close()):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Can't compute expression return type."}):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Expression must be a lambda."})}}class Rg extends kg{initialData;constructor(e,t,n,r){super(e,t.name,ui(t.type),r,n),(0,Ie.Gn)(this,{initialData:Ie.sH.ref,isNameValid:Ie.$Z}),this.initialData={name:t.name,type:t.type,kind:n,isGroupLevel:r,mapFn:t.mapFn}}get isNameValid(){return!this._manager.allColumnNames.filter((e=>e!==this.initialData.name)).includes(this.name)}async getInitialCode(){return this.view.engine.getValueSpecificationCode(ml(this.initialData.mapFn),!0)}newDisplay(e){return this.view.dataCube.layoutService.newDisplay("Edit Column",(()=>(0,E.jsx)(Ig,{state:this})),{x:50,y:50,width:500,height:300,minWidth:300,minHeight:200,center:!1})}async reset(){this.setName(this.initialData.name),this.setExpectedType(ui(this.initialData.type)),this.setColumnKind(this.initialData.isGroupLevel,this.initialData.kind),await this.initialize(),await this.getReturnType()}async applyChanges(){if(!this.validationState.hasCompleted||!this.isNameValid||!this.isTypeValid)return;let e,t;this.finalizationState.inProgress();try{[e,t]=await Promise.all([this.view.engine.parseValueSpecification(this.code,!1),this.getReturnType()])}catch(e){return w(e),void this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.finalizationState.complete()}e instanceof zi?t?await this._manager.updateColumn(this.initialData.name,{name:this.name,type:t,mapFn:hl(e)},this.isGroupLevel,this.columnKind):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Can't compute expression return type."}):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Expression must be a lambda."})}}class Og{name;type;data;constructor(e){this.name=e.name,this.type=e.type,this.data=e}}class Lg extends qu{view;columnConfigurations=[];selectColumns=[];sourceColumns=[];horizontalPivotCastColumns=[];leafExtendedColumns=[];groupExtendedColumns=[];newColumnEditors=[];existingColumnEditors=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,Ie.Gn)(this,{sourceColumns:Ie.sH.ref,horizontalPivotCastColumns:Ie.sH.ref,leafExtendedColumns:Ie.sH,setLeafExtendedColumns:Ie.XI,groupExtendedColumns:Ie.sH,setGroupExtendedColumns:Ie.XI,allColumnNames:Ie.EW,addNewColumn:Ie.XI,updateColumn:Ie.XI,deleteColumn:Ie.XI,applySnapshot:Ie.XI}),this.view=e}setLeafExtendedColumns(e){this.leafExtendedColumns=e}setGroupExtendedColumns(e){this.groupExtendedColumns=e}get allColumnNames(){return(0,nt.A)([...this.sourceColumns,...this.leafExtendedColumns,...this.groupExtendedColumns,...this.horizontalPivotCastColumns],(e=>e.name)).map((e=>e.name))}async openNewColumnEditor(e){const t=new wg(this,e);await t.initialize(),this.newColumnEditors.push(t),t.display.open()}async openExistingColumnEditor(e){const t=this.existingColumnEditors.find((t=>t.initialData.name===e));if(t)return void t.display.open();if(!this.leafExtendedColumns.find((t=>t.name===e))&&!this.groupExtendedColumns.find((t=>t.name===e)))return;const n=new Rg(this,P(this.leafExtendedColumns.find((t=>t.name===e))??this.groupExtendedColumns.find((t=>t.name===e))).data,P(this.columnConfigurations.find((t=>t.name===e))).kind,Boolean(this.groupExtendedColumns.find((t=>t.name===e))));await n.initialize(),this.existingColumnEditors.push(n),n.display.open()}addNewColumn(e,t,n,r){const o=ud(e);n&&(o.kind=n,o.excludedFromPivot=n===ei.DIMENSION),this.columnConfigurations.push(o),y(this.newColumnEditors,r),t?this.groupExtendedColumns.push(new Og(e)):(this.leafExtendedColumns.push(new Og(e)),this.selectColumns.push(Ml(e))),this.applyChanges()}async updateColumn(e,t,n,r){if(!this.leafExtendedColumns.find((t=>t.name===e))&&!this.groupExtendedColumns.find((t=>t.name===e)))return;const o=P(this.columnConfigurations.find((t=>t.name===e))),i=this.view.taskService.newTask("Column update check"),a=P(this.getLatestSnapshot()).clone();a.data.leafExtendedColumns=a.data.leafExtendedColumns.filter((t=>t.name!==e)),a.data.groupExtendedColumns=a.data.groupExtendedColumns.filter((t=>t.name!==e)),a.data.selectColumns=a.data.selectColumns.filter((t=>t.name!==e)),n?a.data.groupExtendedColumns.push(t):(a.data.leafExtendedColumns.push(t),o.isSelected&&a.data.selectColumns.push(Ml(t))),a.data.configuration={...a.data.configuration,columns:this.columnConfigurations.map((n=>n.name===e?{...n.serialize(),...Ml(t),kind:r}:n.serialize()))};const s=await this._engine.getPartialQueryCode(a,!0);try{await this._engine.getQueryCodeRelationReturnType("->"+s,bl([],[this.view.source.query]),this.view.source)}catch(t){return w(t),void(t instanceof Ud?this.view.dataCube.alertService.alertCodeCheckError(t,s,"->",{message:`Column Update Check Failure: Can't safely update column '${e}'. Check the query code below for more details.`,text:`Error: ${t.message}`}):this.view.dataCube.alertService.alertError(t,{message:`Column Update Check Failure: Can't safely update column '${e}'.`,text:`Error: ${t.message}`}))}finally{this.view.taskService.endTask(i)}this.setLeafExtendedColumns(this.leafExtendedColumns.filter((t=>t.name!==e))),this.setGroupExtendedColumns(this.groupExtendedColumns.filter((t=>t.name!==e))),this.selectColumns=this.selectColumns.filter((t=>t.name!==e)),n?this.setGroupExtendedColumns([...this.groupExtendedColumns,new Og(t)]):(this.setLeafExtendedColumns([...this.leafExtendedColumns,new Og(t)]),o.isSelected&&this.selectColumns.push(Ml(t))),this.columnConfigurations=this.columnConfigurations.map((n=>(n.name===e&&(n.kind=r??ui(t.type)===li.NUMBER?ei.MEASURE:ei.DIMENSION,n.name=t.name,n.type=t.type,n.excludedFromPivot=n.kind===ei.DIMENSION),n))),this.existingColumnEditors.filter((t=>t.initialData.name===e)).forEach((e=>e.display.close())),this.existingColumnEditors=this.existingColumnEditors.filter((t=>t.initialData.name!==e)),this.applyChanges()}async deleteColumn(e){if(!this.leafExtendedColumns.find((t=>t.name===e))&&!this.groupExtendedColumns.find((t=>t.name===e)))return;const t=this.view.taskService.newTask("Column delete check"),n=P(this.getLatestSnapshot()).clone();n.data.leafExtendedColumns=n.data.leafExtendedColumns.filter((t=>t.name!==e)),n.data.groupExtendedColumns=n.data.groupExtendedColumns.filter((t=>t.name!==e)),n.data.selectColumns=n.data.selectColumns.filter((t=>t.name!==e)),n.data.configuration={...n.data.configuration,columns:this.columnConfigurations.filter((t=>t.name!==e)).map((e=>e.serialize()))};const r=await this._engine.getPartialQueryCode(n,!0);try{await this._engine.getQueryCodeRelationReturnType("->"+r,bl([],[this.view.source.query]),this.view.source)}catch(t){return w(t),void(t instanceof Ud?this.view.dataCube.alertService.alertCodeCheckError(t,r,"->",{message:`Column Delete Check Failure: Can't safely delete column '${e}'. Check the query code below for more details.`,text:`Error: ${t.message}`}):this.view.dataCube.alertService.alertError(t,{message:`Column Delete Check Failure: Can't safely delete column '${e}'.`,text:`Error: ${t.message}`}))}finally{this.view.taskService.endTask(t)}this.setLeafExtendedColumns(this.leafExtendedColumns.filter((t=>t.name!==e))),this.setGroupExtendedColumns(this.groupExtendedColumns.filter((t=>t.name!==e))),this.columnConfigurations=this.columnConfigurations.filter((t=>t.name!==e)),this.selectColumns=this.selectColumns.filter((t=>t.name!==e)),this.existingColumnEditors.filter((t=>t.initialData.name===e)).forEach((e=>e.display.close())),this.existingColumnEditors=this.existingColumnEditors.filter((t=>t.initialData.name!==e)),this.applyChanges()}getSnapshotSubscriberName(){return"extend-manager"}async applySnapshot(e,t){const n=ji.serialization.fromJson(e.data.configuration);this.columnConfigurations=n.columns,this.sourceColumns=e.data.sourceColumns,this.leafExtendedColumns=e.data.leafExtendedColumns.map((e=>new Og(e))),this.groupExtendedColumns=e.data.groupExtendedColumns.map((e=>new Og(e))),this.horizontalPivotCastColumns=e.data.pivot?.castColumns??[],this.selectColumns=e.data.selectColumns.map(Ml),[...this.newColumnEditors,...this.existingColumnEditors].forEach((e=>{e.getReturnType().catch((()=>{}))}))}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();t.data.configuration={...e.data.configuration,columns:this.columnConfigurations.map((e=>e.serialize()))},t.data.leafExtendedColumns=this.leafExtendedColumns.map((e=>e.data)),t.data.groupExtendedColumns=this.groupExtendedColumns.map((e=>e.data)),t.data.selectColumns=[...this.selectColumns],t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}class Fg{query;configuration;source;static serialization=new me((0,pe.PL)(Fg,{configuration:he(ji.serialization.schema),query:(0,pe.MY)(),source:(0,pe.lS)()}))}class Bg{uuid=(0,i.A)();name;startTime=Date.now();ownerId;endTime;constructor(e,t){this.name=e,this.ownerId=t}end(){this.endTime=Date.now()}}class Pg{tasks=[];constructor(){(0,Ie.Gn)(this,{tasks:Ie.sH,newTask:Ie.XI,endTask:Ie.XI,endTasks:Ie.XI})}newTask(e,t){const n=new Bg(e,t);return this.tasks.push(n),n}endTask(e){return this.tasks.find((t=>t.uuid===e.uuid))&&(this.tasks=this.tasks.filter((t=>t.uuid!==e.uuid)),e.end()),e}endTasks(e){this.tasks=this.tasks.filter((t=>!e.find((e=>e.uuid===t.uuid)))),e.forEach((e=>e.end()))}}class Dg{uuid=(0,i.A)();manager;constructor(e){(0,Ie.Gn)(this,{tasks:Ie.EW}),this.manager=e??new Pg}get tasks(){return this.manager.tasks.filter((e=>e.ownerId===this.uuid))}newTask(e){return this.manager.newTask(e,this.uuid)}endTask(e){return this.manager.endTask(e)}dispose(){this.manager.endTasks(this.tasks)}}class jg{dataCube;engine;logService;taskService;layoutService;alertService;settingService;snapshotService;info;editor;grid;filter;extend;initializeState=ke.create();_source;constructor(e){(0,Ie.Gn)(this,{_source:Ie.sH,source:Ie.EW,initialize:Ie.XI}),this.dataCube=e,this.engine=e.engine,this.logService=e.logService,this.taskService=new Dg(e.taskService.manager),this.layoutService=e.layoutService,this.alertService=e.alertService,this.settingService=e.settingService,this.snapshotService=new Ju(this.engine,this.logService),this.info=new Jd(this),this.editor=new Hd(this),this.grid=new qd(this),this.filter=new Sg(this),this.extend=new Lg(this)}async generateDataCubeQuery(){const e=this.snapshotService.currentSnapshot,t=new Fg;return t.source=this.dataCube.query.source,t.configuration=ji.serialization.fromJson(e.data.configuration),t.query=await this.engine.getPartialQueryCode(e),t}get source(){if(!this._source)throw new I("Source is not initialized");return this._source}async initialize(e){this.initializeState.inProgress();const t=this.taskService.newTask("Initializing");try{await Promise.all([this.info,this.editor,this.grid,this.grid.controller,this.filter,this.extend].map((async e=>{this.snapshotService.registerSubscriber(e)})));const t=await this.engine.processQuerySource(e.source);(0,Ie.h5)((()=>{this._source=t}));const n=function(e,t,n,r){const o=function(e){if(!(e instanceof Ji))throw new Error("Query must be a sequence of function calls (e.g. x()->y()->z())");const t=[];let n=e;for(;n instanceof Ji;){const e=Zd.find((e=>qa(n.function,e.func)));if(!e)throw new Error(`Found unsupported function ${n.function}()`);if(!(n.parameters.length>e.parameters)){t.unshift(n);break}{const e=n.parameters[0];if(!(e instanceof Ji||(r=n.function,Object.values(eg).includes(r))))throw new Error("Query must be a sequence of function calls (e.g. x()->y()->z())");if(n.function===eg.FILTER){if(n.parameters=n.parameters.slice(1),t.unshift(n),!(e instanceof Ji))break;n=e}else n.parameters=n.parameters.slice(1),t.unshift(n),n=e}}var r;const o=t.map(((e,t)=>`<${Ka(e.function)}>____${t}`)).join("").match(ng);if(!o)throw new Error(`Unsupported function composition ${t.map((e=>`${Ka(e.function)}()`)).join("->")} (supported composition: ${tg.map((e=>"funcs"in e?`[${e.funcs.map((e=>`${Ka(e.func)}()`)).join("->")}]`:`${Ka(e.func)}()`)).join("->")})`);const i=e=>{const n=o.groups?.[e];if(!n||-1===n.indexOf("____"))return;const r=Number(n.split("____")[1]);return isNaN(r)||r>=t.length?void 0:A(t,r)};return{leafExtend:i(eg.LEAF_EXTEND),select:i(eg.SELECT),filter:i(eg.FILTER),pivotSort:i(eg.PIVOT_SORT),pivot:i(eg.PIVOT_CAST),pivotCast:i(eg.PIVOT_CAST),groupBy:i(eg.GROUP_BY),groupBySort:i(eg.GROUP_BY_SORT),groupExtend:i(eg.GROUP_EXTEND),sort:i(eg.SORT),limit:i(eg.LIMIT)}}(e),i=Qd.create({}),a=i.data,s=new Map,l=e=>Ml(P(s.get(e.name),`Can't find column '${e.name}'`));var c;if(a.sourceColumns=t.columns,a.sourceColumns.forEach((e=>s.set(e.name,e))),o.filter&&(a.filter=Yl((c=o.filter,j(Gl(c,0,zi),zi,`Can't process ${Ka(c.function)}: Expected parameter at index 0 to be a lambda expression`)).body[0],r)),o.select&&(a.selectColumns=Vl(o.select,0).colSpecs.map((e=>l(e)))),o.groupBy&&(a.groupBy={columns:Vl(o.groupBy,0).colSpecs.map((e=>l(e)))}),o.sort&&(a.sortColumns=Gl(o.sort,0,Qi).values.map((e=>{const t=function(e,t){return D(e,Ji,"Can't process function: Found unexpected value specification type"),U(qa(e.function,Array.isArray(t)?t:[t]),`Can't process function: Expected function name to be one of [${Array.isArray(t)?t.join(", "):t}]`),e}(e,[Xo.ASCENDING,Xo.DESCENDING]);return{...l(Hl(t,0)),direction:Ka(t.function)===Xo.ASCENDING?ai.ASCENDING:ai.DESCENDING}}))),o.limit){const e=o.limit.parameters[0];D(e,ta),a.limit=e.value}const u=function(e,t,n){const r=e.data,o=n.configuration?.clone()??function(e){const t=new ji;return t.columns=e.map((e=>ud(e))),t}([...r.sourceColumns,...r.leafExtendedColumns,...r.groupExtendedColumns]);return o.columns.forEach((e=>{e.isSelected=Boolean(r.groupExtendedColumns.find((t=>t.name===e.name))??r.selectColumns.find((t=>t.name===e.name)))})),o}(i,0,n);return a.configuration=u.serialize(),i.finalize()}(await this.engine.parseValueSpecification(e.query),t,e,this.engine.filterOperations);this.snapshotService.broadcastSnapshot(n),this.dataCube.options?.onViewInitialized?.({api:this.dataCube.api,source:t}),this.initializeState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}finally{this.taskService.endTask(t)}}dispose(){this.taskService.dispose()}}var Mg;!function(e){e.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING="data-cube.settings.failure.found-unregistered-setting",e.SETTINGS__FAILURE__ASSIGN_INCOMPATIBLE_VALUE="data-cube.settings.failure.assign-incompatible-value",e.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE="data-cube.settings.failure.retrieve-incompatible-value"}(Mg||(Mg={}));const Ug=(0,vt.PA)((e=>{const{configuration:t}=e,n=Lc(),r=n.settingService;switch(t.type){case Vg.BOOLEAN:{const e=z(r.currentValues.get(t.key));return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Mc,{label:t.description,checked:e,onChange:()=>{(0,Ie.h5)((()=>{r.currentValues.set(t.key,!e)}))}})})]})}case Vg.NUMERIC:{const e=$(r.currentValues.get(t.key)),n=t.defaultValue;return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)(Dc,{className:"w-20 text-sm",min:t.numericValueMin,step:t.numericValueStep,max:t.numericValueMax,defaultValue:n,value:e,setValue:e=>{(0,Ie.h5)((()=>{r.currentValues.set(t.key,e??n)}))}})]})}case Vg.STRING:{const e=Y(r.currentValues.get(t.key));return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)(jc,{className:"w-80 text-sm",value:e,onChange:e=>{(0,Ie.h5)((()=>{r.currentValues.set(t.key,e.target.value)}))}})]})}case Vg.ACTION:return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Pc,{compact:!0,onClick:()=>t.action?.(n.api,void 0),children:"Run Action"})})]});default:return null}})),Gg=(0,vt.PA)((()=>{const e=Lc(),t=e.settingService,n=Array.from(t.configurations.values()).toSorted(((e,t)=>e.title.localeCompare(t.title)));return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full p-2 pb-0",children:(0,E.jsxs)("div",{className:"h-full w-full select-none overflow-auto border border-neutral-300 bg-white p-2",children:[(0,E.jsx)("div",{className:"mt-1 flex h-5",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-xl font-medium",children:(0,E.jsx)(go.Table,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-5 items-center text-xl font-medium",children:"Grid"})]})}),n.filter((e=>e.group===Hg.GRID)).map((e=>(0,E.jsx)(Ug,{configuration:e},e.key))),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)("div",{className:"mt-1 flex h-5",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-xl font-medium",children:(0,E.jsx)(go.Debug,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-5 items-center text-xl font-medium",children:"Debug"})]})}),n.filter((e=>e.group===Hg.DEBUG)).map((e=>(0,E.jsx)(Ug,{configuration:e},e.key)))]})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Pc,{onClick:()=>t.restoreDefaultValues(),disabled:!t.allowRestoreDefaultValues,children:"Restore Default Settings"}),(0,E.jsx)(Pc,{className:"ml-2",onClick:()=>{t.display.close()},children:"Cancel"}),(0,E.jsx)(Pc,{className:"ml-2",onClick:()=>t.save(e.api),children:"Apply"}),(0,E.jsx)(Pc,{className:"ml-2",onClick:()=>{t.save(e.api),t.display.close()},children:"OK"})]})]})}));var Hg,Vg,Wg,Yg,$g,zg;!function(e){e.DEBUG="Debug",e.GRID="Grid"}(Hg||(Hg={})),function(e){e.BOOLEAN="boolean",e.NUMERIC="numeric",e.STRING="string",e.ACTION="action"}(Vg||(Vg={}));class Xg{_engine;_logService;_layoutService;_options;display;configurations=new Map;defaultValues=new Map;_defaultValuesHashCode;values=new Map;currentValues=new Map;constructor(e,t,n,r){(0,Ie.Gn)(this,{values:Ie.sH,save:Ie.XI,valuesHashCode:Ie.EW,currentValues:Ie.sH,restoreDefaultValues:Ie.XI,currentValuesHashCode:Ie.EW,allowRestoreDefaultValues:Ie.EW}),this._engine=e,this._logService=t,this._layoutService=n,this._options=r,this.display=this._layoutService.newDisplay("Settings",(()=>(0,E.jsx)(Gg,{})),{x:-50,y:50,width:600,height:400,minWidth:300,minHeight:200,center:!1});const o=[{key:Qc.DEBUGGER__ENABLE_DEBUG_MODE,title:"Debug Mode: Enabled",description:"Enables debug logging when running data queries, updating snapshots, etc.",group:Hg.DEBUG,type:Vg.BOOLEAN,defaultValue:!1},{key:Qc.DEBUGGER__ACTION__RELOAD,title:"Reload",description:"Manually reload DataCube (keeping all states). This is needed when making changes to settings that require reloading to take effect.",group:Hg.DEBUG,type:Vg.ACTION,action:e=>e.reload(),defaultValue:void 0},{key:Qc.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING,title:"Large Dataset Warning: Disabled",description:"Suggests user to enable pagination when handling large datasets to improve performance.",group:Hg.GRID,type:Vg.BOOLEAN,defaultValue:!1},{key:Qc.GRID_CLIENT__ROW_BUFFER,title:"Row Buffer",description:"Sets the number of rows the grid renders outside of the viewable area. e.g. if the buffer is 10 and your grid is showing 50 rows (as that's all that fits on your screen without scrolling), then the grid will actually render 70 in total (10 extra above and 10 extra below). Then when you scroll, the grid will already have 10 rows ready and waiting to show, no redraw is needed. A low small buffer will make initial draws of the grid faster; whereas a big one will reduce the redraw visible vertically scrolling.",group:Hg.GRID,type:Vg.NUMERIC,defaultValue:50,numericValueMin:10,numericValueStep:10,action:(e,t)=>e._runTaskForEachView((e=>{e.grid.client.updateGridOptions({rowBuffer:t})}))},{key:Qc.GRID_CLIENT__PURGE_CLOSED_ROW_NODES,title:"Refresh Group Node Data: Enabled",description:"Forces refresh data when group node is opened.",group:Hg.GRID,type:Vg.BOOLEAN,defaultValue:!1,action:(e,t)=>e._runTaskForEachView((e=>{e.grid.client.updateGridOptions({purgeClosedRowNodes:t})}))},{key:Qc.GRID_CLIENT__ACTION__RETRY_FAILED_DATA_FETCHES,title:"Retry Failed Data Fetches: Action",description:"Manually re-runs all failed data fetches in the grid.",group:Hg.GRID,type:Vg.ACTION,action:e=>e.retryFailedDataFetches(),defaultValue:void 0}],{configurations:i,values:a}=r?.settingsData??{};[...o,...i??[]].forEach((e=>{this.configurations.set(e.key,e),this.setValue(e.key,e.defaultValue,[this.defaultValues,this.values,this.currentValues])}));const s=a??{};Object.keys(s).forEach((e=>{const t=s[e];this.configurations.get(e)&&this.setValue(e,t,[this.values,this.currentValues])})),this._defaultValuesHashCode=this.computeValuesHashCode(this.defaultValues)}setValue(e,t,n){const r=this.configurations.get(e);if(!r)return this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for unregistered setting '${e}'`),!1;switch(r.type){case Vg.BOOLEAN:if(!(V(t)||void 0===t&&r.valueOptional))return this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': boolean value expected`),!1;break;case Vg.NUMERIC:if(!(H(t)||void 0===t&&r.valueOptional))return this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': numeric value expected`),!1;break;case Vg.STRING:if(!(G(t)||void 0===t&&r.valueOptional))return this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': string value expected`),!1;break;case Vg.ACTION:return!1;default:throw new k(`Can't set value for unsupported setting type '${r.type}'`)}return n.forEach((n=>{(0,Ie.h5)((()=>n.set(e,t)))})),!0}getConfiguration(e){const t=this.configurations.get(e);if(!t)throw this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't retrieve value for unregistered setting '${e}'`),new I(`Can't retrieve value for unregistered setting '${e}'`);return t}getBooleanValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==Vg.BOOLEAN||!V(t))throw this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve boolean value for setting '${e}'`),new I(`Can't retrieve boolean value for setting '${e}'`);return t}getNumericValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==Vg.NUMERIC||!H(t))throw this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve numeric value for setting '${e}'`),new I(`Can't retrieve numeric value for setting '${e}'`);return t}getStringValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==Vg.STRING||!G(t))throw this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve string value for setting '${e}'`),new I(`Can't retrieve string value for setting '${e}'`);return t}computeValuesHashCode(e){return Fo(Array.from(e.entries()).toSorted(((e,t)=>e[0].localeCompare(t[0]))).map((([e,t])=>`${e}:${t}`)))}get valuesHashCode(){return this.computeValuesHashCode(this.values)}get currentValuesHashCode(){return this.computeValuesHashCode(this.currentValues)}get allowRestoreDefaultValues(){return this._defaultValuesHashCode!==this.currentValuesHashCode}restoreDefaultValues(){this.currentValues.clear(),this.defaultValues.forEach(((e,t)=>this.currentValues.set(t,e)))}getCurrentSettingValues(){const e={};return this.values.forEach(((t,n)=>{const r=this.configurations.get(n);r&&t!==r.defaultValue&&(e[n]=t)})),e}updateValue(e,t,n){const r=this.configurations.get(t);r?this.setValue(t,n,[this.values,this.currentValues])&&(this._options?.onSettingsChanged?.({api:e,values:this.getCurrentSettingValues()}),r.action?.(e,n)):this._logService.logWarning(c.create(Mg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for unregistered setting '${t}'`)}save(e){const t=new Set;this.values.forEach(((e,n)=>{e!==this.currentValues.get(n)&&t.add(n)})),this.values.clear(),this.currentValues.forEach(((e,t)=>this.values.set(t,e))),this._options?.onSettingsChanged?.({api:e,values:this.getCurrentSettingValues()});let n=!1;for(const r of t){const t=this.configurations.get(r);t?.requiresReload&&(n=!0),t?.action&&t.action(e,this.values.get(r))}n&&e.reload()}}class Kg{_dataCube;constructor(e){this._dataCube=e}_runTaskForEachView(e){e(this._dataCube.view)}generateDataCubeQuery(){return this._dataCube.view.generateDataCubeQuery()}retryFailedDataFetches(){this._runTaskForEachView((e=>{e.grid.client.retryServerSideLoads()}))}reload(){this._dataCube.reload()}}!function(e){e.PROFILE="Profile",e.CLASS="Class",e.ENUMERATION="Enum",e.MEASURE="Measure",e.ASSOCIATION="Association",e.FUNCTION="function",e.MAPPING="Mapping",e.FLAT_DATA="FlatData",e.DATABASE="Database",e.SERVICE="Service",e.RUNTIME="Runtime",e.CONNECTION="Connection",e.FILE_GENERATION="FileGeneration",e.GENERATION_SPECIFICATION="GenerationSpecification",e.DATA_ELEMENT="Data",e.EXECUTION_ENVIRONMENT="ExecutionEnvironment"}(Wg||(Wg={})),function(e){e.JSON_MODEL_CONNECTION="JsonModelConnection",e.XML_MODEL_CONNECTION="XmlModelConnection",e.MODEL_CHAIN_CONNECTION="ModelChainConnection",e.RELATIONAL_DATABASE_CONNECTION="RelationalDatabaseConnection",e.FLAT_DATA_CONNECTION="FlatDataConnection"}(Yg||(Yg={})),(zg=$g||($g={})).PURE="Pure",zg.CONNECTION="Connection",zg.RUNTIME="Runtime",zg.MAPPING="Mapping",zg.SERVICE="Service",zg.FLATDATA="FlatData",zg.RELATIONAL="Relational",zg.GENERATION_SPECIFICATION="GenerationSpecification",zg.FILE_GENERATION_SPECIFICATION="FileGeneration",zg.DATA="Data";const qg={wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^$&*()\-=+[{\]}\\|;:'",.<>/?\s][^`~!@#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]*)/,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"},{open:"<<",close:">>"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}};const Jg=(0,vt.PA)((()=>{const e=Lc().documentationService.currentEntry;if(!e)return null;const t=e.markdownText??e.text;return(0,E.jsxs)("div",{className:"h-full w-full overflow-auto bg-white p-4",children:[(0,E.jsx)("div",{className:"mb-3 text-2xl font-bold",children:e.title}),t&&(G(t)?(0,E.jsx)("div",{children:t}):(0,E.jsx)(Ln,{value:t}))]})}));class Qg{_engine;_layoutService;display;currentEntry;constructor(e,t){(0,Ie.Gn)(this,{currentEntry:Ie.sH,setCurrentEntry:Ie.XI}),this._engine=e,this._layoutService=t,this.display=this._layoutService.newDisplay("Documentation",(()=>(0,E.jsx)(Jg,{})),{x:-50,y:-50,width:400,height:400,minWidth:300,minHeight:200,center:!1})}getEntry(e){return this._engine.getDocumentationEntry(e)}setCurrentEntry(e){this.currentEntry=e}shouldDisplayDocumentationEntry(e){return Boolean(e.title&&(e.text??e.markdownText))}}class Zg{_engine;constructor(e){this._engine=e}sendTelemetry(e,t){this._engine.sendTelemetry(e,t)}}class ep{_engine;constructor(e){this._engine=e}openLink(e){this._engine.openLink(e)}}class tp{_engine;constructor(e){this._engine=e}logDebug(e,...t){this._engine.logDebug(e,...t)}debugProcess(e,...t){this._engine.debugProcess(e,...t)}logInfo(e,...t){this._engine.logInfo(e,...t)}logWarning(e,...t){this._engine.logWarning(e,...t)}logError(e,...t){this._engine.logError(e,...t)}logUnhandledError(e){this._engine.logUnhandledError(e)}logIllegalStateError(e,t){this._engine.logIllegalStateError(e,t)}}class np{engine;logService;taskService;layoutService;settingService;documentationService;alertService;navigationService;telemetryService;query;options;initializeState=ke.create();api;uuid=(0,i.A)();view;constructor(e,t,n){(0,Ie.Gn)(this,{uuid:Ie.sH,reload:Ie.XI}),this.engine=t,this.logService=new tp(this.engine),this.taskService=new Dg(n?.taskManager),this.layoutService=new vo(n?.layoutManager),this.settingService=new Xg(this.engine,this.logService,this.layoutService,n),this.documentationService=new Qg(this.engine,this.layoutService),this.alertService=new Jc(this.logService,this.layoutService),this.navigationService=new ep(this.engine),this.telemetryService=new Zg(this.engine),this.api=new Kg(this),this.query=e,this.options=n,this.view=new jg(this)}async initialize(){if(this.initializeState.isInInitialState){this.initializeState.inProgress();try{this.options?.gridClientLicense&&xo.hFV.setLicenseKey(this.options.gridClientLicense),await(async(e,t)=>{No.editor.defineTheme(cc.DEFAULT_DARK,dc),No.editor.defineTheme(cc.SOLARIZED_DARK,gc),No.editor.defineTheme(cc.GITHUB_DARK,pc),No.editor.defineTheme(cc.GITHUB_DARK_DIMMED,hc),No.editor.defineTheme(cc.GITHUB_LIGHT,mc),No.editor.defineTheme(cc.MATERIAL_DEFAULT,fc),No.editor.defineTheme(cc.MATERIAL_DARKER,Ec),No.editor.defineTheme(cc.ONE_DARK_PRO,bc),No.editor.defineTheme(cc.ONE_DARK_PRO_DARKER,Cc);const n=`Monospaced font '${e}' has not been loaded properly, code editor might not display properly`;await Promise.all([400,700].map((t=>document.fonts.load(`${t} 1em ${e}`)))).then((()=>{document.fonts.check(`1em ${e}`)?No.editor.remeasureFonts():t(new Error(n))})).catch((()=>t(new Error(n))))})(qo.ROBOTO_MONO,(e=>{throw e})),function(e){var t;No.languages.register({id:Tc.PURE}),No.languages.setLanguageConfiguration(Tc.PURE,qg),No.languages.setMonarchTokensProvider(Tc.PURE,(t=e?.extraKeywords??[],{defaultToken:"invalid",tokenPostfix:".pure",keywords:[...t,"Schema","Table","Join","View","primaryKey","groupBy","mainTable","let","extends","true","false","projects",Wg.CLASS,Wg.ASSOCIATION,Wg.ENUMERATION,Wg.MEASURE,Wg.PROFILE,Wg.FUNCTION,Wg.MAPPING,Wg.RUNTIME,Wg.CONNECTION,Wg.FILE_GENERATION,Wg.GENERATION_SPECIFICATION,Wg.DATA_ELEMENT,Yg.JSON_MODEL_CONNECTION,Yg.MODEL_CHAIN_CONNECTION,Yg.XML_MODEL_CONNECTION,"include","EnumerationMapping","Pure","AssociationMapping","XStore","AggregationAware",Wg.SERVICE,Wg.FLAT_DATA,Wg.DATABASE,Yg.FLAT_DATA_CONNECTION,Yg.RELATIONAL_DATABASE_CONNECTION,"Relational"],operators:["=",">","<","!","~","?",":","==","<=",">=","&&","||","++","--","+","-","*","/","&","|","^","%","->","#{","}#","@","<<",">>"],languageStructs:["import","native"],identifier:/[a-zA-Z_$][\w$]*/,symbols:/[=><!~?:&|+\-*/^%#@]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,multiplicity:/\[(?:[a-zA-Z0-9]+(?:\.\.(?:[a-zA-Z0-9]+|\*|))?|\*)\]/,package:/(?:[\w_]+::)+/,generics:/(?:(?:<\w+>)|(?:<[^:.@^()]+[^-]>))/,date:/%-?\d+(?:-\d+(?:-\d+(?:T(?:\d+(?::\d+(?::\d+(?:.\d+)?)?)?)(?:[+-][0-9]{4})?)))/,time:/%\d+(?::\d+(?::\d+(?:.\d+)?)?)?/,tokenizer:{root:[{include:"@pure"},{include:"@date"},{include:"@color"},[/^\s*###[\w]+/,Ql.PARSER],[/(@identifier)/,{cases:{"@languageStructs":Ql.LANGUAGE_STRUCT,"@keywords":`${Ql.KEYWORD}.$0`,"([a-zA-Z_$][\\w$]*)_((\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))__)*(\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))_":Ql.TYPE,"@default":Ql.IDENTIFIER}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":Ql.OPERATOR,"@default":Ql.IDENTIFIER}}],{include:"@number"},[/[;,.]/,Ql.DELIMITER],[/'([^'\\]|\\.)*$/,`${Ql.STRING}.invalid`],[/'/,Ql.STRING,"@string"],{include:"@characters"}],pure:[[/(@package\*)/,[Ql.PACKAGE]],[/(@package?)(@identifier)(@generics?)(\s*)(@multiplicity)/,[Ql.PACKAGE,Ql.TYPE,Ql.GENERICS,Ql.WHITESPACE,Ql.MULTIPLICITY]],[/(@package)(@identifier)(@generics?)/,[Ql.PACKAGE,Ql.TYPE,Ql.GENERICS]],[/([@^])(\s*)(@package?)(@identifier)(@generics?)(@multiplicity?)/,[`${Ql.TYPE}.operator`,Ql.WHITESPACE,Ql.PACKAGE,Ql.TYPE,Ql.GENERICS,Ql.MULTIPLICITY]],[/(\.\s*)(@identifier)/,[Ql.DELIMITER,Ql.PROPERTY]],[/(@identifier)(\s*=)/,[Ql.PROPERTY,Ql.OPERATOR]],[/(@identifier)(\.)(@identifier)/,[Ql.TYPE,Ql.OPERATOR,Ql.PROPERTY]],[/(@identifier)(\s*:)/,[Ql.PARAMETER,Ql.OPERATOR]],[/(let)(\s+)(@identifier)(\s*=)/,[Ql.KEYWORD,Ql.WHITESPACE,Ql.VARIABLE,Ql.OPERATOR]],[/(\$@identifier)/,[`${Ql.VARIABLE}.reference`]]],date:[[/(%latest)/,[`${Ql.DATE}.latest`]],[/(@date)/,[Ql.DATE]],[/(@time)/,[`${Ql.DATE}.time`]]],color:[[/(#[0-9a-fA-F]{6})/,[Ql.COLOR]]],number:[[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,`${Ql.NUMBER}.float`],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,`${Ql.NUMBER}.float`],[/0[xX](@hexdigits)[Ll]?/,`${Ql.NUMBER}.hex`],[/0(@octaldigits)[Ll]?/,`${Ql.NUMBER}.octal`],[/0[bB](@binarydigits)[Ll]?/,`${Ql.NUMBER}.binary`],[/(@digits)[fFdD]/,`${Ql.NUMBER}.float`],[/(@digits)[lL]?/,Ql.NUMBER]],whitespace:[[/[ \t\r\n]+/,Ql.WHITESPACE],[/\/\*\*(?!\/)/,`${Ql.COMMENT}.doc`,"@doc"],[/\/\*/,Ql.COMMENT,"@comment"],[/\/\/.*$/,Ql.COMMENT]],comment:[[/[^/*]+/,Ql.COMMENT],[/\*\//,Ql.COMMENT,"@pop"],[/[/*]/,Ql.COMMENT]],doc:[[/[^/*]+/,`${Ql.COMMENT}.doc`],[/\/\*/,`${Ql.COMMENT}.doc.invalid`],[/\*\//,`${Ql.COMMENT}.doc`,"@pop"],[/[/*]/,`${Ql.COMMENT}.doc`]],string:[[/[^\\']+/,Ql.STRING],[/@escapes/,`${Ql.STRING}.escape`],[/\\./,`${Ql.STRING}.escape.invalid`],[/'/,Ql.STRING,"@pop"]],characters:[[/'[^\\']'/,Ql.STRING],[/(')(@escapes)(')/,[Ql.STRING,`${Ql.STRING}.escape`,Ql.STRING]],[/'/,`${Ql.STRING}.invalid`]]}}))}({}),this.options?.onInitialized?.(this),this.initializeState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}}else this.logService.logDebug("DataCube state is re-initialized")}dispose(){this.view.dispose(),this.layoutService.dispose(),this.taskService.dispose()}reload(){this.view=new jg(this),this.uuid=(0,i.A)()}}const rp=(0,vt.PA)((()=>{const e=Lc(),t=e.view;return(0,Ft.useEffect)((()=>{e.view.initialize(e.query).catch((t=>e.logService.logUnhandledError(t)))}),[e]),(0,E.jsxs)("div",{className:"data-cube relative flex h-full w-full flex-col bg-white",children:[(0,E.jsx)(Wu,{title:t.info.name,menuItems:[{label:"See Documentation",action:()=>{const t=e.options?.documentationUrl;t&&e.navigationService.openLink(t)}},{label:"Settings...",action:()=>e.settingService.display.open()}],children:e.options?.innerHeaderRenderer?.({api:e.api})??null}),(0,E.jsx)(Xu,{view:t}),(0,E.jsx)(To,{layout:e.layoutService.manager}),(0,E.jsx)(yo,{})]})})),op=(0,vt.PA)((e=>{const{query:t,engine:n,options:r}=e,o=(0,vt.iz)((()=>new np(t,n,r)));return(0,Ft.useEffect)((()=>(o.initialize().catch((e=>o.logService.logUnhandledError(e))),()=>o.dispose())),[o]),o.initializeState.hasSucceeded?(0,E.jsx)(Oc,{value:o,children:(0,E.jsx)(rp,{},o.uuid)}):(0,E.jsx)(zu,{title:Ei,headerContent:o.options?.innerHeaderRenderer?.({api:o.api})??null,layoutManager:o.layoutService.manager,children:o.initializeState.hasFailed&&(0,E.jsx)(Yu,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})})}));class ip{columns=[];query}class ap extends ip{}class sp extends ip{runtime;mapping;timestamp;model;isLocal;isPersistenceSupported}const lp="repl";class cp{query;runtime;model;mapping;timestamp;isLocal;isPersistenceSupported;columns=[];static serialization=new me((0,pe.PL)(cp,{_type:fe(lp),columns:(0,pe.p_)((0,pe.lS)()),isLocal:(0,pe.MY)(),isPersistenceSupported:(0,pe.MY)(),mapping:(0,pe.lq)((0,pe.MY)()),model:(0,pe.lq)((0,pe.lS)()),query:(0,pe.MY)(),runtime:(0,pe.MY)(),timestamp:(0,pe.MY)()}))}class up{networkClient;constructor(e){this.networkClient=e}get baseUrl(){return P(this.networkClient.baseUrl,"REPL server client has not been configured properly")}get dataCube(){return`${this.baseUrl}/api/dataCube`}async getInfrastructureInfo(){return this.networkClient.get(`${this.dataCube}/infrastructureInfo`)}async getQueryTypeahead(e){return this.networkClient.post(`${this.dataCube}/typeahead`,e)}async parseValueSpecification(e){return this.networkClient.post(`${this.dataCube}/parseValueSpecification`,e)}async getValueSpecificationCode(e){return this.networkClient.post(`${this.dataCube}/getValueSpecificationCode`,e,{},{[ee.ACCEPT]:te.TEXT_PLAIN})}async getBaseQuery(){return this.networkClient.get(`${this.dataCube}/getBaseQuery`)}async getQueryRelationReturnType(e){return this.networkClient.post(`${this.dataCube}/getRelationReturnType`,e)}async getQueryCodeRelationReturnType(e){return this.networkClient.post(`${this.dataCube}/getRelationReturnType/code`,e)}async executeQuery(e){return this.networkClient.post(`${this.dataCube}/executeQuery`,e)}async publishQuery(e,t){return this.networkClient.post(`${t}`,e)}}class dp{query;runtime;model;static serialization=new me((0,pe.PL)(dp,{_type:fe("adhocQuery"),model:(0,pe.lS)(),query:(0,pe.MY)(),runtime:(0,pe.MY)()}))}class gp{id;name;description;content;owner;lastUpdatedAt;createdAt;lastOpenAt;static serialization=new me((0,pe.PL)(gp,{id:(0,pe.MY)(),lastUpdatedAt:(0,pe.lq)((0,pe.MY)()),createdAt:(0,pe.lq)((0,pe.MY)()),lastOpenAt:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),content:(0,pe.lS)(),owner:(0,pe.lq)((0,pe.MY)())}));clone(){return gp.serialization.fromJson(gp.serialization.toJson(this))}}class pp{id;name;description;owner;lastUpdatedAt;createdAt;lastOpenAt;static serialization=new me((0,pe.PL)(pp,{id:(0,pe.MY)(),lastUpdatedAt:(0,pe.lq)((0,pe.MY)()),createdAt:(0,pe.lq)((0,pe.MY)()),lastOpenAt:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),owner:(0,pe.lq)((0,pe.MY)())}))}const mp=e=>{const{query:t}=e,n=Km(),r=n.hostedApplicationBaseUrl?`${n.hostedApplicationBaseUrl}/${t.id}`:void 0;return(0,E.jsxs)("div",{className:"h-full w-full p-6",children:[(0,E.jsxs)("div",{className:"flex w-full overflow-auto",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(go.AlertSuccess,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-green-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:"Published query successfully!"}),r&&(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:"To view or share the published query, use the link below."}),!r&&(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:"See the published query ID below."})]})]}),r&&(0,E.jsxs)("div",{className:"mt-3 flex h-6 w-full",children:[(0,E.jsx)("div",{className:"flex h-full w-[calc(100%_-_20px)] items-center border border-r-0 border-neutral-400 bg-neutral-200 px-1.5",children:(0,E.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:r})}),(0,E.jsx)("button",{className:"flex aspect-square h-full w-6 items-center justify-center border border-neutral-400 bg-neutral-300 hover:brightness-95",onClick:()=>{n.application.clipboardService.copyTextToClipboard(r).catch(n.application.alertUnhandledError)},title:"Copy Link",children:(0,E.jsx)(go.Clipboard,{})})]}),!r&&(0,E.jsxs)("div",{className:"mt-3 flex h-6 w-full",children:[(0,E.jsx)("div",{className:"flex h-full w-[calc(100%_-_20px)] items-center border border-r-0 border-neutral-400 bg-neutral-200 px-1.5",children:(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:t.id})}),(0,E.jsx)("button",{className:"flex aspect-square h-full w-6 items-center justify-center border border-neutral-400 bg-neutral-300 hover:brightness-95",onClick:()=>{n.application.clipboardService.copyTextToClipboard(t.id).catch(n.application.alertUnhandledError)},title:"Copy ID",children:(0,E.jsx)(go.Clipboard,{})})]})]})};function hp(e){switch(e){case jo.STRING:return"";case jo.BOOLEAN:return!1;case jo.BYTE:return btoa("");case jo.NUMBER:case jo.DECIMAL:case jo.FLOAT:case jo.INTEGER:case jo.BINARY:return 0;case jo.DATE:case jo.STRICTDATE:return(0,Kn.GP)(new Date(Date.now()),$o);case jo.DATETIME:return(0,Kn.GP)(new Date(Date.now()),"yyyy-MM-dd'T'HH:mm:ssxxxx");default:throw new k(`Can't generate value for type '${e}'`)}}class fp{}class Ep extends gd{get label(){return"sum"}get textLabel(){return"sum"}get description(){return"sum"}get operator(){return ni.SUM}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.SUM)}}class bp extends gd{get label(){return"avg"}get textLabel(){return"average"}get description(){return"average"}get operator(){return ni.AVERAGE}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.AVERAGE)}}class Cp extends gd{get label(){return"count"}get textLabel(){return"count"}get description(){return"count"}get operator(){return ni.COUNT}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.COUNT)}}class vp extends gd{get label(){return"min"}get textLabel(){return"min"}get description(){return"min"}get operator(){return ni.MIN}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.MIN)}}class _p extends gd{get label(){return"max"}get textLabel(){return"max"}get description(){return"max"}get operator(){return ni.MAX}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.MAX)}}class Tp extends gd{get label(){return"uniq"}get textLabel(){return"unique value"}get description(){return"unique value"}get operator(){return ni.UNIQUE}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}buildAggregateColumn(e){return Ol(e,Xo.UNIQUE_VALUE_ONLY)}}class Np extends gd{get label(){return"first"}get textLabel(){return"first"}get description(){return"first"}get operator(){return ni.FIRST}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}buildAggregateColumn(e){return Ol(e,Xo.FIRST)}}class Ap extends gd{get label(){return"last"}get textLabel(){return"last"}get description(){return"last"}get operator(){return ni.LAST}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}buildAggregateColumn(e){return Ol(e,Xo.LAST)}}class yp extends gd{get label(){return"var"}get textLabel(){return"variance (population)"}get description(){return"variance (population)"}get operator(){return ni.VARIANCE_POPULATION}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.VARIANCE_POPULATION)}}class Sp extends gd{get label(){return"var (sample)"}get textLabel(){return"variance (sample)"}get description(){return"variance (sample)"}get operator(){return ni.VARIANCE_SAMPLE}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.VARIANCE_SAMPLE)}}class xp extends gd{get label(){return"std"}get textLabel(){return"standard deviation (population)"}get description(){return"standard deviation (population)"}get operator(){return ni.STANDARD_DEVIATION_POPULATION}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.STANDARD_DEVIATION_POPULATION)}}class Ip extends gd{get label(){return"std (sample)"}get textLabel(){return"standard deviation (sample)"}get description(){return"standard deviation (sample)"}get operator(){return ni.STANDARD_DEVIATION_SAMPLE}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER])}buildAggregateColumn(e){return Ol(e,Xo.STANDARD_DEVIATION_SAMPLE)}}class kp extends gd{get label(){return"strjoin"}get textLabel(){return"join strings"}get description(){return"join strings"}get operator(){return ni.JOIN_STRINGS}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}buildAggregateColumn(e){const t=fl();return Sl(e.name,bl([t],[El(e.name,t)]),bl([t],[_l(vl(Xo.JOIN_STRINGS),[t,Nl(jo.STRING,",")])]))}}class wp extends fp{get label(){return"="}get textLabel(){return"="}get description(){return"equals"}get operator(){return oi.EQUAL}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.EQUAL),[El(e.name),xl(P(e.value))])}}class Rp extends fp{get label(){return"<="}get textLabel(){return"<="}get description(){return"is less than or equals"}get operator(){return oi.LESS_THAN_OR_EQUAL}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.LESS_THAN_OR_EQUAL),[El(e.name),xl(P(e.value))])}}class Op extends fp{get label(){return"<"}get textLabel(){return"<"}get description(){return"is less than"}get operator(){return oi.LESS_THAN}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.LESS_THAN),[El(e.name),xl(P(e.value))])}}class Lp extends fp{get label(){return">="}get textLabel(){return">="}get description(){return"is greater than or equals"}get operator(){return oi.GREATER_THAN_OR_EQUAL}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.GREATER_THAN_OR_EQUAL),[El(e.name),xl(P(e.value))])}}class Fp extends fp{get label(){return">"}get textLabel(){return">"}get description(){return"is greater than"}get operator(){return oi.GREATER_THAN}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.GREATER_THAN),[El(e.name),xl(P(e.value))])}}class Bp extends fp{get label(){return"!="}get textLabel(){return"!="}get description(){return"does not equal"}get operator(){return oi.NOT_EQUAL}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return Il(_l(vl(Xo.EQUAL),[El(e.name),xl(P(e.value))]))}}class Pp extends fp{get label(){return"= value in column"}get textLabel(){return"= value in column"}get description(){return"equals to value in column"}get operator(){return oi.EQUAL_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.EQUAL),[El(e.name,t),xl(P(e.value),t)])}}class Dp extends fp{get label(){return"= (case-insensitive)"}get textLabel(){return"= (case-insensitive)"}get description(){return"equals (case-insensitive)"}get operator(){return oi.EQUAL_CASE_INSENSITIVE}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.EQUAL),[_l(vl(Xo.TO_LOWERCASE),[El(e.name,t)]),_l(vl(Xo.TO_LOWERCASE),[xl(P(e.value),t)])])}}class jp extends fp{get label(){return"!= (case-insensitive)"}get textLabel(){return"!= (case-insensitive)"}get description(){return"does not equal (case-insensitive)"}get operator(){return oi.NOT_EQUAL_CASE_INSENSITIVE}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){const t=fl();return Il(_l(vl(Xo.EQUAL),[_l(vl(Xo.TO_LOWERCASE),[El(e.name,t)]),_l(vl(Xo.TO_LOWERCASE),[xl(P(e.value),t)])]))}}class Mp extends fp{get label(){return"= (case-insensitive) value in column"}get textLabel(){return"= (case-insensitive) value in column"}get description(){return"equals to (case-insensitive) value in column"}get operator(){return oi.EQUAL_CASE_INSENSITIVE_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.EQUAL),[_l(vl(Xo.TO_LOWERCASE),[El(e.name,t)]),_l(vl(Xo.TO_LOWERCASE),[xl(P(e.value),t)])])}}class Up extends fp{get label(){return"!= (case-insensitive) value in column"}get textLabel(){return"!= (case-insensitive) value in column"}get description(){return"does not equal (case-insensitive) value in column"}get operator(){return oi.NOT_EQUAL_CASE_INSENSITIVE_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return Il(_l(vl(Xo.EQUAL),[_l(vl(Xo.TO_LOWERCASE),[El(e.name,t)]),_l(vl(Xo.TO_LOWERCASE),[xl(P(e.value),t)])]))}}class Gp extends fp{get label(){return"!= value in column"}get textLabel(){return"!= value in column"}get description(){return"does not equal value in column"}get operator(){return oi.NOT_EQUAL_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return Il(_l(vl(Xo.EQUAL),[El(e.name,t),xl(P(e.value),t)]))}}class Hp extends fp{get label(){return"< value in column"}get textLabel(){return"< value in column"}get description(){return"is less than value in column"}get operator(){return oi.LESS_THAN_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.LESS_THAN),[El(e.name,t),xl(P(e.value),t)])}}class Vp extends fp{get label(){return"<= value in column"}get textLabel(){return"<= value in column"}get description(){return"is less than or equals value in column"}get operator(){return oi.LESS_THAN_OR_EQUAL_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.LESS_THAN_OR_EQUAL),[El(e.name,t),xl(P(e.value),t)])}}class Wp extends fp{get label(){return"> value in column"}get textLabel(){return"> value in column"}get description(){return"is greater than value in column"}get operator(){return oi.GREATER_THAN_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.GREATER_THAN),[El(e.name,t),xl(P(e.value),t)])}}class Yp extends fp{get label(){return">= value in column"}get textLabel(){return">= value in column"}get description(){return"is greater than or equals value in column"}get operator(){return oi.GREATER_THAN_OR_EQUAL_COLUMN}isCompatibleWithColumn(e){return di(e.type,[li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return e.type===ti.COLUMN&&void 0!==e.value&&G(e.value)}generateDefaultValue(e){return{type:ti.COLUMN,value:e.name}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof La&&(n.value={value:t.property,type:ti.COLUMN}),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.GREATER_THAN_OR_EQUAL),[El(e.name,t),xl(P(e.value),t)])}}class $p extends fp{get label(){return"contains"}get textLabel(){return"contains"}get description(){return"contains"}get operator(){return oi.CONTAIN}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.CONTAINS),[El(e.name),xl(P(e.value))])}}class zp extends fp{get label(){return"contains (case-insensitive)"}get textLabel(){return"contains (case-insensitive)"}get description(){return"contains (case-insensitive)"}get operator(){return oi.CONTAIN_CASE_INSENSITIVE}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.CONTAINS),[_l(vl(Xo.TO_LOWERCASE),[El(e.name,t)]),_l(vl(Xo.TO_LOWERCASE),[xl(P(e.value),t)])])}}class Xp extends fp{get label(){return"does not contain"}get textLabel(){return"!contains"}get description(){return"does not contain"}get operator(){return oi.NOT_CONTAIN}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return Il(_l(vl(Xo.CONTAINS),[El(e.name),xl(P(e.value))]))}}class Kp extends fp{get label(){return"starts with"}get textLabel(){return"startsWith"}get description(){return"starts with"}get operator(){return oi.START_WITH}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.STARTS_WITH),[El(e.name),xl(P(e.value))])}}class qp extends fp{get label(){return"starts with (case-insensitive)"}get textLabel(){return"startsWith (case-insensitive)"}get description(){return"starts with (case-insensitive)"}get operator(){return oi.START_WITH_CASE_INSENSITIVE}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.STARTS_WITH),[_l(vl(Xo.TO_LOWERCASE),[El(e.name,t)]),_l(vl(Xo.TO_LOWERCASE),[xl(P(e.value),t)])])}}class Jp extends fp{get label(){return"doest not start with"}get textLabel(){return"!startsWith"}get description(){return"does not start with"}get operator(){return oi.NOT_START_WITH}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return Il(_l(vl(Xo.STARTS_WITH),[El(e.name),xl(P(e.value))]))}}class Qp extends fp{get label(){return"ends with"}get textLabel(){return"!endsWith"}get description(){return"ends with"}get operator(){return oi.END_WITH}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return _l(vl(Xo.ENDS_WITH),[El(e.name),xl(P(e.value))])}}class Zp extends fp{get label(){return"ends with (case-insensitive)"}get textLabel(){return"endsWith (case-insensitive)"}get description(){return"ends with (case-insensitive)"}get operator(){return oi.END_WITH_CASE_INSENSITIVE}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){const t=fl();return _l(vl(Xo.ENDS_WITH),[_l(vl(Xo.TO_LOWERCASE),[El(e.name,t)]),_l(vl(Xo.TO_LOWERCASE),[xl(P(e.value),t)])])}}class em extends fp{get label(){return"does not end with"}get textLabel(){return"!endsWith"}get description(){return"does not end with"}get operator(){return oi.NOT_END_WITH}isCompatibleWithColumn(e){return di(e.type,[li.TEXT])}isCompatibleWithValue(e){return di(e.type,[li.TEXT])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:hp(e.type)}}buildConditionSnapshot(e){const t=e.parameters[1],n=ql(e.parameters[0],this.operator);return t instanceof Zi&&(n.value=zl(t)),n}buildConditionExpression(e){return Il(_l(vl(Xo.ENDS_WITH),[El(e.name),xl(P(e.value))]))}}class tm extends fp{get label(){return"is null"}get textLabel(){return"= NULL"}get description(){return"is NULL"}get operator(){return oi.IS_NULL}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){}buildConditionSnapshot(e){const t=ql(e.parameters[0],this.operator);return t.value=void 0,t}buildConditionExpression(e){return _l(vl(Xo.IS_EMPTY),[El(e.name)])}}class nm extends fp{get label(){return"is not null"}get textLabel(){return"!= NULL"}get description(){return"is not NULL"}get operator(){return oi.IS_NOT_NULL}isCompatibleWithColumn(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])}isCompatibleWithValue(e){return di(e.type,[li.TEXT,li.NUMBER,li.DATE,li.TIME])&&void 0!==e.value&&!Array.isArray(e.value)}generateDefaultValue(e){}buildConditionSnapshot(e){const t=ql(e.parameters[0],this.operator);return t.value=void 0,t}buildConditionExpression(e){return Il(_l(vl(Xo.IS_EMPTY),[El(e.name)]))}}class rm{filterOperations=[new Op,new Rp,new wp,new Bp,new Lp,new Fp,new tm,new nm,new Dp,new jp,new $p,new zp,new Xp,new Kp,new qp,new Jp,new Qp,new Zp,new em,new Hp,new Vp,new Pp,new Gp,new Mp,new Up,new Wp,new Yp];aggregateOperations=[new Ep,new bp,new Cp,new vp,new _p,new Tp,new Np,new Ap,new yp,new Sp,new xp,new Ip,new kp];getFilterOperation(e){return t=e,n=this.filterOperations,P(n.find((e=>e.operator===t)),`Can't find filter operation '${t}'`);var t,n}getAggregateOperation(e){return dd(e,this.aggregateOperations)}async getPartialQueryCode(e,t){const n=new ap;return n.query=Nl(jo.STRING,""),(await this.getValueSpecificationCode(Dl(e,n,(()=>{}),this.filterOperations,this.aggregateOperations),t)).substring(4)}logDebug(e,...t){}debugProcess(e,...t){}logInfo(e,...t){}logWarning(e,...t){}logError(e,...t){}logUnhandledError(e){}logIllegalStateError(e,t){}getDocumentationEntry(e){}openLink(e){}sendTelemetry(e,t){}}class om{sourceId;startLine;startColumn;endLine;endColumn;constructor(e,t,n,r,o){this.sourceId=e,this.startLine=t,this.startColumn=n,this.endLine=r,this.endColumn=o}}var im,am,sm,lm;!function(e){e.COMPILATION="COMPILATION",e.PARSER="PARSER"}(im||(im={}));class cm{message="";errorType;sourceInformation;static serialization=new me((0,pe.PL)(cm,{errorType:(0,pe.lq)((0,pe.MY)()),message:(0,pe.MY)(),sourceInformation:he(xa.schema)}))}!function(e){e.CLASS_BUILDER="classBuilder",e.TDS_BUILDER="tdsBuilder",e.JSON_BUILDER="json"}(am||(am={})),function(e){e.RELATIONAL="relational",e.RELATIONAL_EXECUTION_ACTIVITY="RelationalExecutionActivity",e.AGGREGATION_AWARE_ACTIVITY="aggregationAware"}(sm||(sm={})),function(e){e.CSV="CSV"}(lm||(lm={}));class um{_type;constructor(e){this._type=e}}class dm{}class gm extends dm{sql;comment;constructor(e){super(),this.sql=e}}class pm extends dm{rewrittenQuery}class mm extends dm{values;constructor(e){super(),this.values=e}}class hm{builder;activities}class fm extends hm{values}class Em extends hm{value;constructor(e){super(),this.value=e}}class bm{name;type;relationalType;doc}class Cm extends um{columns=[];constructor(){super(am.TDS_BUILDER)}}class vm{values=[]}class _m{columns=[];rows=[]}class Tm extends hm{_UUID=(0,i.A)();builder=new Cm;result=new _m}class Nm extends um{_type=am.CLASS_BUILDER}class Am extends hm{builder=new Nm(am.CLASS_BUILDER);objects}class ym{static builderSerialization=new me((0,pe.PL)(ym,{_type:(0,pe.MY)()}))}class Sm{}class xm extends Sm{sql;comment;static serialization=new me((0,pe.PL)(xm,{sql:(0,pe.MY)(),comment:(0,pe.lq)((0,pe.MY)())}))}class Im extends Sm{rewrittenQuery;static serialization=new me((0,pe.PL)(Im,{rewrittenQuery:(0,pe.MY)()}))}class km{builder;activities}class wm extends Sm{content;constructor(e){super(),this.content=e}}class Rm extends km{values;static serialization=new me((0,pe.PL)(Rm,{_type:(0,pe.MY)(),builder:he(ym.builderSerialization.schema),values:(0,pe.lS)()}))}class Om{name;doc;type;relationalType;static serialization=new me((0,pe.PL)(Om,{name:(0,pe.MY)(),doc:(0,pe.lq)((0,pe.MY)()),type:(0,pe.lq)((0,pe.MY)()),relationalType:(0,pe.lq)((0,pe.MY)())}))}class Lm extends ym{columns=[];static serialization=new me((0,pe.PL)(Lm,{_type:(0,pe.MY)(),columns:(0,pe.p_)(he(Om.serialization.schema))}))}function Fm(e){switch(e._type){case sm.RELATIONAL:case sm.RELATIONAL_EXECUTION_ACTIVITY:return xm.serialization.fromJson(e);case sm.AGGREGATION_AWARE_ACTIVITY:return Im.serialization.fromJson(e);default:return new wm(e)}}class Bm extends km{result;static serialization=new me((0,pe.PL)(Bm,{builder:he(Lm.serialization.schema),activities:(0,pe.p_)((0,pe.Ie)((()=>pe._Z),Fm)),result:(0,pe.lS)()}))}class Pm extends km{objects;static serialization=new me((0,pe.PL)(Pm,{builder:he(ym.builderSerialization.schema),activities:(0,pe.p_)((0,pe.Ie)((()=>pe._Z),Fm)),objects:(0,pe.lS)()}))}class Dm extends km{value;constructor(e){super(),this.value=e}}class jm extends km{content}class Mm extends hm{content}const Um=e=>{if(e instanceof xm){const t=new gm(e.sql);return t.comment=e.comment,t}if(e instanceof Im){const t=new pm;return t.rewrittenQuery=P(e.rewrittenQuery,"Aggregation aware execution activities 'rewritenQuery' field is missing"),t}if(e instanceof wm)return new mm(e);throw new k("Can't build execution activities",e)},Gm=e=>{const t=new bm;return t.name=P(e.name,"TDS column 'name' field is missing"),t.type=e.type,t.doc=e.doc,t.relationalType=e.relationalType,t},Hm=e=>{if(e instanceof jm){const t=new Mm;return t.content=e.content,t}if(e instanceof Pm)return(e=>{const t=new Am;return t.objects=P(e.objects,"Class execution result 'objects' field is missing"),t.activities=e.activities?.map(Um),t})(e);if(e instanceof Bm)return(e=>{const t=new Tm;return t.builder=(e=>{const t=new Cm;return t.columns=e.columns.map(Gm),t})(P(e.builder,"TDS execution result 'builder' field is missing")),t.activities=e.activities?.map(Um),t.result.columns=e.result.columns,t.result.rows=e.result.rows.map((e=>{const t=new vm;return t.values=e.values,t})),t})(e);if(e instanceof Rm)return(e=>{const t=new fm;return t.values=P(e.values,"JSON execution result 'values' field is missing"),t})(e);if(e instanceof Dm)return new Em(e.value);throw new k("Can't build execution result",e)},Vm=e=>{if(null===e||G(e)||H(e)||V(e))return new Dm(e);switch(e.builder?._type){case am.CLASS_BUILDER:return Pm.serialization.fromJson(e);case am.TDS_BUILDER:return Bm.serialization.fromJson(e);case am.JSON_BUILDER:return Rm.serialization.fromJson(e);default:{const t=new jm;return t.content=e,t}}};class Wm extends rm{_application;_client;constructor(e,t){super(),this._application=e,this._client=t}async processQuerySource(e){if(e._type===lp){const t=cp.serialization.fromJson(e),n=new sp;n.query=await this.parseValueSpecification(t.query,!1);try{n.columns=(await this._getQueryRelationType(bl([],[n.query]))).columns}catch(e){throw w(e),new Error(`Can't get query result columns. Make sure the source query return a relation (i.e. typed TDS). Error: ${e.message}`)}return n.runtime=t.runtime,n.mapping=t.mapping,n.timestamp=t.timestamp,n.model=t.model,n.isLocal=t.isLocal,n.isPersistenceSupported=t.isPersistenceSupported,n}throw new k(`Can't process query source of type '${e._type}'.`)}async parseValueSpecification(e,t){return ml(await this._client.parseValueSpecification({code:e,returnSourceInformation:t}))}async getValueSpecificationCode(e,t){return this._client.getValueSpecificationCode({value:hl(e),pretty:t})}async getQueryTypeahead(e,t,n){return this._client.getQueryTypeahead({code:e,baseQuery:hl(t)})}async getQueryCodeRelationReturnType(e,t,n){try{return{columns:(0,pe.iu)(ss,await this._client.getQueryCodeRelationReturnType({code:e,baseQuery:hl(t)})).columns.map((e=>({name:e.name,type:Za(e.genericType)})))}}catch(e){if(w(e),e instanceof ie&&e.response.status===Q.BAD_REQUEST)throw(e=>{const t=new Ud(e.message);return t.sourceInformation=e.sourceInformation?(n=e.sourceInformation,new om(P(n.sourceId,"Source information 'sourceId' field is missing"),P(n.startLine,"Source information 'startLine' field is missing"),P(n.startColumn,"Source information 'startColumn' field is missing"),P(n.endLine,"Source information 'endLine' field is missing"),P(n.endColumn,"Source information 'endColumn' field is missing"))):void 0,t;var n})(cm.serialization.fromJson(e.payload));throw e}}async executeQuery(e,t,n){const r=await this._client.executeQuery({query:hl(e),debug:n?.debug});return{result:j(Hm(Vm(JSON.parse(r.result))),Tm),executedQuery:r.executedQuery,executedSQL:r.executedSQL}}buildExecutionContext(e){if(e instanceof sp)return _l(Xo.FROM,[e.mapping?Al(e.mapping):void 0,Al(e.runtime)].filter(F))}async _getQueryRelationType(e){return{columns:(0,pe.iu)(ss,await this._client.getQueryRelationReturnType({query:hl(e)})).columns.map((e=>({name:e.name,type:Za(e.genericType)})))}}logDebug(e,...t){this._application.logService.debug(c.create(ge.DEBUG),e,...t)}debugProcess(e,...t){this._application.logService.debug(c.create(ge.DEBUG),`\n------ START DEBUG PROCESS: ${e} ------`,...t.flatMap((([e,t])=>[`\n[${e.toUpperCase()}]:`,t])),`\n------- END DEBUG PROCESS: ${e} -------\n\n`)}logInfo(e,...t){this._application.logService.info(e,...t)}logWarning(e,...t){this._application.logService.warn(e,...t)}logError(e,...t){this._application.logService.error(e,...t)}logUnhandledError(e){this._application.logUnhandledError(e)}logIllegalStateError(e,t){this.logError(c.create(ge.ILLEGAL_APPLICATION_STATE_OCCURRED),e,t)}getDocumentationEntry(e){return this._application.documentationService.getDocEntry(e)}openLink(e){this._application.navigationService.navigator.visitAddress(e)}sendTelemetry(e,t){this._application.telemetryService.logEvent(e,t)}}class Ym{_client;application;engine;taskService;layoutService;alertService;initializeState=ke.create();publishState=ke.create();source;gridClientLicense;queryServerBaseUrl;hostedApplicationBaseUrl;query;constructor(e){(0,Ie.Gn)(this,{query:Ie.sH,setQuery:Ie.XI,source:Ie.sH,setSource:Ie.XI}),this.application=e,this._client=new up(new le({baseUrl:e.config.useDynamicREPLServer?window.location.origin+P(e.config.baseAddress).replace("/repl/",""):e.config.replUrl})),this.engine=new Wm(this.application,this._client),this.taskService=new Dg,this.layoutService=new vo,this.alertService=new Jc(new tp(this.engine),this.layoutService)}setQuery(e){this.query=e}setSource(e){this.source=e}async initialize(){this.initializeState.inProgress();try{const e=await this._client.getInfrastructureInfo();e.currentUser&&this.application.identityService.setCurrentUser(e.currentUser),this.application.telemetryService.setup(),this.queryServerBaseUrl=e.queryServerBaseUrl,this.hostedApplicationBaseUrl=e.hostedApplicationBaseUrl,this.gridClientLicense=e.gridClientLicense,this.setQuery(Fg.serialization.fromJson(await this._client.getBaseQuery())),this.initializeState.pass()}catch(e){w(e),this.application.logService.error(c.create(ge.APPLICATION_LOAD__FAILURE),"Can't initialize REPL",e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}}async publishDataCube(e){if(!this.queryServerBaseUrl||!(this.source instanceof sp)||!this.source.isPersistenceSupported||!this.source.model||this.source.isLocal)return;this.publishState.inProgress();const t=this.taskService.newTask("Publish query");try{const t=await e.generateDataCubeQuery(),n=new dp;n.query=cp.serialization.fromJson(t.source).query,n.runtime=this.source.runtime,n.model=this.source.model,t.source=dp.serialization.toJson(n);const r=new gp;r.id=(0,i.A)(),r.name=t.configuration?.name??Ei,r.content=Fg.serialization.toJson(t),r.owner=this.application.identityService.currentUser;const o=gp.serialization.fromJson(await this._client.publishQuery(gp.serialization.toJson(r),this.queryServerBaseUrl)),a=new mo(new po("Publish Query",(()=>(0,E.jsx)(mp,{query:o}))));a.configuration.window={width:420,height:150,minWidth:300,minHeight:100,center:!0},this.layoutService.newWindow(a)}catch(e){w(e),this.alertService.alertError(e,{message:"Persistence Failure: Can't publish query.",text:`Error: ${e.message}`})}finally{this.taskService.endTask(t),this.publishState.complete()}}}const $m=(0,vt.PA)((e=>{const{children:t,simple:n}=e,r=P((0,Ft.useContext)(ro),"Can't find application platform in context"),o=Pt();return(0,Ft.useEffect)((()=>{o.initialize(r).catch(o.alertUnhandledError)}),[o,r]),o.initState.hasSucceeded?n?(0,E.jsx)(ar,{children:t}):(0,E.jsx)(ir,{children:t}):(0,E.jsx)(E.Fragment,{})})),zm=(0,Ft.createContext)(void 0),Xm=({children:e})=>{const t=Pt(),n=(0,vt.iz)((()=>new Ym(t)));return(0,E.jsx)(zm.Provider,{value:n,children:e})},Km=()=>P((0,Ft.useContext)(zm),"Can't find Legend Query base store in context"),qm=({children:e})=>(0,E.jsx)($m,{simple:!0,children:(0,E.jsx)(Xm,{children:e})}),Jm=(0,vt.PA)((e=>{const{api:t}=e,n=Km();if(!n.source||!n.queryServerBaseUrl)return null;const r=n.source instanceof sp&&n.source.isPersistenceSupported&&!n.source.isLocal;return(0,E.jsx)("div",{className:"flex h-full items-center",children:(0,E.jsx)(Pc,{compact:!0,disabled:!r||n.publishState.isInProgress,onClick:()=>{n.publishDataCube(t).catch((e=>n.alertService.alertUnhandledError(e)))},children:"Publish"})})}));var Qm;!function(e){e.DATA_CUBE="data-cube"}(Qm||(Qm={}));const Zm=(0,vt.PA)((e=>{const{query:t}=e,n=Km(),r=n.application;return(0,Ft.useEffect)((()=>(r.navigationService.navigator.blockNavigation([()=>!0],void 0,(()=>{r.logService.warn(c.create(ge.NAVIGATION_BLOCKED),"Navigation from the application is blocked")})),()=>{r.navigationService.navigator.unblockNavigation()})),[r]),(0,E.jsx)(op,{query:t,engine:n.engine,options:{gridClientLicense:n.gridClientLicense,layoutManager:n.layoutService.manager,taskManager:n.taskService.manager,onNameChanged(e){const t=e.source instanceof sp?e.source.timestamp:void 0;r.layoutService.setWindowTitle(`⊞ ${name}${t?` - ${(0,Kn.GP)(new Date(t),"HH:mm:ss EEE MMM dd yyyy")}`:""}`)},onViewInitialized(e){n.setSource(e.source)},innerHeaderRenderer:e=>(0,E.jsx)(Jm,{api:e.api}),settingsData:{values:r.settingService.getObjectValue(Qm.DATA_CUBE)},onSettingsChanged(e){r.settingService.persistValue(Qm.DATA_CUBE,e)},documentationUrl:r.documentationService.url}})})),eh=Object.freeze({DATA_CUBE:"/dataCube"}),th=(0,vt.PA)((()=>{const e=Km();return(0,Ft.useEffect)((()=>{e.initialize().catch((t=>e.application.alertUnhandledError(t)))}),[e]),e.initializeState.hasSucceeded?(0,E.jsx)("div",{className:"h-full",children:e.query&&(0,E.jsx)(Qr.BV,{children:(0,E.jsx)(Qr.qh,{path:eh.DATA_CUBE,element:(0,E.jsx)(Zm,{query:e.query})})})}):(0,E.jsx)(zu,{title:Ei,layoutManager:e.layoutService.manager,children:e.initializeState.hasFailed&&(0,E.jsx)(Yu,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})})})),nh=e=>{const{baseUrl:t}=e;return(0,E.jsx)(io,{baseUrl:t,children:(0,E.jsx)(qm,{children:(0,E.jsx)(th,{})})})};class rh extends Vr{static create(){const e=new rh(new Yr);return e.withBasePlugins([new Xr]),e}async configureApplication(e){return new qr(e)}async loadApplication(e){(0,b.createRoot)((()=>{let e=document.getElementsByTagName(Wr).length?document.getElementsByTagName(Wr)[0]:void 0;return e||(e=document.createElement(Wr),document.body.appendChild(e)),e.setAttribute("style","height: 100%; width: 100%; display: block"),e})()).render((0,E.jsx)(Dt,{store:e,children:(0,E.jsx)(nh,{baseUrl:this.baseAddress})}))}}class oh{static getPresetCollection(){return[]}static getPluginCollection(){return[new f]}static run(e){rh.create().setup({baseAddress:e}).withPresets(oh.getPresetCollection()).withPlugins(oh.getPluginCollection()).start().catch((e=>{throw e}))}}const ih=new URL("./",window.location.href).pathname;oh.run(ih)},98933:(e,t,n)=>{var r={"./simpleWorker":99246,"./simpleWorker.js":99246};function o(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}o.keys=()=>Object.keys(r),o.id=98933,e.exports=o},59135:(e,t,n)=>{var r={"./editorBaseApi":[37970],"./editorBaseApi.js":[37970],"./editorSimpleWorker":[41122],"./editorSimpleWorker.js":[41122],"./editorWorker":[22143],"./editorWorker.js":[22143],"./editorWorkerHost":[70869],"./editorWorkerHost.js":[70869],"./findSectionHeaders":[97716],"./findSectionHeaders.js":[97716],"./getIconClasses":[45555],"./getIconClasses.js":[45555],"./languageFeatureDebounce":[26973],"./languageFeatureDebounce.js":[26973],"./languageFeatures":[33653],"./languageFeatures.js":[33653],"./languageFeaturesService":[78330],"./languageFeaturesService.js":[78330],"./languageService":[22155],"./languageService.js":[22155],"./languagesAssociations":[25709],"./languagesAssociations.js":[25709],"./languagesRegistry":[35074],"./languagesRegistry.js":[35074],"./markerDecorations":[86259],"./markerDecorations.js":[86259],"./markerDecorationsService":[72524],"./markerDecorationsService.js":[72524],"./model":[16911],"./model.js":[16911],"./modelService":[91320],"./modelService.js":[91320],"./resolverService":[55387],"./resolverService.js":[55387],"./semanticTokensDto":[7029,121],"./semanticTokensDto.js":[7029,121],"./semanticTokensProviderStyling":[4399],"./semanticTokensProviderStyling.js":[4399],"./semanticTokensStyling":[74566],"./semanticTokensStyling.js":[74566],"./semanticTokensStylingService":[28843],"./semanticTokensStylingService.js":[28843],"./textModelSync/textModelSync.impl":[43481],"./textModelSync/textModelSync.impl.js":[43481],"./textModelSync/textModelSync.protocol":[37619,121],"./textModelSync/textModelSync.protocol.js":[37619,121],"./textResourceConfiguration":[93533],"./textResourceConfiguration.js":[93533],"./treeSitterParserService":[47105],"./treeSitterParserService.js":[47105],"./treeViewsDnd":[29740,121],"./treeViewsDnd.js":[29740,121],"./treeViewsDndService":[95621,121],"./treeViewsDndService.js":[95621,121],"./unicodeTextModelHighlighter":[14818],"./unicodeTextModelHighlighter.js":[14818]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=59135,e.exports=o},27713:()=>{}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.amdO={},e=[],s.O=(t,n,r,o)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,r,o]=e[u],a=!0,l=0;l<n.length;l++)(!1&o||i>=o)&&Object.keys(s.O).every((e=>s.O[e](n[l])))?n.splice(l--,1):(a=!1,o<i&&(i=o));if(a){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"static/"+e+".a0ce728d.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="@finos/legend-application-repl-deployment:",s.l=(e,t,n,i)=>{if(r[e])r[e].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+n){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",o+n),a.src=e),r[e]=[t];var g=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(g.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=g.bind(null,a.onerror),a.onload=g.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="./",(()=>{var e={57:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}},s.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,a,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(l)var u=l(s)}for(t&&t(n);c<i.length;c++)o=i[c],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(u)},n=globalThis.webpackChunk_finos_legend_application_repl_deployment=globalThis.webpackChunk_finos_legend_application_repl_deployment||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l=s.O(void 0,[121],(()=>s(51947)));l=s.O(l)})();
|
45
|
-
//# sourceMappingURL=index.
|
45
|
+
//# sourceMappingURL=index.d4c82f6a.js.map
|