@finos/legend-application-pure-ide-deployment 9.66.0 → 9.67.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/ide/index.html +1 -1
- package/dist/ide/static/{index.eea2327c.css → index.31f986a2.css} +4 -4
- package/dist/ide/static/{index.eea2327c.css.map → index.31f986a2.css.map} +1 -1
- package/dist/ide/static/index.b23a8708.js +2 -0
- package/dist/ide/static/index.b23a8708.js.map +1 -0
- package/dist/ide/version.json +1 -1
- package/package.json +3 -3
- package/dist/ide/static/index.48c60f66.js +0 -2
- package/dist/ide/static/index.48c60f66.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
(()=>{"use strict";var e,t,n,s,i,a={31862:(e,t,n)=>{const s=JSON.parse('{"i8":"10.0.18","Rw":{"k":"@finos/legend-logger-plugin-web-console"}}');var i,a=n(91004);class r{name;version;signature;uuid}class o{name;version;uuid=(0,a.Z)();constructor(e,t){this.name=e,this.version=t}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getInfo(){const e=new r;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class c{name;version;signature;uuid;plugins=[]}class l{name;version;uuid=(0,a.Z)();plugins=[];constructor(e,t,n){this.name=e,this.version=t,this.plugins=n}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getPlugins(){return[...this.plugins]}getInfo(){const e=new c;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e.plugins=this.plugins.map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name))),e}configure(e){return this}install(e){this.plugins.forEach((t=>t.install(e)))}}class d{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"}(i||(i={}));class u{channel;name;timestamp=Date.now();static create(e){const t=new u;return t.name=e,t}}class p extends o{level=i.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=i.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=i.INFO&&this._info(e,...t)}warn(e,...t){this.level<=i.WARN&&this._warn(e,...t)}error(e,...t){this.level<=i.ERROR&&this._error(e,...t)}}class h{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:m,warn:f,error:_}=console;class E extends p{constructor(){super(s.Rw.k,s.i8)}_debug(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){f(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){_(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var C=n(52322),y=n(17029),b=n(85928),T=n(21112);const v=e=>e.constructor,S=()=>()=>{},N=e=>e.length?e[0]:void 0,x=e=>e.length?e[e.length-1]:void 0,A=e=>new Promise(((t,n)=>setTimeout((()=>{try{t(e())}catch(e){n(e)}}),0))),I=(e,t,n=((e,t)=>e===t))=>!e.find((e=>n(e,t)))&&(e.push(t),!0),O=(e,t,n,s=((e,t)=>e===t))=>{const i=e.findIndex((e=>s(e,t))),a=e.findIndex((e=>s(e,n)));return-1!==i&&-1!==a&&(e[i]=n,e[a]=t,!0)},w=(e,t,n=((e,t)=>e===t))=>{const s=e.findIndex((e=>n(e,t)));return-1!==s&&(e.splice(s,1),!0)};class R extends Error{uuid=(0,a.Z)();constructor(e){super(),this.message=void 0===e||""===e?"(no error message)":e}get detail(){return this.message}}class k 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 L extends k{constructor(e){super("Illegal State Error [PLEASE NOTIFY DEVELOPER]",e)}}class F extends k{constructor(e,t){super("Unsupported Operation Error",e||t?`${e}${t?`\n${((e,t)=>{const n=(s={printFunctionName:!1,maxDepth:t?.deep?void 0:1},(0,b.Z)(s,(e=>void 0!==e)));var s;return(0,T.WU)(e,n).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function P(e){if(!(e instanceof Error))throw new L("Expected error to be thrown")}const D=e=>{try{return e()}catch{return}};class M extends k{constructor(e,t){super("Assertion Error",e,t)}}const B=e=>null!=e;function j(e,t=""){if(null==e)throw new M(t||"Value is nullable")}const U=(e,t="")=>(j(e,t),e),G=e=>t=>((e,t)=>e instanceof t)(t,e);function V(e,t,n=""){if(!(e instanceof t))throw new M(n||`Value is expected to be of type '${t.name}'`)}const $=(e,t,n="")=>(V(e,t,n),e);function H(e,t=""){if(""===U(e,t))throw new M(t||"Expected string value to be non-empty")}function z(e,t=""){return H(e,t),e}function W(e,t=""){if(!e)throw new M(t||"Expected predicate to be truthy")}const K=e=>"string"==typeof e,Y=e=>"number"==typeof e&&!isNaN(e),J=e=>"boolean"==typeof e,X=e=>"object"==typeof e&&null!==e;var q=n(39391),Z=n(33654),Q=n(18247),ee=n(72659);const te=q.W,ne="charset=utf-8";var se,ie,ae;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(se||(se={})),function(e){e.APPLICATION_JSON="application/json",e.APPLICATION_XML="application/xml",e.APPLICATION_ZLIB="application/zlib",e.TEXT_PLAIN="text/plain",e.TEXT_CSV="text/csv",e.ALL="*/*"}(ie||(ie={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(ae||(ae={}));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 ce 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:s,url:i}=e,a=`Received response with status ${n} (${s}) for ${i}`;this.message=(t?(e=>{if(X(e))return K(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&K(t.message)?t.message:e})(t).substring(0,5e3):"")||a,this.payload=t}}const le=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 ce(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===te.NO_CONTENT)return Promise.resolve(void 0);const s=t.headers.Accept;switch(s){case ie.APPLICATION_JSON:return e.json();case ie.TEXT_PLAIN:return e.text();default:return Promise.reject(new ce(e,`Can't process response for request with Content-Type '${s}'`))}},de=(e,t)=>{const n={};return n.Accept=ie.APPLICATION_JSON,e!==ae.GET&&(n[se.CONTENT_TYPE]=`${ie.APPLICATION_JSON};${ne}`),oe(n,t)};class ue{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...re,...e?.options??{}}}async get(e,t={},n,s,i,a){return this.request(ae.GET,e,void 0,t,n,s,i,a)}async put(e,t={},n={},s,i,a,r){return this.request(ae.PUT,e,t,n,s,i,a,r)}async post(e,t={},n={},s,i,a,r){return this.request(ae.POST,e,t,n,s,i,a,r)}async delete(e,t={},n={},s,i,a,r){return this.request(ae.DELETE,e,t,n,s,i,a,r)}async request(e,t,n,s,i,a,r,o){const c=((e,t,n)=>{if(!e&&!D((()=>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 s=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(B).forEach((t=>s.searchParams.append(e,t.toString()))):s.searchParams.append(e,t.toString()))})),s.toString()})(this.baseUrl,t,a??{});let l;if((K(n)||X(n))&&r?.enableCompression&&(W(e!==ae.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,Z.Wt)(X(e)?JSON.stringify(e):e)]))(n),i=oe(i,{[se.CONTENT_TYPE]:`${ie.APPLICATION_ZLIB};${ne}`})),void 0!==n)if(K(n)||n instanceof Blob)l=n;else{if(!X(n))throw new M("Request body can only be either a 'string' or an 'object'");l=JSON.stringify(n)}const d={...this.options,...s,method:e,body:l,headers:de(e,i)};return fetch(c,d).then((e=>0===e.status||e.status===te.UNAUTHORIZED?o?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",s=document.getElementById(n);s?.remove();const i=document.createElement("iframe");i.id=n,i.src=e,i.style.display="none",i.addEventListener("load",(()=>{i.remove(),t()})),document.body.appendChild(i)})))(o.autoReAuthenticateUrl).then((()=>fetch(c,d))).then((e=>le(e,d,o))):fetch(c,d).then((e=>le(e,d,o))):le(e,d,o))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(c,d).then((e=>le(e,d,o))):Promise.reject(e)))}}const pe=(e,t,n)=>{const s=new Blob([t],{type:n}),i=URL.createObjectURL(s),a=document.createElement("a");"string"==typeof a.download?(document.body.appendChild(a),a.download=e,a.href=i,a.click(),document.body.removeChild(a)):location.replace(i)};var he;!function(e){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.DEVELOPMENT_ISSUE="development.issue",e.APPLICATION_CONTEXT__ACCESS="application.context.access",e.APPLICATION_USAGE__INTERRUPT="application.usage.interrupt"}(he||(he={}));var ge=n(79013);class me{schema;deserializeNullAsUndefined;constructor(e,t){this.schema=e,this.deserializeNullAsUndefined=Boolean(t?.deserializeNullAsUndefined)}toJson(e){return(0,ge.qC)(this.schema,e)}fromJson(e){return(0,ge.vB)(this.schema,this.deserializeNullAsUndefined?(t=e,(0,b.Z)(t,(e=>null!==e))):e);var t}}const fe=e=>(0,ge.PG)((t=>void 0===t?ge.AM:(0,ge.qC)(e,t)),(t=>(0,ge.vB)(e,t))),_e=e=>(0,ge.PG)((()=>e),(()=>e)),Ee=e=>(0,ge.PG)((t=>t?(0,ge.qC)(e,t):ge.AM),(t=>t?(0,ge.vB)(e,t):ge.AM)),Ce=(e,t,n)=>Array.isArray(e)?e.map(t):n?.skipIfEmpty?ge.AM:[],ye=(e,t,n)=>Array.isArray(e)?e.length?e.map((e=>t(e))):n?.skipIfEmpty?ge.AM:[]:ge.AM,be=(e,t)=>(0,ge.PG)((n=>ye(n,(t=>(0,ge.qC)(e,t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:t?.INTERNAL__forceReturnEmptyInTest})),(t=>Ce(t,(t=>(0,ge.vB)(e,t)),{skipIfEmpty:!1}))),Te=(e,t,n)=>(0,ge.PG)((t=>ye(t,(t=>e(t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:n?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>t(e)),{skipIfEmpty:!1})));var ve=n(4e4);class Se{key;markdownText;title;text;url;related;static serialization=new me((0,ge.yu)(Se,{markdownText:(0,ge.PG)((e=>e),(e=>e.value?e:void 0)),related:(0,ge.jt)((0,ge.pb)((0,ge.Ru)())),title:(0,ge.jt)((0,ge.Ru)()),text:(0,ge.jt)((0,ge.Ru)()),url:(0,ge.jt)((0,ge.Ru)())}));static create(e,t){const n=Se.serialization.fromJson(e);return n.key=t,n}}const Ne=e=>Object.entries(e).map((e=>({key:e[0],content:Se.create(e[1],e[0])})));class xe{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(u.create(he.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,ve.Z)(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(u.create(he.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(u.create(he.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]=Se.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Ae,Ie,Oe=n(80075);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Ae||(Ae={}));class we{state;_message;_messageFormatter;constructor(){this.state=Ae.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Ae.INITIAL,this}inProgress(){return this.state=Ae.IN_PROGRESS,this}fail(){return this.state=Ae.FAILED,this}pass(){return this.state=Ae.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===Ae.INITIAL}get isInProgress(){return this.state===Ae.IN_PROGRESS}get hasFailed(){return this.state===Ae.FAILED}get hasSucceeded(){return this.state===Ae.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,Oe.rC)(new we,{state:Oe.LO,_message:Oe.LO,reset:Oe.aD,inProgress:Oe.aD,pass:Oe.aD,fail:Oe.aD,complete:Oe.aD,setMessage:Oe.aD,sync:Oe.aD,isInInitialState:Oe.Fl,isInProgress:Oe.Fl,hasFailed:Oe.Fl,hasSucceeded:Oe.Fl,hasCompleted:Oe.Fl,message:Oe.Fl})}}!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"}(Ie||(Ie={}));class Re{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 ke{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,s){const i=new Re;return e&&i.setup(this.plugins.map((i=>{const a=i.createClientSpan(e);return{clientSpan:a,serverSpan:i.createServerSpan(a,t,n,s),plugin:i}}))),i}}const Le=n(81931).Fuse.default;var Fe,Pe;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Fe||(Fe={}));class De{currentMode=Fe.STANDARD;onSearchModeChange;constructor(e){(0,Oe.rC)(this,{currentMode:Oe.LO,isAdvancedSearchActive:Oe.Fl,setCurrentMode:Oe.aD}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Fe.STANDARD}generateSearchText(e){switch(this.currentMode){case Fe.INCLUDE:return`'"${e}"`;case Fe.EXACT:return`="${e}"`;case Fe.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Pe||(Pe={}));class Me{uuid=(0,a.Z)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,Oe.rC)(this,{isOpen:Oe.LO,setIsOpen:Oe.aD}),this.documentationKey=e.key,this.title=z(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class Be{uuid=(0,a.Z)();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 Ue{applicationStore;panelRenderingKey=(0,a.Z)();isHidden=!0;isOpen=!1;selectedTab=Pe.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=we.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,Oe.rC)(this,{isHidden:Oe.LO,isOpen:Oe.LO,panelRenderingKey:Oe.LO,isOverSearchLimit:Oe.LO,selectedTab:Oe.LO,searchText:Oe.LO,searchResults:Oe.LO,currentDocumentationEntry:Oe.LO,showSearchConfigurationMenu:Oe.LO,currentContextualDocumentationEntry:Oe.Fl,setIsHidden:Oe.aD,setIsOpen:Oe.aD,setSelectedTab:Oe.aD,setSearchText:Oe.aD,resetSearch:Oe.aD,search:Oe.aD,openDocumentationEntry:Oe.aD,refreshPanelRendering:Oe.aD,setShowSearchConfigurationMenu:Oe.aD}),this.applicationStore=e,this.searchEngine=new Le(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 De((()=>{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 Be(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(B).filter(je).map((e=>new Me(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Me(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))}setIsHidden(e){this.isHidden=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,a.Z)()}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 Me(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 Ge{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class Ve{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(he.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(he.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(he.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(he.APPLICATION_USAGE__INTERRUPT,{})}}class $e{applicationStore;contextStack=[];constructor(e){(0,Oe.rC)(this,{contextStack:Oe.LO,currentContext:Oe.Fl,push:Oe.aD,pop:Oe.aD}),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 L(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&Ve.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 He{applicationStore;commandRegistry=new Map;constructor(e){(0,Oe.rC)(this,{commandRegistry:Oe.LO,registerCommand:Oe.aD,deregisterCommand:Oe.aD}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(u.create(he.COMMAND_CENTER_REGISTRATION__FAILURE),"Can't register command: command 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 ze{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,Oe.rC)(this,{keyMap:Oe.LO,commandKeyMap:Oe.LO,isHotkeysBlocked:Oe.LO,addHotkey:Oe.aD,blockGlobalHotkeys:Oe.aD,unblockGlobalHotkeys:Oe.aD}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(B);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 We=n(77289),Ke=n(73678),Ye=n(78440),Je=n(51919),Xe=n(85399),qe=n(89358);const Ze="Roboto Mono",Qe="yyyy-MM-dd'T'HH:mm:ss";var et;!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"}(et||(et={}));const tt=(e,t)=>`[${e};${t}H`;class nt{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,Oe.rC)(this,{searchText:Oe.LO,useRegex:Oe.LO,matchWholeWord:Oe.LO,matchCaseSensitive:Oe.LO,resultCount:Oe.LO,currentResultIndex:Oe.LO})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class st{applicationStore;searchConfig=new nt;constructor(e){(0,Oe.rC)(this,{setSearchText:Oe.aD,setSearchRegex:Oe.aD,setSearchWholeWord:Oe.aD,setSearchCaseSensitive:Oe.aD,setSearchResultCount:Oe.aD,setSearchCurrentResultIndex:Oe.aD}),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 it extends st{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,Oe.rC)(this,{preserveLog:Oe.LO,setPreserveLog:Oe.aD})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var at=n(1367),rt=n(67295),ot=n(72531);n(90286);const ct=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,lt=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],dt=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>lt.includes(e.toLowerCase())?e.toLowerCase():ct(e))).replace(/^(?:\w+)\b/u,(e=>ct(e))).replace(/\b(?:\w+)$/u,(e=>ct(e))),ut=e=>{try{return((e,t=2)=>{try{return((e,t,n)=>{const s=(0,rt.P)(e,void 0,n);return j(s,"Can't stringify lossless JSON value"),s})((0,ot.Qc)(e),0,t)}catch{return e}})(e,0)}catch{return e.replace(/\n\s*/g,"")}};var pt;function ht(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=U(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"}(pt||(pt={}));const gt=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![pt.SHIFT,pt.META,pt.ALT,pt.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),mt=(e,t)=>gt(e,U(ht(t)[0]));var ft=n(4707),_t=n(3493),Et=n(76919);const Ct=(0,ft.Z)({transitions:{create:()=>"none"}}),yt=e=>{const{children:t}=e;return(0,C.jsx)(_t.Z,{injectFirst:!0,children:(0,C.jsx)(Et.Z,{theme:Ct,children:t})})};var bt=n(83820),Tt=n(96242),vt=n(34309),St=n(12238),Nt=n(78683),xt=n(81934),At=n(6277);const It=(e,t)=>{const n=e=>{const{children:n,className:s}=e;return(0,C.jsx)("div",{className:(0,At.clsx)(t,s),children:n})};return n.displayName=e,n},Ot=e=>{const{children:t,darkMode:n,className:s}=e;return(0,C.jsx)("div",{className:(0,At.clsx)("modal",{"modal--dark":n},s),children:t})},wt=e=>{const{title:t,icon:n,className:s}=e;return(0,C.jsxs)("div",{className:(0,At.clsx)("modal__title",s),children:[n&&(0,C.jsx)("div",{className:"modal__title__icon",children:n}),(0,C.jsx)("div",{className:"modal__title__label",children:dt(t)})]})},Rt=e=>{const{title:t,children:n,className:s}=e;return!n&&t?(0,C.jsx)("div",{className:(0,At.clsx)("modal__header",s),children:(0,C.jsx)(wt,{title:t})}):(0,C.jsx)("div",{className:(0,At.clsx)("modal__header",s),children:n})},kt=(It("ModalHeaderActions","modal__header__actions"),It("ModalBody","modal__body")),Lt=It("ModalFooter","modal__footer");var Ft,Pt;It("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION"}(Ft||(Ft={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Pt||(Pt={}));class Dt{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,Oe.rC)(this,{blockingAlertInfo:Oe.LO,actionAlertInfo:Oe.LO,setBlockingAlert:Oe.aD,setActionAlertInfo:Oe.aD}),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 Mt=n(2784);const Bt=(0,Mt.createContext)(void 0),jt=()=>U((0,Mt.useContext)(Bt),"Can't find application store in context"),Ut=({children:e,store:t})=>{const n=(0,vt.fv)((()=>t));return(0,C.jsx)(Bt.Provider,{value:n,children:e})},Gt=e=>{switch(e){case Pt.PROCEED_WITH_CAUTION:return"btn--caution";case Pt.PROCEED:case Pt.STANDARD:default:return"btn--dark"}},Vt=(0,vt.Pi)((e=>{const{info:t}=e,n=jt(),{title:s,message:i,prompt:a,type:r,onClose:o,onEnter:c,actions:l}=t,d=()=>{o?.(),n.alertService.setActionAlertInfo(void 0)};return(0,C.jsx)(xt.Z,{open:Boolean(n.alertService.actionAlertInfo),onClose:S,TransitionProps:{onEnter:()=>c?.()},children:(0,C.jsxs)("form",{onSubmit:e=>{e.preventDefault(),l.find((e=>e.default))?.handler?.(),d()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(r??Ft.STANDARD).toLowerCase()}`,children:[s&&(0,C.jsx)(Rt,{title:s}),(0,C.jsxs)(kt,{children:[(0,C.jsx)("div",{className:"blocking-alert__summary-text",children:i}),(0,C.jsx)("div",{className:"blocking-alert__prompt-text",children:a})]}),(0,C.jsxs)(Lt,{children:[l.map(((e,t)=>(0,C.jsx)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${Gt(e.type??Pt.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),d()},autoFocus:Boolean(e.default),children:e.label},t))),!l.length&&(0,C.jsx)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:d,children:"Cancel"})]})]})})})),$t=(0,vt.Pi)((()=>{const e=jt().alertService.actionAlertInfo;return e?(0,C.jsx)(Vt,{info:e}):null})),Ht=e=>{const{isLoading:t,className:n}=e,s=(0,Mt.useRef)(null);return(0,Mt.useEffect)((()=>{s.current&&(t?s.current.parentElement?.classList.add("panel-loading-indicator__container"):s.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,C.jsx)("div",{ref:s,className:(0,At.clsx)(n,"panel-loading-indicator"+(t?"":"--disabled"))})},zt=(0,vt.Pi)((()=>{const e=jt().alertService.blockingAlertInfo;return e?(0,C.jsx)(xt.Z,{open:Boolean(e),onClose:S,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,C.jsxs)(Ot,{darkMode:!0,className:"blocking-alert",children:[(0,C.jsx)(Ht,{isLoading:Boolean(e.showLoading)}),(0,C.jsxs)(kt,{children:[(0,C.jsx)("div",{className:"blocking-alert__message",children:e.message}),e.prompt&&(0,C.jsx)("div",{className:"blocking-alert__message__prompt",children:e.prompt})]})]})}):null}));var Wt=n(44524);const Kt=Wt.FA,Yt=Kt.FaHistory,Jt=Kt.FaCrosshairs,Xt=(Kt.FaLayerGroup,Kt.FaGhost,Kt.FaLock),qt=(Kt.FaMask,Kt.FaFile,Kt.FaLongArrowAltRight,Kt.FaTimes),Zt=Kt.FaTimesCircle,Qt=Kt.FaPlus,en=Kt.FaCog,tn=(Kt.FaEye,Kt.FaEyeSlash,Kt.FaCaretUp,Kt.FaCaretDown),nn=(Kt.FaFire,Kt.FaSave,Kt.FaSquare),sn=(Kt.FaRegSquare,Kt.FaCheckSquare),an=(Kt.FaMinusSquare,Kt.FaHashtag,Kt.FaHammer),rn=(Kt.FaClock,Kt.FaRegClock,Kt.FaToggleOn,Kt.FaQuestion,Kt.FaQuestionCircle),on=Kt.FaInfoCircle,cn=Kt.FaCompress,ln=Kt.FaMap,dn=Kt.FaPlay,un=(Kt.FaGripVertical,Kt.FaRobot,Kt.FaArrowLeft,Kt.FaArrowRight,Kt.FaArrowAltCircleDown,Kt.FaArrowAltCircleRight),pn=(Kt.FaArrowCircleRight,Kt.FaUser,Kt.FaShapes),hn=(Kt.FaEnvelope,Kt.FaSkull,Kt.FaDollarSign,Kt.FaSearch),gn=(Kt.FaStar,Kt.FaKey,Kt.FaExternalLinkAlt,Kt.FaExternalLinkSquareAlt,Kt.FaLightbulb,Kt.FaRegLightbulb,Kt.FaList),mn=Kt.FaCircle,fn=(Kt.FaMinusCircle,Kt.FaTrash),_n=(Kt.FaRegCircle,Kt.FaShieldAlt,Kt.FaTag,Kt.FaTags,Kt.FaBolt,Kt.FaCheckCircle),En=Kt.FaExclamationTriangle,Cn=Kt.FaBug,yn=Kt.FaCircleNotch,bn=(Kt.FaRegKeyboard,Kt.FaUserSecret,Kt.FaBuffer,Kt.FaSitemap,Kt.FaExpand),Tn=(Kt.FaExpandArrowsAlt,Kt.FaSortAlphaDown,Kt.FaSort,Kt.FaSortAlphaDownAlt,Kt.FaFolderPlus,Kt.FaCaretRight,Kt.FaCaretLeft,Kt.FaWrench),vn=Kt.FaArrowDown,Sn=Kt.FaArrowUp,Nn=Kt.FaTerminal,xn=(Kt.FaTruckLoading,Kt.FaFolderOpen),An=Kt.FaFolder,In=(Kt.FaFileCode,Kt.FaCodeBranch,Kt.FaArrowAltCircleUp,Kt.FaArrowAltCircleLeft,Kt.FaRegStopCircle,Kt.FaAsterisk,Kt.FaFilter,Kt.FaExclamationCircle),On=(Kt.FaRocket,Kt.FaCheck,Kt.FaBan),wn=(Kt.FaFileImport,Kt.FaUserFriends,Kt.FaDownload,Kt.FaUpload,Kt.FaRegWindowRestore,Kt.FaPauseCircle,Kt.FaShare,Kt.FaRegCopy),Rn=Kt.FaFileAlt,kn=(Kt.FaEdit,Kt.FaArrowsAltH,Kt.FaRegWindowMaximize,Kt.FaWindowMaximize,Kt.FaLongArrowAltDown,Kt.FaLongArrowAltUp,Kt.FaMeteor,Kt.FaPiedPiperSquare,Kt.FaPuzzlePiece,Kt.FaToggleOn,Kt.FaToggleOff,Kt.FaMapMarkerAlt),Ln=Kt.FaHatWizard,Fn=Kt.FaRegLaughWink,Pn=Kt.FaRegSadTear,Dn=(Kt.FaBusinessTime,Kt.FaDatabase),Mn=(Kt.FaServer,Kt.FaArchive,Kt.FaBrain,Kt.FaBookOpen,Kt.FaLevelDownAlt,Kt.FaRegCalendarAlt,Wt.GI),Bn=(Mn.GiWaterDrop,Mn.GiBeard),jn=Mn.GiSunglasses,Un=(Mn.GiHouseKeys,Wt.MD),Gn=(Un.MdManageSearch,Un.MdModeEdit,Un.MdTextFields,Un.MdMoreVert,Un.MdMoreHoriz,Un.MdWrapText,Un.MdSaveAs,Un.MdSave,Un.MdVerticalAlignBottom,Un.MdRefresh),Vn=(Un.MdFunctions,Un.MdCompareArrows,Un.MdPlaylistAddCheck,Un.MdAdd,Un.MdEdit,Un.MdSubject),$n=Un.MdViewHeadline,Hn=Un.MdAssistant,zn=(Un.MdSettingsEthernet,Un.MdLink,Un.MdWindow,Un.MdReviews,Un.MdCalculate,Un.MdRocketLaunch,Un.MdOutlineDataset,Un.MdVerified,Un.MdQueryStats,Un.MdFilterCenterFocus,Un.MdOutlineDescription,Un.MdQuestionAnswer,Wt.VSC),Wn=(zn.VscError,zn.VscWarning,zn.VscWordWrap),Kn=zn.VscGoToFile,Yn=zn.VscClose,Jn=(zn.VscRunAll,zn.VscRunErrors,zn.VscOpenPreview,zn.VscDiff,zn.VscRegex),Xn=(zn.VscVersions,zn.VscCaseSensitive),qn=zn.VscWholeWord,Zn=zn.VscReferences,Qn=zn.VscWand,es=zn.VscCollapseAll,ts=zn.VscExpandAll,ns=(zn.VscJson,zn.VscTable,Wt.GO),ss=ns.GoChevronDown,is=ns.GoChevronUp,as=(ns.GoChevronLeft,ns.GoChevronRight),rs=(ns.GoFileBinary,ns.GoGitPullRequest,ns.GoGitMerge,ns.GoSync,ns.GoGitBranch,ns.GoX),os=(ns.GoPlug,Wt.SI.SiSwagger,Wt.IO5),cs=(os.IoResize,os.IoFileTrayFullOutline,os.IoMenuOutline,os.IoBeaker,os.IoFlaskSharp),ls=(os.IoSyncCircleSharp,os.IoStatsChart,os.IoHelpBuoy,os.IoCloudDownloadOutline,os.IoCloudUploadOutline,Wt.BS),ds=(ls.BsDisplayFill,ls.BsFillTriangleFill,ls.BsFillFileEarmarkSpreadsheetFill,ls.BsBoxSeam,ls.BsGripVertical),us=ls.BsAlignTop,ps=ls.BsAlignMiddle,hs=ls.BsAlignBottom,gs=ls.BsAlignStart,ms=ls.BsAlignCenter,fs=ls.BsAlignEnd,_s=ls.BsDistributeHorizontal,Es=ls.BsDistributeVertical,Cs=(ls.BsDatabaseFillLock,ls.BsDatabaseFillCheck,ls.BsChevronUp,ls.BsChevronDown,ls.BsChevronRight,ls.BsChevronLeft,ls.BsQuestionSquare),ys=(ls.BsTextLeft,Wt.BI),bs=(ys.BiShapeTriangle,ys.BiAtom),Ts=(Wt.CG.CgOptions,Wt.FI),vs=Ts.FiPackage,Ss=(Ts.FiMinus,Ts.FiMousePointer),Ns=Ts.FiMove,xs=(Ts.FiPlusCircle,Ts.FiSidebar,Ts.FiTriangle,Ts.FiZoomIn),As=Ts.FiZoomOut,Is=(Ts.FiGitMerge,Ts.FiLink,Wt.RI),Os=(Is.RiShapeLine,Is.RiTestTubeFill,Is.RiRobotFill,Is.RiGovernmentFill,Is.RiMoneyDollarCircleFill,Wt.TB),ws=(Os.TbArrowsJoin2,Os.TbArrowsSplit2,Os.TbMathFunction),Rs=(Os.TbBook,Os.TbCircleOff,Os.TbCalendarTime,Os.TbClockEdit,Os.TbSql,Os.TbBrandSnowflake,Wt.HI);Rs.HiCode,Rs.HiHome;var ks=n(73882),Ls=n(53083);const Fs=6e3;var Ps;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(Ps||(Ps={}));class Ds{severity;message;actions;autoHideDuration;constructor(e,t,n,s){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=s}}class Ms{notification;constructor(){(0,Oe.rC)(this,{notification:Oe.LO,setNotification:Oe.aD,notify:Oe.aD,notifySuccess:Oe.aD,notifyWarning:Oe.aD,notifyIllegalState:Oe.aD,notifyError:Oe.aD})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new Ds(Ps.INFO,e,t??[],null===n?void 0:n??Fs))}notifySuccess(e,t,n){this.setNotification(new Ds(Ps.SUCCESS,e,t??[],null===n?void 0:n??Fs))}notifyWarning(e,t,n){this.setNotification(new Ds(Ps.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??Fs))}notifyError(e,t){let n;e instanceof R?n=e.detail:e instanceof Error?n=e.message:(W(K(e),"Can't display error"),n=e),n&&this.setNotification(new Ds(Ps.ERROR,n,t??[],void 0))}notifyIllegalState(e,t,n){this.setNotification(new Ds(Ps.ILEGAL_STATE,K(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??Fs))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return P(e),this.notifyIllegalState(e.message),t}}}const Bs=(0,vt.Pi)((()=>{const e=jt(),t=e.notificationService.notification,n=Boolean(t),s=t?.message??"",i=t?.severity??Ps.INFO,[a,r]=(0,Mt.useState)(!1);let o=(0,C.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,C.jsx)(on,{})});switch(i){case Ps.ILEGAL_STATE:o=(0,C.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,C.jsx)(Cn,{})});break;case Ps.ERROR:o=(0,C.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,C.jsx)(Zt,{})});break;case Ps.WARNING:o=(0,C.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,C.jsx)(En,{})});break;case Ps.SUCCESS:o=(0,C.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,C.jsx)(_n,{})})}const c=()=>{e.notificationService.setNotification(void 0),r(!1)},l=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(s)));return(0,C.jsx)(ks.Z,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:Fs,onClose:(e,t)=>{"timeout"===t&&c()},children:(0,C.jsx)(Ls.Z,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,C.jsxs)("div",{className:"notification__message__content",children:[o,(0,C.jsx)("div",{className:(0,At.clsx)("notification__message__content__text",{"notification__message__content__text--expanded":a}),onClick:l,title:"Click to Copy",children:s})]}),action:[(0,C.jsx)("button",{className:"notification__action",onClick:()=>r(!a),tabIndex:-1,title:a?"Collapse":"Expand",children:a?(0,C.jsx)(ss,{}):(0,C.jsx)(is,{})},"expand"),(0,C.jsx)("button",{className:"notification__action",onClick:c,tabIndex:-1,title:"Dismiss",children:(0,C.jsx)(qt,{})},"close")]})},"string"==typeof s||"number"==typeof s?s:"")}));var js=n(17954);const Us=e=>{const{children:t,classes:n,...s}=e;return(0,C.jsx)(js.Z,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...s,children:e.children})},Gs=e=>{const{className:t,children:n,menuProps:s,content:i,disabled:a,onClose:r,onOpen:o}=e,c=(0,Mt.useRef)(null),[l,d]=(0,Mt.useState)(!1),[u,p]=(0,Mt.useState)(),[h,g]=(0,Mt.useState)(0),[m,f]=(0,Mt.useState)(0),_=()=>{p(void 0),d(!1),f(0),g(0)},E=e=>{e.stopPropagation(),e.preventDefault(),_(),r?.()},y=e=>{if(e.stopPropagation(),e.preventDefault(),!a&&(o?.(),c.current)){const t=c.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),s=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:i,clientY:a,target:o}=e,l=o;if(u!==l&&!(document.elementsFromPoint(i,a).some((e=>e===l))&&n<=i&&i<=n+t.width&&s<=a&&a<=s+t.height))return _(),void r?.();p(l),d(!0),f(a),g(i)}};return(0,C.jsxs)("div",{ref:c,className:t,onContextMenu:y,children:[n,(0,C.jsx)(Us,{open:l,anchorPosition:{left:h,top:m},onClose:E,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:y},disableRestoreFocus:!0,transitionDuration:0,onClick:E,...s,children:l&&i},`${h}, ${m}`)]})},Vs=(0,Mt.forwardRef)((function(e,t){const{className:n,children:s,...i}=e;return(0,C.jsx)("div",{ref:t,className:(0,At.clsx)("menu",n),...i,children:s})})),$s=e=>{const{className:t,onClick:n,title:s,disabled:i,children:a,...r}=e;return(0,C.jsx)("button",{className:(0,At.clsx)("menu__item",t),disabled:Boolean(i),title:s,onClick:n,...r,children:a})},Hs=It("MenuContentDivider","menu__divider");It("MenuContentItemIcon","menu__item__icon"),It("MenuContentItemLabel","menu__item__label");var zs=n(46224),Ws=n(28156);const Ks=e=>(0,C.jsx)(zs.D,{className:(0,At.clsx)("markdown-content",e.className),remarkPlugins:[Ws.Z],components:e.components??{},children:e.value.value});var Ys=n(62515);const Js=e=>{const{children:t}=e,{ref:n,width:s,height:i}=(0,Ys.NB)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[a,r]=(0,Mt.useState)(!1),{ref:o,width:c,height:l}=(0,Ys.NB)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Mt.useEffect)((()=>{r((c??0)>(s??0)+40&&(l??0)>(i??0)+40)}),[c,l,s,i]),(0,C.jsx)("div",{ref:o,className:"panel__content__blank",children:(0,C.jsx)("div",{ref:n,className:(0,At.clsx)("panel__content__blank__content",{"panel__content__blank__content--hide":!a}),children:t})})};var Xs=n(85688),qs=n(28019),Zs=n(8978);const Qs=e=>{const{children:t,options:n,size:s,className:i,...a}=e,r=((e,t)=>{const n=[];for(let s=0;s<e.length;s+=t)n.push(e.slice(s,s+t));return n})(n,s);return(0,C.jsxs)("div",{className:(0,At.clsx)("mui-radio-group",i),children:[r.map(((e,t)=>(0,C.jsx)("div",{children:(0,C.jsx)(Xs.Z,{className:"mui-radio-group__group",...a,children:e.map((e=>(0,C.jsx)(qs.Z,{className:"mui-radio-group__group__column",style:{width:100/s+"%"},value:e,control:(0,C.jsx)(Zs.Z,{className:"mui-radio-group__group__item__radio-btn"}),label:(0,C.jsx)("div",{className:"mui-radio-group__group__item__label",children:e})},e)))})},t))),t]})};var ei=n(10948);const ti=e=>{const{children:t,...n}=e;return(0,C.jsx)(ei.ZP,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children})};var ni,si=n(41327),ii=n(13474),ai=n(65068);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(ni||(ni={}));const ri=(0,vt.Pi)((e=>{const{entry:t}=e,n=jt(),s=()=>{t.isOpen||Ve.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},i=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,C.jsx)(Gs,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,C.jsx)(Vs,{children:(0,C.jsx)($s,{onClick:i,children:"Copy Documentation Key"})}),children:(0,C.jsxs)("div",{className:"virtual-assistant__doc-entry",children:[(0,C.jsxs)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,C.jsx)("button",{className:(0,At.clsx)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:s,children:t.isOpen?(0,C.jsx)(ss,{}):(0,C.jsx)(as,{})}),t.url?(0,C.jsx)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Ve.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title}):(0,C.jsx)("div",{className:"virtual-assistant__doc-entry__title",onClick:s,children:t.title})]}),t.isOpen&&t.content&&(0,C.jsx)("div",{className:"virtual-assistant__doc-entry__content",children:K(t.content)?(0,C.jsx)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content}):(0,C.jsx)(Ks,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content})})]})})})),oi=(0,vt.Pi)((()=>{const e=jt(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),s=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),i=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,C.jsxs)(Gs,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,C.jsxs)(Vs,{children:[(0,C.jsx)($s,{onClick:n,children:"Copy Context ID"}),(0,C.jsx)($s,{onClick:s,children:"Copy Current Context ID"}),(0,C.jsx)($s,{onClick:i,children:"Copy Context Stack"})]}),children:[t&&(0,C.jsxs)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,C.jsx)("div",{className:"virtual-assistant__contextual-support__title",children:t.title}),t.content&&(0,C.jsx)(C.Fragment,{children:K(t.content)?(0,C.jsx)("div",{className:"virtual-assistant__contextual-support__text",children:t.content}):(0,C.jsx)(Ks,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content})}),t.related.length&&(0,C.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,C.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]}),t.related.map((e=>(0,C.jsx)(ri,{entry:e},e.uuid)))]})]}),!t&&(0,C.jsx)(Js,{children:(0,C.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,C.jsx)(Fn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,C.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"}),(0,C.jsx)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"})]})})]})})),ci=(0,vt.Pi)((()=>{const e=jt(),t=(0,Mt.useRef)(null),n=e.assistantService,s=n.searchText,i=(0,Mt.useMemo)((()=>(0,ii.Z)((()=>n.search()),100)),[n]);return(0,Mt.useEffect)((()=>{t.current?.focus()}),[]),(0,C.jsxs)("div",{className:"virtual-assistant__search",children:[(0,C.jsxs)("div",{className:"virtual-assistant__search__header",children:[(0,C.jsx)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,At.clsx)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":s}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),i()},value:s,placeholder:"Ask me a question"}),s&&(0,C.jsx)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")}),(0,C.jsx)("button",{className:(0,At.clsx)("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,C.jsx)(en,{})}),s?(0,C.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,C.jsx)(qt,{})}):(0,C.jsx)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,C.jsx)(hn,{})})]}),(0,C.jsxs)("div",{className:"virtual-assistant__search__content",children:[(0,C.jsx)(Ht,{isLoading:n.searchState.isInProgress}),(0,C.jsx)("div",{className:(0,At.clsx)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,C.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,C.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(ni.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,C.jsx)("div",{onClick:()=>n.openDocumentationEntryLink(ni.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,C.jsx)(rn,{})})]}),(0,C.jsx)("div",{children:(0,C.jsx)(Qs,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Fe.STANDARD,Fe.INCLUDE,Fe.EXACT,Fe.INVERSE],size:1})})]})}),n.currentDocumentationEntry&&(0,C.jsx)("div",{className:"virtual-assistant__search__results",children:(0,C.jsx)(ri,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid)}),!n.currentDocumentationEntry&&(0,C.jsxs)(C.Fragment,{children:[Boolean(n.searchResults.length)&&(0,C.jsx)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,C.jsx)(ri,{entry:e},e.uuid)))}),s&&!n.searchResults.length&&(0,C.jsx)(Js,{children:(0,C.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,C.jsx)(Pn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,C.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."})]})}),!s&&!n.searchResults.length&&(0,C.jsx)(Gs,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,C.jsxs)(Vs,{children:[(0,C.jsx)($s,{onClick:()=>{pe(`documentation-registry_${(0,ai.Z)(new Date(Date.now()),Qe)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),ie.APPLICATION_JSON)},children:"Download documentation registry"}),(0,C.jsx)($s,{onClick:()=>{pe(`documentation-registry_${(0,ai.Z)(new Date(Date.now()),Qe)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),ie.APPLICATION_JSON)},children:"Download contextual documentation mapping"})]}),children:(0,C.jsxs)("div",{className:"virtual-assistant__character",children:[(0,C.jsxs)("div",{className:"virtual-assistant__character__figure",children:[(0,C.jsx)(Ln,{className:"virtual-assistant__character__hat"}),(0,C.jsx)(jn,{className:"virtual-assistant__character__glasses"}),(0,C.jsx)(Bn,{className:"virtual-assistant__character__beard"})]}),(0,C.jsx)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"}),(0,C.jsx)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"})]})})]})]})]})})),li=(0,vt.Pi)((e=>{const{triggerElement:t}=e,n=jt().assistantService,s=n.currentContextualDocumentationEntry,i=n.selectedTab;return(0,C.jsx)(ti,{open:n.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,C.jsxs)("div",{className:"virtual-assistant__panel",tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,C.jsxs)("div",{className:"virtual-assistant__panel__header",children:[(0,C.jsxs)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,C.jsx)("div",{className:(0,At.clsx)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Pe.SEARCH}),onClick:()=>n.setSelectedTab(Pe.SEARCH),title:"Search",children:(0,C.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,C.jsx)(hn,{})})}),(0,C.jsx)("div",{className:(0,At.clsx)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Pe.CONTEXTUAL_SUPPORT}),onClick:()=>n.setSelectedTab(Pe.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,C.jsxs)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,C.jsx)(kn,{}),s&&(0,C.jsx)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"})]})})]}),(0,C.jsx)("div",{className:"virtual-assistant__panel__header__actions",children:(0,C.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>n.setIsOpen(!1),title:"Close panel",children:(0,C.jsx)(Yn,{className:"virtual-assistant__panel__icon__close"})})})]}),(0,C.jsxs)("div",{className:"virtual-assistant__panel__content",children:[i===Pe.SEARCH&&(0,C.jsx)(ci,{}),i===Pe.CONTEXTUAL_SUPPORT&&(0,C.jsx)(oi,{})]})]})},n.panelRenderingKey)})),di=(0,vt.Pi)((()=>{const[e,t]=(0,Mt.useState)(!1),[n,s]=(0,Mt.useState)((0,a.Z)()),i=jt(),r=(0,Mt.useRef)(null),o=i.assistantService,c=o.currentContextualDocumentationEntry;return(0,Mt.useEffect)((()=>{o.isHidden&&s((0,a.Z)())}),[o.isHidden]),(0,C.jsx)(si,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),handle:".virtual-assistant__station__drag-handle",children:(0,C.jsxs)("div",{className:"virtual-assistant",ref:r,children:[(0,C.jsxs)("div",{className:(0,At.clsx)("virtual-assistant__station",{"virtual-assistant__station--hidden":o.isHidden,"virtual-assistant__station--active":Boolean(c)}),children:[(0,C.jsx)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:()=>{!o.isOpen&&c&&o.setSelectedTab(Pe.CONTEXTUAL_SUPPORT),o.setIsOpen(!o.isOpen)},title:o.isOpen?"Click to close assistant panel":(c?"Contextual support available.\n":"")+"Click to open assistant panel...",children:o.isOpen?(0,C.jsx)(Yn,{className:"virtual-assistant__station__trigger__close"}):c?(0,C.jsx)(mn,{className:"virtual-assistant__station__trigger__circle"}):null}),(0,C.jsx)(Gs,{className:(0,At.clsx)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,C.jsxs)(Vs,{children:[(0,C.jsx)($s,{onClick:()=>{o.setIsOpen(!1),s((0,a.Z)())},children:"Reset Position"}),(0,C.jsx)($s,{onClick:()=>i.assistantService.hideAssistant(),children:"Hide Assistant"})]}),children:(0,C.jsx)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,C.jsx)(ds,{})})})]},c?.uuid??""),!e&&o.isOpen&&!o.isHidden&&r.current&&(0,C.jsx)(li,{triggerElement:r.current})]})},n)}));var ui;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(ui||(ui={}));const pi=["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"],hi=e=>(0,C.jsx)("div",{className:"backdrop__container","data-elementid":e.elementId}),gi=(0,vt.Pi)((e=>{const{children:t}=e,n=jt(),s=((e,t)=>{const n={};return e.forEach(((e,s)=>{e.length&&(n[s]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:pi,handler:(e,t)=>{t.preventDefault()}},n})(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{pi.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Mt.useEffect)((()=>{const e=function(e){const t=new Map;let n=null;return s=>{s instanceof KeyboardEvent&&((0,at.Z)(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,i=ht(e.combination);if(!i.length)return;const a=t.get(n)??i,r=U(a[0]);gt(s,r)?a.length>1?t.set(n,a.slice(1)):(t.delete(n),e.handler(n,s)):s.getModifierState(s.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}(s);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[s]),(0,Mt.useEffect)((()=>{const e=()=>{document.hidden&&(Ve.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,C.jsxs)(yt,{children:[(0,C.jsx)(zt,{}),(0,C.jsx)($t,{}),(0,C.jsx)(Bs,{}),(0,C.jsx)(di,{}),n.layoutService.showBackdrop&&(0,C.jsx)(bt.Z,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??ui.BACKDROP_CONTAINER)??null,children:(0,C.jsx)(Tt.Z,{className:"backdrop",open:n.layoutService.showBackdrop})}),(0,C.jsx)(St.W,{backend:Nt.PD,children:(0,C.jsxs)("div",{className:"app__container","data-elementid":ui.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,C.jsx)(hi,{elementId:ui.BACKDROP_CONTAINER}),t]})})]})})),mi={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"},fi={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},_i=`\n${et.BOLD}${et.BRIGHT_BLUE}$purist${et.RESET}\n${et.BOLD}${et.MAGENTA}❯${et.RESET} `,Ei="❯ ";class Ci extends it{instance;resizer;renderer;searcher;webLinkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=we.create();constructor(e){super(e),this.instance=new We.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:`"${Ze}", Menlo, Consolas, monospace`,tabStopWidth:2,theme:mi,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new Ye.FitAddon,this.searcher=new Je.SearchAddon,this.renderer=new qe.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new L("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=>mt(e,"Control+KeyF")||mt(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(mt(e,"Control+KeyC")&&this.instance.hasSelection()||mt(e,"Control+KeyV")))),this.webLinkProvider=e?.webLinkProvider?new Ke.WebLinksAddon(e.webLinkProvider.handler,{urlRegex:e.webLinkProvider.regex}):new Ke.WebLinksAddon,this.instance.loadAddon(this.webLinkProvider),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(u.create(he.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,s;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 s=this.commandRegistry.get(t);if(!s)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,s.handler(n.map((e=>e.trim())),t,e).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(mt(t,"Control+KeyD")||mt(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,s=this.applicationStore,s.layoutService.getElementByID(ui.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=`${Ei}${this.command}`,s=`${Ei}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let i=0,a=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(U(e.getLine(n)).translateToString()===s){i=n,a+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}a+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:i,startX:2,endY:i+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:a}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,s=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))s||(s=!0);else if(s){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/))s||(s=!0);else if(s){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,s=this.instance.cols,i=this.instance.rows,a=this.getCommandRange(),r=t?e<0?a.cursorIdx:this.command.length-a.cursorIdx:e,o=Math.min(Math.abs(e),r);let c=n.cursorX,l=n.cursorY,d=n.baseY+n.cursorY;e<0?(c=(s+(n.cursorX-o)%s)%s,l=n.cursorY-(o>n.cursorX?Math.ceil(o/s):0),d=l+n.baseY,l=Math.max(l,-1)):e>0&&(c=(n.cursorX+o)%s,l=n.cursorY+(n.cursorX+o>=s?Math.floor((n.cursorX+o)/s):0),d=l+n.baseY,l=Math.min(l,i-1));const u=d>n.viewportY+i?d-(n.viewportY+i):d<n.viewportY?d-n.viewportY:0;return{seq:tt(l+1,c+1),scroll:u}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),s=this.command.slice(t.cursorIdx),i=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(i.scroll),this.instance.write(e+s+i.seq),this.setCommand(n+e+s)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,s=Math.min(Math.abs(e),n);let i,a,r;if(0===e)return;e<0?(i=this.command.slice(0,t.cursorIdx-s),a=this.command.slice(t.cursorIdx,this.command.length),r=-s):(i=this.command.slice(0,t.cursorIdx),a=this.command.slice(t.cursorIdx+s,this.command.length),r=0);const o=this.computeCursorMovement(r);this.instance.scrollLines(o.scroll),this.instance.write(tt(t.startY+1,t.startX+1)+i+a+" ".repeat(s)+o.seq),this.setCommand(i+a)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new L("XTerm terminal has not been set up yet");this.instance.open(e)}dispose(){this.searcher.dispose(),this.resizer.dispose(),this.renderer.dispose(),this.webLinkProvider?.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(tt(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(tt(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(_i),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${et.DIM}(system: ${e})\n${et.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 s=U(e.getLine(n)).translateToString();if(s.trim()){t=s!==Ei;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(et.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${et.BRIGHT_BLACK}+-------------------------------------------------------+${et.RESET}\n${et.BRIGHT_BLACK}|${et.RESET} ${et.BRIGHT_GREEN}[@@]${et.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${et.BRIGHT_BLACK}|${et.RESET}\n${et.BRIGHT_BLACK}|${et.RESET} ${et.BRIGHT_GREEN}/|__|\\${et.RESET} ${et.BRIGHT_BLACK}|${et.RESET}\n${et.BRIGHT_BLACK}+--${et.RESET} ${et.BRIGHT_GREEN}d b${et.RESET} ${et.BRIGHT_BLACK}-----------------------------------------------+${et.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,at.Z)(Array.from(e.values()),(e=>e.command)).map((e=>`${et.BRIGHT_GREEN}${e.command.padEnd(30)}${et.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${et.DIM}${e.usage}${et.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(et).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?dt(e.trim().replace(/_+/gu," ").toLowerCase()):ct(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)}${et.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${et.RED}${e}${et.RED}`),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:fi,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:fi,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:fi,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 s=U(e.getLine(n));t.push(s.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 yi{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new Ci(e)}}const bi="(unknown)";class Ti{applicationStore;currentUser=bi;constructor(e){(0,Oe.rC)(this,{currentUser:Oe.LO,setCurrentUser:Oe.aD}),this.applicationStore=e}get isAnonymous(){return this.currentUser===bi}setCurrentUser(e){this.currentUser=e}}var vi,Si=n(7279);class Ni{get localStorage(){return U(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 xi{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?((e,t="")=>(function(e,t=""){if(!Y(e))throw new M(t||"Value is expected to be a number")}(e,t),e))(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!K(e))throw new M(t||"Value is expected to be a string")}(e,t),e))(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!J(e))throw new M(t||"Value is expected to be a boolean")}(e,t),e))(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!X(e))throw new M(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return B(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 Ai{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new Ni;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?D((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,Si.Z)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class Ii{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 Oi{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,s=e.startTime,i=s+n,a={...t??{},...Object.fromEntries(e.records),total:n};let r=0;for(const e of this.interruptions)if(e>=s&&e<=i)r++;else if(e>i)break;return r>0?{...a,__numberOfInteruptions:r}:a}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(vi||(vi={}));const wi={name:"Default Dark (default)",key:vi.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"}},Ri={name:"Legacy Light",key:vi.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},ki={name:"High-Contrast Light",key:vi.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 Li;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(Li||(Li={}));const Fi={[Li.COLOR_THEME]:{defaultValue:vi.DEFAULT_DARK}};class Pi{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,Oe.rC)(this,{currentColorTheme:Oe.LO.ref,TEMPORARY__isLightColorThemeEnabled:Oe.Fl,backdropContainerElementID:Oe.LO,showBackdrop:Oe.LO,setBackdropContainerElementID:Oe.aD,setShowBackdrop:Oe.aD,setColorTheme:Oe.aD}),this.applicationStore=e,this.colorThemeRegistry.set(vi.DEFAULT_DARK,wi),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(u.create(he.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(Li.COLOR_THEME)??vi.DEFAULT_DARK;this.currentColorTheme=U(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==vi.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 s=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,s),t?.persist&&this.applicationStore.settingService.persistValue(Li.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??U(this.colorThemeRegistry.get(vi.DEFAULT_DARK)).colors?.[e]??"transparent"}}class Di{applicationStore;constructor(e){this.applicationStore=e}async copyTextToClipboard(e){await navigator.clipboard.writeText(e).catch((e=>{this.applicationStore.notificationService.notifyError(e)}))}}class Mi{navigator;constructor(e){this.navigator=e}}var Bi=n(65741);class ji{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new xi(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(u.create(he.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(Y(t))return t;this.applicationStore.logService.warn(u.create(he.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(K(t))return t;this.applicationStore.logService.warn(u.create(he.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(J(t))return t;this.applicationStore.logService.warn(u.create(he.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(X(t))return t;this.applicationStore.logService.warn(u.create(he.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,Bi.Z)(n,t)?void 0:t)}}class Ui{goToLocation(e,t){throw new F("Navigator does not support this operation")}reload(e){throw new F("Navigator does not support this operation")}goToAddress(e,t){throw new F("Navigator does not support this operation")}visitAddress(e){throw new F("Navigator does not support this operation")}generateAddress(e){throw new F("Navigator does not support this operation")}updateCurrentLocation(e){throw new F("Navigator does not support this operation")}updateCurrentZone(e){throw new F("Navigator does not support this operation")}resetZone(){throw new F("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new F("Navigator does not support this operation")}getCurrentAddress(){throw new F("Navigator does not support this operation")}getCurrentLocation(){throw new F("Navigator does not support this operation")}getCurrentLocationParameters(){throw new F("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new F("Navigator does not support this operation")}getCurrentZone(){throw new F("Navigator does not support this operation")}blockNavigation(e,t,n){throw new F("Navigator does not support this operation")}unblockNavigation(){throw new F("Navigator does not support this operation")}get isNavigationBlocked(){throw new F("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new F("Navigator does not support this operation")}}class Gi{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new xi(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(Y(t))return t;this.applicationStore.logService.warn(u.create(he.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(K(t))return t;this.applicationStore.logService.warn(u.create(he.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(J(t))return t;this.applicationStore.logService.warn(u.create(he.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(X(t))return t;this.applicationStore.logService.warn(u.create(he.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve object value for user data '${e}'`)}persistValue(e,t){this.storage.persistValue(e,t)}}class Vi{uuid=(0,a.Z)();config;pluginManager;initState=we.create();platform;timeService;logService;storageService;userDataService;settingService;alertService;notificationService;identityService;commandService;keyboardShortcutsService;layoutService;clipboardService;terminalService;navigationService;navigationContextService;documentationService;assistantService;eventService;telemetryService;tracerService;constructor(e,t){this.config=e,this.pluginManager=t,this.timeService=new Oi,this.logService=new h,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new Ai(this),this.settingService=new ji(this),this.userDataService=new Gi(this),this.alertService=new Dt(this),this.notificationService=new Ms,this.identityService=new Ti(this),this.layoutService=new Pi(this),this.clipboardService=new Di(this),this.terminalService=new yi(this),this.commandService=new He(this),this.keyboardShortcutsService=new ze(this),this.navigationService=new Mi(new Ui),this.navigationContextService=new $e(this),this.documentationService=new xe(this),this.assistantService=new Ue(this),this.eventService=new Ge,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new Ii(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new ke,this.tracerService.registerPlugins(t.getTracerServicePlugins())}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new L("Platform is already configured");this.platform=e,this.navigationService=new Mi(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){P(e),this.notificationService.notifyError(e),this.logService.error(u.create(he.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logService.error(u.create(he.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e),this.notificationService.notifyIllegalState(e.message)};guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}class $i{}class Hi extends $i{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 zi{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;constructor(e){this.pluginManager=e,this.logger=new Hi}setup(e){return this.baseAddress=z(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}async fetchApplicationConfiguration(e){const t=new ue;let n,s;try{n=await t.get(`${window.location.origin}${e}config.json`)}catch(e){P(e),this.logger.error(u.create(he.APPLICATION_CONFIGURATION__FAILURE),e)}j(n,"Can't fetch Legend application configuration");try{s=await t.get(`${window.location.origin}${e}version.json`)}catch(e){P(e),this.logger.error(u.create(he.APPLICATION_CONFIGURATION__FAILURE),e)}return j(s,"Can't fetch Legend application version"),[await this.configureApplication({configData:n,versionData:s,baseAddress:e}),n.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 ue(e.simple?{options:{credentials:"omit"}}:{}),s=await n.get(z(e.url,"Can't load documentation registry: 'url' field is missing or empty"));j(s.entries,"Can't load documentation registry data: 'entries' field is missing");const i=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(s.entries).forEach((([e,n])=>{i&&!i.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){P(e),this.logger.warn(u.create(he.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...Ne(t),...e.keyedDocumentationEntries]}async start(){j(this._isConfigured,"Legend application has not been configured properly. Make sure to run setup() before start()");try{const[e,t]=await this.fetchApplicationConfiguration(this.baseAddress);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 Vi(this.config,this.pluginManager);await Promise.all(this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationSetups?.()??[])).map((e=>e(n)))),await this.loadApplication(n),this.logger.info(u.create(he.APPLICATION_LOAD__SUCCESS),"Legend application loaded")}catch(e){throw P(e),this.logger.error(u.create(he.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const Wi="legend-application-root",Ki=JSON.parse('{"i8":"15.0.30","Rw":{"j":"@finos/legend-application-plugin-core"}}');class Yi extends o{}class Ji extends Yi{static NAME=Ki.Rw.j;constructor(){super(Ji.NAME,Ki.i8)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{(0,Oe.jQ)({enforceActions:"observed"})}]}getExtraColorThemes(){return[Ri,ki]}getExtraSettingConfigurationEntries(){return e=Fi,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class Xi{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=z(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=z(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:z(e[0],"Documentation link 'key' is missing"),label:z(e[1].label,"Documentation link 'label' is missing"),url:z(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=Ne(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=U(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=U(e.versionData.buildTime,"Can't collect application version: 'buildTime' field is missing"),this.appVersionCommitId=U(e.versionData.commitSHA,"Can't collect application version: 'commitSHA' field is missing")}static resolveAbsoluteUrl(e){return e.trim().startsWith("/")?window.location.origin+e:e}}class qi extends Xi{pureUrl;useDynamicPureServer=!1;constructor(e){super(e),j(e.configData.pure,"Can't configure application: 'pure' field is missing"),this.pureUrl=Xi.resolveAbsoluteUrl(z(e.configData.pure.url,"Can't configure application: 'pure.url' field is missing or empty")),void 0!==e.configData.pure.dynamic&&(this.useDynamicPureServer=Boolean(e.configData.pure.dynamic))}getDefaultApplicationStorageKey(){return"legend-pure-ide"}}class Zi extends d{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]}}class Qi extends Zi{pureProtocolProcessorPlugins=[];pureGraphManagerPlugins=[];pureGraphPlugins=[];constructor(){super()}static create(){return new Qi}registerPureProtocolProcessorPlugin(e){this.pureProtocolProcessorPlugins.push(e)}registerPureGraphManagerPlugin(e){this.pureGraphManagerPlugins.push(e)}registerPureGraphPlugin(e){this.pureGraphPlugins.push(e)}getPureGraphManagerPlugins(){return[...this.pureGraphManagerPlugins]}getPureProtocolProcessorPlugins(){return[...this.pureProtocolProcessorPlugins]}getPureGraphPlugins(){return[...this.pureGraphPlugins]}}const ea=JSON.parse('{"i8":"8.0.46","Rw":{"NA":"@finos/legend-graph-manager-preset-dsl-diagram","zE":"@finos/legend-pure-protocol-processor-plugin-dsl-diagram","LW":"@finos/legend-pure-graph-manager-plugin-dsl-diagram","f1":"@finos/legend-pure-graph-plugin-dsl-diagram"}}');class ta extends o{_$nominalTypeBrand;install(e){e.registerPureGraphManagerPlugin(this)}}const na=e=>t=>(0,Oe.bi)(t)?t:e(t),sa=e=>(t,n)=>(0,Oe.bi)(t)?t:e(t,n),ia=e=>{(0,Oe.rC)(e,{_isDeleted:Oe.LO,_isDisposed:Oe.LO,name:Oe.LO,package:Oe.LO,isDeleted:Oe.Fl,path:Oe.Fl,_elementHashCode:Oe.Fl,hashCode:Oe.Fl,setIsDeleted:Oe.aD,dispose:Oe.aD})},aa=na((e=>(ia(e),(0,Oe.rC)(e,{content:Oe.LO.ref}),e))),ra=na((e=>(0,Oe.rC)(e,{value:Oe.LO,valueForSerialization:Oe.Fl})));var oa=n(34485),ca=n(3096);const la=e=>oa.sha1().update(e).digest("hex"),da=e=>la(e.filter(B).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?la(e):e.hashCode)).join(",")),ua="::",pa="###",ha=["$implicit"];var ga,ma,fa,_a,Ea;(Ea=ga||(ga={})).CORE="CORE",Ea.MAIN="ROOT",Ea.MODEL_GENERATION="MODEL_GENERATION_ROOT",Ea.SYSTEM="SYSTEM_ROOT",Ea.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT",(_a=ma||(ma={})).STRING="String",_a.BOOLEAN="Boolean",_a.BINARY="Binary",_a.NUMBER="Number",_a.INTEGER="Integer",_a.FLOAT="Float",_a.DECIMAL="Decimal",_a.DATE="Date",_a.STRICTDATE="StrictDate",_a.DATETIME="DateTime",_a.STRICTTIME="StrictTime",_a.LATESTDATE="LatestDate",_a.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest"}(fa||(fa={}));const Ca=["meta::pure::metamodel::type","meta::pure::functions::date","meta::pure::profiles"];var ya,ba,Ta,va,Sa,Na,xa,Aa,Ia,Oa,wa;(ba=ya||(ya={})).ANY="meta::pure::metamodel::type::Any",ba.NIL="meta::pure::metamodel::type::Nil",ba.PROFILE_DOC="meta::pure::profiles::doc",ba.PROFILE_TEMPORAL="meta::pure::profiles::temporal",ba.PROFILE="meta::pure::metamodel::extension::Profile",ba.ENUMERATION="meta::pure::metamodel::type::Enumeration",ba.MEASURE="meta::pure::metamodel::type::Measure",ba.CLASS="meta::pure::metamodel::type::Class",ba.ASSOCIATION="meta::pure::metamodel::relationship::Association",ba.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",ba.FLAT_DATA="meta::flatData::metamodel::FlatData",ba.DATABASE="meta::relational::metamodel::Database",ba.MAPPING="meta::pure::mapping::Mapping",ba.SERVICE="meta::legend::service::metamodel::Service",ba.CONNECTION="meta::pure::runtime::PackageableConnection",ba.RUNTIME="meta::pure::runtime::PackageableRuntime",ba.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",ba.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",ba.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",ba.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",ba.DATA_ELEMENT="meta::pure::data::DataElement",(Na=Ta||(Ta={})).BUSINESS_TEMPORAL="businesstemporal",Na.PROCESSING_TEMPORAL="processingtemporal",Na.BITEMPORAL="bitemporal",(Sa=va||(va={})).ALL_VERSIONS="AllVersions",Sa.ALL_VERSIONS_IN_RANGE="AllVersionsInRange",(Ia=xa||(xa={})).CLASS="CLASS",Ia.STORE="STORE",Ia.MAPPING="MAPPING",Ia.RUNTIME="RUNTIME",Ia.FILE_GENERATION="FILE_GENERATION",Ia.SERVICE="SERVICE",function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(Aa||(Aa={})),(wa=Oa||(Oa={})).INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",wa.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",wa.PACKAGE="PACKAGE",wa.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",wa.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",wa.PROFILE="PROFILE",wa.TAG_POINTER="TAG_POINTER",wa.STEREOTYPE_POINTER="STEREOTYPE_POINTER",wa.TAGGED_VALUE="TAGGED_VALUE",wa.ENUMERATION="ENUMERATION",wa.ENUM_VALUE="ENUM_VALUE",wa.CLASS="CLASS",wa.PROPERTY="PROPERTY",wa.PROPERTY_POINTER="PROPERTY_POINTER",wa.MULTIPLICITY="MULTIPLICITY",wa.CONSTRAINT="CONSTRAINT",wa.DERIVED_PROPERTY="DERIVED_PROPERTY",wa.ASSOCIATION="ASSOCIATION",wa.FUNCTION="FUNCTION",wa.MEASURE="MEASURE",wa.UNIT="UNIT",wa.ASSERT_FAIL="ASSERT_FAIL",wa.ASSERT_PASS="ASSERT_PASS",wa.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",wa.EQUAL_TO="EQUAL_TO",wa.EQUAL_TO_JSON="EQUAL_TO_JSON",wa.EQUAL_TO_TDS="EQUAL_TO_TDS",wa.SECTION_INDEX="SECTION_INDEX",wa.SECTION="SECTION",wa.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",wa.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",wa.RAW_LAMBDA="RAW_LAMBDA",wa.RAW_VARIABLE="RAW_VARIABLE",wa.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",wa.BINDING_TRANSFORMER="BINDING_TRANSFORMER",wa.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",wa.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",wa.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",wa.EXPRESSION="EXPRESSION",wa.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",wa.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",wa.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",wa.INSTANCE_VALUE="INSTANCE_VALUE",wa.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",wa.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",wa.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",wa.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",wa.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",wa.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",wa.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",wa.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",wa.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",wa.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",wa.FUNCTION_TYPE="FUNCTION_TYPE",wa.LAMBDA_FUNCTION="LAMBDA_FUNCTION",wa.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",wa.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",wa.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",wa.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",wa.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",wa.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",wa.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",wa.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",wa.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_CONNECTION",wa.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",wa.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",wa.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",wa.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",wa.MAPPING="MAPPING",wa.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",wa.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",wa.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",wa.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",wa.ENUMERATION_MAPPING="ENUMERATION_MAPPING",wa.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",wa.SET_IMPLEMENTATION="SET_IMPLEMENTATION",wa.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",wa.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",wa.PROPERTY_MAPPING="PROPERTY_MAPPING",wa.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",wa.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",wa.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",wa.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",wa.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",wa.MAPPING_TEST="MAPPING_TEST",wa.STORE_TEST_DATA="STORE_TEST_DATA",wa.INPUT_DATA="INPUT_DATA",wa.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",wa.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",wa.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",wa.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",wa.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",wa.FILTER_MAPPING="FILTER_MAPPING",wa.COLUMN_MAPPING="COLUMN_MAPPING",wa.GROUP_BY_MAPPING="GROUP_BY_MAPPING",wa.RUNTIME="RUNTIME",wa.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",wa.ENGINE_RUNTIME="ENGINE_RUNTIME",wa.LEGACY_RUNTIME="LEGACY_RUNTIME",wa.RUNTIME_POINTER="RUNTIME_POINTER",wa.STORE_CONNECTIONS="STORE_CONNECTIONS",wa.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",wa.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",wa.CONNECTION_POINTER="CONNECTION_POINTER",wa.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",wa.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",wa.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",wa.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",wa.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",wa.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",wa.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",wa.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",wa.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",wa.GENERATION_TREE="GENERATION_TREE",wa.GENERATION_TREE_NODE="GENERATION_TREE_NODE",wa.FILE_GENERATION="FILE_GENERATION",wa.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",wa.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",wa.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",wa.MODEL_STORE_DATA="MODEL_STORE_DATA",wa.MODEL_DATA="MODEL_DATA",wa.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",wa.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",wa.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",wa.DATA_ELEMENT="DATA_ELEMENT",wa.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",wa.RELATIONAL_TDS="RELATIONAL_TDS",wa.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",wa.BINDING="BINDING",wa.SCHEMA_SET="SCHEMA_SET",wa.SCHEMA="SCHEMA",wa.MODEL_UNIT="MODEL_UNIT",wa.URL_STREAM="URL_STREAM",wa.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",wa.SERVICE="SERVICE",wa.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",wa.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",wa.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",wa.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",wa.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",wa.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",wa.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",wa.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",wa.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",wa.SERVICE_TEST_DATA="SERVICE_TEST_DATA",wa.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",wa.SERVICE_TEST="SERVICE_TEST",wa.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",wa.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",wa.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",wa.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",wa.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",wa.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",wa.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",wa.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",wa.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",wa.DATABASE="DATABASE",wa.DATABASE_SCHEMA="DATABASE_SCHEMA",wa.DATABASE_JOIN="DATABASE_JOIN",wa.DATABASE_FILTER="DATABASE_FILTER",wa.DATBASE_VIEW="DATBASE_VIEW",wa.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",wa.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",wa.RELATIONAL="RELATIONAL",wa.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",wa.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",wa.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",wa.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",wa.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",wa.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",wa.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",wa.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",wa.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",wa.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",wa.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",wa.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",wa.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",wa.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",wa.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",wa.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",wa.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",wa.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",wa.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",wa.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",wa.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",wa.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",wa.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",wa.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",wa.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",wa.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",wa.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",wa.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",wa.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",wa.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",wa.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",wa.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",wa.BUSINESS_MILESTONING="BUSINESS_MILESTONING",wa.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",wa.PROCESSING_MILESTONING="PROCESSING_MILESTONING",wa.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",wa.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",wa.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",wa.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",wa.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",wa.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",wa.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",wa.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",wa.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",wa.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",wa.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",wa.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",wa.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",wa.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",wa.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",wa.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",wa.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",wa.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",wa.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",wa.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",wa.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",wa.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",wa.SCHEMA_MAPPER="SCHEMA_MAPPER",wa.TABLE_MAPPER="TABLE_MAPPER",wa.FLAT_DATA="FLAT_DATA",wa.FLAT_DATA_SECTION="FLAT_DATA_SECTION",wa.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",wa.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",wa.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",wa.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",wa.FLAT_DATA_STRING="FLAT_DATA_STRING",wa.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",wa.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",wa.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",wa.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",wa.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",wa.FLAT_DATA_DATE="FLAT_DATA_DATE",wa.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",wa.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",wa.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",wa.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",wa.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",wa.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",wa.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",wa.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER";const Ra=e=>{return n={excludeKeys:e=>e.toLowerCase().endsWith("sourceInformation".toLowerCase())},W(X(t=e),"Can't hash non-object value"),ca(t,n);var t,n},ka=(e,t)=>da([e?Ra(e):"",t?Ra(t):""]),La=(e,t)=>[Oa.PACKAGEABLE_ELEMENT_POINTER,e??"",t].map(la).join(",");class Fa{stereotypes=[];taggedValues=[]}class Pa extends Fa{name}class Da extends Pa{_UUID=(0,a.Z)();_isDeleted=!1;_isDisposed=!1;package;constructor(e){super(),this.name=e}get isDeleted(){return this._isDeleted}setIsDeleted(e){this._isDeleted=e}get path(){if(!this.package)return this.name;const e=this.package.path;return e?`${e}${ua}${this.name}`:this.name}dispose(){this._isDisposed=!0;try{this.hashCode}catch{}}get _elementHashCode(){return da([Oa.PACKAGEABLE_ELEMENT,this.path])}get hashCode(){if(this._isDisposed)throw new L(`Element '${this.path}' is already disposed`);return this._elementHashCode}}class Ma extends Da{}class Ba extends Ma{_subclasses=[];_generatedMilestonedProperties=[];properties=[];propertiesFromAssociations=[];derivedProperties=[];generalizations=[];constraints=[];dispose(){super.dispose(),this._subclasses=[],this.generalizations.forEach((e=>{const t=e.value.rawType;t._isDisposed||(t._subclasses=t._subclasses.filter((e=>!e._isDisposed)))}))}get _elementHashCode(){return da([Oa.CLASS,this.path,da(this.properties),da(this.derivedProperties),da(this.generalizations.map((e=>e.ownerReference.valueForSerialization??""))),da(this.constraints),da(this.stereotypes.map((e=>e.pointerHashCode))),da(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Class(this)}}class ja extends Ma{}class Ua extends ja{values=[];get _elementHashCode(){return da([Oa.ENUMERATION,this.path,da(this.values),da(this.stereotypes.map((e=>e.pointerHashCode))),da(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Enumeration(this)}}class Ga extends ja{measure;conversionFunction;constructor(e,t,n){super(e),this.measure=t,this.conversionFunction=n}get hashCode(){return da([Oa.UNIT,this.measure.path,this.conversionFunction??""])}accept_PackageableElementVisitor(e){throw new F}}class Va extends Ma{canonicalUnit;nonCanonicalUnits=[];get _elementHashCode(){return da([Oa.MEASURE,this.path,this.canonicalUnit??"",da(this.nonCanonicalUnits)])}accept_PackageableElementVisitor(e){return e.visit_Measure(this)}}class $a extends Da{children=[];get path(){return this.package?super.path:""}get hashCode(){return""}accept_PackageableElementVisitor(e){return e.visit_Package(this)}}class Ha{_OWNER;parserName;elements=[];constructor(e,t){this.parserName=e,this._OWNER=t}get hashCode(){return da([Oa.SECTION,this.parserName,da(this.elements.map((e=>e.valueForSerialization??"")))])}}class za extends Ha{imports=[];get hashCode(){return da([Oa.IMPORT_AWARE_CODE_SECTION,super.hashCode,da(this.imports.map((e=>e.valueForSerialization??"")))])}}class Wa extends Ha{get hashCode(){return da([Oa.DEFAULT_CODE_SECTION,super.hashCode])}}class Ka{_UUID=(0,a.Z)()}class Ya extends Ka{ownerReference;constructor(e){super(),this.ownerReference=e}}class Ja extends Ka{value;constructor(e){super(),this.value=e}}class Xa extends Ja{constructor(e){super(e)}static create(e){return new Xa(e)}get valueForSerialization(){return this.value.path}}const qa=na((e=>(0,Oe.rC)(e,{name:Oe.LO,value:Oe.LO.ref,hashCode:Oe.Fl}))),Za=na((e=>(ia(e),(0,Oe.rC)(e,{type:Oe.LO,generationOutputPath:Oe.LO,scopeElements:Oe.LO,configurationProperties:Oe.LO,_elementHashCode:Oe.KG}),e.scopeElements.forEach((e=>{e instanceof Ja&&ra(e)})),e.configurationProperties.forEach(qa),e))),Qa=na((e=>((0,Oe.rC)(e,{id:Oe.LO,hashCode:Oe.Fl}),ra(e.generationElement),e))),er=na((e=>(ia(e),(0,Oe.rC)(e,{generationNodes:Oe.LO,fileGenerations:Oe.LO,_elementHashCode:Oe.KG}),e.generationNodes.forEach(Qa),e.fileGenerations.forEach(ra),e)));class tr{_OWNER;included;constructor(e,t){this._OWNER=e,this.included=t}}class nr extends tr{storeSubstitutions=[];get hashCode(){return da([Oa.MAPPING_INCLUDE_MAPPING,this.included.valueForSerialization??"",N(this.storeSubstitutions)?.original.valueForSerialization??"",N(this.storeSubstitutions)?.substitute.valueForSerialization??""])}}class sr{}class ir extends sr{expectedOutput;constructor(e){super(),this.expectedOutput=ut(e)}get hashCode(){return da([Oa.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT,this.expectedOutput])}}class ar{}var rr,or,cr;(cr=rr||(rr={})).JSON="JSON",cr.XML="XML";class lr extends ar{sourceClass;inputType;data;constructor(e,t,n){super(),this.sourceClass=e,this.inputType=t,this.data=t===rr.JSON?ut(n):n}get hashCode(){return da([Oa.OBJECT_INPUT_DATA,this.sourceClass.valueForSerialization??"",this.inputType,this.data])}}class dr extends ar{sourceFlatData;data;constructor(e,t){super(),this.sourceFlatData=e,this.data=t}get hashCode(){return da([Oa.FLAT_DATA_INPUT_DATA,La(xa.STORE,this.sourceFlatData.valueForSerialization??""),this.data])}}!function(e){e.SQL="SQL",e.CSV="CSV"}(or||(or={}));class ur extends ar{database;data;inputType;constructor(e,t,n){super(),this.database=e,this.data=t,this.inputType=n}get hashCode(){return da([Oa.RELATIONAL_INPUT_DATA,this.database.valueForSerialization??"",this.data,this.inputType])}}class pr{}class hr extends pr{mappings=[];connections=[];get hashCode(){return da([Oa.ENGINE_RUNTIME,da(this.mappings.map((e=>La(xa.MAPPING,e.valueForSerialization??"")))),da(this.connections.filter((e=>e.storeConnections.length)))])}}class gr extends pr{packageableRuntime;constructor(e){super(),this.packageableRuntime=e}get hashCode(){return da([Oa.RUNTIME_POINTER,this.packageableRuntime.valueForSerialization??""])}}const mr=na((e=>((0,Oe.rC)(e,{value:Oe.LO,hashCode:Oe.Fl}),ra(e.type),e))),fr=na((e=>(0,Oe.rC)(e,{body:Oe.LO.ref,parameters:Oe.LO.ref,hashCode:Oe.Fl}))),_r=na((e=>((0,Oe.rC)(e,{name:Oe.LO,multiplicity:Oe.LO,hashCode:Oe.Fl}),ra(e.type),e)));class Er{observerContext;constructor(e){this.observerContext=e}visit_RawLambda(e){fr(e)}visit_RawVariableExpression(e){_r(e)}visit_RawPrimitiveInstanceValue(e){mr(e)}}sa(((e,t)=>(e.accept_RawValueSpecificationVisitor(new Er(t)),e)));class Cr{_correspondingPrimitiveType;constructor(e){this._correspondingPrimitiveType=e}}class yr extends Cr{trueString;falseString;get hashCode(){return da([Oa.FLAT_DATA_BOOLEAN,this.trueString??"",this.falseString??""])}}class br extends Cr{get hashCode(){return da([Oa.FLAT_DATA_STRING])}}class Tr extends Cr{get hashCode(){return da([Oa.FLAT_DATA_NUMBER])}}class vr extends Cr{dateFormat;timeZone;get hashCode(){return da([Oa.FLAT_DATA_DATE,this.dateFormat?da(this.dateFormat):"",this.timeZone??""])}}class Sr extends Cr{fields=[];get hashCode(){return da([Oa.FLAT_DATA_RECORD_TYPE,da(this.fields)])}}const Nr=sa(((e,t)=>(Nd(e,t),(0,Oe.rC)(e,{flatData:Oe.LO,sectionName:Oe.LO,hashCode:Oe.Fl}),e))),xr=na((e=>((0,Oe.rC)(e,{label:Oe.LO,flatDataDataType:Oe.LO,optional:Oe.LO,address:Oe.LO,hashCode:Oe.Fl}),(e=>{e instanceof yr?(0,Oe.rC)(e,{trueString:Oe.LO,falseString:Oe.LO,hashCode:Oe.Fl}):e instanceof br||e instanceof Tr?(0,Oe.rC)(e,{hashCode:Oe.Fl}):e instanceof vr?(0,Oe.rC)(e,{dateFormat:Oe.LO,timeZone:Oe.LO,hashCode:Oe.Fl}):e instanceof Sr&&na(Ar)(e)})(e.flatDataDataType),e)));function Ar(e){return(0,Oe.rC)(e,{fields:Oe.LO,hashCode:Oe.Fl}),e.fields.forEach(xr),e}na(Ar);const Ir=na(Ar),Or=na((e=>((0,Oe.rC)(e,{name:Oe.LO,value:Oe.LO,hashCode:Oe.Fl}),e))),wr=na((e=>((0,Oe.rC)(e,{driverId:Oe.LO,name:Oe.LO,sectionProperties:Oe.LO,recordType:Oe.LO,hashCode:Oe.Fl}),e.sectionProperties.forEach(Or),e.recordType&&Ir(e.recordType),e))),Rr=(na((e=>((0,Oe.rC)(e,{value:Oe.LO,pointerHashCode:Oe.Fl}),ra(e.ownerReference),e))),na((e=>(ia(e),(0,Oe.rC)(e,{sections:Oe.LO,_elementHashCode:Oe.KG}),e.sections.forEach(wr),e)))),kr=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),ra(e.ownerReference),e))),Lr=sa(((e,t)=>(Fd(e,t),(0,Oe.rC)(e,{filter:Oe.LO,hashCode:Oe.Fl}),kr(e.sourceRootRecordType),e.filter&&fr(e.filter),e))),Fr=sa(((e,t)=>(Nd(e,t),Fd(e,t),(0,Oe.rC)(e,{rootInstanceSetImplementation:Oe.LO,hashCode:Oe.Fl}),e))),Pr=sa(((e,t)=>(Nd(e,t),(0,Oe.rC)(e,{transformer:Oe.LO,transform:Oe.LO,hashCode:Oe.Fl}),fr(e.transform),e))),Dr=na((e=>((0,Oe.rC)(e,{data:Oe.LO,hashCode:Oe.Fl}),ra(e.sourceFlatData),e))),Mr=na((e=>((0,Oe.rC)(e,{url:Oe.LO,hashCode:Oe.Fl}),e)));class Br{}class jr extends Br{serverPrincipal;get hashCode(){return da([Oa.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY,this.serverPrincipal?.toString()??""])}}class Ur extends Br{get hashCode(){return da([Oa.DEFAULT_H2_AUTHENTICATION_STRATEGY])}}class Gr extends Br{apiToken;constructor(e){super(),this.apiToken=e}get hashCode(){return da([Oa.API_TOKEN_AUTHENTICATION_STRATEGY,this.apiToken])}}class Vr extends Br{oauthKey;scopeName;constructor(e,t){super(),this.oauthKey=e,this.scopeName=t}get hashCode(){return da([Oa.OAUTH_AUTHENTICATION_STRATEGY,this.oauthKey,this.scopeName])}}class $r extends Br{privateKeyVaultReference;passPhraseVaultReference;publicUserName;constructor(e,t,n){super(),this.privateKeyVaultReference=e,this.passPhraseVaultReference=t,this.publicUserName=n}get hashCode(){return da([Oa.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY,this.privateKeyVaultReference,this.passPhraseVaultReference,this.publicUserName])}}class Hr extends Br{get hashCode(){return da([Oa.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY])}}class zr extends Br{serviceAccountEmail;additionalGcpScopes=[];constructor(e,t=[]){super(),this.serviceAccountEmail=e,this.additionalGcpScopes=t}get hashCode(){return da([Oa.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY,this.serviceAccountEmail,da(this.additionalGcpScopes)])}}class Wr extends Br{baseVaultReference;userNameVaultReference;passwordVaultReference;constructor(e,t){super(),this.userNameVaultReference=e,this.passwordVaultReference=t}get hashCode(){return da([Oa.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.baseVaultReference?.toString()??"",this.userNameVaultReference,this.passwordVaultReference])}}class Kr extends Br{vaultReference;constructor(e){super(),this.vaultReference=e}get hashCode(){return da([Oa.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.vaultReference])}}class Yr extends Br{kerberosRemoteServiceName;kerberosUseCanonicalHostname;constructor(e,t){super(),this.kerberosRemoteServiceName=e,this.kerberosUseCanonicalHostname=t}get hashCode(){return da([Oa.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY,this.kerberosRemoteServiceName,this.kerberosUseCanonicalHostname.toString()])}}class Jr{}class Xr extends Jr{host;port;databaseName;constructor(e,t,n){super(),this.host=e,this.port=t,this.databaseName=n}get hashCode(){return da([Oa.STATIC_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.databaseName])}}class qr extends Jr{hostname;port;protocol;httpPath;constructor(e,t,n,s){super(),this.hostname=e,this.port=t,this.protocol=n,this.httpPath=s}get hashCode(){return da([Oa.DATABRICKS_DATASOURCE_SPECIFICATION,this.hostname,this.port,this.protocol,this.httpPath])}}class Zr extends Jr{databaseName;directory;autoServerMode;constructor(e,t,n){super(),this.databaseName=e,this.directory=t,this.autoServerMode=n}get hashCode(){return da([Oa.EMBEDDED_H2_DATASOURCE_SPECIFICATION,this.databaseName,this.directory,this.autoServerMode.toString()])}}class Qr extends Jr{testDataSetupCsv;testDataSetupSqls=[];get hashCode(){return da([Oa.LOCAL_H2_DATASOURCE_SPECIFICATION,this.testDataSetupCsv??"",da(this.testDataSetupSqls)])}}class eo extends Jr{accountName;region;warehouseName;databaseName;cloudType;quotedIdentifiersIgnoreCase;proxyHost;proxyPort;nonProxyHosts;organization;accountType;role;enableQueryTags;constructor(e,t,n,s){super(),this.region=t,this.warehouseName=n,this.databaseName=s,this.accountName=e}get hashCode(){return da([Oa.SNOWFLAKE_DATASOURCE_SPECIFICATION,this.accountName,this.region,this.warehouseName,this.databaseName,this.cloudType??"",this.proxyHost??"",this.proxyPort??"",this.nonProxyHosts??"",this.organization??"",this.accountType??"",this.role??"",this.quotedIdentifiersIgnoreCase?.toString()??"",this.enableQueryTags?.toString()??""])}}class to extends Jr{clusterID;databaseName;host;port;region;endpointURL;constructor(e,t,n,s,i,a){super(),this.clusterID=i,this.region=a,this.host=s,this.databaseName=e,this.endpointURL=t,this.port=n}get hashCode(){return da([Oa.REDSHIFT_DATASOURCE_SPECIFICATION,this.databaseName,this.endpointURL,this.port.toString(),this.clusterID,this.host,this.region])}}class no extends Jr{projectId;defaultDataset;proxyHost;proxyPort;constructor(e,t){super(),this.projectId=e,this.defaultDataset=t}get hashCode(){return da([Oa.BIGQUERY_DATASOURCE_SPECIFICATION,this.projectId,this.defaultDataset,this.proxyHost??"",this.proxyPort??""])}}class so extends Jr{projectId;instanceId;databaseId;proxyHost;proxyPort;constructor(e,t,n,s,i){super(),this.projectId=e,this.instanceId=t,this.databaseId=n,this.proxyHost=s,this.proxyPort=i}get hashCode(){return da([Oa.SPANNER_DATASOURCE_SPECIFICATION,this.projectId,this.instanceId,this.databaseId,this.proxyHost??"",this.proxyPort??""])}}class io extends Jr{host;port;sslSpecification;catalog;schema;clientTags;constructor(e,t,n){super(),this.host=e,this.port=t,this.sslSpecification=n}get hashCode(){return da([Oa.TRINO_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.sslSpecification,this.catalog??"",this.schema??"",this.clientTags??""])}}class ao{}class ro extends ao{_UUID=(0,a.Z)();from;to;constructor(e,t){super(),this.from=e,this.to=t}get hashCode(){return da([this.from,this.to])}}class oo extends ro{get hashCode(){return da([super.hashCode,Oa.SCHEMA_MAPPER])}}class co extends ro{schema;constructor(e,t,n){super(e,t),this.schema=n}get hashCode(){return da([super.hashCode,Oa.TABLE_MAPPER,this.schema])}}class lo{_UUID=(0,a.Z)()}class uo extends lo{mappers=[];get hashCode(){return da([Oa.MAPPER_POST_PROCESSOR,da(this.mappers)])}}const po="{target}",ho="default";class go{}class mo extends go{}class fo extends mo{}class _o extends fo{name;parameters=[];constructor(e){super(),this.name=e}get hashCode(){return da([Oa.RELATIONAL_OPERATION_DYNA_FUNC,this.name,da(this.parameters)])}}var Eo;!function(e){e.INNER="INNER",e.LEFT_OUTER="LEFT_OUTER",e.RIGHT_OUTER="RIGHT_OUTER",e.OUTER="OUTER"}(Eo||(Eo={}));const Co=e=>[e].concat(e.children.length?Co(e.children[0]):[]);class yo extends go{relationalOperationElement;joinTreeNode;get hashCode(){return da([Oa.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS,da(this.joinTreeNode?Co(this.joinTreeNode):[]),this.relationalOperationElement??""])}}class bo extends go{relation;name;database;isSelfJoinTarget=!1;get hashCode(){throw new F}}class To extends go{alias;column;columnName;get hashCode(){return da([Oa.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN,this.alias.isSelfJoinTarget?this.alias.relation.selfJoinPointerHashCode:this.alias.relation.pointerHashCode,this.alias.isSelfJoinTarget?po:this.alias.name,this.column.value.name])}}class vo extends go{value;constructor(e){super(),this.value=e}get hashCode(){return da([Oa.RELATIONAL_OPERATION_LITERAL,"number"==typeof this.value?this.value.toString():this.value])}}class So extends go{values=[];get hashCode(){return da([Oa.RELATIONAL_OPERATION_LITERAL_LIST,da(this.values)])}}class No extends go{owner;name;type;nullable;get hashCode(){return da([Oa.DATABASE_TABLE_COLUMN,this.name,this.nullable?.toString()??"",this.type])}}class xo{}class Ao extends xo{infinityDate}class Io{}class Oo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_BIGINT])}}class wo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_SMALLINT])}}class Ro extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_TINYINT])}}class ko extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_INTEGER])}}class Lo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_FLOAT])}}class Fo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_DOUBLE])}}class Po extends Io{size;constructor(e){super(),this.size=e}get hashCode(){return da([Oa.RELATIONAL_DATATYPE_VARCHAR,this.size.toString()])}}class Do extends Io{size;constructor(e){super(),this.size=e}get hashCode(){return da([Oa.RELATIONAL_DATATYPE_CHAR,this.size.toString()])}}class Mo extends Io{size;constructor(e){super(),this.size=e}get hashCode(){return da([Oa.RELATIONAL_DATATYPE_VARBINARY,this.size.toString()])}}class Bo extends Io{precision;scale;constructor(e,t){super(),this.precision=e,this.scale=t}get hashCode(){return da([Oa.RELATIONAL_DATATYPE_DECIMAL,this.precision.toString(),this.scale.toString()])}}class jo extends Io{precision;scale;constructor(e,t){super(),this.precision=e,this.scale=t}get hashCode(){return da([Oa.RELATIONAL_DATATYPE_NUMERIC,this.precision.toString(),this.scale.toString()])}}class Uo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_TIMESTAMP])}}class Go extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_VARCHAR])}}class Vo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_BIT])}}class $o extends Io{size;constructor(e){super(),this.size=e}get hashCode(){return da([Oa.RELATIONAL_DATATYPE_BINARY,this.size.toString()])}}class Ho extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_REAL])}}class zo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_SEMISTRUCTURED])}}class Wo extends Io{get hashCode(){return da([Oa.RELATIONAL_DATATYPE_JSON])}}class Ko extends Ya{ownerReference;constructor(e){super(e),this.ownerReference=e}}class Yo extends Ko{value;constructor(e,t){super(e),this.value=t}get pointerHashCode(){return[Oa.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",this.value.schema.name,this.value.name].map(la).join(",")}get selfJoinPointerHashCode(){return[Oa.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",ho,po].map(la).join(",")}}class Jo extends Ko{value;constructor(e,t){super(e),this.value=t}get pointerHashCode(){return[Oa.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",this.value.schema.name,this.value.name].map(la).join(",")}get selfJoinPointerHashCode(){return[Oa.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",ho,po].map(la).join(",")}}const Xo=na((e=>((0,Oe.rC)(e,{packageableElementIncludes:Oe.LO,packageableElementExcludes:Oe.LO,hashCode:Oe.Fl}),e.packageableElementIncludes.forEach(ra),e.packageableElementExcludes.forEach(ra),e))),qo=(na((e=>(_d(e),(0,Oe.rC)(e,{schemaSet:Oe.LO,schemaId:Oe.LO,contentType:Oe.LO,modelUnit:Oe.LO,_elementHashCode:Oe.KG}),e.schemaSet&&ra(e.schemaSet),Xo(e.modelUnit),e))),na((e=>((0,Oe.rC)(e,{binding:Oe.LO,hashCode:Oe.Fl}),ra(e.binding),e)))),Zo=na((e=>((0,Oe.rC)(e,{url:Oe.LO,hashCode:Oe.Fl}),e))),Qo=(na((e=>(Qd(e),(0,Oe.rC)(e,{externalSource:Oe.LO,hashCode:Oe.Fl}),Zo(e.externalSource),e))),na((e=>(0,Oe.rC)(e,{id:Oe.LO,location:Oe.LO,content:Oe.LO,hashCode:Oe.Fl}))));na((e=>(ia(e),(0,Oe.rC)(e,{format:Oe.LO,schemas:Oe.LO,_elementHashCode:Oe.KG}),e.schemas.forEach(Qo),e)));class ec extends lo{content;get hashCode(){return da([Oa.INTERNAL__UNKNOWN_POST_PROCESSOR,Ra(this.content)])}}class tc extends Jr{content;get hashCode(){return da([Oa.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION,Ra(this.content)])}}class nc extends Br{content;get hashCode(){return da([Oa.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY,Ra(this.content)])}}const sc=na((e=>e instanceof Oo||e instanceof wo||e instanceof Ro||e instanceof ko||e instanceof Lo||e instanceof Fo||e instanceof Uo||e instanceof Date||e instanceof Go||e instanceof Vo||e instanceof Ho||e instanceof zo||e instanceof Wo?(0,Oe.rC)(e,{hashCode:Oe.Fl}):e instanceof Po||e instanceof Do||e instanceof Mo||e instanceof $o?(0,Oe.rC)(e,{size:Oe.LO,hashCode:Oe.Fl}):e instanceof Bo||e instanceof jo?(0,Oe.rC)(e,{precision:Oe.LO,scale:Oe.LO,hashCode:Oe.Fl}):e)),ic=na((e=>((0,Oe.rC)(e,{name:Oe.LO,type:Oe.LO,nullable:Oe.LO,hashCode:Oe.Fl}),sc(e.type),e))),ac=na((e=>((0,Oe.rC)(e,{value:Oe.LO,pointerHashCode:Oe.Fl,selfJoinPointerHashCode:Oe.Fl}),ra(e.ownerReference),e))),rc=na((e=>((0,Oe.rC)(e,{value:Oe.LO,pointerHashCode:Oe.Fl,selfJoinPointerHashCode:Oe.Fl}),ra(e.ownerReference),e))),oc=na((e=>((0,Oe.rC)(e,{relation:Oe.LO,name:Oe.LO,database:Oe.LO,isSelfJoinTarget:Oe.LO}),(e=>{e instanceof Jo?rc(e):e instanceof Yo&&ac(e)})(e.relation),e))),cc=na((e=>((0,Oe.rC)(e,{name:Oe.LO,parameters:Oe.LO,hashCode:Oe.Fl}),e.parameters.forEach(fc),e))),lc=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),ra(e.ownerReference),e))),dc=na((e=>((0,Oe.rC)(e,{alias:Oe.LO,column:Oe.LO,columnName:Oe.LO,hashCode:Oe.Fl}),oc(e.alias),lc(e.column),e))),uc=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),ra(e.ownerReference),e))),pc=na((e=>((0,Oe.rC)(e,{alias:Oe.LO,children:Oe.LO,joinType:Oe.LO,hashCode:Oe.Fl}),e.alias&&oc(e.alias),e.children.forEach(pc),uc(e.join),e))),hc=na((e=>((0,Oe.rC)(e,{relationalOperationElement:Oe.LO,joinTreeNode:Oe.LO,hashCode:Oe.Fl}),e.relationalOperationElement&&fc(e.relationalOperationElement),e.joinTreeNode&&pc(e.joinTreeNode),e))),gc=na((e=>((0,Oe.rC)(e,{value:Oe.LO,hashCode:Oe.Fl}),e.value instanceof go&&fc(e.value),e))),mc=na((e=>((0,Oe.rC)(e,{values:Oe.LO,hashCode:Oe.Fl}),e.values.forEach(gc),e)));function fc(e){return e instanceof _o?cc(e):e instanceof bo?oc(e):e instanceof To?dc(e):e instanceof No?ic(e):e instanceof vo?gc(e):e instanceof So?mc(e):e instanceof yo?hc(e):e}const _c=na((e=>e)),Ec=sa(((e,t)=>{if(e instanceof Ao)return _c(e);const n=t.plugins.flatMap((e=>e.getExtraMilestoningObservers?.()??[]));for(const s of n){const n=s(e,t);if(n)return n}return e})),Cc=na((e=>((0,Oe.rC)(e,{columnName:Oe.LO,relationalOperationElement:Oe.LO,hashCode:Oe.Fl}),fc(e.relationalOperationElement),e))),yc=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),ra(e.ownerReference),e))),bc=na((e=>((0,Oe.rC)(e,{joinTreeNode:Oe.LO,database:Oe.LO,filterName:Oe.LO,hashCode:Oe.Fl}),e.joinTreeNode&&pc(e.joinTreeNode),yc(e.filter),e))),Tc=na((e=>((0,Oe.rC)(e,{columns:Oe.LO}),e.columns.forEach(fc),e))),vc=e=>{(0,Oe.rC)(e,{columns:Oe.LO,name:Oe.LO})},Sc=sa(((e,t)=>(vc(e),(0,Oe.rC)(e,{primaryKey:Oe.LO,hashCode:Oe.Fl}),e.primaryKey.forEach(ic),e.milestoning.forEach((e=>Ec(e,t))),e))),Nc=sa(((e,t)=>(vc(e),(0,Oe.rC)(e,{primaryKey:Oe.LO,columnMappings:Oe.LO,filter:Oe.LO,distinct:Oe.LO,groupBy:Oe.LO,hashCode:Oe.Fl}),e.primaryKey.forEach(ic),e.columnMappings.forEach(Cc),e.filter&&bc(e.filter),e.groupBy&&Tc(e.groupBy),e))),xc=sa(((e,t)=>((0,Oe.rC)(e,{name:Oe.LO,tables:Oe.LO,views:Oe.LO,hashCode:Oe.Fl}),e.tables.forEach((e=>Sc(e,t))),e.views.forEach((e=>Nc(e,t))),e))),Ac=na((e=>((0,Oe.rC)(e,{name:Oe.LO,operation:Oe.LO,hashCode:Oe.Fl}),fc(e.operation),e))),Ic=na((e=>((0,Oe.rC)(e,{name:Oe.LO,target:Oe.LO,aliases:Oe.LO,operation:Oe.LO,hashCode:Oe.Fl}),e.target&&oc(e.target),fc(e.operation),e))),Oc=sa(((e,t)=>(ia(e),(0,Oe.rC)(e,{schemas:Oe.LO,joins:Oe.LO,filters:Oe.LO,_elementHashCode:Oe.KG}),e.schemas.forEach((e=>xc(e,t))),e.joins.forEach(Ic),e.filters.forEach(Ac),e))),wc=sa(((e,t)=>(Nd(e,t),(0,Oe.rC)(e,{transformer:Oe.LO,relationalOperation:Oe.LO.ref,bindingTransformer:Oe.LO,hashCode:Oe.Fl}),e.bindingTransformer&&qo(e.bindingTransformer),e))),Rc=(e,t)=>(Fd(e,t),Nd(e,t),(0,Oe.rC)(e,{id:Oe.LO,rootInstanceSetImplementation:Oe.LO,primaryKey:Oe.LO}),e.primaryKey.forEach(fc),e),kc=sa(Rc),Lc=sa(((e,t)=>(Rc(e,t),(0,Oe.rC)(e,{inlineSetImplementation:Oe.LO}),Vd(e.inlineSetImplementation,t),e))),Fc=sa(((e,t)=>(Rc(e,t),(0,Oe.rC)(e,{otherwisePropertyMapping:Oe.LO,hashCode:Oe.Fl}),Od(e.otherwisePropertyMapping,t),e))),Pc=sa(((e,t)=>(Fd(e,t),(0,Oe.rC)(e,{primaryKey:Oe.LO}),e.primaryKey.forEach(fc),e))),Dc=sa(((e,t)=>(Fd(e,t),(0,Oe.rC)(e,{columnMappings:Oe.LO,filter:Oe.LO,distinct:Oe.LO,groupBy:Oe.LO,mainTableAlias:Oe.LO,superSetImplementationId:Oe.LO,hashCode:Oe.Fl}),e.columnMappings.forEach(Cc),e.filter&&bc(e.filter),e.groupBy&&Tc(e.groupBy),e.mainTableAlias&&oc(e.mainTableAlias),e))),Mc=na((e=>((0,Oe.rC)(e,{data:Oe.LO,inputType:Oe.LO,hashCode:Oe.Fl}),ra(e.database),e))),Bc=na((e=>(0,Oe.rC)(e,{host:Oe.LO,port:Oe.LO,databaseName:Oe.LO,hashCode:Oe.Fl}))),jc=na((e=>(0,Oe.rC)(e,{hostname:Oe.LO,port:Oe.LO,protocol:Oe.LO,httpPath:Oe.LO,hashCode:Oe.Fl}))),Uc=na((e=>(0,Oe.rC)(e,{databaseName:Oe.LO,directory:Oe.LO,autoServerMode:Oe.LO,hashCode:Oe.Fl}))),Gc=na((e=>(0,Oe.rC)(e,{testDataSetupCsv:Oe.LO,testDataSetupSqls:Oe.LO,hashCode:Oe.Fl}))),Vc=na((e=>(0,Oe.rC)(e,{accountName:Oe.LO,region:Oe.LO,warehouseName:Oe.LO,databaseName:Oe.LO,cloudType:Oe.LO,quotedIdentifiersIgnoreCase:Oe.LO,enableQueryTags:Oe.LO,proxyHost:Oe.LO,proxyPort:Oe.LO,nonProxyHosts:Oe.LO,organization:Oe.LO,accountType:Oe.LO,role:Oe.LO,hashCode:Oe.Fl}))),$c=na((e=>(0,Oe.rC)(e,{databaseName:Oe.LO,endpointURL:Oe.LO,port:Oe.LO,region:Oe.LO,clusterID:Oe.LO,host:Oe.LO,hashCode:Oe.Fl}))),Hc=na((e=>(0,Oe.rC)(e,{projectId:Oe.LO,defaultDataset:Oe.LO,proxyHost:Oe.LO,proxyPort:Oe.LO,hashCode:Oe.Fl}))),zc=na((e=>(0,Oe.rC)(e,{projectId:Oe.LO,instanceId:Oe.LO,databaseId:Oe.LO,proxyHost:Oe.LO,proxyPort:Oe.LO,hashCode:Oe.Fl}))),Wc=na((e=>(0,Oe.rC)(e,{ssl:Oe.LO,trustStorePathVaultReference:Oe.LO,trustStorePasswordVaultReference:Oe.LO,hashCode:Oe.Fl}))),Kc=na((e=>((0,Oe.rC)(e,{host:Oe.LO,port:Oe.LO,catalog:Oe.LO,schema:Oe.LO,clientTags:Oe.LO,hashCode:Oe.Fl}),Wc(e.sslSpecification),e))),Yc=na((e=>(0,Oe.rC)(e,{content:Oe.LO.ref,hashCode:Oe.Fl}))),Jc=na((e=>(0,Oe.rC)(e,{serverPrincipal:Oe.LO,hashCode:Oe.Fl}))),Xc=na((e=>(0,Oe.rC)(e,{hashCode:Oe.Fl}))),qc=na((e=>(0,Oe.rC)(e,{apiToken:Oe.LO,hashCode:Oe.Fl}))),Zc=na((e=>(0,Oe.rC)(e,{oauthKey:Oe.LO,scopeName:Oe.LO,hashCode:Oe.Fl}))),Qc=na((e=>(0,Oe.rC)(e,{privateKeyVaultReference:Oe.LO,passPhraseVaultReference:Oe.LO,publicUserName:Oe.LO,hashCode:Oe.Fl}))),el=na((e=>(0,Oe.rC)(e,{hashCode:Oe.Fl}))),tl=na((e=>(0,Oe.rC)(e,{hashCode:Oe.Fl,userNameVaultReference:Oe.LO,passwordVaultReference:Oe.LO,baseVaultReference:Oe.LO}))),nl=na((e=>(0,Oe.rC)(e,{hashCode:Oe.Fl,serviceAccountEmail:Oe.LO,additionalGcpScopes:Oe.LO}))),sl=na((e=>(0,Oe.rC)(e,{hashCode:Oe.Fl,vaultReference:Oe.LO}))),il=na((e=>(0,Oe.rC)(e,{hashCode:Oe.Fl,kerberosRemoteServiceName:Oe.LO,kerberosUseCanonicalHostname:Oe.LO}))),al=na((e=>(0,Oe.rC)(e,{content:Oe.LO.ref,hashCode:Oe.Fl}))),rl=e=>{(0,Oe.rC)(e,{from:Oe.LO,to:Oe.LO,hashCode:Oe.Fl})},ol=na((e=>(rl(e),e))),cl=na((e=>(rl(e),(0,Oe.rC)(e,{schema:Oe.LO}),ol(e.schema),e))),ll=e=>{(0,Oe.rC)(e,{hashCode:Oe.Fl})},dl=(e,t)=>{if(e instanceof ec)return(e=>(ll(e),(0,Oe.rC)(e,{content:Oe.LO.ref}),e))(e);if(e instanceof uo)return(e=>(ll(e),(0,Oe.rC)(e,{mappers:Oe.LO}),e.mappers.forEach((e=>{(e=>{e instanceof oo?ol(e):e instanceof co&&cl(e)})(e)})),e))(e);const n=t.plugins.flatMap((e=>e.getExtraPostProcessorObservers?.()??[]));for(const s of n){const n=s(e,t);if(n)return n}return e},ul=sa(((e,t)=>((e=>{Qd(e),(0,Oe.rC)(e,{type:Oe.LO,timeZone:Oe.LO,quoteIdentifiers:Oe.LO})})(e),(0,Oe.rC)(e,{datasourceSpecification:Oe.LO,authenticationStrategy:Oe.LO,localMode:Oe.LO,postProcessors:Oe.LO,hashCode:Oe.Fl}),((e,t)=>{if(e instanceof tc)return Yc(e);if(e instanceof Xr)return Bc(e);if(e instanceof qr)return jc(e);if(e instanceof Zr)return Uc(e);if(e instanceof Qr)return Gc(e);if(e instanceof eo)return Vc(e);if(e instanceof to)return $c(e);if(e instanceof no)return Hc(e);if(e instanceof so)return zc(e);if(e instanceof io)return Kc(e);const n=t.plugins.flatMap((e=>e.getExtraDatasourceSpecificationObservers?.()??[]));for(const s of n){const n=s(e,t);if(n)return n}})(e.datasourceSpecification,t),((e,t)=>{if(e instanceof nc)return al(e);if(e instanceof jr)return Jc(e);if(e instanceof Ur)return Xc(e);if(e instanceof Gr)return qc(e);if(e instanceof Vr)return Zc(e);if(e instanceof $r)return Qc(e);if(e instanceof Hr)return el(e);if(e instanceof Wr)return tl(e);if(e instanceof zr)return nl(e);if(e instanceof Kr)return sl(e);if(e instanceof Yr)return il(e);const n=t.plugins.flatMap((e=>e.getExtraAuthenticationStrategyObservers?.()??[]));for(const s of n){const n=s(e,t);if(n)return n}})(e.authenticationStrategy,t),e.postProcessors.forEach((e=>{dl(e,t)})),e)));class pl{id}class hl extends pl{__parent;doc;assertions=[]}class gl extends pl{__parent;doc;tests=[];skip}class ml extends hl{storeTestData=[];get hashCode(){return da([Oa.MAPPING_TEST,this.id,this.doc??"",da(this.storeTestData),da(this.assertions)])}}class fl extends gl{func;get hashCode(){return da([Oa.MAPPING_TEST_SUITE,this.id,this.doc??"",this.func,da(this.tests)])}}class _l extends hl{serializationFormat;parameters=[];keys=[];get hashCode(){return da([Oa.SERVICE_TEST,this.id,da(this.assertions),da(this.parameters),da(this.keys),this.serializationFormat??""])}}class El extends gl{testData;get hashCode(){return da([Oa.SERVICE_TEST_SUITE,this.id,da(this.tests),this.testData??""])}}class Cl{id;parentTest}class yl extends Cl{expected;get hashCode(){return da([Oa.EQUAL_TO,this.id,Ra(this.expected)])}accept_TestAssertionVisitor(e){return e.visit_EqualTo(this)}}class bl extends Cl{expected;get hashCode(){return da([Oa.EQUAL_TO_JSON,this.id,this.expected])}accept_TestAssertionVisitor(e){return e.visit_EqualToJSON(this)}}class Tl extends Cl{expected;get hashCode(){return da([Oa.EQUAL_TO_TDS,this.id,this.expected])}accept_TestAssertionVisitor(e){return e.visit_EqualToTDS(this)}}class vl{}class Sl extends vl{dataElement;get hashCode(){return da([Oa.DATA_ELEMENT_REFERENCE,this.dataElement.valueForSerialization??""])}accept_EmbeddedDataVisitor(e){return e.visit_DataElementReference(this)}}class Nl extends vl{contentType;data;get hashCode(){return da([Oa.EXTERNAL_FORMAT_DATA,this.contentType,this.data])}accept_EmbeddedDataVisitor(e){return e.visit_ExternalFormatData(this)}}class xl{model}class Al extends xl{data;get hashCode(){return da([Oa.MODEL_EMBEDDED_DATA,this.model.valueForSerialization??"",this.data])}}class Il extends xl{instances;get hashCode(){return da([Oa.MODEL_INSTANCE_DATA,this.model.valueForSerialization??"",Ra(this.instances)])}}class Ol extends vl{modelData;get hashCode(){return da([Oa.MODEL_STORE_DATA,this.modelData?da(this.modelData):""])}accept_EmbeddedDataVisitor(e){return e.visit_ModelStoreData(this)}}class wl extends vl{tables=[];accept_EmbeddedDataVisitor(e){return e.visit_RelationalCSVData(this)}get hashCode(){return da([Oa.RELATIONAL_CSV_DATA_TABLE,da(this.tables)])}}class Rl extends vl{content;get hashCode(){return da([Oa.INTERNAL__UNKNOWN_EMBEDDED_DATA,Ra(this.content)])}accept_EmbeddedDataVisitor(e){return e.visit_INTERNAL__UnknownEmbeddedData(this)}}const kl=na((e=>((0,Oe.rC)(e,{contentType:Oe.LO,data:Oe.LO,hashCode:Oe.Fl}),e))),Ll=na((e=>((0,Oe.rC)(e,{dataElement:Oe.LO,hashCode:Oe.Fl}),e))),Fl=sa(((e,t)=>((0,Oe.rC)(e,{model:Oe.LO,data:Oe.LO,hashCode:Oe.Fl}),Gl(e.data,t),e))),Pl=sa(((e,t)=>((0,Oe.rC)(e,{model:Oe.LO,instances:Oe.LO,hashCode:Oe.Fl}),e))),Dl=sa(((e,t)=>(e instanceof Al?Fl(e,t):e instanceof Il&&Pl(e,t),e))),Ml=sa(((e,t)=>((0,Oe.rC)(e,{modelData:Oe.LO,hashCode:Oe.Fl}),e.modelData?.forEach((e=>{Dl(e,t)})),e))),Bl=na((e=>((0,Oe.rC)(e,{values:Oe.LO,table:Oe.LO,schema:Oe.LO,hashCode:Oe.Fl}),e))),jl=na((e=>((0,Oe.rC)(e,{tables:Oe.LO,hashCode:Oe.Fl}),e.tables.forEach(Bl),e))),Ul=na((e=>((0,Oe.rC)(e,{content:Oe.LO.ref}),e)));function Gl(e,t){if(e instanceof Rl)return Ul(e);if(e instanceof Sl)return Ll(e);if(e instanceof Nl)return kl(e);if(e instanceof Ol)return Ml(e,t);if(e instanceof wl)return jl(e);const n=t.plugins.flatMap((e=>e.getExtraEmbeddedDataObservers?.()??[]));for(const s of n){const n=s(e,t);if(n)return n}return e}const Vl=sa(((e,t)=>(ia(e),(0,Oe.rC)(e,{stereotypes:Oe.LO,taggedValues:Oe.LO,data:Oe.LO,_elementHashCode:Oe.KG}),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),Gl(e.data,t),e)));class $l{}class Hl extends $l{_OWNER;func;constructor(e,t){super(),this.func=e,this._OWNER=t}get hashCode(){return da([Oa.SERVICE_PURE_EXECUTION,this.func])}}class zl extends Hl{mapping;runtime;constructor(e,t,n,s){super(e,t),this.mapping=n,this.runtime=s}get hashCode(){return da([Oa.SERVICE_PURE_SINGLE_EXECUTION,super.hashCode,this.mapping?.valueForSerialization??"",this.runtime??""])}}class Wl extends Hl{executionKey;executionParameters=[];constructor(e,t,n){super(t,n),this.executionKey=e}get hashCode(){return da([Oa.SERVICE_PURE_MULTI_EXECUTION,super.hashCode,this.executionKey,da(this.executionParameters)])}}class Kl{_OWNER;constructor(e){this._OWNER=e}}class Yl extends Kl{data;asserts=[];constructor(e,t){super(e),this.data=t}get hashCode(){return da([Oa.SERVICE_LEGACY_SINGLE_EXECUTION_TEST,this.data,da(this.asserts)])}}class Jl extends Kl{tests=[];get hashCode(){return da([Oa.SERVICE_LEGACY_MULTI_EXECUTION_TEST,da(this.tests)])}}const Xl=sa(((e,t)=>((0,Oe.rC)(e,{connectionId:Oe.LO,testData:Oe.LO,hashCode:Oe.Fl}),Gl(e.testData,t),e))),ql=na((e=>((0,Oe.rC)(e,{name:Oe.LO,value:Oe.LO.ref,hashCode:Oe.Fl}),e))),Zl=na((e=>((0,Oe.rC)(e,{assertion:Oe.LO,hashCode:Oe.Fl,id:Oe.LO}),fr(e.assertion),e))),Ql=na((e=>((0,Oe.rC)(e,{assertions:Oe.LO,description:Oe.LO,parameters:Oe.LO,hashCode:Oe.Fl}),e.assertions.forEach(Zl),e.parameters.forEach(fr),e))),ed=sa(((e,t)=>((0,Oe.rC)(e,{connectionsTestData:Oe.LO,hashCode:Oe.Fl}),e.connectionsTestData.forEach((e=>Xl(e,t))),e))),td=na((e=>((0,Oe.rC)(e,{id:Oe.LO,serializationFormat:Oe.LO,assertions:Oe.LO,parameters:Oe.LO,keys:Oe.LO,hashCode:Oe.Fl}),e.parameters.forEach(ql),e.assertions.forEach(fd),e))),nd=sa(((e,t)=>((0,Oe.rC)(e,{id:Oe.LO,tests:Oe.LO,testData:Oe.LO,hashCode:Oe.Fl}),e.tests.forEach((e=>md(e,t))),e.testData&&ed(e.testData,t),e))),sd=na((e=>((0,Oe.rC)(e,{parametersValues:Oe.LO,assert:Oe.LO,singleExecutionTestParent:Oe.LO,hashCode:Oe.Fl}),fr(e.assert),e))),id=na((e=>((0,Oe.rC)(e,{data:Oe.LO,asserts:Oe.LO,hashCode:Oe.Fl}),e.asserts.forEach(sd),e))),ad=na((e=>(id(e),(0,Oe.rC)(e,{key:Oe.LO}),e))),rd=na((e=>((0,Oe.rC)(e,{tests:Oe.LO,hashCode:Oe.Fl}),e.tests.forEach(ad),e))),od=e=>{(0,Oe.rC)(e,{func:Oe.LO}),fr(e.func)},cd=sa(((e,t)=>(od(e),(0,Oe.rC)(e,{runtime:Oe.LO,hashCode:Oe.Fl}),e.mapping&&ra(e.mapping),e.runtime&&pu(e.runtime,t),e))),ld=sa(((e,t)=>((0,Oe.rC)(e,{key:Oe.LO,runtime:Oe.LO,hashCode:Oe.Fl}),ra(e.mapping),pu(e.runtime,t),e))),dd=sa(((e,t)=>(od(e),(0,Oe.rC)(e,{executionKey:Oe.LO,executionParameters:Oe.LO,hashCode:Oe.Fl}),e.executionParameters.forEach((e=>ld(e,t))),e))),ud=sa(((e,t)=>(ia(e),(0,Oe.rC)(e,{pattern:Oe.LO,owners:Oe.LO,documentation:Oe.LO,autoActivateUpdates:Oe.LO,execution:Oe.LO,test:Oe.LO,tests:Oe.LO,postValidations:Oe.LO,patternParameters:Oe.Fl,_elementHashCode:Oe.KG}),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),((e,t)=>{e instanceof zl?cd(e,t):e instanceof Wl&&dd(e,t)})(e.execution,t),e.test&&(e=>{e instanceof Yl?id(e):e instanceof Jl&&rd(e)})(e.test),e.tests.forEach((e=>nd(e,t))),e.postValidations.forEach((e=>Ql(e))),e))),pd=na((e=>((0,Oe.rC)(e,{id:Oe.LO,expected:Oe.LO,hashCode:Oe.Fl}),e))),hd=na((e=>((0,Oe.rC)(e,{id:Oe.LO,expected:Oe.LO,hashCode:Oe.Fl}),kl(e.expected),e))),gd=na((e=>((0,Oe.rC)(e,{id:Oe.LO,expected:Oe.LO,hashCode:Oe.Fl}),kl(e.expected),e)));function md(e,t){if(e instanceof _l)return td(e);if(e instanceof ml)return yd(e,t);const n=t.plugins.flatMap((e=>e.getExtraAtomicTestObservers?.()??[]));for(const s of n){const n=s(e,t);if(n)return n}return e}function fd(e){return e instanceof yl?pd(e):e instanceof bl?gd(e):e instanceof Tl?hd(e):e}const _d=e=>{ia(e),(0,Oe.rC)(e,{includes:Oe.LO}),e.includes.forEach(ra)},Ed=na((e=>(ia(e),(0,Oe.rC)(e,{content:Oe.LO.ref}),e))),Cd=sa(((e,t)=>((0,Oe.rC)(e,{store:Oe.LO,data:Oe.LO,hashCode:Oe.Fl}),Gl(e.data,t),e))),yd=sa(((e,t)=>((0,Oe.rC)(e,{id:Oe.LO,assertions:Oe.LO,doc:Oe.LO,storeTestData:Oe.LO,hashCode:Oe.Fl}),e.assertions.forEach(fd),e.storeTestData.forEach((e=>Cd(e,t))),e))),bd=sa(((e,t)=>((0,Oe.rC)(e,{id:Oe.LO,tests:Oe.LO,func:Oe.LO,hashCode:Oe.Fl}),e.tests.forEach((e=>md(e,t))),fr(e.func),e))),Td=na((e=>((0,Oe.rC)(e,{value:Oe.LO,valueForSerialization:Oe.Fl}),ra(e.ownerReference),e))),vd=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),ra(e.ownerReference),e))),Sd=na((e=>((0,Oe.rC)(e,{localMappingProperty:Oe.LO,localMappingPropertyType:Oe.LO,localMappingPropertyMultiplicity:Oe.LO,hashCode:Oe.Fl}),ra(e.localMappingPropertyType),e))),Nd=(e,t)=>{(0,Oe.rC)(e,{sourceSetImplementation:Oe.LO,targetSetImplementation:Oe.LO}),Pu(e.property),vd(e.sourceSetImplementation),e.targetSetImplementation&&vd(e.targetSetImplementation),e.localMappingProperty&&Sd(e.localMappingProperty)},xd=sa(((e,t)=>(Nd(e,t),(0,Oe.rC)(e,{transformer:Oe.LO,transform:Oe.LO,explodeProperty:Oe.LO,hashCode:Oe.Fl}),e.transformer&&Td(e.transformer),fr(e.transform),e))),Ad=na((e=>(0,Oe.rC)(e,{content:Oe.LO.ref})));class Id{observerContext;constructor(e){this.observerContext=e}visit_PropertyMapping(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraPropertyMappingObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownPropertyMapping(e){Ad(e)}visit_PurePropertyMapping(e){xd(e,this.observerContext)}visit_FlatDataPropertyMapping(e){Pr(e,this.observerContext)}visit_EmbeddedFlatDataPropertyMapping(e){Fr(e,this.observerContext)}visit_RelationalPropertyMapping(e){wc(e,this.observerContext)}visit_FlatDataAssociationPropertyMapping(e){Nr(e,this.observerContext)}visit_EmbeddedRelationalPropertyMapping(e){kc(e,this.observerContext)}visit_InlineEmbeddedRelationalPropertyMapping(e){Lc(e,this.observerContext)}visit_OtherwiseEmbeddedRelationalPropertyMapping(e){Fc(e,this.observerContext)}visit_AggregationAwarePropertyMapping(e){}visit_XStorePropertyMapping(e){}}const Od=(e,t)=>(e.accept_PropertyMappingVisitor(new Id(t)),e),wd=na((e=>(0,Oe.rC)(e,{isDefault:Oe.Fl,valueForSerialization:Oe.Fl}))),Rd=na((e=>(0,Oe.rC)(e,{valueForSerialization:Oe.Fl}))),kd=e=>{(0,Oe.rC)(e,{root:Oe.LO}),ra(e.class),wd(e.id),Rd(e.root)},Ld=na((e=>((0,Oe.rC)(e,{setImplementation:Oe.LO,class:Oe.LO,properties:Oe.LO}),e))),Fd=(e,t)=>{kd(e),(0,Oe.rC)(e,{mappingClass:Oe.LO,propertyMappings:Oe.LO}),e.mappingClass&&Ld(e.mappingClass),e.propertyMappings.forEach((e=>Od(e,t)))},Pd=na((e=>((0,Oe.rC)(e,{}),vd(e.setImplementation),e))),Dd=e=>{kd(e),(0,Oe.rC)(e,{parameters:Oe.LO,operation:Oe.LO,hashCode:Oe.Fl}),e.parameters.forEach(Pd)},Md=na((e=>(Dd(e),e))),Bd=na((e=>(Dd(e),(0,Oe.rC)(e,{validationFunction:Oe.LO}),fr(e.validationFunction),e))),jd=sa(((e,t)=>(Fd(e,t),(0,Oe.rC)(e,{filter:Oe.LO,hashCode:Oe.Fl}),e.srcClass&&ra(e.srcClass),e.filter&&fr(e.filter),e))),Ud=na((e=>(kd(e),(0,Oe.rC)(e,{content:Oe.LO.ref}),e)));class Gd{observerContext;constructor(e){this.observerContext=e}visit_SetImplementation(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraSetImplementationObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownSetImplementation(e){Ud(e)}visit_MergeOperationSetImplementation(e){Bd(e)}visit_OperationSetImplementation(e){Md(e)}visit_PureInstanceSetImplementation(e){jd(e,this.observerContext)}visit_FlatDataInstanceSetImplementation(e){Lr(e,this.observerContext)}visit_EmbeddedFlatDataSetImplementation(e){}visit_RelationalInstanceSetImplementation(e){Pc(e,this.observerContext)}visit_RootRelationalInstanceSetImplementation(e){Dc(e,this.observerContext)}visit_AggregationAwareSetImplementation(e){}visit_INTERNAL__UnresolvedSetImplementation(e){}}const Vd=(e,t)=>(e.accept_SetImplementationVisitor(new Gd(t)),e),$d=na((e=>((0,Oe.rC)(e,{original:Oe.LO,substitute:Oe.LO}),ra(e.original),ra(e.substitute),e))),Hd=na((e=>e instanceof nr?((0,Oe.rC)(e,{included:Oe.LO,storeSubstitutions:Oe.LO}),ra(e.included),e.storeSubstitutions.forEach($d),e):e)),zd=na((e=>(0,Oe.rC)(e,{value:Oe.LO}))),Wd=na((e=>((0,Oe.rC)(e,{sourceValues:Oe.LO,hashCode:Oe.Fl}),Ou(e.enum),e.sourceValues.forEach(zd),e))),Kd=na((e=>((0,Oe.rC)(e,{sourceType:Oe.LO,enumValueMappings:Oe.LO,hashCode:Oe.Fl}),ra(e.enumeration),wd(e.id),e.sourceType&&ra(e.sourceType),e.enumValueMappings.forEach(Wd),e))),Yd=sa(((e,t)=>((0,Oe.rC)(e,{id:Oe.LO,stores:Oe.LO,propertyMappings:Oe.LO,hashCode:Oe.Fl}),ra(e.association),wd(e.id),e.stores.forEach(ra),e.propertyMappings.forEach((e=>Od(e,t))),e))),Jd=na((e=>((0,Oe.rC)(e,{inputType:Oe.LO,data:Oe.LO,hashCode:Oe.Fl}),ra(e.sourceClass),e))),Xd=na((e=>(0,Oe.rC)(e,{expectedOutput:Oe.LO,hashCode:Oe.Fl}))),qd=sa(((e,t)=>((0,Oe.rC)(e,{name:Oe.LO,query:Oe.LO,inputData:Oe.LO,assert:Oe.LO,hashCode:Oe.Fl}),fr(e.query),e.inputData.forEach((e=>((e,t)=>{if(e instanceof lr)return Jd(e);if(e instanceof dr)return Dr(e);if(e instanceof ur)return Mc(e);const n=t.plugins.flatMap((e=>e.getExtraMappingTestInputDataObservers?.()??[]));for(const s of n){const n=s(e,t);if(n)return n}return e})(e,t))),((e,t)=>{e instanceof ir&&Xd(e)})(e.assert),e))),Zd=sa(((e,t)=>(ia(e),(0,Oe.rC)(e,{includes:Oe.LO,classMappings:Oe.LO,enumerationMappings:Oe.LO,associationMappings:Oe.LO,test:Oe.LO,tests:Oe.LO,_elementHashCode:Oe.KG}),e.includes.forEach(Hd),e.classMappings.forEach((e=>Vd(e,t))),e.enumerationMappings.forEach(Kd),e.associationMappings.forEach((e=>Yd(e,t))),e.test.forEach((e=>qd(e,t))),e.tests.forEach((e=>function(e,t){return e instanceof El?nd(e,t):e instanceof fl?bd(e,t):e}(e,t))),e))),Qd=e=>{(0,Oe.rC)(e,{store:Oe.LO}),ra(e.store)},eu=na((e=>(Qd(e),(0,Oe.rC)(e,{hashCode:Oe.Fl}),e))),tu=na((e=>(Qd(e),(0,Oe.rC)(e,{url:Oe.LO,hashCode:Oe.Fl}),ra(e.class),e))),nu=na((e=>(Qd(e),(0,Oe.rC)(e,{url:Oe.LO,hashCode:Oe.Fl}),ra(e.class),e))),su=na((e=>(Qd(e),(0,Oe.rC)(e,{mappings:Oe.LO,hashCode:Oe.Fl}),e.mappings.forEach(ra),e))),iu=na((e=>(Qd(e),(0,Oe.rC)(e,{content:Oe.LO.ref,hashCode:Oe.Fl}),e)));class au{observerContext;constructor(e){this.observerContext=e}visit_Connection(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraConnectionObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownConnection(e){iu(e)}visit_ConnectionPointer(e){eu(e)}visit_ModelChainConnection(e){su(e)}visit_JsonModelConnection(e){tu(e)}visit_XmlModelConnection(e){nu(e)}visit_FlatDataConnection(e){Mr(e)}visit_RelationalDatabaseConnection(e){ul(e,this.observerContext)}}const ru=(e,t)=>(e.accept_ConnectionVisitor(new au(t)),e),ou=sa(((e,t)=>(ia(e),(0,Oe.rC)(e,{connectionValue:Oe.LO,_elementHashCode:Oe.KG}),ru(e.connectionValue,t),e))),cu=sa(((e,t)=>((0,Oe.rC)(e,{id:Oe.LO,connection:Oe.LO,hashCode:Oe.Fl}),ru(e.connection,t),e))),lu=sa(((e,t)=>((0,Oe.rC)(e,{storeConnections:Oe.LO,hashCode:Oe.Fl}),ra(e.store),e.storeConnections.forEach((e=>cu(e,t))),e))),du=sa(((e,t)=>((0,Oe.rC)(e,{mappings:Oe.LO,connections:Oe.LO,hashCode:Oe.Fl}),e.mappings.forEach(ra),e.connections.forEach((e=>lu(e,t))),e))),uu=na((e=>((0,Oe.rC)(e,{hashCode:Oe.Fl}),ra(e.packageableRuntime),e))),pu=(e,t)=>e instanceof gr?uu(e):e instanceof hr?du(e,t):e,hu=sa(((e,t)=>(ia(e),(0,Oe.rC)(e,{runtimeValue:Oe.LO,_elementHashCode:Oe.KG}),du(e.runtimeValue,t),e))),gu=sa(((e,t)=>(ia(e),(0,Oe.rC)(e,{_elementHashCode:Oe.KG}),e)));class mu{observerContext;constructor(e){this.observerContext=e}visit_PackageableElement(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraElementObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownPackageableElement(e){aa(e)}visit_INTERNAL__UnknownFunctionActivator(e){Uu(e)}visit_INTERNAL__UnknownStore(e){Ed(e)}visit_Package(e){_u(e,this.observerContext)}visit_SectionIndex(e){Su(e)}visit_PrimitiveType(e){}visit_Profile(e){Au(e)}visit_Enumeration(e){wu(e)}visit_Measure(e){ku(e)}visit_Class(e){Mu(e)}visit_Association(e){Bu(e)}visit_ConcreteFunctionDefinition(e){ju(e)}visit_FlatData(e){Rr(e)}visit_Database(e){Oc(e,this.observerContext)}visit_Mapping(e){Zd(e,this.observerContext)}visit_Service(e){ud(e,this.observerContext)}visit_ExecutionEnvironmentInstance(e){gu(e,this.observerContext)}visit_PackageableRuntime(e){hu(e,this.observerContext)}visit_PackageableConnection(e){ou(e,this.observerContext)}visit_FileGenerationSpecification(e){Za(e)}visit_GenerationSpecification(e){er(e)}visit_DataElement(e){Vl(e,this.observerContext)}}const fu=sa(((e,t)=>(e.accept_PackageableElementVisitor(new mu(t)),e))),_u=sa(((e,t)=>((e=>{ia(e),(0,Oe.rC)(e,{children:Oe.LO,hashCode:Oe.KG})})(e),e.children.forEach((e=>{e instanceof $a?_u(e,t):fu(e,t)})),e))),Eu=na((e=>((0,Oe.rC)(e,{value:Oe.LO,pointerHashCode:Oe.Fl}),ra(e.ownerReference),e))),Cu=na((e=>((0,Oe.rC)(e,{value:Oe.LO,pointerHashCode:Oe.Fl}),e))),yu=na((e=>((0,Oe.rC)(e,{value:Oe.LO,hashCode:Oe.Fl}),Cu(e.tag),e))),bu=na((e=>(0,Oe.rC)(e,{rawType:Oe.LO}))),Tu=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),bu(e.value),ra(e.ownerReference),e))),vu=na((e=>((0,Oe.rC)(e,{parserName:Oe.LO,elements:Oe.LO}),e instanceof za?(0,Oe.rC)(e,{imports:Oe.LO,hashCode:Oe.Fl}):e instanceof Wa&&(0,Oe.rC)(e,{hashCode:Oe.Fl}),e))),Su=na((e=>(ia(e),(0,Oe.rC)(e,{sections:Oe.LO,_elementHashCode:Oe.KG}),e.sections.forEach(vu),e))),Nu=na((e=>(0,Oe.rC)(e,{value:Oe.LO}))),xu=na((e=>(0,Oe.rC)(e,{value:Oe.LO}))),Au=na((e=>(ia(e),(0,Oe.rC)(e,{p_stereotypes:Oe.LO,p_tags:Oe.LO,_elementHashCode:Oe.KG}),e.p_stereotypes.forEach(Nu),e.p_tags.forEach(xu),e))),Iu=na((e=>((0,Oe.rC)(e,{name:Oe.LO,stereotypes:Oe.LO,taggedValues:Oe.LO,hashCode:Oe.Fl}),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),e))),Ou=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),ra(e.ownerReference),e))),wu=na((e=>(ia(e),(0,Oe.rC)(e,{values:Oe.LO,stereotypes:Oe.LO,taggedValues:Oe.LO,_elementHashCode:Oe.KG}),e.values.forEach(Iu),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),e))),Ru=na((e=>((0,Oe.rC)(e,{measure:Oe.LO,conversionFunction:Oe.LO,hashCode:Oe.Fl}),e.conversionFunction&&fr(e.conversionFunction),e))),ku=na((e=>(ia(e),(0,Oe.rC)(e,{canonicalUnit:Oe.LO,nonCanonicalUnits:Oe.LO,_elementHashCode:Oe.KG}),e.canonicalUnit&&Ru(e.canonicalUnit),e.nonCanonicalUnits.forEach(Ru),e))),Lu=na((e=>((0,Oe.rC)(e,{name:Oe.LO,multiplicity:Oe.LO,aggregation:Oe.LO,stereotypes:Oe.LO,taggedValues:Oe.LO,hashCode:Oe.Fl}),Tu(e.genericType),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),e))),Fu=na((e=>((0,Oe.rC)(e,{name:Oe.LO,multiplicity:Oe.LO,stereotypes:Oe.LO,taggedValues:Oe.LO,body:Oe.LO.ref,parameters:Oe.LO.ref,hashCode:Oe.Fl}),Tu(e.genericType),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),e))),Pu=na((e=>((0,Oe.rC)(e,{value:Oe.LO,pointerHashCode:Oe.Fl}),ra(e.ownerReference),e))),Du=na((e=>((0,Oe.rC)(e,{name:Oe.LO,functionDefinition:Oe.LO,externalId:Oe.LO,enforcementLevel:Oe.LO,messageFunction:Oe.LO,hashCode:Oe.Fl}),fr(e.functionDefinition),e.messageFunction&&fr(e.messageFunction),e))),Mu=na((e=>(ia(e),(0,Oe.rC)(e,{_subclasses:Oe.LO,properties:Oe.LO,propertiesFromAssociations:Oe.LO,derivedProperties:Oe.LO,generalizations:Oe.LO,constraints:Oe.LO,stereotypes:Oe.LO,taggedValues:Oe.LO,dispose:Oe.KG,_elementHashCode:Oe.KG}),e.properties.forEach(Lu),e.propertiesFromAssociations.forEach(Lu),e.derivedProperties.forEach(Fu),e.generalizations.forEach(Tu),e.constraints.forEach(Du),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),e))),Bu=na((e=>(ia(e),(0,Oe.rC)(e,{properties:Oe.LO,stereotypes:Oe.LO,taggedValues:Oe.LO,derivedProperties:Oe.LO,dispose:Oe.KG,_elementHashCode:Oe.KG}),e.properties.forEach(Lu),e.derivedProperties.forEach(Fu),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),e))),ju=na((e=>(ia(e),(0,Oe.rC)(e,{functionName:Oe.LO,returnMultiplicity:Oe.LO,parameters:Oe.LO.shallow,expressionSequence:Oe.LO.ref,stereotypes:Oe.LO,taggedValues:Oe.LO,_elementHashCode:Oe.KG}),e.parameters.forEach(_r),ra(e.returnType),e.stereotypes.forEach(Eu),e.taggedValues.forEach(yu),e))),Uu=na((e=>(ia(e),(0,Oe.rC)(e,{content:Oe.LO.ref}),e))),Gu=na((e=>e instanceof Ua?wu(e):e instanceof Ga?Ru(e):e instanceof Ba?Mu(e):e instanceof Va?ku(e):e)),Vu=(na((e=>e instanceof Ua?wu(e):e instanceof Ga?Ru(e):e)),na((e=>(0,Oe.rC)(e,{_dummyObservable:Oe.LO})))),$u=na((e=>((0,Oe.rC)(e,{value:Oe.LO}),ra(e.ownerReference),e))),Hu=na((e=>(Vu(e),(0,Oe.rC)(e,{id:Oe.LO,hideProperties:Oe.LO,hideTaggedValues:Oe.LO,hideStereotypes:Oe.LO,hashCode:Oe.Fl}),ra(e.class),e))),zu=na((e=>($u(e.classView),e))),Wu=na((e=>((0,Oe.rC)(e,{path:Oe.LO,pathForSerialization:Oe.Fl}),zu(e.from),zu(e.to),e))),Ku=na((e=>(Wu(e),(0,Oe.rC)(e,{hashCode:Oe.Fl}),e))),Yu=na((e=>(Wu(e),(0,Oe.rC)(e,{hashCode:Oe.Fl}),Pu(e.property),ra(e.association),e))),Ju=na((e=>(Wu(e),(0,Oe.rC)(e,{hashCode:Oe.Fl}),Pu(e.property),e))),Xu=na((e=>(ia(e),(0,Oe.rC)(e,{classViews:Oe.LO,associationViews:Oe.LO,generalizationViews:Oe.LO,propertyViews:Oe.LO,_elementHashCode:Oe.KG}),e.classViews.forEach(Hu),e.associationViews.forEach(Yu),e.generalizationViews.forEach(Ku),e.propertyViews.forEach(Ju),e)));var qu;!function(e){e.DIAGRAM="DIAGRAM",e.CLASS_VIEW="CLASS_VIEW",e.PROPERTY_VIEW="PROPERTY_VIEW",e.ASSOCIATION_VIEW="ASSOCIATION_VIEW",e.PROPERTY_HOLDER_VIEW="PROPERTY_HOLDER_VIEW",e.GENERALIZATION_VIEW="GENERALIZATION_VIEW",e.RELATIONSHIP_VIEW="RELATIONSHIP_VIEW",e.POINT="POINT",e.RECTANGLE="RECTANGLE",e.POSITIONED_RECTANGLE="POSITIONED_RECTANGLE"}(qu||(qu={}));class Zu extends Da{classViews=[];associationViews=[];generalizationViews=[];propertyViews=[];get _elementHashCode(){return da([qu.DIAGRAM,this.path,da(this.classViews),da(this.generalizationViews),da(this.propertyViews)])}accept_PackageableElementVisitor(e){return e.visit_PackageableElement(this)}}class Qu extends ta{constructor(){super(ea.Rw.LW,ea.i8)}getExtraElementObservers(){return[(e,t)=>{if(e instanceof Zu)return Xu(e)}]}}class ep{package;name;get path(){return`${this.package}${ua}${this.name}`}get hashCode(){return da([Oa.PACKAGEABLE_ELEMENT,this.path])}}class tp extends ep{classViews=[];propertyViews=[];generalizationViews=[];get hashCode(){return da([qu.DIAGRAM,this.path,da(this.classViews),da(this.generalizationViews),da(this.propertyViews)])}accept_PackageableElementVisitor(e){return e.visit_PackageableElement(this)}}class np{rectangle;position;get hashCode(){return da([qu.POSITIONED_RECTANGLE,this.position,this.rectangle])}}class sp extends np{id;class;hideProperties;hideTaggedValues;hideStereotypes;get hashCode(){return da([qu.CLASS_VIEW,super.hashCode,this.id,this.class,this.hideProperties?.toString()??"",this.hideTaggedValues?.toString()??"",this.hideStereotypes?.toString()??""])}}class ip{x;y;get hashCode(){return da([qu.POINT,this.x.toString(),this.y.toString()])}}class ap{width;height;get hashCode(){return da([qu.RECTANGLE,this.width.toString(),this.height.toString()])}}class rp{points=[]}class op{sourceView;targetView;line;get hashCode(){return da([qu.RELATIONSHIP_VIEW,this.sourceView,this.targetView,da(this.line.points)])}}class cp extends op{property;get hashCode(){return da([qu.PROPERTY_HOLDER_VIEW,super.hashCode,this.property])}}class lp extends cp{get hashCode(){return da([qu.PROPERTY_VIEW,super.hashCode])}}class dp extends op{get hashCode(){return da([qu.GENERALIZATION_VIEW,super.hashCode])}}class up{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return da([Oa.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new up(0,0);static ZERO_ONE=new up(0,1);static ZERO_MANY=new up(0,void 0);static ONE=new up(1,1);static ONE_MANY=new up(1,void 0)}const pp=new me((0,ge.yu)(class{sourceId;startLine;startColumn;endLine;endColumn},{sourceId:(0,ge.Ru)(),startLine:(0,ge.Ru)(),startColumn:(0,ge.Ru)(),endLine:(0,ge.Ru)(),endColumn:(0,ge.Ru)()}));class hp{package;name;sourceInformation;static serialization=new me((0,ge.yu)(hp,{package:(0,ge.Ru)(),name:(0,ge.Ru)(),sourceInformation:Ee(pp.schema)}))}(0,ge.yu)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return da([Oa.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,ge.Ru)(),type:(0,ge.jt)((0,ge.Ru)())});const gp=(0,ge.yu)(up,{lowerBound:(0,ge.Ru)(),upperBound:(0,ge.jt)((0,ge.Ru)())});class mp{class;property;get hashCode(){return da([Oa.PROPERTY_POINTER,this.property,this.class??""])}}class fp{}class _p{queryTimeOutInSeconds=null;enableConstraints=!0}var Ep,Cp;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext"}(Ep||(Ep={})),function(e){e.LAMBDA="lambda",e.VARIABLE="var",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate"}(Cp||(Cp={})),(0,ge.yu)(class extends _p{},{_type:_e(Ep.BASE_EXECUTION_CONTEXT),queryTimeOutInSeconds:(0,ge.Ru)(),enableConstraints:(0,ge.Ru)()});const yp=(0,ge.yu)(class extends fp{body;parameters;get hashCode(){return da([Oa.RAW_LAMBDA,ka(this.parameters,this.body)])}accept_RawValueSpecificationVisitor(e){return e.visit_Lambda(this)}},{_type:_e(Cp.LAMBDA),body:(0,ge.LZ)(),parameters:(0,ge.LZ)()}),bp=(0,ge.yu)(class extends fp{class;name;multiplicity;get hashCode(){return da([Oa.RAW_VARIABLE,this.class,this.name,this.multiplicity])}accept_RawValueSpecificationVisitor(e){return e.visit_Variable(this)}},{_type:_e(Cp.VARIABLE),class:(0,ge.Ru)(),multiplicity:fe(gp),name:(0,ge.Ru)()});(0,ge.yu)(class extends fp{multiplicity=up.ONE;type;value;get hashCode(){return da([Oa.RAW_INSTANCE_VALUE,this.type,this.multiplicity,this.value??""])}accept_RawValueSpecificationVisitor(e){return e.visit_PrimitiveInstanceValue(this)}},{type:(0,ge.bm)("_type",(0,ge.PG)((e=>{switch(e){case ma.INTEGER:return Cp.CINTEGER;case ma.DECIMAL:return Cp.CDECIMAL;case ma.STRING:return Cp.CSTRING;case ma.BOOLEAN:return Cp.CBOOLEAN;case ma.FLOAT:return Cp.CFLOAT;case ma.DATETIME:return Cp.CDATETIME;case ma.STRICTDATE:return Cp.CSTRICTDATE;case ma.STRICTTIME:return Cp.CSTRICTTIME;case ma.LATESTDATE:return Cp.CLATESTDATE;default:throw new F(`Can't serialize raw instance value type '${e}'`)}}),(e=>{switch(e){case Cp.CINTEGER:return ma.INTEGER;case Cp.CDECIMAL:return ma.DECIMAL;case Cp.CSTRING:return ma.STRING;case Cp.CBOOLEAN:return ma.BOOLEAN;case Cp.CFLOAT:return ma.FLOAT;case Cp.CDATETIME:return ma.DATETIME;case Cp.CSTRICTDATE:return ma.STRICTDATE;case Cp.CSTRICTTIME:return ma.STRICTTIME;case Cp.CLATESTDATE:return ma.LATESTDATE;default:throw new F(`Can't deserialize raw value instance value type '${e}'`)}}))),value:(0,ge.jt)((0,ge.Ru)())});class Tp extends ep{function}const vp=(0,ge.yu)(mp,{class:(0,ge.jt)((0,ge.Ru)()),property:(0,ge.Ru)()}),Sp=(0,ge.yu)(class{profile;value;get hashCode(){return da([Oa.STEREOTYPE_POINTER,this.value,this.profile])}},{profile:(0,ge.Ru)(),value:(0,ge.Ru)()}),Np=(0,ge.yu)(class{profile;value;get hashCode(){return da([Oa.TAG_POINTER,this.value,this.profile])}},{profile:(0,ge.Ru)(),value:(0,ge.Ru)()}),xp=(0,ge.yu)(class{tag;value;get hashCode(){return da([Oa.TAGGED_VALUE,this.tag,this.value])}},{tag:fe(Np),value:(0,ge.Ru)()}),Ap=((0,ge.yu)(class extends ep{stereotypes=[];tags=[];get hashCode(){return da([Oa.PROFILE,this.path,da(this.stereotypes),da(this.tags)])}accept_PackageableElementVisitor(e){return e.visit_Profile(this)}},{_type:_e("profile"),name:(0,ge.Ru)(),package:(0,ge.Ru)(),stereotypes:(0,ge.pb)((0,ge.Ru)()),tags:(0,ge.pb)((0,ge.Ru)())}),(0,ge.yu)(class{value;stereotypes=[];taggedValues=[];get hashCode(){return da([Oa.ENUM_VALUE,this.value,da(this.stereotypes),da(this.taggedValues)])}},{stereotypes:be(Sp,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:be(xp,{INTERNAL__forceReturnEmptyInTest:!0}),value:(0,ge.Ru)()})),Ip=((0,ge.yu)(class extends ep{values=[];stereotypes=[];taggedValues=[];get hashCode(){return da([Oa.ENUMERATION,this.path,da(this.values),da(this.stereotypes),da(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Enumeration(this)}},{_type:_e("Enumeration"),name:(0,ge.Ru)(),package:(0,ge.Ru)(),stereotypes:be(Sp,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:be(xp,{INTERNAL__forceReturnEmptyInTest:!0}),values:(0,ge.pb)(fe(Ap))}),(0,ge.yu)(class extends ep{measure;conversionFunction;get hashCode(){return da([Oa.UNIT,this.measure,this.conversionFunction??""])}accept_PackageableElementVisitor(e){throw new F}},{_type:_e("unit"),conversionFunction:(0,ge.jt)(fe(yp)),measure:(0,ge.Ru)(),name:(0,ge.Ru)(),package:(0,ge.Ru)()})),Op=((0,ge.yu)(class extends ep{canonicalUnit;nonCanonicalUnits=[];get hashCode(){return da([Oa.MEASURE,this.path,this.canonicalUnit??"",da(this.nonCanonicalUnits)])}accept_PackageableElementVisitor(e){return e.visit_Measure(this)}},{_type:_e("measure"),canonicalUnit:(0,ge.jt)(fe(Ip)),name:(0,ge.Ru)(),nonCanonicalUnits:(0,ge.pb)(fe(Ip)),package:(0,ge.Ru)()}),(0,ge.yu)(class{name;type;multiplicity;aggregation;stereotypes=[];taggedValues=[];get hashCode(){return da([Oa.PROPERTY,this.name,this.multiplicity,this.type,this.aggregation??"",da(this.stereotypes),da(this.taggedValues)])}},{aggregation:(0,ge.jt)((0,ge.Ru)()),multiplicity:fe(gp),name:(0,ge.Ru)(),stereotypes:be(Sp,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:be(xp,{INTERNAL__forceReturnEmptyInTest:!0}),type:(0,ge.Ru)()})),wp=(0,ge.yu)(class{name;returnType;returnMultiplicity;stereotypes=[];taggedValues=[];body;parameters;get hashCode(){return da([Oa.DERIVED_PROPERTY,this.name,this.returnMultiplicity,this.returnType,da(this.stereotypes),da(this.taggedValues),ka(this.parameters,this.body)])}},{body:(0,ge.LZ)(),name:(0,ge.Ru)(),parameters:(0,ge.LZ)(),returnMultiplicity:fe(gp),returnType:(0,ge.Ru)(),stereotypes:be(Sp,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:be(xp,{INTERNAL__forceReturnEmptyInTest:!0})}),Rp=(0,ge.yu)(class{name;functionDefinition;externalId;enforcementLevel;messageFunction;get hashCode(){return da([Oa.CONSTRAINT,this.name,this.functionDefinition,this.externalId??"",this.enforcementLevel??"",this.messageFunction??""])}},{enforcementLevel:(0,ge.jt)((0,ge.Ru)()),externalId:(0,ge.jt)((0,ge.Ru)()),functionDefinition:fe(yp),messageFunction:(0,ge.jt)(fe(yp)),name:(0,ge.Ru)()});var kp;(0,ge.yu)(class extends ep{superTypes=[];properties=[];derivedProperties=[];stereotypes=[];taggedValues=[];constraints=[];get hashCode(){return da([Oa.CLASS,this.path,da(this.properties),da(this.derivedProperties),da(this.superTypes),da(this.constraints),da(this.stereotypes),da(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Class(this)}},{_type:_e("class"),constraints:be(Rp,{INTERNAL__forceReturnEmptyInTest:!0}),name:(0,ge.Ru)(),originalMilestonedProperties:Te((()=>ge.AM),(()=>ge.AM),{INTERNAL__forceReturnEmptyInTest:!0}),package:(0,ge.Ru)(),properties:be(Op,{INTERNAL__forceReturnEmptyInTest:!0}),derivedProperties:(0,ge.bm)("qualifiedProperties",be(wp,{INTERNAL__forceReturnEmptyInTest:!0})),stereotypes:be(Sp,{INTERNAL__forceReturnEmptyInTest:!0}),superTypes:(kp={INTERNAL__forceReturnEmptyInTest:!0},Te((e=>e),(e=>e),kp)),taggedValues:be(xp,{INTERNAL__forceReturnEmptyInTest:!0})}),(0,ge.yu)(class extends ep{properties=[];derivedProperties=[];stereotypes=[];taggedValues=[];get hashCode(){return da([Oa.ASSOCIATION,this.path,da(this.properties),da(this.derivedProperties),da(this.stereotypes),da(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Association(this)}},{_type:_e("association"),name:(0,ge.Ru)(),originalMilestonedProperties:Te((()=>ge.AM),(()=>ge.AM),{INTERNAL__forceReturnEmptyInTest:!0}),package:(0,ge.Ru)(),properties:(0,ge.pb)(fe(Op)),derivedProperties:(0,ge.bm)("qualifiedProperties",be(wp,{INTERNAL__forceReturnEmptyInTest:!0})),stereotypes:be(Sp,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:be(xp,{INTERNAL__forceReturnEmptyInTest:!0})}),(0,ge.yu)(class extends ep{parameters=[];body=[];preConstraints=[];postConstraints=[];returnType;returnMultiplicity;taggedValues=[];stereotypes=[];get hashCode(){return da([Oa.FUNCTION,this.path,da(this.parameters),this.returnType,da(this.taggedValues),da(this.stereotypes),ka(void 0,this.body)])}accept_PackageableElementVisitor(e){return e.visit_ConcreteFunctionDefinition(this)}},{_type:_e("function"),body:(0,ge.pb)((0,ge.LZ)()),name:(0,ge.Ru)(),package:(0,ge.Ru)(),parameters:(0,ge.pb)(fe(bp)),postConstraints:(0,ge.pb)((0,ge.Ru)()),preConstraints:(0,ge.pb)((0,ge.Ru)()),returnMultiplicity:fe(gp),returnType:(0,ge.Ru)(),stereotypes:be(Sp,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:be(xp,{INTERNAL__forceReturnEmptyInTest:!0})}),(0,ge.yu)(class extends Tp{content;get hashCode(){return da([Oa.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR,this.path,Ra(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownFunctionActivator(this)}},{function:(0,ge.Ru)(),name:(0,ge.Ru)(),package:(0,ge.Ru)()});const Lp="diagram",Fp=(0,ge.yu)(ip,{x:(0,ge.Ru)(),y:(0,ge.Ru)()}),Pp=(0,ge.yu)(ap,{height:(0,ge.Ru)(),width:(0,ge.Ru)()}),Dp=(0,ge.yu)(rp,{points:(0,ge.pb)(fe(Fp))}),Mp=(0,ge.yu)(sp,{class:(0,ge.Ru)(),hideProperties:(0,ge.jt)((0,ge.Ru)()),hideStereotypes:(0,ge.jt)((0,ge.Ru)()),hideTaggedValues:(0,ge.jt)((0,ge.Ru)()),id:(0,ge.Ru)(),position:fe(Fp),rectangle:fe(Pp)}),Bp=(0,ge.yu)(lp,{line:fe(Dp),property:fe(vp),sourceView:(0,ge.Ru)(),targetView:(0,ge.Ru)()}),jp=(0,ge.yu)(dp,{line:fe(Dp),sourceView:(0,ge.Ru)(),targetView:(0,ge.Ru)()}),Up=(0,ge.yu)(tp,{_type:_e(Lp),classViews:(0,ge.pb)(fe(Mp)),generalizationViews:(0,ge.pb)(fe(jp)),name:(0,ge.Ru)(),package:(0,ge.Ru)(),propertyViews:(0,ge.pb)(fe(Bp))});class Gp extends o{_$nominalTypeBrand;install(e){e.registerPureProtocolProcessorPlugin(this)}}var Vp=n(95903);const $p=e=>U((0,Vp.Z)(e.split(ua))),Hp=e=>{const t=e.lastIndexOf(ua);return-1===t?void 0:e.substring(0,t)},zp=(e,t)=>{const n=e.lastIndexOf(ua);return-1===n?[t??"",e]:[e.substring(0,n),e.substring(n+2,e.length)]},Wp=(e,t)=>`${e?`${e}${ua}`:""}${t}`,Kp=(e,t)=>{e.children.push(t),t.package=e},Yp=(e,t)=>{e.children=e.children.filter((e=>e!==t))},Jp=(e,t,n,s)=>{const i=t.indexOf(ua),a=-1===i?t:t.substring(0,i);let r;if(r=e.children.find((e=>e instanceof $a&&e.name===a)),!r){if(!n)throw new M(`Can't find child package '${a}' in package '${e.path}'`);W(!ha.includes(a),`Can't create package with reserved name '${a}'`),r=new $a(a),r.package=e,e.children.push(r)}return s&&s.set(Wp(e.path,a),r),-1!==i?Jp(r,t.substring(i+2),n,s):r},Xp=(e,t,n,s)=>{if(s){const i=s.get(Wp(e.path,t));if(i)return i;let a=t;for(;""!==a;){const i=Wp(e.path,a),r=s.get(i);if(r)return Jp(r,t.substring(a.length+2,t.length),n,s);const o=a.lastIndexOf(ua);a=-1!==o?a.substring(0,o):""}}return Jp(e,t,n,s)},qp=(e,t,n)=>(H(t,"Package path is required"),Xp(e.root,t,!0,n)),Zp=(e,t)=>$(e.rawType,t),Qp=e=>{const t=new Set;t.add(e);const n=e=>{e.generalizations.forEach((e=>{const s=Zp(e.value,Ba);t.has(s)||(t.add(s),n(s))}))};return n(e),t.delete(e),Array.from(t)},eh=e=>e.properties.concat(e.propertiesFromAssociations).concat(e.derivedProperties),th=(e,t)=>e===t?e.toString():0===e&&void 0===t?"MANY":`$${e}_${t??"MANY"}$`,nh=(e,t)=>`${U(e,"Package path is required")}${ua}${U(t,"Name is required")}`;class sh{elementClassName;_class;prerequisites=[];firstPass;secondPass;thirdPass;fourthPass;fifthPass;constructor(e){this.elementClassName=e.elementClassName,this._class=e._class,this.prerequisites=e.prerequisites??[],this.firstPass=e.firstPass,this.secondPass=e.secondPass,this.thirdPass=e.thirdPass,this.fourthPass=e.fourthPass,this.fifthPass=e.fifthPass}getElementProtocolClass(){return this._class}getPrerequisiteElementProtocolClasses(){return this.prerequisites}runFirstPass(e,t,n,s){H(e.package,"Element 'package' field is missing or empty"),H(e.name,"Element 'name' field is missing or empty"),((e,t,n)=>{if(n){if(n.has(e))throw new M(`Element '${e}' already exists`);n.add(e)}else W(!t.graph.getNullableElement(e),`Element '${e}' already exists`)})(nh(e.package,e.name),t,s);const i=this.firstPass(e,t);return Kp(qp(t.currentSubGraph,e.package,n),i),i}runSecondPass(e,t){this.secondPass?.(e,t)}runThirdPass(e,t){this.thirdPass?.(e,t)}runFourthPass(e,t){this.fourthPass?.(e,t)}runFifthPass(e,t){this.fifthPass?.(e,t)}}const ih=e=>e.classView.value.id,ah=e=>{const t=new lp,n=new rp;return n.points=e.pathForSerialization,t.line=n,t.property=((e,t)=>{const n=new mp;return n.class=t?.isTransformingEmbeddedPropertyMapping||t?.isTransformingLocalPropertyMapping?void 0:e.ownerReference.valueForSerialization??"",n.property=e.value.name,n})(e.property),t.sourceView=ih(e.from),t.targetView=ih(e.to),t},rh=e=>{const t=new dp,n=new rp;return n.points=e.pathForSerialization,t.line=n,t.sourceView=ih(e.from),t.targetView=ih(e.to),t},oh=e=>{const t=new sp;return t.class=e.class.valueForSerialization??"",t.hideProperties=e.hideProperties,t.hideStereotypes=e.hideStereotypes,t.hideTaggedValues=e.hideTaggedValues,t.id=e.id,t.position=((e,t)=>{const n=new ip;return n.x=e,n.y=t,n})(e.position.x,e.position.y),t.rectangle=((e,t)=>{const n=new ap;return n.height=e,n.width=t,n})(e.rectangle.height,e.rectangle.width),t};class ch{x;y;constructor(e,t){this.x=e,this.y=t}get hashCode(){return da([qu.POINT,this.x.toString(),this.y.toString()])}}class lh{width;height;constructor(e,t){this.width=e,this.height=t}get hashCode(){return da([qu.RECTANGLE,this.width.toString(),this.height.toString()])}}class dh{_dummyObservable={};position;rectangle;constructor(e,t){this.position=e,this.rectangle=t}center=()=>new ch(this.position.x+this.rectangle.width/2,this.position.y+this.rectangle.height/2);contains(e,t){const n=this.normalizeBox(this);return e>n.position.x&&e<n.position.x+n.rectangle.width&&t>n.position.y&&t<n.position.y+n.rectangle.height}normalizeBox(e){let t=e;return e.rectangle.width<0&&(t=new dh(new ch(e.position.x+e.rectangle.width,e.position.y),new lh(-e.rectangle.width,e.rectangle.height))),e.rectangle.height<0&&(t=new dh(new ch(e.position.x,e.position.y+e.rectangle.height),new lh(e.rectangle.width,-e.rectangle.height))),t}get hashCode(){return this._dummyObservable,da([qu.POSITIONED_RECTANGLE,this.position,this.rectangle])}}class uh extends dh{_OWNER;class;id;hideProperties;hideTaggedValues;hideStereotypes;constructor(e,t,n){super(new ch(0,0),new lh(0,0)),this._OWNER=e,this.id=t,this.class=n}get hashCode(){return da([qu.CLASS_VIEW,super.hashCode,this.id,this.class.valueForSerialization??"",this.hideProperties?.toString()??"",this.hideTaggedValues?.toString()??"",this.hideStereotypes?.toString()??""])}}class ph{_offsetX;_offsetY;classView;constructor(e){this.classView=e}}class hh extends Ya{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}}class gh extends hh{ownerReference;constructor(e){const t=Xa.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new gh(e)}}class mh{_OWNER;from;to;path=[];constructor(e,t,n){this._OWNER=e,this.from=new ph(gh.create(t)),this.to=new ph(gh.create(n))}computeEdgeEndpoint(e,t=!0){const n=e.classView.value,s=e.classView.value.center(),i=s.x+(e._offsetX??0),a=s.y+(e._offsetY??0);return n.contains(i,a)?new ch(i,a):(t&&(e._offsetX=0,e._offsetY=0),new ch(s.x,s.y))}buildFullPath(e=!0){return[this.computeEdgeEndpoint(this.from,e),...this.path,this.computeEdgeEndpoint(this.to,e)]}static pruneUnnecessaryInsidePoints=(e,t,n)=>{W(Boolean(e.length),"Path requires at least 1 point");let s=0,i=e[s];for(;s<e.length-1&&t.contains(i.x,i.y);)s++,i=e[s];let a=e.length-1,r=e[a];for(;a>0&&n.contains(r.x,r.y);)a--,r=e[a];const o=e.slice(s-1,a+2);return o.length<2?[i,r]:o};get pathForSerialization(){return mh.pruneUnnecessaryInsidePoints(this.buildFullPath(),this.from.classView.value,this.to.classView.value)}get hashCode(){return da([qu.RELATIONSHIP_VIEW,this.from.classView.value.id,this.to.classView.value.id,da(this.pathForSerialization)])}}class fh extends mh{property;constructor(e,t,n,s){super(e,n,s),this.property=t}get hashCode(){return da([qu.PROPERTY_HOLDER_VIEW,super.hashCode,this.property.pointerHashCode])}}class _h extends fh{get hashCode(){return da([qu.PROPERTY_VIEW,super.hashCode])}}class Eh extends mh{get hashCode(){return da([qu.GENERALIZATION_VIEW,super.hashCode])}}class Ch{x;y;constructor(e,t){this.x=e,this.y=t}static fromPoints(e,t){return new Ch(t.x-e.x,t.y-e.y)}unit(){const e=Math.sqrt(this.x*this.x+this.y*this.y);return new Ch(this.x/e,this.y/e)}normal(e){return new Ch(e.y-this.y,-(e.x-this.x))}dotProduct(e){return this.x*e.x+this.y*e.y}}const yh=e=>{let t=0,n=0;for(;e.offsetParent;)t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent;return new ch(t,n)},bh=(e,t)=>e.classViews.find((e=>e.id===t)),Th=(e,t)=>{e.path=t},vh=e=>{const t=e.buildFullPath(),n=mh.pruneUnnecessaryInsidePoints(t,e.from.classView.value,e.to.classView.value);if(n[0]!==t[0]){const t=e.from.classView.value.center();e.from._offsetX=U(n[0],"Diagram path expected to have at least 2 points").x-t.x,e.from._offsetY=U(n[0],"Diagram path expected to have at least 2 points").y-t.y}if(n[n.length-1]!==t[t.length-1]){const t=e.to.classView.value.center();e.to._offsetX=n[n.length-1].x-t.x,e.to._offsetY=n[n.length-1].y-t.y}const s=[];for(let e=0;e<n.length-2;e++){const t=Ch.fromPoints(n[e+1],n[e]).unit(),i=Ch.fromPoints(n[e+1],n[e+2]).unit(),a=t.dotProduct(i),r=180*Math.acos(a)/Math.PI;Math.abs(r-180)>5&&s.push(n[e+1])}Th(e,s)},Sh=(e,t)=>e.x*Math.cos(t)-e.y*Math.sin(t),Nh=(e,t)=>e.x*Math.sin(t)+e.y*Math.cos(t),xh=e=>new ch(e.position.x+e.rectangle.width,e.position.y+e.rectangle.height),Ah=e=>{const t=xh(e);return new dh(new ch(t.x-5,t.y-5),new lh(10,10))},Ih=(e,t)=>(t=e.normalizeBox(t),e.contains(t.position.x,t.position.y)||e.contains(t.position.x+t.rectangle.width,t.position.y)||e.contains(t.position.x,t.position.y+t.rectangle.height)||e.contains(t.position.x+t.rectangle.width,t.position.y+t.rectangle.height)),Oh=e=>{const t=U(e.x,"Point 'x' coordinate is missing"),n=U(e.y,"Point 'y' coordinate is missing");return new ch(t,n)};class wh extends Gp{constructor(){super(ea.Rw.zE,ea.i8)}V1_getExtraElementBuilders(){return[new sh({elementClassName:"Diagram",_class:tp,firstPass:(e,t)=>{V(e,tp);const n=new Zu(e.name),s=nh(e.package,e.name);return t.currentSubGraph.setOwnElementInExtension(s,n,Zu),n},secondPass:(e,t)=>{V(e,tp);const n=(s=nh(e.package,e.name),i=t.currentSubGraph,U(i.getOwnNullableExtensionElement(s,Zu),`Can't find diagram '${s}'`));var s,i;n.classViews=e.classViews.map((e=>((e,t,n)=>{H(e.class,"Class view 'class' field is missing or empty"),H(e.id,"Class view 'id' field is missing or empty"),j(e.rectangle,"Class view 'rectangle' field is missing"),j(e.position,"Class view 'position' field is missing");const s=new uh(n,e.id,t.resolveClass(e.class));return s.hideProperties=e.hideProperties,s.hideTaggedValues=e.hideTaggedValues,s.hideStereotypes=e.hideStereotypes,s.rectangle=(e=>{const t=U(e.width,"Rectangle 'width' is missing"),n=U(e.height,"Rectangle 'height' is missing");return new lh(t,n)})(e.rectangle),s.position=Oh(e.position),s})(e,t,n))),n.propertyViews=e.propertyViews.map((e=>((e,t,n)=>{j(e.property,"Property view 'property' field is missing"),j(e.line,"Property view 'line' field is missing");const s=U(bh(n,U(e.sourceView)),"Property view 'sourceView' field is missing"),i=U(bh(n,U(e.targetView)),"Property view 'targetView' field is missing"),a=t.resolveOwnProperty(e.property),r=new _h(n,a,s,i);r.path=e.line.points.map((e=>Oh(e)));try{vh(r)}catch(e){P(e),t.logService.warn(u.create(e.message))}return r})(e,t,n))),n.generalizationViews=e.generalizationViews.map((e=>((e,t,n)=>{j(e.line,"Generalization view 'line' field is missing");const s=U(bh(t,U(e.sourceView)),"Generalization view 'sourceView' field is missing"),i=U(bh(t,U(e.targetView)),"Generalization view 'targetView' field is missing"),a=new Eh(t,s,i);a.path=e.line.points.map((e=>Oh(e)));try{vh(a)}catch(e){P(e),n.logService.warn(u.create(e.message))}return a})(e,n,t)))}})]}V1_getExtraElementClassifierPathGetters(){return[e=>{if(e instanceof tp)return"meta::pure::metamodel::diagram::Diagram"}]}V1_getExtraElementProtocolSerializers(){return[(e,t)=>{if(e instanceof tp)return(0,ge.qC)(Up,e)}]}V1_getExtraElementProtocolDeserializers(){return[(e,t)=>{if(e._type===Lp)return(0,ge.vB)(Up,e)}]}V1_getExtraElementTransformers(){return[(e,t)=>{if(e instanceof Zu)return(e=>{const t=new tp;return((e,t)=>{e.name=t.name,e.package=t.package?.path??""})(t,e),t.classViews=e.classViews.map(oh),t.generalizationViews=e.generalizationViews.map(rh),t.propertyViews=e.propertyViews.map(ah),t})(e)}]}}class Rh extends o{_$nominalTypeBrand;install(e){e.registerPureGraphPlugin(this)}}class kh extends Rh{constructor(){super(ea.Rw.f1,ea.i8)}getExtraPureGraphExtensionClasses(){return[Zu]}getExtraDeadReferencesCleaners(){return[e=>{e.getExtensionForElementClass(Zu).elements.forEach((t=>((e,t)=>{e.propertyViews.filter((e=>!(e.property.ownerReference.value instanceof Ba?eh(e.property.ownerReference.value):e.property.ownerReference.value.properties).map((e=>e.name)).includes(e.property.value.name))).forEach((t=>w(e.propertyViews,t))),e.classViews.filter((e=>!t.getNullableClass(e.class.value.path))).forEach((t=>w(e.classViews,t))),e.generalizationViews.filter((e=>{const n=e.from.classView.value.class.value,s=e.to.classView.value.class.value;return!t.getNullableClass(n.path)||!t.getNullableClass(s.path)||0===n.generalizations.filter((e=>e.value.rawType===s)).length})).forEach((t=>w(e.generalizationViews,t)))})(t,e)))}]}}class Lh extends l{constructor(){super(ea.Rw.NA,ea.i8,[new kh,new Qu,new wh])}}var Fh,Ph=n(40979),Dh=n(74926);class Mh{historyAPI;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="")};onBlock;onNativePlatformNavigationBlock;constructor(e){(0,Oe.rC)(this,{_isNavigationBlocked:Oe.LO,isNavigationBlocked:Oe.Fl,blockNavigation:Oe.aD,unblockNavigation:Oe.aD}),this.historyAPI=e}get window(){return U(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.historyAPI.createHref({pathname:e})}updateCurrentLocation(e){this.historyAPI.push(e)}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.historyAPI.location.pathname}getCurrentLocationParameters(){const e={},t=((e,t=!1)=>t?Q.Z.parseUrl(e).query:Q.Z.parse(e))((n=this.getCurrentAddress(),(0,ee.N)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=((e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0})(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 s,i;delete n[e],this.updateCurrentLocation((s=this.getCurrentLocation(),i=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),Q.Z.stringify(t)})(n),i?`${s}?${i}`:s)),this.updateCurrentZone(t)}}class Bh{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(Fh||(Fh={}));class jh extends Bh{navigator;constructor(e,t){super(e),this.navigator=new Mh(t.historyAPI)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(Fh.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(Fh.INITIAL_COLOR_THEME))}}const Uh=(0,Mt.createContext)(void 0),Gh=({children:e})=>{const t=jt(),n=(0,Ph.k6)(),s=(0,vt.fv)((()=>new jh(t,{historyAPI:n})));return(0,C.jsx)(Uh.Provider,{value:s,children:e})},Vh=({children:e,baseUrl:t})=>(0,C.jsx)(Dh.VK,{basename:t,children:(0,C.jsx)(Gh,{children:e})}),$h="/welcome.pure",Hh="/",zh="::";var Wh,Kh;!function(e){e.CONCEPT_EXPLORER="CONCEPT_EXPLORER",e.FILE_EXPLORER="FILE_EXPLORER"}(Wh||(Wh={})),function(e){e.TERMINAL="TERMINAL",e.SEARCH="SEARCH",e.REFERENCES="REFERNECES",e.TEST_RUNNER="TEST_RUNNER",e.CODE_FIX_SUGGESTION="CODE_FIX_SUGGESTION"}(Kh||(Kh={}));var Yh,Jh=n(90361);!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="property",e.VARIABLE="variable",e.TYPE="type",e.INVALID="invalid"}(Yh||(Yh={}));const Xh=(e,t,n,s)=>{const i=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=K(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const s={};e.settings.foreground&&K(e.settings.foreground)&&(s.foreground=e.settings.foreground),e.settings.background&&K(e.settings.background)&&(s.background=e.settings.background),e.settings.fontStyle&&K(e.settings.fontStyle)&&(s.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(B(e)||!Object.keys(s).length)return;const n={...s,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{var s;Array.isArray(t)?t.length&&(n[e]=(W(0<(s=t).length,"Index out of bound: 0"),U(s[0],void 0))):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...i,base:t,colors:{...i.colors,...n},rules:[...i.rules,...s]}},qh=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}'),Zh=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"}}]}'),Qh=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"}}]}'),eg=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"}}'),tg=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"}}'),ng=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"}}'),sg=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"}}'),ig=[{token:Yh.IDENTIFIER,foreground:"dcdcaa"},{token:Yh.NUMBER,foreground:"b5cea8"},{token:Yh.DATE,foreground:"b5cea8"},{token:Yh.COLOR,foreground:"b5cea8"},{token:Yh.PACKAGE,foreground:"808080"},{token:Yh.PARSER,foreground:"c586c0"},{token:Yh.LANGUAGE_STRUCT,foreground:"c586c0"},{token:Yh.MULTIPLICITY,foreground:"2d796b"},{token:Yh.GENERICS,foreground:"2d796b"},{token:Yh.PROPERTY,foreground:"9cdcfe"},{token:Yh.PARAMETER,foreground:"9cdcfe"},{token:Yh.VARIABLE,foreground:"4fc1ff"},{token:Yh.TYPE,foreground:"3dc9b0"},{token:`${Yh.STRING}.escape`,foreground:"d7ba7d"}];var ag;!function(e){e.DEFAULT_DARK="default-dark",e.GITHUB_DARK="github-dark",e.GITHUB_DARK_DIMMED="github-dark-dimmed",e.SOLARIZED_DARK="solarized-dark",e.ONE_DARK_PRO="one-dark-pro",e.ONE_DARK_PRO_DARKER="one-dark-pro-darker",e.MATERIAL_DEFAULT="material-default",e.MATERIAL_DARKER="material-darker",e.BUILT_IN__VSCODE_LIGHT="vs",e.BUILT_IN__VSCODE_DARK="vs-dark",e.BUILT_IN__VSCODE_HC_BLACK="hc-black",e.BUILT_IN__VSCODE_HC_LIGHT="hc-light"}(ag||(ag={}));const rg={base:"vs-dark",inherit:!0,colors:{},rules:[...ig,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},og=Xh(qh,ag.BUILT_IN__VSCODE_DARK,{},[]),cg=Xh(Zh,ag.BUILT_IN__VSCODE_DARK,{},[]),lg=Xh(Qh,ag.BUILT_IN__VSCODE_DARK,{},[]),dg=Xh(eg,ag.BUILT_IN__VSCODE_DARK,{},[]),ug=Xh(tg,ag.BUILT_IN__VSCODE_DARK,{},[]),pg=Xh(ng,ag.BUILT_IN__VSCODE_DARK,{},[]),hg=Xh(sg,ag.BUILT_IN__VSCODE_DARK,{},[]),gg=(e,t)=>{e.hasTextFocus()||e.focus(),e.revealPositionInCenter(t,0),e.setPosition(t)},mg="dummy_problem_marker_owner";var fg,_g;!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"}(fg||(fg={})),function(e){e.PACKAGE="Package",e.PROFILE="Profile",e.TAG="Tag",e.STEREOTYPE="Stereotype",e.CLASS="Class",e.ASSOCIATION="Association",e.PROPERTY="Property",e.QUALIFIED_PROPERTY="QualifiedProperty",e.ENUMERATION="Enumeration",e.ENUM_VALUE="Enum",e.MEASURE="Measure",e.UNIT="Unit",e.FUNCTION="ConcreteFunctionDefinition",e.NATIVE_FUNCTION="NativeFunction",e.DIAGRAM="Diagram",e.DATABASE="Database",e.MAPPING="Mapping"}(_g||(_g={}));class Eg{pureId;pureType;pureName;get id(){return this.pureId}}class Cg extends Eg{deprecated}(0,ge.yu)(Cg,{pureId:(0,ge.Ru)(),pureType:(0,ge.Ru)(),deprecated:(0,ge.Ru)()});class yg extends Eg{RO;classPath;file;line;column;get id(){return`${this.classPath}.${this.pureId}`}}(0,ge.yu)(yg,{pureId:(0,ge.Ru)(),pureName:(0,ge.Ru)(),pureType:(0,ge.Ru)(),RO:(0,ge.Ru)(),classPath:(0,ge.Ru)(),file:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)()});class bg extends Eg{RO;notpublic;user;file;line;column}(0,ge.yu)(bg,{pureId:(0,ge.Ru)(),pureName:(0,ge.jt)((0,ge.Ru)()),pureType:(0,ge.Ru)(),RO:(0,ge.Ru)(),notpublic:(0,ge.Ru)(),user:(0,ge.Ru)(),file:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)()});class Tg{li_attr;id;text;icon;children;state;getNodeAttribute(e){return $(this.li_attr,e,`Expected concept node attribute to be of type '${e.name}'`)}}(0,ge.yu)(Tg,{li_attr:(0,ge.PG)((()=>ge.AM),(e=>e.classPath?(0,ge.vB)(yg,e):e.file?(0,ge.vB)(bg,e):(0,ge.vB)(Cg,e))),id:(0,ge.Ru)(),text:(0,ge.Ru)(),icon:(0,ge.Ru)(),children:(0,ge.Ru)(),state:(0,ge.Ru)()});const vg=e=>e.startsWith("/")?e.substring(1,e.length):e;class Sg{content;RO;constructor(){(0,Oe.rC)(this,{content:Oe.LO,hashCode:Oe.Fl,setContent:Oe.aD})}setContent(e){this.content=e}get hashCode(){return la(this.content)}}(0,ge.yu)(Sg,{content:(0,ge.Ru)(),RO:(0,ge.Ru)()});class Ng{file;line;column;constructor(e,t,n){this.file=e,this.line=t,this.column=n}}class xg extends Ng{error;constructor(e,t,n,s){super(e,t??1,n??1),this.error=s}}var Ag;!function(e){e.ENUM="meta::pure::ide::findusages::findUsagesForEnum_String_1__String_1__SourceInformation_MANY_",e.PROPERTY="meta::pure::ide::findusages::findUsagesForProperty_String_1__String_1__SourceInformation_MANY_",e.ELEMENT="meta::pure::ide::findusages::findUsagesForPath_String_1__SourceInformation_MANY_",e.MULTIPLE_PATHS="meta::pure::ide::findusages::findUsagesForMultiplePaths_String_1__Pair_MANY_"}(Ag||(Ag={}));const Ig=e=>`'${e.path}'${e.owner?` of '${e.owner}'`:""}`;class Og{source;line;column;startLine;startColumn;endLine;endColumn}(0,ge.yu)(Og,{source:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)(),startLine:(0,ge.Ru)(),startColumn:(0,ge.Ru)(),endLine:(0,ge.Ru)(),endColumn:(0,ge.Ru)()});class wg{first;second}(0,ge.yu)(wg,{first:(0,ge.Ru)(),second:(0,ge.pb)((0,ge.Ry)(Og))});class Rg{uuid=(0,a.Z)();get description(){}match(e){return this===e}onOpen(){}onClose(){}}class kg{currentTab;tabs=[];constructor(){(0,Oe.rC)(this,{currentTab:Oe.LO,tabs:Oe.LO,setCurrentTab:Oe.aD,closeTab:Oe.aD,closeAllTabs:Oe.aD,closeAllOtherTabs:Oe.aD,openTab:Oe.aD,swapTabs:Oe.aD})}setCurrentTab(e){this.currentTab=e}closeAllOtherTabs(e){j(this.tabs.find((t=>t===e)),"Specified tab should be currently opened"),this.setCurrentTab(e),this.tabs=[e]}closeAllTabs(){this.setCurrentTab(void 0),this.tabs=[]}swapTabs(e,t){O(this.tabs,e,t)}openTab(e){if(!this.tabs.find((t=>t.match(e))))if(this.currentTab){const t=this.tabs.findIndex((e=>e===this.currentTab));this.tabs.splice(t+1,0,e)}else this.tabs.push(e);this.setCurrentTab(e),e.onOpen()}closeTab(e){const t=this.tabs.findIndex((t=>t.match(e)));if(W(-1!==t,"Can't close a tab which is not opened"),this.tabs.splice(t,1),this.currentTab===e)if(this.tabs.length){const e=t-1;this.setCurrentTab(e>=0?this.tabs[e]:this.tabs[0])}else this.setCurrentTab(void 0);e.onClose()}}class Lg extends Rg{ideStore;constructor(e){super(),this.ideStore=e}}class Fg extends kg{ideStore;constructor(e){super(),this.ideStore=e}get dndType(){return"editor.tab-manager.tab"}closeTab(e){e instanceof Hg&&e.hasChanged?this.ideStore.applicationStore.alertService.setActionAlertInfo({message:"Unsaved changes will be lost if you continue. Do you still want to proceed?",prompt:"To save changes, abort and compile",type:Ft.CAUTION,actions:[{label:"Proceed",type:Pt.PROCEED_WITH_CAUTION,handler:()=>super.closeTab(e)},{label:"Save changes",type:Pt.PROCEED_WITH_CAUTION,handler:()=>{(0,Oe.fl)(this.ideStore.executeGo()).then((()=>{super.closeTab(e)})).catch(this.ideStore.applicationStore.alertUnhandledError)}},{label:"Abort",type:Pt.PROCEED,default:!0}]}):super.closeTab(e)}}var Pg;!function(e){e.SEARCH_FILE="editor.search.file",e.SEARCH_TEXT="editor.search.text",e.GO_TO_FILE="editor.go-to-file",e.TOGGLE_TERMINAL_PANEL="editor.toggle-terminal-panel",e.EXECUTE="editor.execute",e.FULL_RECOMPILE="editor.full-compile",e.FULL_RECOMPILE_WITH_FULL_INIT="editor.full-compile.with-init",e.RUN_ALL_TESTS="editor.run-all-tests",e.RUN_RELAVANT_TESTS="editor.run-relavant-tests"}(Pg||(Pg={}));const Dg={[Pg.SEARCH_FILE]:{title:"Search for file",defaultKeyboardShortcut:"Control+Shift+KeyN",additionalKeyboardShortcuts:["Control+KeyP","Meta+KeyP"]},[Pg.SEARCH_TEXT]:{title:"Search text",defaultKeyboardShortcut:"Control+Shift+KeyF",additionalKeyboardShortcuts:["Meta+Shift+KeyF"]},[Pg.GO_TO_FILE]:{title:"Go to file",defaultKeyboardShortcut:"Control+F1"},[Pg.TOGGLE_TERMINAL_PANEL]:{title:"Toggle terminal",defaultKeyboardShortcut:"Control+Backquote"},[Pg.EXECUTE]:{title:"Execute",defaultKeyboardShortcut:"F9"},[Pg.FULL_RECOMPILE]:{title:"Run full re-compilation",defaultKeyboardShortcut:"F11"},[Pg.FULL_RECOMPILE_WITH_FULL_INIT]:{title:"Run full re-compilation",defaultKeyboardShortcut:"Shift+F11"},[Pg.RUN_ALL_TESTS]:{title:"Run all tests",defaultKeyboardShortcut:"F10"},[Pg.RUN_RELAVANT_TESTS]:{title:"Run relavant tests",defaultKeyboardShortcut:"Shift+F10"}};var Mg;!function(e){e.RECENTER="editor.diagram-editor.recenter",e.USE_ZOOM_TOOL="editor.diagram-editor.use-zoom-tool",e.USE_VIEW_TOOL="editor.diagram-editor.use-view-tool",e.USE_PAN_TOOL="editor.diagram-editor.use-pan-tool"}(Mg||(Mg={}));const Bg={[Mg.RECENTER]:{title:"Diagram Editor: Recenter",defaultKeyboardShortcut:"KeyR"},[Mg.USE_ZOOM_TOOL]:{title:"Diagram Editor: Use zoom tool",defaultKeyboardShortcut:"KeyZ"},[Mg.USE_VIEW_TOOL]:{title:"Diagram Editor: Use view tool",defaultKeyboardShortcut:"KeyV"},[Mg.USE_PAN_TOOL]:{title:"Diagram Editor: Use pan tool",defaultKeyboardShortcut:"KeyM"}};var jg;!function(e){e.TOGGLE_TEXT_WRAP="editor.file-editor.toggle-text-wrap",e.REVEAL_CONCEPT_IN_TREE="editor.file-editor.reveal-concept-in-tree",e.GO_TO_DEFINITION="editor.file-editor.go-to-definition",e.GO_BACK="editor.file-editor.go-back",e.FIND_USAGES="editor.file-editor.find-usage",e.RENAME_CONCEPT="editor.file-editor.rename-concept",e.GO_TO_LINE="editor.file-editor.go-to-line",e.DELETE_LINE="editor.file-editor.delete-line"}(jg||(jg={}));const Ug={[jg.TOGGLE_TEXT_WRAP]:{title:"Toggle Text-wrap (File)",defaultKeyboardShortcut:"Alt+KeyZ"},[jg.REVEAL_CONCEPT_IN_TREE]:{title:"Reveal Concept in Tree (File)",defaultKeyboardShortcut:"Control+Shift+KeyB"},[jg.GO_TO_DEFINITION]:{title:"Go to Definition (File)",defaultKeyboardShortcut:"Control+KeyB"},[jg.GO_BACK]:{title:"Go Back (File)",defaultKeyboardShortcut:"Control+Alt+KeyB"},[jg.FIND_USAGES]:{title:"Find Usages (File)",defaultKeyboardShortcut:"Alt+F7"},[jg.RENAME_CONCEPT]:{title:"Rename Concept (File)",defaultKeyboardShortcut:"F2"},[jg.GO_TO_LINE]:{title:"Go to Line (File)",defaultKeyboardShortcut:"Control+KeyG"},[jg.DELETE_LINE]:{title:"Delete Line (File)",defaultKeyboardShortcut:"Control+KeyD"}};var Gg;!function(e){e.GO="go",e.TEST="test",e.REMOVE="rm",e.MOVE="mv",e.NEW_DIRECTORY="mkdir",e.NEW_FILE="touch",e.OPEN_FILE="open",e.OPEN_DIRECTORY="cd",e.LIST_DIRECTORY="ls",e.WELCOME="welcome",e.ECHO="echo",e.CLEAR="clear",e.ANSI="ansi",e.HELP="help"}(Gg||(Gg={}));class Vg{model;editor;_dummyCursorObservable={};language;viewState;forcedCursorPosition;wrapText=!1;constructor(e){(0,Oe.rC)(this,{viewState:Oe.LO.ref,editor:Oe.LO.ref,_dummyCursorObservable:Oe.LO.ref,forcedCursorPosition:Oe.LO.ref,wrapText:Oe.LO,cursorObserver:Oe.Fl,notifyCursorObserver:Oe.aD,setViewState:Oe.aD,setEditor:Oe.aD,setForcedCursorPosition:Oe.aD,setWrapText:Oe.aD}),this.language=(e=>{switch(x(e.split("."))){case"pure":return fg.PURE;case"java":return fg.JAVA;case"md":return fg.MARKDOWN;case"sql":return fg.SQL;case"json":return fg.JSON;case"xml":return fg.XML;case"yml":case"yaml":return fg.YAML;case"graphql":return fg.GRAPHQL;default:return fg.TEXT}})(e.filePath),this.model=Jh.editor.createModel(e.uuid,this.language),this.model.setValue(e.file.content)}notifyCursorObserver(){this._dummyCursorObservable={}}get cursorObserver(){return this._dummyCursorObservable,this.editor?{position:this.editor.getPosition()??void 0,selection:this.editor.getSelection()??void 0}:void 0}setViewState(e){this.viewState=e}setEditor(e){this.editor=e}setForcedCursorPosition(e){this.forcedCursorPosition=e}setWrapText(e){const t=this.wrapText;this.wrapText=e,t!==e&&this.editor&&(this.editor.updateOptions({wordWrap:e?"on":"off"}),this.editor.focus())}}class $g{fileEditorState;concept;coordinate;constructor(e,t,n){this.fileEditorState=e,this.concept=t,this.coordinate=n}}class Hg extends Lg{filePath;textEditorState;_currentHashCode;file;renameConceptState;showGoToLinePrompt=!1;constructor(e,t,n){super(e),(0,Oe.rC)(this,{_currentHashCode:Oe.LO,file:Oe.LO,renameConceptState:Oe.LO,showGoToLinePrompt:Oe.LO,hasChanged:Oe.Fl,resetChangeDetection:Oe.aD,setFile:Oe.aD,setShowGoToLinePrompt:Oe.aD,setConceptToRenameState:Oe.ls}),this.file=t,this._currentHashCode=t.hashCode,this.filePath=n,this.textEditorState=new Vg(this)}get label(){return vg(this.filePath)}get description(){return`File: ${vg(this.filePath)}${this.file.RO?" (readonly)":""}`}get fileName(){return U(x(this.filePath.split("/")))}match(e){return e instanceof Hg&&this.filePath===e.filePath}onClose(){this.textEditorState.model.dispose()}get hasChanged(){return this._currentHashCode!==this.file.hashCode}resetChangeDetection(){this._currentHashCode=this.file.hashCode}setFile(e){this.file=e,this.textEditorState.model.setValue(e.content),this.resetChangeDetection()}setShowGoToLinePrompt(e){this.showGoToLinePrompt=e}*setConceptToRenameState(e){if(!e)return void(this.renameConceptState=void 0);if(this.hasChanged)return void this.ideStore.applicationStore.notificationService.notifyWarning("Can't rename concept: source is not compiled");const t=yield this.ideStore.getConceptInfo(e);this.renameConceptState=t?new $g(this,t,e):void 0}showError(e){var t,n,s;t=this.textEditorState.model,n=[{message:e.error.message,startLineNumber:e.line,startColumn:e.column,endLineNumber:e.line,endColumn:e.column}],s=this.uuid,Jh.editor.setModelMarkers(t,s??mg,n.map((e=>({startLineNumber:e.startLineNumber,startColumn:e.startColumn,endLineNumber:e.endLineNumber,endColumn:e.endColumn+1,message:""===e.message?"(no error message)":e.message,severity:Jh.MarkerSeverity.Error}))))}clearError(){var e;e=this.uuid,Jh.editor.removeAllMarkers(e??mg)}registerCommands(){this.textEditorState.language===fg.PURE&&(this.ideStore.applicationStore.commandService.registerCommand({key:jg.GO_TO_DEFINITION,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&(0,Oe.fl)(this.ideStore.executeNavigation(new Ng(this.filePath,e.lineNumber,e.column))).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:jg.GO_BACK,action:()=>{(0,Oe.fl)(this.ideStore.navigateBack()).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:jg.REVEAL_CONCEPT_IN_TREE,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&this.ideStore.revealConceptInTree(new Ng(this.filePath,e.lineNumber,e.column)).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:jg.FIND_USAGES,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();if(e){const t=new Ng(this.filePath,e.lineNumber,e.column);this.findConceptUsages(t)}}}),this.ideStore.applicationStore.commandService.registerCommand({key:jg.RENAME_CONCEPT,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();if(e){if(!this.textEditorState.model.getWordAtPosition(e))return;const t=new Ng(this.filePath,e.lineNumber,e.column);(0,Oe.fl)(this.setConceptToRenameState(t)).catch(this.ideStore.applicationStore.alertUnhandledError)}}})),this.ideStore.applicationStore.commandService.registerCommand({key:jg.DELETE_LINE,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&this.textEditorState.model.pushEditOperations([],[{range:{startLineNumber:e.lineNumber,startColumn:1,endLineNumber:e.lineNumber+1,endColumn:1},text:"",forceMoveMarkers:!0}],(()=>null))}}),this.ideStore.applicationStore.commandService.registerCommand({key:jg.GO_TO_LINE,trigger:()=>this.ideStore.tabManagerState.currentTab===this,action:()=>{this.setShowGoToLinePrompt(!0)}}),this.ideStore.applicationStore.commandService.registerCommand({key:jg.TOGGLE_TEXT_WRAP,trigger:()=>this.ideStore.tabManagerState.currentTab===this,action:()=>{this.textEditorState.setWrapText(!this.textEditorState.wrapText)}})}findConceptUsages(e){const t=()=>{(0,Oe.fl)(this.ideStore.findUsagesFromCoordinate(e)).catch(this.ideStore.applicationStore.alertUnhandledError)};this.hasChanged?this.ideStore.applicationStore.alertService.setActionAlertInfo({message:"Source is not compiled, finding concept usages might be inaccurate. Do you want compile to proceed?",type:Ft.CAUTION,actions:[{label:"Compile and Proceed",type:Pt.PROCEED_WITH_CAUTION,handler:()=>{(0,Oe.fl)(this.ideStore.executeGo()).then(t).catch(this.ideStore.applicationStore.alertUnhandledError)}},{label:"Abort",type:Pt.PROCEED,default:!0}]}):t()}async renameConcept(e){if(!this.renameConceptState)return;const t=this.renameConceptState.concept;try{this.ideStore.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",showLoading:!0});const n=await this.ideStore.findConceptUsages(t.pureType===_g.ENUM_VALUE?Ag.ENUM:t.pureType===_g.PROPERTY||t.pureType===_g.QUALIFIED_PROPERTY?Ag.PROPERTY:Ag.ELEMENT,(t.owner?[`'${t.owner}'`]:[]).concat(`'${t.path}'`));await(0,Oe.fl)(this.ideStore.renameConcept(t.pureName,e,t.pureType,n)),this.textEditorState.setForcedCursorPosition({lineNumber:this.renameConceptState.coordinate.line,column:this.renameConceptState.coordinate.column})}catch(e){P(e),this.ideStore.applicationStore.notificationService.notifyError(e)}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}}deregisterCommands(){this.textEditorState.language===fg.PURE&&[jg.GO_TO_DEFINITION,jg.GO_BACK,jg.REVEAL_CONCEPT_IN_TREE,jg.FIND_USAGES,jg.RENAME_CONCEPT].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e))),[jg.GO_TO_LINE,jg.TOGGLE_TEXT_WRAP].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e)))}}class zg{ideStore;treeData;selectedNode;loadInitialDataState=we.create();refreshDataState=we.create();constructor(e){(0,Oe.rC)(this,{treeData:Oe.LO.ref,loadInitialDataState:Oe.LO,refreshDataState:Oe.LO,initialize:Oe.ls,expandNode:Oe.ls,openNode:Oe.ls,refreshTreeData:Oe.ls,setTreeData:Oe.aD,setSelectedNode:Oe.aD}),this.ideStore=e}getTreeData(){return U(this.treeData,"Tree data has not been initialized")}*initialize(){if(this.loadInitialDataState.isInProgress)this.ideStore.applicationStore.notificationService.notifyWarning("Tree state initialization is in progress");else{this.loadInitialDataState.inProgress();try{this.treeData=this.buildTreeData(yield this.getRootNodes()),this.loadInitialDataState.pass()}catch(e){P(e),this.ideStore.applicationStore.notificationService.notifyError(e),this.loadInitialDataState.fail()}}}setSelectedNode(e){e!==this.selectedNode&&(this.selectedNode&&(this.selectedNode.isSelected=!1),e&&(e.isSelected=!0),this.selectedNode=e,this.refreshTree())}setTreeData(e){this.treeData=e}refreshTree(){this.setTreeData({...U(this.treeData)})}*expandNode(e){if(!e.isLoading)if(this.getTreeData().nodes.has(e.id)&&e.childrenIds)e.isLoading=!1,e.isOpen=!0,this.refreshTree();else{e.isLoading=!0;try{const t=yield this.getChildNodes(e);this.processChildNodes(e,t),e.isOpen=!0,this.refreshTree()}catch(e){P(e),this.ideStore.applicationStore.notificationService.notifyError(e)}finally{e.isLoading=!1}}}*refreshTreeData(){if(!this.treeData)return;const e=new Set(Array.from(this.getTreeData().nodes.values()).filter((e=>e.isOpen)).map((e=>e.id))),t=this.selectedNode?.id;this.refreshDataState.inProgress();try{this.treeData=this.buildTreeData(yield this.getRootNodes())}catch(e){return P(e),this.ideStore.applicationStore.notificationService.notifyError(e),void this.refreshDataState.fail()}const n=this.getTreeData().rootIds.map((e=>U(this.getTreeData().nodes.get(e)))).filter((t=>e.has(t.id)));yield this.refreshOpenNodes(n,e),t&&this.getTreeData().nodes.has(t)&&this.setSelectedNode(U(this.getTreeData().nodes.get(t)))}async refreshOpenNodes(e,t){return await Promise.all(e.map((e=>(t.delete(e.id),(0,Oe.fl)(this.expandNode(e)).catch((()=>{})))))),(e=e.flatMap((e=>e.childrenIds??[])).map((e=>U(this.getTreeData().nodes.get(e)))).filter((e=>t.has(e.id)))).length?this.refreshOpenNodes(e,t):Promise.resolve()}}class Wg{id;path;RO}class Kg extends Wg{file;statusType}(0,ge.yu)(Kg,{id:(0,ge.Ru)(),path:(0,ge.Ru)(),file:(0,ge.Ru)(),statusType:(0,ge.Ru)(),RO:(0,ge.Ru)()});class Yg extends Wg{repo}(0,ge.yu)(Yg,{id:(0,ge.Ru)(),path:(0,ge.Ru)(),repo:(0,ge.Ru)(),RO:(0,ge.Ru)()});class Jg{li_attr;text;icon;children;state;get isFolderNode(){return this.li_attr instanceof Yg}get isFileNode(){return this.li_attr instanceof Kg}get isRepoNode(){return this.li_attr instanceof Yg&&Boolean(this.li_attr.repo)}getNodeAttribute(e){return $(this.li_attr,e,`Expected directory node attribute to be of type '${e.name}'`)}}(0,ge.yu)(Jg,{li_attr:(0,ge.PG)((()=>ge.AM),(e=>e.file?(0,ge.vB)(Kg,e):(0,ge.vB)(Yg,e))),text:(0,ge.Ru)(),icon:(0,ge.Ru)(),children:(0,ge.Ru)(),state:(0,ge.Ru)()});const Xg=e=>{const t=e.trim(),n=t.lastIndexOf("/");if(!(n<=0))return t.substring(0,n)},qg=e=>`file_${e}`;class Zg extends zg{nodeForCreateNewFile;nodeForCreateNewDirectory;nodeForRenameFile;constructor(e){super(e),(0,Oe.rC)(this,{nodeForCreateNewFile:Oe.LO,nodeForCreateNewDirectory:Oe.LO,nodeForRenameFile:Oe.LO,setNodeForCreateNewFile:Oe.aD,setNodeForCreateNewDirectory:Oe.aD,setNodeForRenameFile:Oe.aD,revealPath:Oe.ls})}setNodeForCreateNewFile=e=>{W(!e||e.data.isFolderNode,"Node selected for creating a new file from must be a directory"),this.nodeForCreateNewFile=e};setNodeForCreateNewDirectory=e=>{W(!e||e.data.isFolderNode,"Node selected for creating a new directory from must be a directory"),this.nodeForCreateNewDirectory=e};setNodeForRenameFile=e=>{W(!e||e.data.isFileNode,"Node selected for renaming must be a file"),this.nodeForRenameFile=e};async getRootNodes(){return(await this.ideStore.client.getDirectoryChildren()).map((e=>(0,ge.vB)(Jg,e)))}buildTreeData(e){const t=[],n=new Map;return e.forEach((e=>{const s=e.li_attr.id;t.push(s),n.set(s,{data:e,id:s,label:e.text,isLoading:!1})})),{rootIds:t,nodes:n}}async getChildNodes(e){return(await this.ideStore.client.getDirectoryChildren(e.data.li_attr.path)).map((e=>(0,ge.vB)(Jg,e)))}processChildNodes(e,t){const n=this.getTreeData(),s=[];t.forEach((e=>{const t=e.li_attr.id;s.push(t),n.nodes.set(t,{data:e,id:t,label:e.text,isLoading:!1})})),e.childrenIds=s}*openNode(e){e.data.isFileNode&&(yield(0,Oe.fl)(this.ideStore.loadFile(e.data.li_attr.path)))}*revealPath(e,t){t?.forceOpenExplorerPanel&&this.ideStore.setActiveActivity(Wh.FILE_EXPLORER,{keepShowingIfMatchedCurrent:!0});const n=[];let s=e;for(;s;)n.unshift(s),s=Xg(s);for(const e of n){const n=U(this.getTreeData().nodes.get(qg(e)),`Can't find node with path '${e}'`);if(n.data.isFolderNode)yield(0,Oe.fl)(this.expandNode(n));else{if(t?.directoryOnly)throw new Error("Can't reveal non-directory path");yield(0,Oe.fl)(this.ideStore.loadFile(e,t?.coordinate))}}this.setSelectedNode(U(this.getTreeData().nodes.get(qg(e)),`Can't find node with path '${e}'`))}}const Qg=e=>{const t=e.trim(),n=t.lastIndexOf(ua);if(!(n<=0))return t.substring(0,n)};class em extends zg{loadConceptActivity=we.create();statusText;nodeForRenameConcept;nodeForMoveElement;constructor(e){super(e),(0,Oe.rC)(this,{statusText:Oe.LO,nodeForRenameConcept:Oe.LO,nodeForMoveElement:Oe.LO,setStatusText:Oe.aD,setNodeForRenameConcept:Oe.aD,setNodeForMoveElement:Oe.aD,pullConceptsActivity:Oe.aD,pollConceptsActivity:Oe.ls,revealConcept:Oe.ls})}setStatusText(e){this.statusText=e}setNodeForRenameConcept(e){this.nodeForRenameConcept=e}setNodeForMoveElement(e){this.nodeForMoveElement=e}async getRootNodes(){return await(0,Oe.fl)(this.pollConceptsActivity()),(await this.ideStore.client.getConceptChildren()).map((e=>(0,ge.vB)(Tg,e)))}buildTreeData(e){const t=[],n=new Map;return e.forEach((e=>{const s=e.li_attr.id;t.push(s),n.set(s,{data:e,id:s,label:e.text,isLoading:!1})})),{rootIds:t,nodes:n}}async getChildNodes(e){return(await this.ideStore.client.getConceptChildren(e.data.li_attr.pureId)).map((e=>(0,ge.vB)(Tg,e)))}processChildNodes(e,t){const n=this.getTreeData(),s=[];t.forEach((t=>{const i=t.li_attr.id;s.push(i),n.nodes.set(i,{data:t,id:i,label:t.text,isLoading:!1,parent:e})})),e.childrenIds=s}*openNode(e){(e.data.li_attr instanceof yg||e.data.li_attr instanceof bg)&&("Diagram"===e.data.li_attr.pureType?yield(0,Oe.fl)(this.ideStore.loadDiagram(e.data.li_attr.file,e.data.li_attr.pureId,Number.parseInt(e.data.li_attr.line,10),Number.parseInt(e.data.li_attr.column,10))):yield(0,Oe.fl)(this.ideStore.loadFile(e.data.li_attr.file,new Ng(e.data.li_attr.file,Number.parseInt(e.data.li_attr.line,10),Number.parseInt(e.data.li_attr.column,10)))))}*pollConceptsActivity(){if(this.loadConceptActivity.isInInitialState){this.loadConceptActivity.inProgress(),this.setStatusText("Loading concepts activity...");try{yield this.pullConceptsActivity()}finally{this.setStatusText(void 0),this.loadConceptActivity.reset()}}}async pullConceptsActivity(){const e=await this.ideStore.client.getConceptActivity();return e.text&&this.setStatusText(`Preparing - ${e.text}`),e.initializing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullConceptsActivity())}catch(e){t(e)}}),1e3))):Promise.resolve()}*revealConcept(e,t){t?.forceOpenExplorerPanel&&this.ideStore.setActiveActivity(Wh.CONCEPT_EXPLORER,{keepShowingIfMatchedCurrent:!0});const n=[];let s=e;for(;s;)n.unshift(s),s=Qg(s);for(const e of n){const n=U(this.getTreeData().nodes.get(e),`Can't find node with path '${e}'`);if(n.data.li_attr instanceof Cg)yield(0,Oe.fl)(this.expandNode(n));else if(t?.packageOnly)throw new Error("Can't reveal non-package path")}this.setSelectedNode(U(this.getTreeData().nodes.get(e),`Can't find node with path '${e}'`))}async movePackageableElements(e,t){let n=[];try{n=(await this.ideStore.client.getPackageableElementsUsage(e.map((e=>e.pureId)))).map((e=>(0,ge.vB)(wg,e)))}catch{return void this.ideStore.applicationStore.notificationService.notifyError("Can't find usage for child packageable elements")}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}const s=[];W(n.length===e.length,"Can't find matching usages for packageable elements");for(let i=0;i<n.length;++i){const a=U(e[i]);s.push({pureName:a.pureName,pureType:a.pureType,sourcePackage:U(Hp(a.pureId)),destinationPackage:t,usages:U(n[i]).second})}await(0,Oe.fl)(this.ideStore.movePackageableElements(s))}async renameConcept(e,t){const n=e.data.li_attr,s=n.pureName??n.pureId;let i=[];try{switch(this.ideStore.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",showLoading:!0}),n.pureType){case _g.PROPERTY:case _g.QUALIFIED_PROPERTY:V(n,yg),i=await this.ideStore.findConceptUsages(Ag.PROPERTY,[`'${n.classPath}'`,`'${n.pureId}'`]);break;case _g.PACKAGE:{let e=[],n=[];try{n=await this.ideStore.client.getChildPackageableElements(s),e=(await this.ideStore.client.getPackageableElementsUsage(n.map((e=>e.pureId)))).map((e=>(0,ge.vB)(wg,e)))}catch{return void this.ideStore.applicationStore.notificationService.notifyError("Can't find usage for child packageable elements")}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}const i=[];W(e.length===n.length,"Can't find matching usages for child packageable elements");const a=Hp(s)?.concat(ua).concat(t)??t;for(let t=0;t<e.length;++t){const r=U(n[t]),o=U(Hp(r.pureId)),c=a.concat(o.substring(o.indexOf(s)+s.length));i.push({pureName:r.pureName,pureType:r.pureType,sourcePackage:o,destinationPackage:c,usages:U(e[t]).second})}return void await(0,Oe.fl)(this.ideStore.movePackageableElements(i))}default:i=await this.ideStore.findConceptUsages(Ag.ELEMENT,[`'${n.pureId}'`])}}catch(e){return P(e),void this.ideStore.applicationStore.notificationService.notifyError(e)}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}await(0,Oe.fl)(this.ideStore.renameConcept(s,t,n.pureType,i))}}class tm{cached;datamarts;text}(0,ge.yu)(tm,{cached:(0,ge.Ru)(),datamarts:(0,ge.pb)((0,ge.Ru)()),text:(0,ge.Ru)()});class nm extends tm{error;sessionError}(0,ge.yu)(nm,{cached:(0,ge.Ru)(),datamarts:(0,ge.pb)((0,ge.Ru)()),text:(0,ge.Ru)(),error:(0,ge.Ru)(),sessionError:(0,ge.Ru)()});class sm extends nm{RO;line;column;source}(0,ge.yu)(sm,{cached:(0,ge.Ru)(),datamarts:(0,ge.pb)((0,ge.Ru)()),text:(0,ge.Ru)(),RO:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)(),source:(0,ge.Ru)(),error:(0,ge.Ru)(),sessionError:(0,ge.Ru)()});class im{text;reinit}class am extends im{cache;modifiedFiles=[]}(0,ge.yu)(am,{text:(0,ge.Ru)(),cache:(0,ge.Ru)(),modifiedFiles:(0,ge.pb)((0,ge.Ru)()),reinit:(0,ge.Ru)()});class rm extends im{RO;line;column;source;error;sessionError}(0,ge.yu)(rm,{text:(0,ge.Ru)(),RO:(0,ge.Ru)(),line:(0,ge.jt)((0,ge.Ru)()),column:(0,ge.jt)((0,ge.Ru)()),source:(0,ge.jt)((0,ge.Ru)()),error:(0,ge.Ru)(),sessionError:(0,ge.Ru)()});class om{RO;line;column;source}(0,ge.yu)(om,{RO:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)(),source:(0,ge.Ru)()});class cm extends im{jumpTo}(0,ge.yu)(cm,{text:(0,ge.Ru)(),jumpTo:(0,ge.Ry)(om)});class lm{uuid=(0,a.Z)();sourceID;line;column;foundName}(0,ge.yu)(lm,{sourceID:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)(),foundName:(0,ge.Ru)()});class dm{uuid=(0,a.Z)();sourceID;line;column;foundName;add;messageToBeModified;fileToBeModified;lineToBeModified;columnToBeModified}(0,ge.yu)(dm,{sourceID:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)(),foundName:(0,ge.Ru)(),add:(0,ge.Ru)(),messageToBeModified:(0,ge.Ru)(),fileToBeModified:(0,ge.Ru)(),lineToBeModified:(0,ge.Ru)(),columnToBeModified:(0,ge.Ru)()});class um extends rm{candidateName;candidatesWithPackageImported=[];candidatesWithPackageNotImported=[]}(0,ge.yu)(um,{candidateName:(0,ge.Ru)(),candidatesWithPackageImported:(0,ge.pb)((0,ge.Ry)(lm)),candidatesWithPackageNotImported:(0,ge.pb)((0,ge.Ry)(dm))});class pm extends rm{candidateName;candidates=[]}(0,ge.yu)(pm,{candidateName:(0,ge.Ru)(),candidates:(0,ge.pb)((0,ge.Ry)(dm))});class hm{id;parentId;file;line;column}(0,ge.yu)(hm,{id:(0,ge.Ru)(),parentId:(0,ge.Ru)(),file:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)()});class gm{children=[];li_attr;text;type}(0,ge.yu)(gm,{children:(0,ge.pb)((0,ge.Ry)(gm)),li_attr:(0,ge.Ry)(hm),text:(0,ge.Ru)(),type:(0,ge.Ru)()});class mm extends im{count;filterPaths=[];path;relevantTestsOnly;runnerId;tests=[]}(0,ge.yu)(mm,{count:(0,ge.Ru)(),filterPaths:(0,ge.pb)((0,ge.Ru)()),path:(0,ge.Ru)(),relevantTestsOnly:(0,ge.Ru)(),runnerId:(0,ge.Ru)(),tests:(0,ge.pb)((0,ge.Ry)(gm))});class fm{uuid=(0,a.Z)()}class _m{before;found;after}(0,ge.yu)(_m,{after:(0,ge.Ru)(),before:(0,ge.Ru)(),found:(0,ge.Ru)()});class Em{uuid=(0,a.Z)();sourceId;startLine;startColumn;endLine;endColumn;preview;constructor(e,t,n,s,i){this.sourceId=e,this.startLine=t,this.startColumn=n,this.endLine=s,this.endColumn=i}}(0,ge.yu)(Em,{sourceId:(0,ge.Ru)(),startLine:(0,ge.Ru)(),startColumn:(0,ge.Ru)(),endLine:(0,ge.Ru)(),endColumn:(0,ge.Ru)(),preview:(0,ge.jt)((0,ge.Ry)(_m))});class Cm extends fm{sourceId;coordinates=[];isExpanded=!0;constructor(){super(),(0,Oe.rC)(this,{coordinates:Oe.LO,isExpanded:Oe.LO,setIsExpanded:Oe.aD,dismissCoordinate:Oe.aD})}setCoordinates(e){this.coordinates=e}setIsExpanded(e){this.isExpanded=e}dismissCoordinate(e){w(this.coordinates,e)}}var ym,bm,Tm;(0,ge.yu)(Cm,{sourceId:(0,ge.Ru)(),coordinates:(0,ge.pb)((0,ge.Ry)(Em))}),function(e){e.PASSED="Success",e.FAILED="AssertFail",e.ERROR="Error",e.NOT_RUN="notRan"}(ym||(ym={}));class vm{status;test}class Sm extends vm{test=[]}(0,ge.yu)(Sm,{status:(0,ge.Ru)(),test:(0,ge.pb)((0,ge.Ru)())});class Nm{text;RO;line;column;source;error}(0,ge.yu)(Nm,{text:(0,ge.Ru)(),RO:(0,ge.Ru)(),line:(0,ge.Ru)(),column:(0,ge.Ru)(),source:(0,ge.Ru)(),error:(0,ge.Ru)()});class xm extends vm{test=[];error}(0,ge.yu)(xm,{status:(0,ge.Ru)(),test:(0,ge.pb)((0,ge.Ru)()),error:(0,ge.Ry)(Nm)});class Am{}class Im extends Am{finished;tests=[]}(0,ge.yu)(Im,{finished:(0,ge.Ru)(),tests:(0,ge.pb)((0,ge.PG)((()=>ge.AM),(e=>e.error?(0,ge.vB)(xm,e):(0,ge.vB)(Sm,e))))});class Om extends Am{error;text}(0,ge.yu)(Om,{error:(0,ge.Ru)(),text:(0,ge.Ru)()}),function(e){e.PASSED="PASSED",e.FAILED="FAILED",e.NONE="NONE"}(bm||(bm={})),function(e){e.PASSED="PASSED",e.FAILED="FAILED",e.ERROR="ERROR",e.RUNNING="RUNNING"}(Tm||(Tm={}));class wm{_START_TIME;total;time=0;passedTests=new Set;failedTests=new Map;testsWithError=new Map;notRunTests;results=new Map;constructor(e){(0,Oe.rC)(this,{total:Oe.LO,time:Oe.LO,passedTests:Oe.LO,failedTests:Oe.LO,testsWithError:Oe.LO,notRunTests:Oe.LO,results:Oe.LO,passed:Oe.Fl,error:Oe.Fl,failed:Oe.Fl,passedTestIds:Oe.Fl,failedTestIds:Oe.Fl,testWithErrorIds:Oe.Fl,notRunTestIds:Oe.Fl,numberOfTestsRun:Oe.Fl,runPercentage:Oe.Fl,suiteStatus:Oe.Fl,setTime:Oe.aD,addResult:Oe.aD}),this._START_TIME=Date.now(),this.total=e.size,this.notRunTests=new Set(e)}get passed(){return this.passedTests.size}get error(){return this.testsWithError.size}get failed(){return this.failedTests.size}get passedTestIds(){return Array.from(this.passedTests.values())}get failedTestIds(){return Array.from(this.failedTests.keys())}get testWithErrorIds(){return Array.from(this.testsWithError.keys())}get notRunTestIds(){return Array.from(this.notRunTests.values())}get numberOfTestsRun(){return this.passed+this.error+this.failed}get runPercentage(){return Math.floor(100*this.numberOfTestsRun/this.total)}get suiteStatus(){return this.failed+this.error?bm.FAILED:this.passed?bm.PASSED:bm.NONE}setTime(e){this.time=e}addResult(e,t){switch(this.results.set(t,e),this.notRunTests.delete(t),e.status){case ym.PASSED:this.passedTests.add(t);break;case ym.FAILED:this.failedTests.set(t,$(e,xm));break;case ym.ERROR:this.testsWithError.set(t,$(e,xm));break;default:throw new F(`Unsupported test result status '${e.status}'`)}this.time=Date.now()-this._START_TIME}}class Rm{ideStore;testExecutionResult;checkTestRunnerState=we.create();testResultInfo;allTests=new Map;selectedTestId;treeBuildingState=we.create();treeData;viewAsList=!1;constructor(e,t){(0,Oe.rC)(this,{testResultInfo:Oe.LO.ref,allTests:Oe.LO,selectedTestId:Oe.LO,treeData:Oe.LO.ref,viewAsList:Oe.LO,setViewAsList:Oe.aD,setSelectedTestId:Oe.aD,setTestResultInfo:Oe.aD,setTreeData:Oe.aD,refreshTree:Oe.aD,collapseTree:Oe.aD,expandTree:Oe.aD,buildTreeDataByLayer:Oe.aD,pullTestRunnerResult:Oe.aD,buildTestTreeData:Oe.ls,pollTestRunnerResult:Oe.ls,rerunTestSuite:Oe.ls,cancelTestRun:Oe.ls}),this.ideStore=e,this.testExecutionResult=t}getTreeData(){return U(this.treeData,"Test tree data has not been initialized")}setViewAsList(e){this.viewAsList=e}setSelectedTestId(e){this.selectedTestId=e}setTestResultInfo(e){this.testResultInfo=e}setTreeData(e){this.treeData=e}refreshTree(){this.setTreeData({...U(this.treeData)})}*buildTestTreeData(){if(this.treeBuildingState.isInProgress)return;this.treeBuildingState.inProgress();const e=this.testExecutionResult.tests.map((e=>{const t=e.li_attr.id;return e.type&&this.allTests.set(t,e),t})),t=new Map;this.treeData={rootIds:e,nodes:t},yield this.buildTreeDataByLayer(this.testExecutionResult.tests),this.treeBuildingState.reset()}collapseTree(){this.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),this.refreshTree()}expandTree(){this.getTreeData().nodes.forEach((e=>{e.isOpen=!0})),this.refreshTree()}async buildTreeDataByLayer(e){const t=this.getTreeData(),n=[];return await Promise.all(e.map((e=>new Promise(((s,i)=>setTimeout((()=>{const a=e.li_attr.id,r={id:a,label:e.text,data:e,childrenIds:e.type?void 0:[],isLoading:!1};if(e.type&&this.allTests.set(a,e),t.nodes.set(a,r),"Root"!==e.li_attr.parentId)try{const n=U(t.nodes.get((o=e,`test${this.testExecutionResult.runnerId}_${o.li_attr.parentId}`)),`Can't find parent test node with ID '${e.li_attr.parentId}'`);n.childrenIds?I(n.childrenIds,a):n.childrenIds=[a]}catch(e){return void i(e)}var o;n.push(...e.children),s()}),0)))))),n.length?this.buildTreeDataByLayer(n):Promise.resolve()}*pollTestRunnerResult(){if(this.checkTestRunnerState.isInInitialState){this.checkTestRunnerState.inProgress();try{W(this.allTests.size===this.testExecutionResult.count,`Number of tests scanned in tree (${this.allTests.size}) does not match the number of total reported tests (${this.testExecutionResult.count})`);const e=new wm(new Set(this.allTests.keys()));this.testResultInfo=e,yield this.pullTestRunnerResult(e)}finally{this.checkTestRunnerState.reset()}}}async pullTestRunnerResult(e){const t=(n=await this.ideStore.client.checkTestRunner(this.testExecutionResult.runnerId)).error?(0,ge.vB)(Om,n):(0,ge.vB)(Im,n);var n;return t instanceof Im?(await Promise.all(t.tests.map((t=>A((()=>{return e.addResult(t,(n=t,`test${this.testExecutionResult.runnerId}_${n.test.join("_")}`));var n}))))),t.finished?Promise.resolve():new Promise(((t,n)=>setTimeout((()=>{try{t(this.pullTestRunnerResult(e))}catch(e){P(e),this.ideStore.applicationStore.notificationService.notifyWarning("Failed to run test"+(e.message?`: ${e.message}`:"")),n(e)}}),1e3)))):(this.setTestResultInfo(void 0),Promise.resolve())}*rerunTestSuite(){this.ideStore.testRunState.isInProgress||(yield(0,Oe.fl)(this.ideStore.executeTests(this.testExecutionResult.path,this.testExecutionResult.relevantTestsOnly)))}*cancelTestRun(){this.ideStore.testRunState.isInProgress&&(yield this.ideStore.client.cancelTestRunner(this.testExecutionResult.runnerId),this.ideStore.applicationStore.notificationService.notifyWarning(`Stopped running test (id: ${this.testExecutionResult.runnerId}) successfully!`))}}class km{}class Lm extends km{error;errorDialog;text}(0,ge.yu)(Lm,{error:(0,ge.Ru)(),errorDialog:(0,ge.Ru)(),text:(0,ge.Ru)()});class Fm{networkClient;userId="localuser";sessionId=`${this.userId}@${Date.now()}@abcd`;compilerMode;mode;constructor(e){this.networkClient=e}get baseUrl(){return U(this.networkClient.baseUrl,"Pure client has not been configured properly")}initialize=e=>this.networkClient.get(`${this.baseUrl}/initialize`,void 0,void 0,{requestCache:e,sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getInitializationActivity=()=>this.networkClient.get(`${this.baseUrl}/initializationActivity`,void 0,void 0,{sessionId:this.sessionId});getConceptActivity=()=>this.networkClient.get(`${this.baseUrl}/conceptsActivity`,void 0,void 0,{sessionId:this.sessionId});execute=(e,t,n)=>this.networkClient.post(`${this.baseUrl}/${t}`,{extraParams:n,openFiles:e},void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getExecutionActivity=()=>this.networkClient.get(`${this.baseUrl}/executionActivity`,void 0,void 0,{sessionId:this.sessionId});findFiles=(e,t)=>this.networkClient.get(`${this.baseUrl}/findPureFiles`,void 0,void 0,{file:e,regex:t});searchText=(e,t,n,s=2e3)=>this.networkClient.get(`${this.baseUrl}/findInSources`,void 0,void 0,{string:e,caseSensitive:t,regex:n,limit:s});getTextSearchPreview=e=>this.networkClient.post(`${this.baseUrl}/getTextSearchPreview`,e);checkTestRunner=e=>this.networkClient.get(`${this.baseUrl}/testRunnerCheck`,void 0,void 0,{sessionId:this.sessionId,testRunnerId:e});cancelTestRunner=e=>this.networkClient.get(`${this.baseUrl}/testRunnerCancel`,void 0,void 0,{sessionId:this.sessionId,testRunnerId:e});getConceptChildren=e=>this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::display_ide(String[1]):String[1]",param:e?`'${e}'`:`'${zh}'`,format:"raw",mode:this.mode,sessionId:this.sessionId});getConceptInfo=async(e,t,n)=>{const s=await this.networkClient.get(`${this.baseUrl}/getConceptInfo`,void 0,void 0,{file:e,line:t,column:n});if(s.error)throw new Error(s.text);return s};getUsages=async(e,t)=>{const n=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:e,param:t});return Array.isArray(n)?n:[n]};renameConcept=e=>this.networkClient.put(`${this.baseUrl}/renameConcept`,e);movePackageableElements=e=>this.networkClient.put(`${this.baseUrl}/movePackageableElements`,e);getPackageableElementsUsage=async e=>{const t=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:Ag.MULTIPLE_PATHS,param:[`'${e.join(",")}'`]});return Array.isArray(t)?t:[t]};getChildPackageableElements=async e=>{const t=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::getChildPackageableElements_String_1__String_MANY_",param:[`'${e}'`]});return(Array.isArray(t)?t:[t]).map((e=>JSON.parse(e)))};getFile=e=>this.networkClient.get(`${this.baseUrl}/fileAsJson/${e}`,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getDirectoryChildren=e=>this.networkClient.get(`${this.baseUrl}/dir`,void 0,void 0,{parameters:e??"/",mode:this.mode,sessionId:this.sessionId});updateSource=e=>this.networkClient.put(`${this.baseUrl}/updateSource`,e);createFile=e=>this.networkClient.post(`${this.baseUrl}/newFile/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});createFolder=e=>this.networkClient.post(`${this.baseUrl}/newFolder/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});renameFile=(e,t)=>this.networkClient.put(`${this.baseUrl}/renameFile`,{oldPath:e,newPath:t},void 0);deleteDirectoryOrFile=e=>this.networkClient.delete(`${this.baseUrl}/deleteFile/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId});getDiagramInfo=async e=>JSON.parse(await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::diagram::getDiagramInfo_String_1__String_1_",param:[`'${e}'`]}));getDiagramClassInfo=async e=>JSON.parse(await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::diagram::getDiagramClassInfo_String_1__String_1_",param:[`'${e}'`]}));getSuggestionsForIncompletePath=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/incompletePath`,{path:e,types:t});getSuggestionsForIdentifier=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/identifier`,{importPaths:e,types:t});getSuggestionsForAttribute=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/attribute`,{importPaths:e,path:t});getSuggestionsForClass=e=>this.networkClient.post(`${this.baseUrl}/suggestion/class`,{importPaths:e});getSuggestionsForVariable=(e,t,n)=>this.networkClient.post(`${this.baseUrl}/suggestion/variable`,{sourceId:e,line:t,column:n})}class Pm{_initialDefaultSize;_tempSize;size;defaultSize;snapSize;maxSize;constructor(e){this.size=e.initial,this._tempSize=e.default,this.defaultSize=e.default,this._initialDefaultSize=e.default,this.snapSize=e.snap,(0,Oe.rC)(this,{_tempSize:Oe.LO,size:Oe.LO,defaultSize:Oe.LO,snapSize:Oe.LO,maxSize:Oe.LO,isOpen:Oe.Fl,isMaximizable:Oe.Fl,isMaximized:Oe.Fl,setSize:Oe.aD,open:Oe.aD,close:Oe.aD,toggle:Oe.aD,setMaxSize:Oe.aD,maximize:Oe.aD,minimize:Oe.aD,toggleMaximize:Oe.aD})}get isOpen(){return 0!==this.size}get isMaximizable(){return void 0!==this.maxSize}get isMaximized(){return void 0!==this.maxSize&&this.size===this.maxSize}setSize(e){e=Math.max(e,0),this.maxSize&&(e=Math.min(e,this.maxSize)),this.size!==e&&(void 0!==this.snapSize?e>this.size?this.maxSize&&e>this.maxSize-this.snapSize?this.size=this.maxSize:this.size=e<this.snapSize?this.defaultSize:e:this.size=e<this.snapSize?0:e:this.size=e)}open(){0===this.size&&(this.size=this._tempSize)}close(){0!==this.size&&(this._tempSize=this.size||this.defaultSize,this.size=0)}toggle(){0===this.size?this.open():this.close()}setMaxSize(e){this._tempSize=Math.min(this._tempSize,e),this.size=Math.min(this.size,e),this.defaultSize=Math.min(this._initialDefaultSize,e),this.maxSize=e}maximize(){void 0!==this.maxSize&&this.size!==this.maxSize&&(this._tempSize=this.size,this.size=this.maxSize)}minimize(){void 0!==this.maxSize&&this.size===this.maxSize&&(this.size=this._tempSize===this.maxSize?this.defaultSize:this._tempSize)}toggleMaximize(){void 0!==this.maxSize&&(this.size===this.maxSize?this.minimize():this.maximize())}}class Dm{lowerBound;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return da([Oa.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Dm(0,0);static ZERO_ONE=new Dm(0,1);static ZERO_MANY=new Dm(0,void 0);static ONE=new Dm(1,1);static ONE_MANY=new Dm(1,void 0)}class Mm{_UUID=(0,a.Z)();tag;value;constructor(e,t){this.tag=e,this.value=t}get hashCode(){return da([Oa.TAGGED_VALUE,this.tag.pointerHashCode,this.value])}}class Bm extends Ya{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Oa.TAG_POINTER,this.value.value,this.ownerReference.valueForSerialization??""].map(la).join(",")}}class jm extends Bm{ownerReference;constructor(e){const t=Xa.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new jm(e)}}class Um extends Ya{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Oa.STEREOTYPE_POINTER,this.value.value,this.ownerReference.valueForSerialization??""].map(la).join(",")}}class Gm extends Um{ownerReference;constructor(e){const t=Xa.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new Gm(e)}}class Vm extends Ya{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}}class $m extends Vm{ownerReference;constructor(e){const t=Xa.create(e.rawType);super(t,e),this.ownerReference=t}static create(e){return new $m(e)}}class Hm{_UUID=(0,a.Z)();rawType;constructor(e){this.rawType=e}}class zm{_UUID=(0,a.Z)();_OWNER;name;multiplicity;genericType;aggregation;stereotypes=[];taggedValues=[];constructor(e,t,n,s){this.name=e,this.multiplicity=t,this.genericType=n,this._OWNER=s}get hashCode(){return da([Oa.PROPERTY,this.name,this.multiplicity,this.genericType.ownerReference.valueForSerialization??"",this.aggregation??"",da(this.stereotypes.map((e=>e.pointerHashCode))),da(this.taggedValues)])}}var Wm;!function(e){e.NONE="NONE",e.SHARED="SHARED",e.COMPOSITE="COMPOSITE"}(Wm||(Wm={}));class Km{_UUID=(0,a.Z)();_OWNER;name;genericType;multiplicity;stereotypes=[];taggedValues=[];body;parameters;constructor(e,t,n,s){this.name=e,this.multiplicity=t,this.genericType=n,this._OWNER=s}get hashCode(){return da([Oa.DERIVED_PROPERTY,this.name,this.multiplicity,this.genericType.ownerReference.valueForSerialization??"",da(this.stereotypes.map((e=>e.pointerHashCode))),da(this.taggedValues),ka(this.parameters,this.body)])}}class Ym extends ja{accept_PackageableElementVisitor(e){return e.visit_PrimitiveType(this)}static STRING=new Ym(ma.STRING);static BOOLEAN=new Ym(ma.BOOLEAN);static BINARY=new Ym(ma.BINARY);static NUMBER=new Ym(ma.NUMBER);static INTEGER=new Ym(ma.INTEGER);static FLOAT=new Ym(ma.FLOAT);static DECIMAL=new Ym(ma.DECIMAL);static DATE=new Ym(ma.DATE);static STRICTDATE=new Ym(ma.STRICTDATE);static DATETIME=new Ym(ma.DATETIME);static STRICTTIME=new Ym(ma.STRICTTIME);static LATESTDATE=new Ym(ma.LATESTDATE);static BYTE=new Ym(ma.BYTE)}class Jm extends Ba{static NAME="INTERNAL__PseudoClass";static INSTANCE=new Jm;constructor(){super(Jm.NAME)}}class Xm extends Da{_generatedMilestonedProperties=[];properties;derivedProperties=[];constructor(e){super(e);const t=[new zm("",Dm.ONE,$m.create(new Hm(Jm.INSTANCE)),Jm.INSTANCE),new zm("",Dm.ONE,$m.create(new Hm(Jm.INSTANCE)),Jm.INSTANCE)];t[0]._OWNER=this,t[1]._OWNER=this,this.properties=t}dispose(){super.dispose();const[e,t]=this.properties;if(e.genericType.value.rawType instanceof Ba&&t.genericType.value.rawType instanceof Ba){const n=$(e.genericType.value.rawType,Ba),s=$(t.genericType.value.rawType,Ba);n.propertiesFromAssociations=n.propertiesFromAssociations.filter((e=>e!==t)),s.propertiesFromAssociations=s.propertiesFromAssociations.filter((t=>t!==e))}}get _elementHashCode(){return da([Oa.ASSOCIATION,this.path,da(this.properties),da(this.derivedProperties),da(this.stereotypes.map((e=>e.pointerHashCode))),da(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Association(this)}}class qm extends Da{includes=[];classMappings=[];enumerationMappings=[];associationMappings=[];test=[];tests=[];get _elementHashCode(){return da([Oa.MAPPING,this.path,da(this.classMappings),da(this.enumerationMappings),da(this.associationMappings),da(this.test),da(this.includes),da(this.tests)])}accept_PackageableElementVisitor(e){return e.visit_Mapping(this)}}class Zm extends Da{p_stereotypes=[];p_tags=[];get _elementHashCode(){return da([Oa.PROFILE,this.path,da(this.p_stereotypes.map((e=>e.value))),da(this.p_tags.map((e=>e.value)))])}accept_PackageableElementVisitor(e){return e.visit_Profile(this)}}class Qm extends Da{pattern="/";owners=[];documentation="";autoActivateUpdates=!0;execution;test;tests=[];postValidations=[];get patternParameters(){return(0,ve.Z)((this.pattern.match(/\{\w+\}/gu)??[]).map((e=>e.substring(1,e.length-1))))}get _elementHashCode(){return da([Oa.SERVICE,da(this.stereotypes.map((e=>e.pointerHashCode))),da(this.taggedValues),this.path,this.pattern,da(this.owners),this.documentation,this.autoActivateUpdates.toString(),this.execution,this.test??"",da(this.tests),da(this.postValidations)])}accept_PackageableElementVisitor(e){return e.visit_Service(this)}}class ef extends Da{functionName;constructor(e){super(e),this.functionName=e}}class tf extends ef{}class nf extends tf{returnType;returnMultiplicity;parameters=[];expressionSequence=[];constructor(e,t,n){super(e),this.returnType=t,this.returnMultiplicity=n}get _elementHashCode(){return da([Oa.FUNCTION,this.path,da(this.parameters),this.returnType.valueForSerialization??"",da(this.taggedValues),da(this.stereotypes.map((e=>e.pointerHashCode))),ka(void 0,this.expressionSequence)])}accept_PackageableElementVisitor(e){return e.visit_ConcreteFunctionDefinition(this)}}class sf extends Da{includes=[]}class af extends sf{sections=[];get _elementHashCode(){return da([Oa.FLAT_DATA,this.path,da(this.includes.map((e=>e.valueForSerialization??""))),da(this.sections)])}accept_PackageableElementVisitor(e){return e.visit_FlatData(this)}}class rf extends Da{runtimeValue;get _elementHashCode(){return da([Oa.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}}class of extends Da{connectionValue;get _elementHashCode(){return da([Oa.PACKAGEABLE_CONNECTION,this.path,this.connectionValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableConnection(this)}}class cf extends Da{}class lf extends cf{type;generationOutputPath;scopeElements=[];configurationProperties=[];get _elementHashCode(){return da([Oa.FILE_GENERATION,this.path,this.type,this.generationOutputPath??"",da(this.scopeElements.map((e=>e instanceof Ja?e.valueForSerialization??"":e))),da(this.configurationProperties)])}accept_PackageableElementVisitor(e){return e.visit_FileGenerationSpecification(this)}}class df extends Da{generationNodes=[];fileGenerations=[];findGenerationElementById(e){return this.generationNodes.find((t=>t.id===e))?.generationElement.value}get _elementHashCode(){return da([Oa.GENERATION_TREE,this.path,da(this.generationNodes),da(this.fileGenerations.map((e=>La(xa.FILE_GENERATION,e.valueForSerialization??""))))])}accept_PackageableElementVisitor(e){return e.visit_GenerationSpecification(this)}}class uf extends sf{schemas=[];joins=[];filters=[];get _elementHashCode(){return da([Oa.DATABASE,this.path,da(this.includes.map((e=>e.valueForSerialization??""))),da(this.schemas),da(this.joins),da(this.filters)])}accept_PackageableElementVisitor(e){return e.visit_Database(this)}}class pf{_class;index=new Map;constructor(e){this._class=e}getElementClass(){return this._class}get elements(){return Array.from(this.index.values())}getElement(e){return this.index.get(e)}setElement(e,t){this.index.set(e,t)}deleteElement(e){this.index.delete(e)}renameElement(e,t){const n=this.getElement(e);n&&(this.deleteElement(e),this.setElement(t,n))}}class hf extends Da{data;get hashCode(){return da([Oa.DATA_ELEMENT,this.path,da(this.stereotypes.map((e=>e.pointerHashCode))),da(this.taggedValues),this.data])}accept_PackageableElementVisitor(e){return e.visit_DataElement(this)}}class gf extends Da{executionParameters=[];get _elementHashCode(){return da([Oa.EXECUTION_ENVIRONMENT_INSTANCE,this.path,da(this.executionParameters)])}accept_PackageableElementVisitor(e){return e.visit_ExecutionEnvironmentInstance(this)}}class mf extends Da{content;get _elementHashCode(){return da([Oa.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT,this.path,Ra(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownPackageableElement(this)}}class ff extends Da{function}class _f extends ff{content;get _elementHashCode(){return da([Oa.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR,this.path,Ra(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownFunctionActivator(this)}}class Ef extends sf{content;get _elementHashCode(){return da([Oa.INTERNAL__UNKNOWN_STORE,this.path,Ra(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownStore(this)}}const Cf=new Set([Da,Ma,ja,Ym,Ba,Xm,Ua,nf,Zm,Va,Ga,hf,sf,qm,of,rf,df,lf,Qm,gf,class extends Da{sections=[];get _elementHashCode(){return da([Oa.SECTION_INDEX,this.path,da(this.sections)])}accept_PackageableElementVisitor(e){return e.visit_SectionIndex(this)}},mf,Ef]);class yf{root;_origin;extensions=[];elementSectionIndex=new Map;sectionIndicesIndex=new Map;profilesIndex=new Map;typesIndex=new Map;associationsIndex=new Map;functionsIndex=new Map;functionActivatorsIndex=new Map;storesIndex=new Map;mappingsIndex=new Map;connectionsIndex=new Map;runtimesIndex=new Map;servicesIndex=new Map;generationSpecificationsIndex=new Map;fileGenerationsIndex=new Map;dataElementsIndex=new Map;executionEnvironmentsIndex=new Map;INTERNAL__unknownElementsIndex=new Map;constructor(e,t,n){this.root=new $a(e),this.extensions=this.createGraphExtensions(t),this._origin=n}createGraphExtensions(e){return e.map((e=>{if(Cf.has(e))throw new L("Pure graph extension not allowed for the specified class. Consider removing this extension from plugins.");return new pf(e)}))}get ownSectionIndices(){return Array.from(this.sectionIndicesIndex.values())}get ownProfiles(){return Array.from(this.profilesIndex.values())}get ownEnumerations(){return Array.from(this.typesIndex.values()).filter(G(Ua))}get ownMeasures(){return Array.from(this.typesIndex.values()).filter(G(Va))}get ownClasses(){return Array.from(this.typesIndex.values()).filter(G(Ba))}get ownTypes(){return Array.from(this.typesIndex.values())}get ownAssociations(){return Array.from(this.associationsIndex.values())}get ownFunctions(){return Array.from(this.functionsIndex.values())}get ownFunctionActivators(){return Array.from(this.functionActivatorsIndex.values())}get ownStores(){return Array.from(this.storesIndex.values())}get ownFlatDatas(){return Array.from(this.storesIndex.values()).filter(G(af))}get ownDatabases(){return Array.from(this.storesIndex.values()).filter(G(uf))}get ownMappings(){return Array.from(this.mappingsIndex.values())}get ownServices(){return Array.from(this.servicesIndex.values())}get ownRuntimes(){return Array.from(this.runtimesIndex.values())}get ownConnections(){return Array.from(this.connectionsIndex.values())}get ownFileGenerations(){return Array.from(this.fileGenerationsIndex.values())}get ownDataElements(){return Array.from(this.dataElementsIndex.values())}get ownExecutionEnvironments(){return Array.from(this.executionEnvironmentsIndex.values())}get ownGenerationSpecifications(){return Array.from(this.generationSpecificationsIndex.values())}get ownTestables(){return[...this.ownServices,...this.ownMappings]}get origin(){return this._origin}setOrigin(e){if(this._origin)throw new L("Graph origin has already been set");this._origin=e}getExtensionElements(e){return this.getExtensionForElementClass(e).elements}getExtensionForElementClass(e){const t=this.extensions.filter((t=>t.getElementClass()===e));if(0===t.length)throw new F("Can't find graph extension for the specified element class: no compatible graph extensions available from plugins");if(t.length>1)throw new L("Found multiple extensions for the specified element class");return t[0]}getOwnNullableSection=e=>this.elementSectionIndex.get(e);getOwnNullableSectionIndex=e=>this.sectionIndicesIndex.get(e);getOwnNullableProfile=e=>this.profilesIndex.get(e);getOwnNullableType=e=>this.typesIndex.get(e);getOwnNullableClass=e=>{const t=this.getOwnNullableType(e);return t instanceof Ba?t:void 0};getOwnNullableEnumeration=e=>{const t=this.getOwnNullableType(e);return t instanceof Ua?t:void 0};getOwnNullableMeasure=e=>{const t=this.getOwnNullableType(e);return t instanceof Va?t:void 0};getOwnNullableAssociation=e=>this.associationsIndex.get(e);getOwnNullableFunction=e=>this.functionsIndex.get(e);getOwnNullableFunctionActivator=e=>this.functionActivatorsIndex.get(e);getOwnNullableStore=e=>this.storesIndex.get(e);getOwnNullableMapping=e=>this.mappingsIndex.get(e);getOwnNullableConnection=e=>this.connectionsIndex.get(e);getOwnNullableRuntime=e=>this.runtimesIndex.get(e);getOwnNullableService=e=>this.servicesIndex.get(e);getOwnNullableGenerationSpecification=e=>this.generationSpecificationsIndex.get(e);getOwnNullableFileGeneration=e=>this.fileGenerationsIndex.get(e);getOwnNullableDataElement=e=>this.dataElementsIndex.get(e);getOwnNullableExecutionEnviornment=e=>this.executionEnvironmentsIndex.get(e);getOwnSectionIndex=e=>U(this.getOwnNullableSectionIndex(e),`Can't find section index '${e}'`);getOwnProfile=e=>U(this.getOwnNullableProfile(e),`Can't find profile '${e}'`);getOwnType=e=>U(this.getOwnNullableType(e),`Can't find type '${e}'`);getOwnClass=e=>U(this.getOwnNullableClass(e),`Can't find class '${e}'`);getOwnEnumeration=e=>U(this.getOwnNullableEnumeration(e),`Can't find enumeration '${e}'`);getOwnMeasure=e=>U(this.getOwnNullableMeasure(e),`Can't find measure '${e}'`);getOwnAssociation=e=>U(this.getOwnNullableAssociation(e),`Can't find association '${e}'`);getOwnFunction=e=>U(this.getOwnNullableFunction(e),`Can't find function '${e}'`);getOwnFunctionActivator=e=>U(this.getOwnNullableFunctionActivator(e),`Can't find function activator '${e}'`);getOwnStore=e=>U(this.getOwnNullableStore(e),`Can't find store '${e}'`);getOwnDatabase=e=>$(this.getOwnNullableStore(e),uf,`Can't find database '${e}'`);getOwnFlatDataStore=e=>$(this.getOwnNullableStore(e),af,`Can't find flat-data store '${e}'`);getOwnMapping=e=>U(this.getOwnNullableMapping(e),`Can't find mapping '${e}'`);getOwnConnection=e=>U(this.getOwnNullableConnection(e),`Can't find connection '${e}'`);getOwnRuntime=e=>U(this.getOwnNullableRuntime(e),`Can't find runtime '${e}'`);getOwnService=e=>U(this.getOwnNullableService(e),`Can't find service '${e}'`);getOwnGenerationSpecification=e=>U(this.getOwnNullableGenerationSpecification(e),`Can't find generation specification '${e}'`);getOwnFileGeneration=e=>U(this.getOwnNullableFileGeneration(e),`Can't find file generation '${e}'`);getOwnDataElement=e=>U(this.getOwnNullableDataElement(e),`Can't find data element '${e}'`);getOwnExecutionEnvironment=e=>U(this.getOwnNullableExecutionEnviornment(e),`Can't find execution environment element '${e}'`);getOwnNullableExtensionElement(e,t){return this.getExtensionForElementClass(t).getElement(e)}setOwnSection(e,t){this.elementSectionIndex.set(e,t)}setOwnSectionIndex(e,t){this.sectionIndicesIndex.set(e,t)}setOwnProfile(e,t){this.profilesIndex.set(e,t)}setOwnType(e,t){this.typesIndex.set(e,t)}setOwnAssociation(e,t){this.associationsIndex.set(e,t)}setOwnFunction(e,t){this.functionsIndex.set(e,t)}setOwnFunctionActivator(e,t){this.functionActivatorsIndex.set(e,t)}setOwnStore(e,t){this.storesIndex.set(e,t)}setOwnMapping(e,t){this.mappingsIndex.set(e,t)}setOwnConnection(e,t){this.connectionsIndex.set(e,t)}setOwnRuntime(e,t){this.runtimesIndex.set(e,t)}setOwnService(e,t){this.servicesIndex.set(e,t)}setOwnGenerationSpecification(e,t){this.generationSpecificationsIndex.set(e,t)}setOwnFileGeneration(e,t){this.fileGenerationsIndex.set(e,t)}setOwnDataElement(e,t){this.dataElementsIndex.set(e,t)}setOwnExecutionEnvironment(e,t){this.executionEnvironmentsIndex.set(e,t)}INTERNAL__setOwnUnknownElement(e,t){this.INTERNAL__unknownElementsIndex.set(e,t)}setOwnElementInExtension(e,t,n){this.getExtensionForElementClass(n).setElement(e,t)}get allOwnElements(){return[...this.ownProfiles,...this.ownEnumerations,...this.ownMeasures,...this.ownClasses,...this.ownAssociations,...this.ownFunctions,...this.ownFunctionActivators,...this.ownStores,...this.ownMappings,...this.ownServices,...this.ownRuntimes,...this.ownConnections,...this.ownGenerationSpecifications,...this.ownFileGenerations,...this.ownDataElements,...this.ownExecutionEnvironments,...Array.from(this.INTERNAL__unknownElementsIndex.values()),...this.extensions.flatMap((e=>e.elements))]}async dispose(){this.allOwnElements.length&&await Promise.all(this.allOwnElements.map((e=>A((()=>{e.dispose()})))))}getNullablePackage=e=>e?D((()=>Xp(this.root,e,!1,void 0))):this.root;getOwnNullableElement(e,t){let n=this.sectionIndicesIndex.get(e)??this.INTERNAL__unknownElementsIndex.get(e)??this.typesIndex.get(e)??this.profilesIndex.get(e)??this.associationsIndex.get(e)??this.functionsIndex.get(e)??this.functionActivatorsIndex.get(e)??this.storesIndex.get(e)??this.mappingsIndex.get(e)??this.servicesIndex.get(e)??this.runtimesIndex.get(e)??this.connectionsIndex.get(e)??this.fileGenerationsIndex.get(e)??this.dataElementsIndex.get(e)??this.executionEnvironmentsIndex.get(e)??this.generationSpecificationsIndex.get(e);if(!n)for(const t of this.extensions){const s=t.getElement(e);if(s){n=s;break}}return t&&!n?this.getNullablePackage(e):n}addOwnElement(e,t){Kp(t?qp(this,t,void 0):this.root,e),e instanceof qm?this.setOwnMapping(e.path,e):e instanceof sf?this.setOwnStore(e.path,e):e instanceof Ma?this.setOwnType(e.path,e):e instanceof Xm?this.setOwnAssociation(e.path,e):e instanceof Zm?this.setOwnProfile(e.path,e):e instanceof nf?this.setOwnFunction(e.path,e):e instanceof ff?this.setOwnFunctionActivator(e.path,e):e instanceof Qm?this.setOwnService(e.path,e):e instanceof of?this.setOwnConnection(e.path,e):e instanceof rf?this.setOwnRuntime(e.path,e):e instanceof lf?this.setOwnFileGeneration(e.path,e):e instanceof df?this.setOwnGenerationSpecification(e.path,e):e instanceof hf?this.setOwnDataElement(e.path,e):e instanceof gf?this.setOwnExecutionEnvironment(e.path,e):e instanceof $a||this.getExtensionForElementClass(v(e)).setElement(e.path,e)}deleteOwnElement(e){e.package&&Yp(e.package,e),e instanceof mf?this.INTERNAL__unknownElementsIndex.delete(e.path):e instanceof qm?this.mappingsIndex.delete(e.path):e instanceof sf?this.storesIndex.delete(e.path):e instanceof Ma?(this.typesIndex.delete(e.path),e instanceof Va&&(e.canonicalUnit&&this.typesIndex.delete(e.canonicalUnit.path),e.nonCanonicalUnits.forEach((e=>this.typesIndex.delete(e.path))))):e instanceof Xm?this.associationsIndex.delete(e.path):e instanceof Zm?this.profilesIndex.delete(e.path):e instanceof nf?this.functionsIndex.delete(e.path):e instanceof ff?this.functionActivatorsIndex.delete(e.path):e instanceof Qm?this.servicesIndex.delete(e.path):e instanceof rf?this.runtimesIndex.delete(e.path):e instanceof of?this.connectionsIndex.delete(e.path):e instanceof lf?this.fileGenerationsIndex.delete(e.path):e instanceof df?this.generationSpecificationsIndex.delete(e.path):e instanceof hf?this.dataElementsIndex.delete(e.path):e instanceof gf?this.executionEnvironmentsIndex.delete(e.path):e instanceof $a?e.children.forEach((e=>this.deleteOwnElement(e))):this.getExtensionForElementClass(v(e)).deleteElement(e.path)}renameOwnElement(e,t,n){if(t===n)return;if(!n)throw new F(`Can't rename element '${t} to '${n}': path is empty'`);if(e instanceof $a&&!Boolean(n.match(/^(?:\w[\w$_-]*)(?:::\w[\w$_-]*)*$/))||!(e instanceof $a)&&!Boolean(n.match(/^(?:\w[\w$_-]*)(?:::\w[\w$_-]*)+$/)))throw new F(`Can't rename element '${t} to '${n}': invalid path'`);if(this.getOwnNullableElement(n,!0))throw new F(`Can't rename element '${t} to '${n}': another element with the same path already existed'`);const[s,i]=zp(n);if(!(e instanceof $a)){const t=this.getNullablePackage(s)??(""!==s?qp(this,s,void 0):this.root);e.name=i,e instanceof nf&&(e.functionName=(a=e,(r=e.name).substring(0,r.indexOf((e=>`_${e.parameters.map((e=>`${e.type.value.name}_${th(e.multiplicity.lowerBound,e.multiplicity.upperBound)}_`)).join("_")}_${e.returnType.value.name}_${th(e.returnMultiplicity.lowerBound,e.returnMultiplicity.upperBound)}_`)(a))))),e.package!==t&&(e.package&&Yp(e.package,e),Kp(t,e))}var a,r;if(e instanceof mf)this.INTERNAL__unknownElementsIndex.delete(t),this.INTERNAL__unknownElementsIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof _f)this.functionActivatorsIndex.delete(t),this.functionActivatorsIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Ef)this.storesIndex.delete(t),this.storesIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof qm)this.mappingsIndex.delete(t),this.mappingsIndex.set(n,e);else if(e instanceof sf)this.storesIndex.delete(t),this.storesIndex.set(n,e);else if(e instanceof Ma)this.typesIndex.delete(t),this.typesIndex.set(n,e),e instanceof Va&&(e.canonicalUnit&&(this.typesIndex.delete(e.canonicalUnit.path),this.typesIndex.set(e.canonicalUnit.path.replace(t,n),e.canonicalUnit)),e.nonCanonicalUnits.forEach((e=>{this.typesIndex.delete(e.path),this.typesIndex.set(e.path.replace(t,n),e)})));else if(e instanceof Xm)this.associationsIndex.delete(t),this.associationsIndex.set(n,e);else if(e instanceof Zm)this.profilesIndex.delete(t),this.profilesIndex.set(n,e);else if(e instanceof nf)this.functionsIndex.delete(t),this.functionsIndex.set(n,e);else if(e instanceof ff)this.functionActivatorsIndex.delete(t),this.functionActivatorsIndex.set(n,e);else if(e instanceof Qm)this.servicesIndex.delete(t),this.servicesIndex.set(n,e);else if(e instanceof rf)this.runtimesIndex.delete(t),this.runtimesIndex.set(n,e);else if(e instanceof of)this.connectionsIndex.delete(t),this.connectionsIndex.set(n,e);else if(e instanceof lf)this.fileGenerationsIndex.delete(t),this.fileGenerationsIndex.set(n,e);else if(e instanceof hf)this.dataElementsIndex.delete(t),this.dataElementsIndex.set(n,e);else if(e instanceof gf)this.executionEnvironmentsIndex.delete(t),this.executionEnvironmentsIndex.set(n,e);else if(e instanceof df)this.generationSpecificationsIndex.delete(t),this.generationSpecificationsIndex.set(n,e);else if(e instanceof $a){const a=new Map;if(e.children.forEach((e=>{a.set(e.path,e)})),e.name=i,!e.package)throw new L("Can't rename root package");const r=e.package;if(r!==this.getNullablePackage(s)){Yp(r,e);const t=""!==s?qp(this,s,void 0):this.root;Kp(t,e)}a.forEach(((e,s)=>{this.renameOwnElement(e,s,s.replace(t,n))}))}else this.getExtensionForElementClass(v(e)).renameElement(t,n)}TEMPORARY__deleteOwnSectionIndex(){this.sectionIndicesIndex.forEach((e=>{e.setIsDeleted(!0),this.sectionIndicesIndex.delete(e.path)})),this.sectionIndicesIndex=new Map,this.elementSectionIndex=new Map}}class bf{}class Tf extends bf{groupId;artifactId;versionId;constructor(e,t,n){super(),this.groupId=e,this.artifactId=t,this.versionId=n}}class vf extends yf{constructor(e,t,n){super(t.name,e,n),this.root=t}}const Sf=(e,t)=>n=>{for(const s of e.dependencyGraphs){const e=t(s,n);if(e)return e}};class Nf{extensionElementClasses;_origin;roots=[];projectDependencyModelsIndex=new Map;constructor(e){this.extensionElementClasses=e}initialize(e){Array.from(e.entries()).forEach((([e,t])=>{const n=new $a((e=>`@dependency__${e}`)(e));this.roots.push(n),this.projectDependencyModelsIndex.set(e,new vf(this.extensionElementClasses,n,new Tf(t.groupId,t.artifactId,t.versionId)))}))}get numberOfDependencies(){return this.projectDependencyModelsIndex.size}get hasDependencies(){return Boolean(this.projectDependencyModelsIndex.size)}get dependencyGraphs(){return Array.from(this.projectDependencyModelsIndex.values())}get allOwnElements(){return this.dependencyGraphs.flatMap((e=>e.allOwnElements))}get origin(){return this._origin}setOrigin(e){if(this._origin)throw new L("Graph origin has already been set");this._origin=e}getOwnNullableSectionIndex=Sf(this,((e,t)=>e.getOwnNullableSectionIndex(t)));getOwnNullableProfile=Sf(this,((e,t)=>e.getOwnNullableProfile(t)));getOwnNullableType=Sf(this,((e,t)=>e.getOwnNullableType(t)));getOwnNullableClass=Sf(this,((e,t)=>e.getOwnNullableClass(t)));getOwnNullableEnumeration=Sf(this,((e,t)=>e.getOwnNullableEnumeration(t)));getOwnNullableMeasure=Sf(this,((e,t)=>e.getOwnNullableMeasure(t)));getOwnNullableAssociation=Sf(this,((e,t)=>e.getOwnNullableAssociation(t)));getOwnNullableFunction=Sf(this,((e,t)=>e.getOwnNullableFunction(t)));getOwnNullableFunctionActivator=Sf(this,((e,t)=>e.getOwnNullableFunctionActivator(t)));getOwnNullableStore=Sf(this,((e,t)=>e.getOwnNullableStore(t)));getOwnNullableMapping=Sf(this,((e,t)=>e.getOwnNullableMapping(t)));getOwnNullableConnection=Sf(this,((e,t)=>e.getOwnNullableConnection(t)));getOwnNullableRuntime=Sf(this,((e,t)=>e.getOwnNullableRuntime(t)));getOwnNullableService=Sf(this,((e,t)=>e.getOwnNullableService(t)));getOwnNullableGenerationSpecification=Sf(this,((e,t)=>e.getOwnNullableGenerationSpecification(t)));getOwnNullableFileGeneration=Sf(this,((e,t)=>e.getOwnNullableFileGeneration(t)));getOwnNullableDataElement=Sf(this,((e,t)=>e.getOwnNullableDataElement(t)));getOwnExecutionEnvironment=Sf(this,((e,t)=>e.getOwnNullableExecutionEnviornment(t)));getOwnNullableExtensionElement(e,t){for(const n of this.dependencyGraphs){const s=n.getExtensionForElementClass(t).getElement(e);if(s)return s}}get sectionIndices(){return this.dependencyGraphs.flatMap((e=>e.ownSectionIndices))}get profiles(){return this.dependencyGraphs.flatMap((e=>e.ownProfiles))}get enumerations(){return this.dependencyGraphs.flatMap((e=>e.ownEnumerations))}get measures(){return this.dependencyGraphs.flatMap((e=>e.ownMeasures))}get classes(){return this.dependencyGraphs.flatMap((e=>e.ownClasses))}get types(){return this.dependencyGraphs.flatMap((e=>e.ownTypes))}get associations(){return this.dependencyGraphs.flatMap((e=>e.ownAssociations))}get functions(){return this.dependencyGraphs.flatMap((e=>e.ownFunctions))}get functionActivators(){return this.dependencyGraphs.flatMap((e=>e.ownFunctionActivators))}get stores(){return this.dependencyGraphs.flatMap((e=>e.ownStores))}get databases(){return this.dependencyGraphs.flatMap((e=>e.ownDatabases))}get mappings(){return this.dependencyGraphs.flatMap((e=>e.ownMappings))}get services(){return this.dependencyGraphs.flatMap((e=>e.ownServices))}get runtimes(){return this.dependencyGraphs.flatMap((e=>e.ownRuntimes))}get connections(){return this.dependencyGraphs.flatMap((e=>e.ownConnections))}get dataElements(){return this.dependencyGraphs.flatMap((e=>e.ownDataElements))}get generationSpecifications(){return this.dependencyGraphs.flatMap((e=>e.ownGenerationSpecifications))}get fileGenerations(){return this.dependencyGraphs.flatMap((e=>e.ownFileGenerations))}get executionEnvironments(){return this.dependencyGraphs.flatMap((e=>e.ownExecutionEnvironments))}getExtensionElements(e){return this.dependencyGraphs.flatMap((t=>t.getExtensionElements(e)))}getModel(e){return U(this.projectDependencyModelsIndex.get(e),`Can't find dependency model with project ID '${e}'`)}getNullableElement(e,t){const n=this.dependencyGraphs.find((n=>Boolean(n.getOwnNullableElement(e,t))));return n?.getOwnNullableElement(e,t)}}class xf extends sf{static NAME="ModelStore";static INSTANCE=new xf;constructor(){super(xf.NAME)}accept_PackageableElementVisitor(e){throw new F}}class Af extends yf{primitiveTypesIndex=new Map;get primitiveTypes(){return Array.from(this.primitiveTypesIndex.values())}constructor(e){super(ga.CORE,e),this.initializePrimitiveTypes(),this.setOwnStore(xf.NAME,xf.INSTANCE)}get allOwnElements(){return[...super.allOwnElements,...this.primitiveTypes]}initializePrimitiveTypes(){[Ym.STRING,Ym.BOOLEAN,Ym.BINARY,Ym.NUMBER,Ym.INTEGER,Ym.FLOAT,Ym.DECIMAL,Ym.DATE,Ym.STRICTDATE,Ym.DATETIME,Ym.STRICTTIME,Ym.LATESTDATE,Ym.BYTE].forEach((e=>{this.primitiveTypesIndex.set(e.path,e),this.setOwnType(e.path,e)}))}}class If extends yf{autoImports=[];constructor(e){super(ga.SYSTEM,e)}initializeAutoImports(){this.autoImports=Ca.map((e=>$(this.getOwnNullableElement(e,!0),$a,`Can't find auto-import package '${e}'`)))}}class Of extends yf{constructor(e){super(ga.MODEL_GENERATION,e)}}class wf extends yf{coreModel;systemModel;generationModel;dependencyManager;graphPlugins=[];constructor(e,t,n){const s=n.flatMap((e=>e.getExtraPureGraphExtensionClasses?.()??[]));super(ga.MAIN,s),this.graphPlugins=n,this.coreModel=e,this.systemModel=t,this.generationModel=new Of(s),this.dependencyManager=new Nf(s)}get autoImports(){return this.systemModel.autoImports}get primitiveTypes(){return this.coreModel.primitiveTypes}get sectionIndices(){return[...this.coreModel.ownSectionIndices,...this.systemModel.ownSectionIndices,...this.dependencyManager.sectionIndices,...this.ownSectionIndices,...this.generationModel.ownSectionIndices]}get profiles(){return[...this.coreModel.ownProfiles,...this.systemModel.ownProfiles,...this.dependencyManager.profiles,...this.ownProfiles,...this.generationModel.ownProfiles]}get enumerations(){return[...this.coreModel.ownEnumerations,...this.systemModel.ownEnumerations,...this.dependencyManager.enumerations,...this.ownEnumerations,...this.generationModel.ownEnumerations]}get measures(){return[...this.coreModel.ownMeasures,...this.systemModel.ownMeasures,...this.dependencyManager.measures,...this.ownMeasures,...this.generationModel.ownMeasures]}get classes(){return[...this.coreModel.ownClasses,...this.systemModel.ownClasses,...this.dependencyManager.classes,...this.ownClasses,...this.generationModel.ownClasses]}get types(){return[...this.coreModel.ownTypes,...this.systemModel.ownTypes,...this.dependencyManager.types,...this.ownTypes,...this.generationModel.ownTypes]}get associations(){return[...this.coreModel.ownAssociations,...this.systemModel.ownAssociations,...this.dependencyManager.associations,...this.ownAssociations,...this.generationModel.ownAssociations]}get functions(){return[...this.coreModel.ownFunctions,...this.systemModel.ownFunctions,...this.dependencyManager.functions,...this.ownFunctions,...this.generationModel.ownFunctions]}get functionActivators(){return[...this.coreModel.ownFunctionActivators,...this.systemModel.ownFunctionActivators,...this.dependencyManager.functionActivators,...this.ownFunctionActivators,...this.generationModel.ownFunctionActivators]}get stores(){return[...this.coreModel.ownStores,...this.systemModel.ownStores,...this.dependencyManager.stores,...this.ownStores,...this.generationModel.ownStores]}get databases(){return[...this.coreModel.ownDatabases,...this.systemModel.ownDatabases,...this.dependencyManager.databases,...this.ownDatabases,...this.generationModel.ownDatabases]}get mappings(){return[...this.coreModel.ownMappings,...this.systemModel.ownMappings,...this.dependencyManager.mappings,...this.ownMappings,...this.generationModel.ownMappings]}get services(){return[...this.coreModel.ownServices,...this.systemModel.ownServices,...this.dependencyManager.services,...this.ownServices,...this.generationModel.ownServices]}get runtimes(){return[...this.coreModel.ownRuntimes,...this.systemModel.ownRuntimes,...this.dependencyManager.runtimes,...this.ownRuntimes,...this.generationModel.ownRuntimes]}get connections(){return[...this.coreModel.ownConnections,...this.systemModel.ownConnections,...this.dependencyManager.connections,...this.ownConnections,...this.generationModel.ownConnections]}get dataElements(){return[...this.coreModel.ownDataElements,...this.systemModel.ownDataElements,...this.dependencyManager.dataElements,...this.ownDataElements,...this.generationModel.ownDataElements]}get executionEnvironments(){return[...this.coreModel.ownExecutionEnvironments,...this.systemModel.ownExecutionEnvironments,...this.dependencyManager.executionEnvironments,...this.ownExecutionEnvironments,...this.generationModel.ownExecutionEnvironments]}get generationSpecifications(){return[...this.coreModel.ownGenerationSpecifications,...this.systemModel.ownGenerationSpecifications,...this.dependencyManager.generationSpecifications,...this.ownGenerationSpecifications,...this.generationModel.ownGenerationSpecifications]}get fileGenerations(){return[...this.coreModel.ownFileGenerations,...this.systemModel.ownFileGenerations,...this.dependencyManager.fileGenerations,...this.ownFileGenerations,...this.generationModel.ownFileGenerations]}get allElements(){return[...this.coreModel.allOwnElements,...this.systemModel.allOwnElements,...this.dependencyManager.allOwnElements,...this.allOwnElements,...this.generationModel.allOwnElements]}get allOwnTestables(){const e=this.graphPlugins.flatMap((e=>e.getExtraTestablesCollectors?.()??[])).map((e=>e(this)));return[...this.ownTestables].concat(...e)}getPrimitiveType=e=>U(this.coreModel.primitiveTypesIndex.get(e),`Can't find primitive type '${e}'`);getType=e=>U(this.getOwnNullableType(e)??this.generationModel.getOwnNullableType(e)??this.dependencyManager.getOwnNullableType(e)??this.systemModel.getOwnNullableType(e)??this.coreModel.getOwnNullableType(e),`Can't find type '${e}'`);getProfile=e=>U(this.getOwnNullableProfile(e)??this.generationModel.getOwnNullableProfile(e)??this.dependencyManager.getOwnNullableProfile(e)??this.systemModel.getOwnNullableProfile(e),`Can't find profile '${e}'`);getEnumeration=e=>$(this.getType(e),Ua,`Can't find enumeration '${e}'`);getMeasure=e=>$(this.getType(e),Va,`Can't find measure '${e}'`);getUnit=e=>$(this.getType(e),Ga,`Can't find unit '${e}'`);getClass=e=>$(this.getType(e),Ba,`Can't find class '${e}'`);getAssociation=e=>U(this.getOwnNullableAssociation(e)??this.generationModel.getOwnNullableAssociation(e)??this.dependencyManager.getOwnNullableAssociation(e)??this.systemModel.getOwnNullableAssociation(e),`Can't find association '${e}'`);getPropertyOwner=e=>U(this.getOwnNullableAssociation(e)??this.generationModel.getOwnNullableAssociation(e)??this.dependencyManager.getOwnNullableAssociation(e)??this.systemModel.getOwnNullableAssociation(e)??$(this.getType(e),Ba),`Can't find property owner '${e}'`);getFunction=e=>$(this.getOwnNullableFunction(e)??this.generationModel.getOwnNullableFunction(e)??this.dependencyManager.getOwnNullableFunction(e)??this.systemModel.getOwnNullableFunction(e),nf,`Can't find function '${e}'`);getFunctionActivator=e=>$(this.getOwnNullableFunctionActivator(e)??this.generationModel.getOwnNullableFunctionActivator(e)??this.dependencyManager.getOwnNullableFunctionActivator(e)??this.systemModel.getOwnNullableFunctionActivator(e),ff,`Can't find function activator '${e}'`);getStore=e=>U(this.getOwnNullableStore(e)??this.generationModel.getOwnNullableStore(e)??this.dependencyManager.getOwnNullableStore(e)??this.systemModel.getOwnNullableStore(e)??this.coreModel.getOwnNullableStore(e),`Can't find store '${e}'`);getFlatDataStore=e=>$(this.getStore(e),af,`Can't find flat-data store '${e}'`);getDatabase=e=>$(this.getStore(e),uf,`Can't find database store '${e}'`);getMapping=e=>U(this.getOwnNullableMapping(e)??this.generationModel.getOwnNullableMapping(e)??this.dependencyManager.getOwnNullableMapping(e)??this.systemModel.getOwnNullableMapping(e),`Can't find mapping '${e}'`);getService=e=>U(this.getOwnNullableService(e)??this.generationModel.getOwnNullableService(e)??this.dependencyManager.getOwnNullableService(e)??this.systemModel.getOwnNullableService(e),`Can't find service '${e}'`);getConnection=e=>U(this.getOwnNullableConnection(e)??this.generationModel.getOwnNullableConnection(e)??this.dependencyManager.getOwnNullableConnection(e)??this.systemModel.getOwnNullableConnection(e),`Can't find connection '${e}'`);getRuntime=e=>U(this.getOwnNullableRuntime(e)??this.generationModel.getOwnNullableRuntime(e)??this.dependencyManager.getOwnNullableRuntime(e)??this.systemModel.getOwnNullableRuntime(e),`Can't find runtime '${e}'`);getGenerationSpecification=e=>U(this.getOwnNullableGenerationSpecification(e)??this.generationModel.getOwnNullableGenerationSpecification(e)??this.dependencyManager.getOwnNullableGenerationSpecification(e)??this.systemModel.getOwnNullableGenerationSpecification(e),`Can't find generation specification '${e}'`);getFileGeneration=e=>U(this.getOwnNullableFileGeneration(e)??this.generationModel.getOwnNullableFileGeneration(e)??this.dependencyManager.getOwnNullableFileGeneration(e)??this.systemModel.getOwnNullableFileGeneration(e),`Can't find file generation '${e}'`);getDataElement=e=>U(this.getOwnNullableDataElement(e)??this.generationModel.getOwnNullableDataElement(e)??this.dependencyManager.getOwnNullableDataElement(e)??this.systemModel.getOwnNullableDataElement(e),`Can't find data element '${e}'`);getExtensionElement(e,t,n){return U(this.getOwnNullableExtensionElement(e,t)??this.generationModel.getOwnNullableExtensionElement(e,t)??this.dependencyManager.getOwnNullableExtensionElement(e,t)??this.systemModel.getOwnNullableExtensionElement(e,t),n??`Can't find element '${e}'`)}getElement=(e,t)=>U(this.getNullableElement(e,t),`Can't find element '${e}'`);getNullableClass=e=>D((()=>this.getClass(e)));getNullableMapping=e=>D((()=>this.getMapping(e)));getNullableService=e=>D((()=>this.getService(e)));getNullableRuntime=e=>D((()=>this.getRuntime(e)));getNullableFileGeneration=e=>D((()=>this.getFileGeneration(e)));getNullableElement(e,t){const n=super.getOwnNullableElement(e)??this.dependencyManager.getNullableElement(e)??this.generationModel.getOwnNullableElement(e)??this.systemModel.getOwnNullableElement(e)??this.coreModel.getOwnNullableElement(e);return t&&!n?this.getNullablePackage(e)??this.dependencyManager.getNullableElement(e,!0)??this.generationModel.getNullablePackage(e)??this.systemModel.getNullablePackage(e):n}getMultiplicity(e,t){let n;return 1===e&&1===t?n=Dm.ONE:0===e&&1===t?n=Dm.ZERO_ONE:0===e&&void 0===t?n=Dm.ZERO_MANY:1===e&&void 0===t?n=Dm.ONE_MANY:0===e&&0===t&&(n=Dm.ZERO),n??new Dm(e,t)}addElement(e,t){const n=Wp(t??"",e.name);if(this.getNullableElement(n,!1))throw new L(`Can't create element '${n}': another element with the same path already existed`);super.addOwnElement(e,t)}deleteElement(e){super.deleteOwnElement(e);const t=this.graphPlugins.flatMap((e=>e.getExtraDeadReferencesCleaners?.()??[]));for(const e of t)e(this)}renameElement(e,t){if(this.getNullableElement(t,!1))throw new L(`Can't rename element '${e.path}' to '${t}': another element with the same path already existed`);super.renameOwnElement(e,e.path,t)}}class Rf{_UUID=(0,a.Z)();_OWNER;value;constructor(e,t){this._OWNER=e,this.value=t}}class kf{_UUID=(0,a.Z)();_OWNER;value;constructor(e,t){this._OWNER=e,this.value=t}}class Lf extends Ya{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Oa.PROPERTY_POINTER,this.value.name,this.ownerReference.valueForSerialization??""].map(la).join(",")}}class Ff extends Lf{ownerReference;constructor(e){const t=Xa.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new Ff(e)}}class Pf{sourceId;line;column;startLine;startColumn;endLine;endColumn}(0,ge.yu)(Pf,{column:(0,ge.Ru)(),endLine:(0,ge.Ru)(),endColumn:(0,ge.Ru)(),line:(0,ge.Ru)(),sourceId:(0,ge.Ru)(),startLine:(0,ge.Ru)(),startColumn:(0,ge.Ru)()});const Df=(0,ge.PG)((()=>ge.AM),(e=>(e.sourceId=e.source,(0,ge.vB)(Pf,e))));class Mf{package;name;tags=[];stereotypes=[]}(0,ge.yu)(Mf,{name:(0,ge.Ru)(),package:(0,ge.Ru)(),stereotypes:(0,ge.pb)((0,ge.Ru)()),tags:(0,ge.pb)((0,ge.Ru)())});class Bf{profile;value}(0,ge.yu)(Bf,{profile:(0,ge.Ru)(),value:(0,ge.Ru)()});class jf{profile;value}(0,ge.yu)(jf,{profile:(0,ge.Ru)(),value:(0,ge.Ru)()});class Uf{tag;value}(0,ge.yu)(Uf,{tag:(0,ge.Ry)(jf),value:(0,ge.Ru)()});class Gf{rawType;typeParameter}(0,ge.yu)(Gf,{rawType:(0,ge.jt)((0,ge.Ru)()),typeParameter:(0,ge.jt)((0,ge.Ru)())});class Vf{name;stereotypes=[];taggedValues=[];aggregation;multiplicity;genericType}(0,ge.yu)(Vf,{aggregation:(0,ge.Ru)(),genericType:(0,ge.Ry)(Gf),multiplicity:(0,ge.Ru)(),name:(0,ge.Ru)(),stereotypes:(0,ge.pb)((0,ge.Ry)(Bf)),taggedValues:(0,ge.pb)((0,ge.Ry)(Uf))});class $f{package;name;sourceInformation}(0,ge.yu)($f,{name:(0,ge.Ru)(),package:(0,ge.Ru)(),sourceInformation:Df});class Hf{package;name;sourceInformation;stereotypes=[];taggedValues=[];generalizations=[];properties=[];qualifiedProperties=[]}(0,ge.yu)(Hf,{generalizations:(0,ge.pb)((0,ge.Ry)(Gf)),name:(0,ge.Ru)(),package:(0,ge.Ru)(),properties:(0,ge.pb)((0,ge.Ry)(Vf)),qualifiedProperties:(0,ge.pb)((0,ge.Ry)(Vf)),sourceInformation:Df,stereotypes:(0,ge.pb)((0,ge.Ry)(Bf)),taggedValues:(0,ge.pb)((0,ge.Ry)(Uf))});class zf{package;name;enumValues=[]}(0,ge.yu)(zf,{name:(0,ge.Ru)(),package:(0,ge.Ru)(),enumValues:(0,ge.pb)((0,ge.Ru)())});class Wf{x;y}(0,ge.yu)(Wf,{x:(0,ge.Ru)(),y:(0,ge.Ru)()});class Kf{height;width}(0,ge.yu)(Kf,{height:(0,ge.Ru)(),width:(0,ge.Ru)()});class Yf{points=[]}(0,ge.yu)(Yf,{points:(0,ge.pb)((0,ge.Ry)(Wf))});class Jf{id;source;target;geometry}(0,ge.yu)(Jf,{geometry:(0,ge.Ry)(Yf),id:(0,ge.Ru)(),source:(0,ge.Ru)(),target:(0,ge.Ru)()});class Xf{name;owningType}(0,ge.yu)(Xf,{name:(0,ge.Ru)(),owningType:(0,ge.Ru)()});class qf{id;source;target;property;geometry}(0,ge.yu)(qf,{geometry:(0,ge.Ry)(Yf),id:(0,ge.Ru)(),property:(0,ge.Ry)(Xf),source:(0,ge.Ru)(),target:(0,ge.Ru)()});class Zf{id;type;position;rectangleGeometry}(0,ge.yu)(Zf,{id:(0,ge.Ru)(),position:(0,ge.Ry)(Wf),rectangleGeometry:(0,ge.Ry)(Kf),type:(0,ge.Ru)()});class Qf{package;name;stereotypes=[];taggedValues=[];generalizationViews=[];propertyViews=[];typeViews=[];sourceInformation}(0,ge.yu)(Qf,{name:(0,ge.Ru)(),generalizationViews:(0,ge.pb)((0,ge.Ry)(Jf)),package:(0,ge.Ru)(),propertyViews:(0,ge.pb)((0,ge.Ry)(qf)),sourceInformation:Df,stereotypes:(0,ge.pb)((0,ge.Ry)(Bf)),taggedValues:(0,ge.pb)((0,ge.Ry)(Uf)),typeViews:(0,ge.pb)((0,ge.Ry)(Zf))});class e_{classes=[];enumerations=[];profiles=[]}(0,ge.yu)(e_,{classes:(0,ge.pb)((0,ge.Ry)(Hf)),enumerations:(0,ge.pb)((0,ge.Ry)(zf)),profiles:(0,ge.pb)((0,ge.Ry)(Mf))});class t_{name;diagram;domainInfo}(0,ge.yu)(t_,{diagram:(0,ge.Ry)(Qf),name:(0,ge.Ru)(),domainInfo:(0,ge.jt)((0,ge.Ry)(e_))});class n_{class;enumerations=[];profiles=[];specializations=[]}(0,ge.yu)(n_,{class:(0,ge.Ry)(Hf),enumerations:(0,ge.pb)((0,ge.Ry)(zf)),profiles:(0,ge.pb)((0,ge.Ry)(Mf)),specializations:(0,ge.pb)((0,ge.Ry)($f))});const s_=e=>{const t=e.classViews.map((e=>` TypeView ${e.id}(\n type=${e.class.value.path},\n position=(${e.position.x.toFixed(5)}, ${e.position.y.toFixed(5)}),\n width=${e.rectangle.width.toFixed(5)},\n height=${e.rectangle.height.toFixed(5)},\n stereotypesVisible=true,\n attributesVisible=true,\n attributeStereotypesVisible=true,\n attributeTypesVisible=true,\n color=#FFFFCC,\n lineWidth=1.0)`)),n=e.generalizationViews.map(((e,t)=>` GeneralizationView gview_${t}(\n source=${e.from.classView.value.id},\n target=${e.to.classView.value.id},\n points=[${e.buildFullPath().map((e=>`(${e.x.toFixed(5)},${e.y.toFixed(5)})`)).join(",")}],\n label='',\n color=#000000,\n lineWidth=-1.0,\n lineStyle=SIMPLE)`)),s=e.propertyViews.map(((e,t)=>` PropertyView pview_${t}(\n property=${e.property.value._OWNER.path}.${e.property.value.name},\n source=${e.from.classView.value.id},\n target=${e.to.classView.value.id},\n points=[${e.buildFullPath().map((e=>`(${e.x.toFixed(5)},${e.y.toFixed(5)})`)).join(",")}],\n label='',\n propertyPosition=(0.0,0.0),\n multiplicityPosition=(0.0,0.0),\n color=#000000,\n lineWidth=-1.0,\n stereotypesVisible=true,\n nameVisible=true,\n lineStyle=SIMPLE)`));return`Diagram ${e.path}(width=0.0, height=0.0)\n{\n${[...t,...n,...s].join("\n\n")}\n}`},i_=(e,t,n,s)=>{const i=t.getOwnNullableClass(e);if(!i){const[i,a]=zp(e),r=new Ba(a);return Kp(Xp(t.root,i,!0,new Map),r),t.setOwnType(e,r),n.set(e,{isStubbed:!0,sourceInformation:s}),r}return i},a_=e=>{if("*"===e)return new Dm(0,void 0);{const t=e.split("..");if(1===t.length)return new Dm(parseInt(U(t[0]),10),parseInt(U(t[0]),10));if(2===t.length)return new Dm(parseInt(U(t[0]),10),"*"===t[1]?void 0:parseInt(U(t[1]),10));throw new Error(`Can't parse multiplicity value '${e}'`)}},r_=(e,t,n,s)=>{t.taggedValues.forEach((t=>{var s,i;I(e.taggedValues,new Mm(jm.create((s=n.getProfile(t.tag.profile),i=t.tag.value,U(s.p_tags.find((e=>e.value===i)),`Can't find tag '${i}' in profile '${s.path}'`))),t.value))})),t.stereotypes.forEach((t=>{var s,i;I(e.stereotypes,Gm.create((s=n.getProfile(t.profile),i=t.value,U(s.p_stereotypes.find((e=>e.value===i)),`Can't find stereotype '${i}' in profile '${s.path}'`))))})),t.generalizations.filter((e=>Boolean(e.rawType))).forEach((t=>{const i=i_(U(t.rawType),n,s,void 0);I(e.generalizations,$m.create(new Hm(i))),I(i._subclasses,e)})),t.properties.filter((e=>Boolean(e.genericType.rawType))).forEach((t=>{const i=new zm(t.name,a_(t.multiplicity),$m.create(new Hm(n.getOwnNullableEnumeration(U(t.genericType.rawType))??i_(U(t.genericType.rawType),n,s,void 0))),e);i.aggregation="Composite"===t.aggregation?Wm.COMPOSITE:"Shared"===t.aggregation?Wm.SHARED:void 0,I(e.properties,i)})),t.qualifiedProperties.filter((e=>e.genericType.rawType)).forEach((t=>{I(e.derivedProperties,new Km(t.name,a_(t.multiplicity),$m.create(new Hm(n.getOwnNullableEnumeration(U(t.genericType.rawType))??i_(U(t.genericType.rawType),n,s,void 0))),e))}))},o_=e=>{const t=new wf(new Af([]),new If([]),[]),n=new Map;if(e.domainInfo){const s=e.domainInfo;s.classes.forEach((e=>{const s=new Ba(e.name);Kp(Xp(t.root,e.package,!0,new Map),s),t.setOwnType(s.path,s),n.set(s.path,{sourceInformation:e.sourceInformation,isStubbed:!1})})),s.profiles.forEach((e=>{const n=new Zm(e.name);Kp(Xp(t.root,e.package,!0,new Map),n),t.setOwnProfile(n.path,n),e.tags.forEach((e=>I(n.p_tags,new Rf(n,e)))),e.stereotypes.forEach((e=>I(n.p_stereotypes,new kf(n,e))))})),s.enumerations.forEach((e=>{const n=new Ua(e.name);Kp(Xp(t.root,e.package,!0,new Map),n),t.setOwnType(n.path,n)})),s.classes.forEach((e=>{const s=`${e.package}${""===e.package?"":ua}${e.name}`,i=t.getClass(s);r_(i,e,t,n)}))}const s=e.diagram,i=new Zu(s.name);return Kp(Xp(t.root,s.package,!0,new Map),i),s.typeViews.forEach((e=>{const n=new uh(i,e.id,Xa.create(t.getClass(e.type)));n.position=new ch(e.position.x,e.position.y),n.rectangle=new lh(e.rectangleGeometry.width,e.rectangleGeometry.height),I(i.classViews,n)})),s.propertyViews.forEach((e=>{const n=new _h(i,Ff.create((s=t.getClass(e.property.owningType),a=e.property.name,U(s instanceof Ba?eh(s).find((e=>e.name===a)):s.properties.find((e=>e.name===a)),`Can't find property '${a}' of '${s.path}'`))),U(i.classViews.find((t=>t.id===e.source))),U(i.classViews.find((t=>t.id===e.target))));var s,a;n.path=e.geometry.points.map((e=>new ch(e.x,e.y))),vh(n),I(i.propertyViews,n)})),s.generalizationViews.forEach((e=>{const t=new Eh(i,U(i.classViews.find((t=>t.id===e.source))),U(i.classViews.find((t=>t.id===e.target))));t.path=e.geometry.points.map((e=>new ch(e.x,e.y))),vh(t),I(i.generalizationViews,t)})),[i,t,n]};var c_,l_,d_;!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"}(c_||(c_={})),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"}(l_||(l_={})),function(e){e.PURE="Pure",e.CONNECTION="Connection",e.RUNTIME="Runtime",e.MAPPING="Mapping",e.SERVICE="Service",e.FLATDATA="FlatData",e.RELATIONAL="Relational",e.GENERATION_SPECIFICATION="GenerationSpecification",e.FILE_GENERATION_SPECIFICATION="FileGeneration",e.DATA="Data"}(d_||(d_={}));const u_=(e,t)=>e===t?e.toString():0===e&&void 0===t?"*":`${e}..${t??"*"}`;class p_ extends fh{association;constructor(e,t,n,s,i){super(e,n,s,i),this.association=t}get hashCode(){return da([qu.ASSOCIATION_VIEW,super.hashCode,this.association.valueForSerialization??""])}}const h_=(0,Oe.aD)(((e,t)=>{e.value=t})),g_=((0,Oe.aD)(((e,t)=>{w(e.properties,t)})),(0,Oe.aD)(((e,t)=>{I(e.properties,Lu(t))}))),m_=((0,Oe.aD)(((e,t,n)=>{O(e.properties,t,n)})),(0,Oe.aD)(((e,t)=>{w(e.derivedProperties,t)})),(0,Oe.aD)(((e,t)=>{I(e.derivedProperties,Fu(t))})),(0,Oe.aD)(((e,t,n)=>{O(e.derivedProperties,t,n)})),(0,Oe.aD)(((e,t)=>{I(e.constraints,Du(t))})),(0,Oe.aD)(((e,t)=>{w(e.constraints,t)})),(0,Oe.aD)(((e,t,n)=>{O(e.constraints,t,n)})),(0,Oe.aD)(((e,t)=>{I(e.generalizations,Tu(t))}))),f_=((0,Oe.aD)(((e,t)=>{w(e.generalizations,t)})),(0,Oe.aD)(((e,t,n)=>{O(e.generalizations,t,n)})),(0,Oe.aD)(((e,t)=>{I(e._subclasses,t)})),(0,Oe.aD)(((e,t)=>{w(e._subclasses,t)})),(0,Oe.aD)(((e,t)=>{Tu(e),bu(t),e.value=t,e.ownerReference.value=t.rawType}))),__=((0,Oe.aD)(((e,t)=>{e.name=t})),(0,Oe.aD)(((e,t)=>{f_(e.genericType,bu(t))})),(0,Oe.aD)(((e,t)=>{e.multiplicity=t})),(0,Oe.aD)(((e,t)=>{e.aggregation=t})),(0,Oe.aD)(((e,t)=>{e.value=Nu(t),h_(e.ownerReference,t._OWNER)})),(0,Oe.aD)(((e,t)=>{I(e.taggedValues,yu(t))})),(0,Oe.aD)(((e,t)=>{w(e.taggedValues,t)})),(0,Oe.aD)(((e,t)=>{I(e.stereotypes,Eu(t))})),(0,Oe.aD)(((e,t)=>{w(e.stereotypes,t)})),(0,Oe.aD)(((e,t)=>{e.tag.value=xu(t),e.tag.ownerReference.value=t._OWNER})),(0,Oe.aD)(((e,t)=>{e.value=t})),(0,Oe.aD)(((e,t)=>{e.value=t})),(0,Oe.aD)(((e,t,n)=>{O(e.taggedValues,t,n)})),(0,Oe.aD)(((e,t,n)=>{O(e.stereotypes,t,n)})),(0,Oe.aD)(((e,t)=>{e.name=t})),(0,Oe.aD)(((e,t)=>{e.functionDefinition=fr(t)})),(0,Oe.aD)(((e,t)=>{I(e.p_tags,xu(t))})),(0,Oe.aD)(((e,t)=>{w(e.p_tags,t)})),(0,Oe.aD)(((e,t)=>{I(e.p_stereotypes,Nu(t))})),(0,Oe.aD)(((e,t)=>{w(e.p_stereotypes,t)})),(0,Oe.aD)(((e,t,n)=>{O(e.p_tags,t,n)})),(0,Oe.aD)(((e,t,n)=>{O(e.p_stereotypes,t,n)})),(0,Oe.aD)(((e,t)=>{w(e.parameters,t)})),(0,Oe.aD)(((e,t)=>{I(e.parameters,_r(t))})),(0,Oe.aD)(((e,t)=>{h_(e.returnType,Gu(t))})),(0,Oe.aD)(((e,t)=>{e.returnMultiplicity=t})),(0,Oe.aD)(((e,t,n)=>{O(e.parameters,t,n)})),(0,Oe.aD)(((e,t)=>{e.content=t})),(0,Oe.aD)(((e,t)=>{e.name=t})),(0,Oe.aD)(((e,t)=>{I(e.values,Iu(t))})),(0,Oe.aD)(((e,t)=>{w(e.values,t)})),(0,Oe.aD)(((e,t,n)=>{O(e.values,t,n)})),(0,Oe.aD)(((e,t)=>{e.value=Iu(t),h_(e.ownerReference,t._OWNER)})),(0,Oe.aD)(((e,t,n)=>{const s=((e,t)=>{const n=e.properties.findIndex((e=>e===t));return W(-1!==n,`Can't find property '${t.name}' in association '${e.path}'`),U(e.properties[(n+1)%2])})(e,t),i=$(t.genericType.ownerReference.value,Ba,`Association property '${t.name}' must be of type 'class'`);var a;((a=i).package||a.name)&&W(w(i.propertiesFromAssociations,s),`Can't find property '${s.name}' from association '${e.path}' in associated class '${i.path}'`),I(n.propertiesFromAssociations,s);const r=new Hm(n);t.genericType.value=r,t.genericType.ownerReference.value=r.rawType})),(0,Oe.aD)(((e,t)=>{e.canonicalUnit=Ru(t)})),(0,Oe.aD)(((e,t)=>{e.conversionFunction=fr(t)})),(0,Oe.aD)(((e,t)=>{e.classViews=t.map(Hu)}))),E_=(0,Oe.aD)(((e,t)=>{I(e.classViews,Hu(t))})),C_=(0,Oe.aD)(((e,t)=>{w(e.classViews,t)})),y_=(0,Oe.aD)(((e,t)=>{e.associationViews=t.map(Yu)})),b_=(0,Oe.aD)(((e,t)=>{w(e.associationViews,t)})),T_=(0,Oe.aD)(((e,t)=>{e.generalizationViews=t.map(Ku)})),v_=(0,Oe.aD)(((e,t)=>{I(e.generalizationViews,Ku(t))})),S_=(0,Oe.aD)(((e,t)=>{w(e.generalizationViews,t)})),N_=(0,Oe.aD)(((e,t)=>{e.propertyViews=t.map(Ju)})),x_=(0,Oe.aD)(((e,t)=>{I(e.propertyViews,Ju(t))})),A_=(0,Oe.aD)(((e,t)=>{w(e.propertyViews,t)})),I_=(0,Oe.aD)(((e,t)=>{e.hideProperties=t})),O_=(0,Oe.aD)(((e,t)=>{e.hideStereotypes=t})),w_=(0,Oe.aD)(((e,t)=>{e.hideTaggedValues=t})),R_=(0,Oe.aD)(((e,t)=>{e._offsetX=t})),k_=(0,Oe.aD)(((e,t)=>{e._offsetY=t})),L_=(0,Oe.aD)(((e,t,n)=>{((e,t,n,s=((e,t)=>e===t))=>{const i=e.findIndex((e=>s(e,t)));-1!==i&&(e[i]=n)})(e.path,t,n)})),F_=(0,Oe.aD)(vh),P_=(0,Oe.aD)(((e,t,n,s,i)=>{for(const i of e.path)if(Math.sqrt((t-i.x)*(t-i.x)+(n-i.y)*(n-i.y))<10/s)return i;const a=e.buildFullPath(i),r=[];let o;for(let e=0;e<a.length-1;e++){const i=a[e],c=a[e+1],l=new Ch(i.x,i.y).normal(new Ch(c.x,c.y)).unit(),d=Ch.fromPoints(i,new ch(t,n));if(Math.abs(l.dotProduct(d))<5/s){const e=(i.x<c.x?i.x:c.x)-5/s,a=(i.x<c.x?c.x:i.x)+5/s,l=(i.y<c.y?i.y:c.y)-5/s,d=(i.y<c.y?c.y:i.y)+5/s;e<=t&&t<=a&&l<=n&&n<=d&&(o=new ch(t,n),r.push(o))}e<a.length-2&&r.push(a[e+1])}return o&&i&&Th(e,r),o})),D_=(0,Oe.aD)(Th),M_=(0,Oe.aD)(((e,t)=>{e.rectangle=t})),B_=(0,Oe.aD)(((e,t)=>{e.position=t})),j_=(0,Oe.aD)((e=>{e._dummyObservable={}}));var U_,G_,V_;!function(e){e[e.LAYOUT=0]="LAYOUT",e[e.PAN=1]="PAN",e[e.ZOOM_IN=2]="ZOOM_IN",e[e.ZOOM_OUT=3]="ZOOM_OUT",e[e.ADD_RELATIONSHIP=4]="ADD_RELATIONSHIP",e[e.ADD_CLASS=5]="ADD_CLASS"}(U_||(U_={})),function(e){e[e.PROPERTY=0]="PROPERTY",e[e.INHERITANCE=1]="INHERITANCE",e[e.NONE=2]="NONE"}(G_||(G_={})),function(e){e[e.ALIGN_LEFT=0]="ALIGN_LEFT",e[e.ALIGN_CENTER=1]="ALIGN_CENTER",e[e.ALIGN_RIGHT=2]="ALIGN_RIGHT",e[e.ALIGN_TOP=3]="ALIGN_TOP",e[e.ALIGN_MIDDLE=4]="ALIGN_MIDDLE",e[e.ALIGN_BOTTOM=5]="ALIGN_BOTTOM",e[e.SPACE_HORIZONTALLY=6]="SPACE_HORIZONTALLY",e[e.SPACE_VERTICALLY=7]="SPACE_VERTICALLY"}(V_||(V_={}));const $_=.05,H_=[50,75,90,100,110,125,150,200,250,300,400],z_=e=>(e instanceof Km?"/ ":"")+e.name;class W_{diagram;isReadOnly;enableLayoutAutoAdjustment;div;canvas;ctx;canvasDimension;canvasCenter;virtualScreen;screenOffset;zoom;interactionMode;relationshipMode;triangle;diamond;fontFamily;fontSize;lineHeight;truncateText;maxLineLength;screenPadding;classViewSpaceX;classViewSpaceY;propertySpacing;showScreenGrid;showScreenBoxGuide;screenGridAxisTickLength;screenGridSpacingX;screenGridSpacingY;screenGridLineWidth;screenGridLineColor;screenGridLabelTextColor;screenGuideLineColor;screenGuideLabelTextColor;showCanvasGrid;showCanvasBoxGuide;showScreenOffsetGuide;canvasGridAxisTickLength;canvasGridSpacingX;canvasGridSpacingY;canvasGridLineWidth;canvasGridLineColor;canvasGridLabelTextColor;canvasGuideLineColor;canvasGuideLabelTextColor;screenOffsetGuideLineColor;screenOffsetGuideLabelTextColor;defaultLineWidth;defaultLineColor;canvasColor;backgroundColor;classViewFillColor;classViewHeaderTextColor;classViewPropertyTextColor;classViewPrimitivePropertyTextColor;classViewDerivedPropertyTextColor;relationshipViewTextColor;propertyViewOwnedDiamondColor;propertyViewSharedDiamondColor;generalizationViewInheritanceTriangeFillColor;selectionBoxBorderColor;selection;selectionStart;selectedClassCorner;selectedClassProperty;selectedClasses;selectedPropertyOrAssociation;selectedInheritance;selectedPoint;_selectedClassesInitialPositions;startClassView;handleAddRelationship;mouseOverClassCorner;mouseOverClassName;mouseOverClassView;mouseOverClassProperty;mouseOverPropertyHolderViewLabel;cursorPosition;leftClick;middleClick;rightClick;clickX;clickY;positionBeforeLastMove;onAddClassViewClick=()=>{};onClassViewRightClick=()=>{};onBackgroundDoubleClick;onClassViewDoubleClick;onClassNameDoubleClick;onClassPropertyDoubleClick;handleEditClassView=()=>{};handleEditProperty=()=>{};handleAddSimpleProperty=()=>{};constructor(e,t){(0,Oe.rC)(this,{isReadOnly:Oe.LO,enableLayoutAutoAdjustment:Oe.LO,interactionMode:Oe.LO,relationshipMode:Oe.LO,zoom:Oe.LO,mouseOverClassView:Oe.LO,mouseOverClassName:Oe.LO,mouseOverClassCorner:Oe.LO,mouseOverClassProperty:Oe.LO,mouseOverPropertyHolderViewLabel:Oe.LO,selectionStart:Oe.LO,selectedClassCorner:Oe.LO,selectedClasses:Oe.LO,selectedPropertyOrAssociation:Oe.LO,selectedInheritance:Oe.LO,leftClick:Oe.LO,middleClick:Oe.LO,rightClick:Oe.LO,changeMode:Oe.aD,setIsReadOnly:Oe.aD,setEnableLayoutAutoAdjustment:Oe.aD,setMouseOverClassView:Oe.aD,setMouseOverClassName:Oe.aD,setMouseOverClassCorner:Oe.aD,setMouseOverClassProperty:Oe.aD,setMouseOverPropertyHolderViewLabel:Oe.aD,setSelectionStart:Oe.aD,setSelectedClassCorner:Oe.aD,setSelectedClasses:Oe.aD,setSelectedPropertyOrAssociation:Oe.aD,setSelectedInheritance:Oe.aD,setLeftClick:Oe.aD,setMiddleClick:Oe.aD,setRightClick:Oe.aD,setZoomLevel:Oe.aD,align:Oe.aD}),this.diagram=t,this.div=e,this.div.childNodes.forEach((e=>this.div.removeChild(e))),this.canvas=document.createElement("canvas"),this.canvasDimension=new lh(this.div.offsetWidth,this.div.offsetHeight),this.canvasCenter=new ch(this.canvasDimension.width/2,this.canvasDimension.height/2),this.canvas.width=this.canvasDimension.width,this.canvas.height=this.canvasDimension.height,this.canvas.style.position="absolute",this.canvas.style.left="0",this.canvas.style.top="0",this.div.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.screenOffset=new ch(0,0),this.virtualScreen=new dh(new ch(0,0),new lh(0,0)),this.zoom=1,this.triangle=[new ch(0,0),new ch(-15,-10),new ch(-15,10)],this.diamond=[new ch(0,0),new ch(-10,-5),new ch(-20,0),new ch(-10,5)],this.fontFamily="Arial",this.fontSize=12,this.lineHeight=14,this.truncateText=!0,this.maxLineLength=40,this.showScreenGrid=!1,this.showScreenBoxGuide=!0,this.screenGridAxisTickLength=50,this.screenGridSpacingX=100,this.screenGridSpacingY=100,this.screenGridLineWidth=.5,this.showCanvasGrid=!1,this.showCanvasBoxGuide=!0,this.showScreenOffsetGuide=!0,this.canvasGridAxisTickLength=50,this.canvasGridSpacingX=100,this.canvasGridSpacingY=100,this.canvasGridLineWidth=.5,this.defaultLineWidth=1,this.screenGridLineColor="rgba(61,126,154,0.56)",this.screenGridLabelTextColor="rgba(61,126,154,0.56)",this.screenGuideLineColor="red",this.screenGuideLabelTextColor="red",this.canvasGridLineColor="green",this.canvasGridLabelTextColor="green",this.canvasGuideLineColor="orange",this.canvasGuideLabelTextColor="orange",this.screenOffsetGuideLineColor="purple",this.screenOffsetGuideLabelTextColor="purple",this.defaultLineColor="rgb(0,0,0)",this.canvasColor="rgb(220,220,220)",this.backgroundColor="rgb(255,255,255)",this.classViewFillColor="rgb(185,185,185)",this.classViewHeaderTextColor="rgb(0,0,0)",this.classViewPropertyTextColor="rgb(0,0,0)",this.classViewPrimitivePropertyTextColor="rgb(255,255,255)",this.classViewDerivedPropertyTextColor="rgb(100,100,100)",this.relationshipViewTextColor="rgb(0,0,0)",this.propertyViewSharedDiamondColor="rgb(255,255,255)",this.propertyViewOwnedDiamondColor="rgb(0,0,0)",this.generalizationViewInheritanceTriangeFillColor="rgb(255,255,255)",this.selectionBoxBorderColor="rgba(0,0,0, 0.02)",this.interactionMode=U_.LAYOUT,this.relationshipMode=G_.NONE,this.isReadOnly=!1,this.enableLayoutAutoAdjustment=!1,this.screenPadding=20,this.classViewSpaceX=10,this.classViewSpaceY=4,this.propertySpacing=10,this.selectionStart=void 0,this.selection=void 0,this.selectedClasses=[],this._selectedClassesInitialPositions=[],this.cursorPosition=new ch(0,0),this.leftClick=!1,this.middleClick=!1,this.rightClick=!1,this.clickX=0,this.clickY=0,this.positionBeforeLastMove=new ch(0,0),this.div.onwheel=this.mousewheel.bind(this),this.div.onmousedown=this.mousedown.bind(this),this.div.onkeydown=this.keydown.bind(this),this.div.ondblclick=this.mousedblclick.bind(this),this.div.onmouseup=this.mouseup.bind(this),this.div.onmousemove=this.mousemove.bind(this)}setIsReadOnly(e){this.isReadOnly=e}setEnableLayoutAutoAdjustment(e){this.enableLayoutAutoAdjustment=e}setMouseOverClassView(e){this.mouseOverClassView=e}setMouseOverClassName(e){this.mouseOverClassName=e}setMouseOverClassCorner(e){this.mouseOverClassCorner=e}setMouseOverClassProperty(e){this.mouseOverClassProperty=e}setMouseOverPropertyHolderViewLabel(e){this.mouseOverPropertyHolderViewLabel=e}setSelectionStart(e){this.selectionStart=e}setSelectedClassCorner(e){this.selectedClassCorner=e}setSelectedClasses(e){this.selectedClasses=e}setSelectedPropertyOrAssociation(e){this.selectedPropertyOrAssociation=e}setSelectedInheritance(e){this.selectedInheritance=e}setLeftClick(e){this.leftClick=e}setMiddleClick(e){this.middleClick=e}setRightClick(e){this.rightClick=e}setZoomLevel(e){this.zoom=e}render(e){this.diagram.classViews.forEach((e=>this.ensureClassViewMeetMinDimensions(e))),this.refresh(),e?.initial&&(this.autoRecenter(),(this.canvas.width<this.virtualScreen.rectangle.width+2*this.screenPadding+20||this.canvas.height<this.virtualScreen.rectangle.height+2*this.screenPadding+20)&&this.zoomToFit())}refresh(){this.refreshCanvas(),this.drawScreen()}refreshCanvas(){this.canvasDimension=new lh(this.div.offsetWidth,this.div.offsetHeight),this.canvasCenter=new ch(this.canvasDimension.width/2,this.canvasDimension.height/2),this.canvas.width=this.canvasDimension.width,this.canvas.height=this.canvasDimension.height}clearScreen(){this.ctx.fillStyle=this.canvasColor,this.ctx.fillRect(0,0,this.canvasDimension.width,this.canvasDimension.height)}drawScreen(){this.manageVirtualScreen(),this.clearScreen(),this.drawAll()}autoRecenter(){this.center(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2,this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2)}center(e,t){this.screenOffset=new ch(-e+this.canvasCenter.x,-t+this.canvasCenter.y),this.refresh()}changeMode(e,t){switch(e){case U_.LAYOUT:case U_.PAN:case U_.ZOOM_IN:case U_.ZOOM_OUT:case U_.ADD_CLASS:if(t!==G_.NONE)throw new L(`Can't change to '${e}' mode: relationship mode should not be specified in layout mode`);break;case U_.ADD_RELATIONSHIP:if(t===G_.NONE)throw new L("Can't switch to relationship mode: relationship mode is not specified");break;default:throw new F(`Can't switch to mode '${e}': unsupported mode`)}if(this.interactionMode=e,this.relationshipMode=t,e===U_.ADD_RELATIONSHIP)switch(t){case G_.INHERITANCE:this.handleAddRelationship=(e,t)=>{if(e.class.value===t.class.value||Qp(e.class.value).includes(t.class.value)||Qp(t.class.value).includes(e.class.value)||m_(e.class.value,$m.create(new Hm(t.class.value))),e.class.value.generalizations.find((e=>e.value.rawType===t.class.value))){const n=new Eh(this.diagram,e,t);return v_(this.diagram,n),n}};break;case G_.PROPERTY:this.handleAddRelationship=(e,t)=>{const n=new zm(`property_${e.class.value.properties.length+1}`,Dm.ONE,$m.create(new Hm(t.class.value)),e.class.value);if(g_(e.class.value,n),e!==t){const s=new _h(this.diagram,Ff.create(n),e,t);return x_(this.diagram,s),s}};break;default:throw new F(`Can't switch to relationship mode '${t}': unsupported mode`)}}align(e){if(!(this.selectedClasses.length<2)){switch(e){case V_.ALIGN_LEFT:{const e=this.selectedClasses.reduce(((e,t)=>Math.min(e,t.position.x)),Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>B_(t,new ch(e,t.position.y))));break}case V_.ALIGN_CENTER:{const e=this.selectedClasses.reduce(((e,t)=>e+t.position.x+t.rectangle.width/2),0)/this.selectedClasses.length;this.selectedClasses.forEach((t=>B_(t,new ch(e-t.rectangle.width/2,t.position.y))));break}case V_.ALIGN_RIGHT:{const e=this.selectedClasses.reduce(((e,t)=>Math.max(e,t.position.x+t.rectangle.width)),-Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>B_(t,new ch(e-t.rectangle.width,t.position.y))));break}case V_.ALIGN_TOP:{const e=this.selectedClasses.reduce(((e,t)=>Math.min(e,t.position.y)),Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>B_(t,new ch(t.position.x,e))));break}case V_.ALIGN_MIDDLE:{const e=this.selectedClasses.reduce(((e,t)=>e+t.position.y+t.rectangle.height/2),0)/this.selectedClasses.length;this.selectedClasses.forEach((t=>B_(t,new ch(t.position.x,e-t.rectangle.height/2))));break}case V_.ALIGN_BOTTOM:{const e=this.selectedClasses.reduce(((e,t)=>Math.max(e,t.position.y+t.rectangle.height)),-Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>B_(t,new ch(t.position.x,e-t.rectangle.height))));break}case V_.SPACE_HORIZONTALLY:{const e=this.selectedClasses.slice().sort(((e,t)=>e.position.x-t.position.x));if(2===e.length){const t=e[0],n=e[1];B_(n,new ch(t.position.x+t.rectangle.width,n.position.y))}else{const t=[];for(let n=1;n<e.length;n++){const s=e[n-1],i=e[n];t.push(i.position.x-(s.position.x+s.rectangle.width))}const n=t.reduce(((e,t)=>e+t),0)/t.length;for(let t=1;t<e.length;t++){const s=e[t-1],i=e[t];B_(i,new ch(s.position.x+s.rectangle.width+n,i.position.y))}}break}case V_.SPACE_VERTICALLY:{const e=this.selectedClasses.slice().sort(((e,t)=>e.position.y-t.position.y));if(2===e.length){const t=e[0],n=e[1];B_(n,new ch(n.position.x,t.position.y+t.rectangle.height))}else{const t=[];for(let n=1;n<e.length;n++){const s=e[n-1],i=e[n];t.push(i.position.y-(s.position.y+s.rectangle.height))}const n=t.reduce(((e,t)=>e+t),0)/t.length;for(let t=1;t<e.length;t++){const s=e[t-1],i=e[t];B_(i,new ch(i.position.x,s.position.y+s.rectangle.height+n))}}break}}this.drawScreen()}}truncateTextWithEllipsis(e,t=this.maxLineLength){return e.length>t?`${e.substring(0,t+1-3)}...`:e}canvasCoordinateToModelCoordinate(e){return new ch((e.x-this.canvasCenter.x)/this.zoom-this.screenOffset.x+this.canvasCenter.x,(e.y-this.canvasCenter.y)/this.zoom-this.screenOffset.y+this.canvasCenter.y)}modelCoordinateToCanvasCoordinate(e){return new ch((e.x-this.canvasCenter.x+this.screenOffset.x)*this.zoom+this.canvasCenter.x,(e.y-this.canvasCenter.y+this.screenOffset.y)*this.zoom+this.canvasCenter.y)}resolveMouseEventCoordinate(e){if(e.target instanceof HTMLElement){const t=yh(e.target);return new ch(t.x+e.offsetX,t.y+e.offsetY)}return new ch(e.x,e.y)}eventCoordinateToCanvasCoordinate(e){return new ch(e.x-this.divPosition.x+this.div.scrollLeft,e.y-this.divPosition.y+this.div.scrollTop)}canvasCoordinateToEventCoordinate(e){return new ch(e.x-this.div.scrollLeft+this.divPosition.x,e.y-this.div.scrollTop+this.divPosition.y)}hasPropertyView(e,t){return this.diagram.propertyViews.filter((n=>n.property.value===t&&n.from.classView.value===e)).length>0}get divPosition(){return yh(this.div)}manageVirtualScreen(){if(this.diagram.classViews.length){const e=U(this.diagram.classViews[0]);let t=e.position.x,n=e.position.y,s=e.position.x+e.rectangle.width,i=e.position.y+e.rectangle.height;for(const e of this.diagram.classViews)t=Math.min(t,e.position.x),n=Math.min(n,e.position.y),s=Math.max(s,e.position.x+e.rectangle.width),i=Math.max(i,e.position.y+e.rectangle.height);const a=this.diagram.associationViews.concat(this.diagram.generalizationViews).concat(this.diagram.propertyViews);for(const e of a){const a=mh.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value);if(e instanceof _h){const r=this.drawLinePropertyText(U(a[a.length-2],"Diagram path expected to have at least 2 points"),U(a[a.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,e.property.value,!1);t=Math.min(t,r.position.x),n=Math.min(n,r.position.y),s=Math.max(s,xh(r).x),i=Math.max(i,xh(r).y)}for(const a of e.path)t=Math.min(t,a.x),n=Math.min(n,a.y),s=Math.max(s,a.x),i=Math.max(i,a.y)}this.virtualScreen=new dh(new ch(t,n),new lh(s-t,i-n))}else this.setZoomLevel(1),this.screenOffset=new ch(0,0),this.virtualScreen=new dh(new ch(this.canvasDimension.width/2,this.canvasDimension.height/2),new lh(0,0))}executeZoom(e,t){e=Math.max(e,$_);const n=this.zoom;this.setZoomLevel(e),this.screenOffset=new ch(((t.x-this.canvasCenter.x)*(n-e)+this.screenOffset.x*n)/e,((t.y-this.canvasCenter.y)*(n-e)+this.screenOffset.y*n)/e),this.clearScreen(),this.drawAll()}zoomPoint(e,t){this.executeZoom(e,t)}zoomCenter(e){this.setZoomLevel(Math.max(e,$_)),this.clearScreen(),this.drawAll()}zoomToFit(){this.autoRecenter(),this.zoomCenter(Math.max(Math.min(this.canvas.width/(this.virtualScreen.rectangle.width+2*this.screenPadding+20),this.canvas.height/(this.virtualScreen.rectangle.height+2*this.screenPadding+20)),$_))}addClassView(e,t){if(!this.isReadOnly){const n=this.diagram.classViews.map((e=>e.id));let s=(0,a.Z)();for(;n.includes(s);)s=(0,a.Z)();const i=new uh(this.diagram,s,Xa.create(e));return B_(i,t??this.canvasCoordinateToModelCoordinate(new ch(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2,this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2))),E_(this.diagram,i),j_(i),this.diagram.classViews.filter((t=>t.class.value!==e)).forEach((t=>{const n=t.class.value;e.generalizations.map((e=>e.value.rawType)).includes(n)&&v_(this.diagram,new Eh(this.diagram,i,t)),n.generalizations.map((e=>e.value.rawType)).includes(e)&&v_(this.diagram,new Eh(this.diagram,t,i)),eh(e).forEach((e=>{e.genericType.value.rawType===n&&x_(this.diagram,new _h(this.diagram,Ff.create(e),i,t))})),eh(n).forEach((n=>{n.genericType.value.rawType===e&&x_(this.diagram,new _h(this.diagram,Ff.create(n),t,i))}))})),this.drawClassView(i),this.drawScreen(),i}}drawBoundingBox(){this.ctx.fillStyle=this.backgroundColor,this.ctx.lineWidth=1,this.ctx.fillRect((this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x-this.screenPadding)*this.zoom+this.canvasCenter.x,(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y-this.screenPadding)*this.zoom+this.canvasCenter.y,(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom),this.ctx.strokeRect((this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x-this.screenPadding)*this.zoom+this.canvasCenter.x,(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y-this.screenPadding)*this.zoom+this.canvasCenter.y,(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom)}drawDiagram(){this.diagram.associationViews.forEach((e=>this.drawPropertyOrAssociation(e))),this.diagram.generalizationViews.forEach((e=>this.drawInheritance(e))),this.diagram.propertyViews.forEach((e=>this.drawPropertyOrAssociation(e))),this.diagram.classViews.forEach((e=>this.drawClassView(e))),this.showCanvasGrid&&this.drawCanvasGrid(),this.showScreenGrid&&this.drawScreenGrid()}drawAll(){this.drawBoundingBox(),this.drawDiagram()}drawScreenGrid(){const e=(this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t=(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y,n=(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,s=(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom;this.ctx.beginPath(),this.ctx.fillStyle=this.screenGridLabelTextColor,this.ctx.strokeStyle=this.screenGridLineColor,this.ctx.lineWidth=this.screenGridLineWidth,this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`;let i=0;for(let a=e;a<e+n-2*this.screenPadding;a+=this.screenGridSpacingX*this.zoom)this.ctx.fillText(`${i}`,a+5*this.zoom,t-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.x+i)}]`,a+5*this.zoom,t-(this.screenGridAxisTickLength+this.screenPadding-this.lineHeight)*this.zoom),this.ctx.moveTo(a,t-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom),this.ctx.lineTo(a,t+s-this.screenPadding*this.zoom),this.ctx.stroke(),i+=this.screenGridSpacingX;let a=0;for(let i=t;i<t+s-2*this.screenPadding;i+=this.screenGridSpacingY*this.zoom)this.ctx.fillText(`${a}`,e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,i+5*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.y+a)}]`,e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,i+(5+this.lineHeight)*this.zoom),this.ctx.moveTo(e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,i),this.ctx.lineTo(e+n-this.screenPadding*this.zoom,i),this.ctx.stroke(),a+=this.screenGridSpacingY;this.showScreenBoxGuide&&(this.ctx.beginPath(),this.ctx.fillStyle=this.screenGuideLabelTextColor,this.ctx.strokeStyle=this.screenGuideLineColor,this.ctx.moveTo(e,t),this.ctx.lineTo(e,t+s-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.lineTo(e,t+s-2*this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+s-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+s-2*this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t),this.ctx.stroke(),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t),this.ctx.lineTo(e,t),this.ctx.stroke(),this.ctx.fillText(`${Math.round(this.virtualScreen.rectangle.width/2)}`,e+n/2-(this.screenPadding-5)*this.zoom,t+5*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2)}]`,e+n/2-(this.screenPadding-5)*this.zoom,t+(5+this.lineHeight)*this.zoom),this.ctx.lineTo(e+n/2-this.screenPadding*this.zoom,t),this.ctx.lineTo(e+n/2-this.screenPadding*this.zoom,t+s-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.fillText(`${Math.round(this.virtualScreen.rectangle.height/2)}`,e+5*this.zoom,t+s/2-(this.screenPadding-5)*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2)}]`,e+5*this.zoom,t+s/2-(this.screenPadding-5-this.lineHeight)*this.zoom),this.ctx.lineTo(e,t+s/2-this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+s/2-this.screenPadding*this.zoom),this.ctx.stroke()),this.ctx.strokeStyle=this.defaultLineColor,this.ctx.lineWidth=this.defaultLineWidth}drawCanvasGrid(){const e=-this.canvasCenter.x*this.zoom+this.canvasCenter.x,t=-this.canvasCenter.y*this.zoom+this.canvasCenter.y,n=this.canvasDimension.width,s=this.canvasDimension.height;this.ctx.setLineDash([5,5]),this.ctx.fillStyle=this.canvasGridLabelTextColor,this.ctx.strokeStyle=this.canvasGridLineColor,this.ctx.lineWidth=this.canvasGridLineWidth,this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`,this.ctx.beginPath();let i=0;for(let t=e;t<n;t+=this.canvasGridSpacingX*this.zoom)0!==t&&this.ctx.fillText(`[${Math.round(i)}]`,t+5*this.zoom,5*this.zoom),this.ctx.moveTo(t,0),this.ctx.lineTo(t,s),this.ctx.stroke(),i+=this.canvasGridSpacingX;let a=0;for(let e=t;e<s;e+=this.canvasGridSpacingY*this.zoom)0!==e&&this.ctx.fillText(`[${Math.round(a)}]`,5*this.zoom,e+5*this.zoom),this.ctx.moveTo(0,e),this.ctx.lineTo(n,e),this.ctx.stroke(),a+=this.canvasGridSpacingY;if(this.showCanvasBoxGuide&&(this.ctx.beginPath(),this.ctx.fillStyle=this.canvasGuideLabelTextColor,this.ctx.strokeStyle=this.canvasGuideLineColor,this.ctx.fillText(`[${Math.round(n/2)}]`,n/2+5*this.zoom,5*this.zoom),this.ctx.moveTo(n/2,0),this.ctx.lineTo(n/2,s),this.ctx.stroke(),this.ctx.fillText(`[${Math.round(s/2)}]`,5*this.zoom,s/2+5*this.zoom),this.ctx.moveTo(0,s/2),this.ctx.lineTo(n,s/2),this.ctx.stroke()),this.showScreenOffsetGuide){const n=5,s=35;this.ctx.beginPath(),this.ctx.setLineDash([]),this.ctx.fillStyle=this.screenOffsetGuideLabelTextColor,this.ctx.strokeStyle=this.screenOffsetGuideLineColor,this.ctx.arc(e+this.screenOffset.x*this.zoom,t+this.screenOffset.y*this.zoom,n*this.zoom,0,2*Math.PI),this.ctx.moveTo(e+(this.screenOffset.x-n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.lineTo(e+(this.screenOffset.x+2*n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.moveTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y-n)*this.zoom),this.ctx.lineTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y+2*n)*this.zoom),this.ctx.stroke(),this.ctx.setLineDash([5,5]),this.ctx.moveTo(e,t+this.screenOffset.y*this.zoom),this.ctx.lineTo(e+(this.screenOffset.x-n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.moveTo(e+this.screenOffset.x*this.zoom,t+0),this.ctx.lineTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y-n)*this.zoom),this.ctx.stroke(),this.ctx.beginPath(),this.screenOffset.x>=s&&this.screenOffset.y>=s?(this.ctx.fillText(`[${Math.round(this.screenOffset.x)}]`,e+(this.screenOffset.x+5)*this.zoom,t+5*this.zoom),this.ctx.fillText(`[${Math.round(this.screenOffset.y)}]`,e+5*this.zoom,t+(this.screenOffset.y+5)*this.zoom)):this.screenOffset.x>=0&&this.screenOffset.y>=0?this.ctx.fillText(`Δ [${Math.round(this.screenOffset.x)},${Math.round(this.screenOffset.y)}]`,e+(this.screenOffset.x+n+5)*this.zoom,t+(this.screenOffset.y+n+5)*this.zoom):this.ctx.fillText(`Δ [${Math.round(this.screenOffset.x)},${Math.round(this.screenOffset.y)}]`,e+(n+5)*this.zoom,t+(n+5)*this.zoom)}this.ctx.setLineDash([]),this.ctx.strokeStyle=this.defaultLineColor,this.ctx.lineWidth=this.defaultLineWidth}drawClassViewProperty(e,t,n,s,i){this.ctx.font=this.mouseOverClassView===e&&this.mouseOverClassProperty===t?`bold ${(this.fontSize-1)*(i?1:this.zoom)}px ${this.fontFamily}`:`${i?"bold":""} ${(this.fontSize-1)*(i?1:this.zoom)}px ${this.fontFamily}`;const a=z_(t);let r=this.ctx.measureText(`${a} : `).width;i||(this.ctx.fillText(`${a} : `,n,s),this.ctx.fillText(t.genericType.value.rawType.name,n+r,s),t.genericType.value.rawType instanceof Ua&&(this.ctx.beginPath(),this.ctx.moveTo(n+r,s+(this.fontSize-1)*this.zoom),this.ctx.lineTo(n+r+this.ctx.measureText(t.genericType.value.rawType.name).width,s+(this.fontSize-1)*this.zoom),this.ctx.stroke())),r+=this.ctx.measureText(t.genericType.value.rawType.name).width,this.ctx.font=`${(this.fontSize-1)*(i?1:this.zoom)}px ${this.fontFamily}`;const o=u_(t.multiplicity.lowerBound,t.multiplicity.upperBound);return i||this.ctx.fillText(`[${o}]`,n+r,s),r+=this.ctx.measureText(`[${o}]`).width,r}computeClassNameWidth(e){return this.ctx.font=`bold ${this.fontSize}px ${this.fontFamily}`,this.ctx.textBaseline="top",this.ctx.measureText(this.truncateTextWithEllipsis(e.class.value.name)).width}ensureClassViewMeetMinDimensions(e){let t=this.computeClassNameWidth(e),n=this.lineHeight+2*this.classViewSpaceY;if(!e.hideStereotypes){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;for(const s of e.class.value.stereotypes){const e=`<< ${this.truncateTextWithEllipsis(s.value.value,this.maxLineLength-6)} >>`,i=this.ctx.measureText(e).width;t=Math.max(t,i),n+=this.lineHeight}}if(!e.hideTaggedValues){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`,this.ctx.textBaseline="top";for(const s of e.class.value.taggedValues){const e=`{ ${this.truncateTextWithEllipsis(`${s.tag.value.value} = ${s.value}`,this.maxLineLength-4)} }`,i=this.ctx.measureText(e).width;t=Math.max(t,i),n+=this.lineHeight}}if(e.hideProperties||(eh(e.class.value).forEach((s=>{if(!this.hasPropertyView(e,s)){const i=this.drawClassViewProperty(e,s,0,0,!0);t=Math.max(t,i),n+=this.lineHeight}})),n+=2*this.classViewSpaceY),t+=2*this.classViewSpaceX,!this.isReadOnly||this.enableLayoutAutoAdjustment){const s=e.rectangle.width&&e.rectangle.width>t?e.rectangle.width:t,i=e.rectangle.height&&e.rectangle.height>n?e.rectangle.height:n;M_(e,new lh(s,i))}}drawClassView(e){const t=this.computeClassNameWidth(e);this.ensureClassViewMeetMinDimensions(e),this.ctx.fillStyle=this.classViewFillColor;const n=this.modelCoordinateToCanvasCoordinate(e.position);this.ctx.fillRect(n.x,n.y,e.rectangle.width*this.zoom,e.rectangle.height*this.zoom),this.ctx.lineWidth=0!==this.selectedClasses.length&&-1!==this.selectedClasses.indexOf(e)?2:1,this.ctx.strokeRect(n.x,n.y,e.rectangle.width*this.zoom,e.rectangle.height*this.zoom);const s=e.position.x,i=e.position.y;this.ctx.lineWidth=1,this.ctx.fillStyle=this.classViewHeaderTextColor;let a=i;if(this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,!e.hideStereotypes)for(const t of e.class.value.stereotypes){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const n=`<< ${this.truncateTextWithEllipsis(t.value.value,this.maxLineLength-6)} >>`,i=this.ctx.measureText(n).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,this.ctx.fillText(n,(s+this.screenOffset.x+(e.rectangle.width-i)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(a+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),a+=this.lineHeight}this.ctx.font=`bold ${this.fontSize*this.zoom}px ${this.fontFamily}`;const r=this.truncateTextWithEllipsis(e.class.value.name);if(this.ctx.fillText(r,(s+this.screenOffset.x+(e.rectangle.width-t)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(a+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),a+=this.lineHeight,!e.hideTaggedValues)for(const t of e.class.value.taggedValues){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const n=`{ ${this.truncateTextWithEllipsis(`${t.tag.value.value} = ${t.value}`,this.maxLineLength-4)} }`,i=this.ctx.measureText(n).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,this.ctx.fillText(n,(s+this.screenOffset.x+(e.rectangle.width-i)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(a+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),a+=this.lineHeight}if(a+=3*this.classViewSpaceY,!e.hideProperties){this.ctx.beginPath();const t=(i+this.screenOffset.y+this.lineHeight+(e.hideStereotypes?0:e.class.value.stereotypes.length*this.lineHeight)+(e.hideTaggedValues?0:e.class.value.taggedValues.length*this.lineHeight)+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y;this.ctx.moveTo((s+this.screenOffset.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t),this.ctx.lineTo((s+this.screenOffset.x+e.rectangle.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t),this.ctx.stroke();for(const t of eh(e.class.value))if(!this.hasPropertyView(e,t)){this.ctx.fillStyle=t instanceof Km?this.classViewDerivedPropertyTextColor:t.genericType.value.rawType instanceof Ym?this.classViewPrimitivePropertyTextColor:this.classViewPropertyTextColor;const n=(s+this.screenOffset.x+this.classViewSpaceX-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,i=(a+this.screenOffset.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y;this.drawClassViewProperty(e,t,n,i,!1),a+=this.lineHeight}}j_(e)}drawLinePropertyNameAndMultiplicity(e,t,n,s,i,a){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const r=z_(e),o=u_(e.multiplicity.lowerBound,e.multiplicity.upperBound),c=this.ctx.measureText(r).width,l=this.ctx.measureText(o).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`;const d=t(c),u=n(c),p=this.modelCoordinateToCanvasCoordinate(new ch(t(c),n(c)));a||this.ctx.fillText(r,p.x,p.y);const h=s(l),g=i(l),m=this.modelCoordinateToCanvasCoordinate(new ch(s(l),i(l)));a||this.ctx.fillText(o,m.x,m.y);const f=new ch(Math.min(d,h),Math.min(u,g));return new dh(f,new lh(Math.max(d,h)+Math.max(c,l)-f.x,Math.max(u,g)+this.lineHeight-f.y))}drawLinePropertyText(e,t,n,s,i){this.ctx.textBaseline="top",this.ctx.fillStyle=this.relationshipViewTextColor;const a=e.x,r=e.y,o=t.x,c=t.y,l=n.rectangle;if(r<c){const e=a+(o-a)/(c-r)*(n.position.y-r);if(e>n.position.x&&e<n.position.x+l.width)return this.drawLinePropertyNameAndMultiplicity(s,(t=>e<n.position.x+l.width/2?e+this.propertySpacing:e-t-this.propertySpacing),(e=>n.position.y-this.lineHeight-this.propertySpacing),(t=>e<n.position.x+l.width/2?e-t-this.propertySpacing:e+this.propertySpacing),(e=>n.position.y-this.lineHeight-this.propertySpacing),i)}else{const e=a+(o-a)/(c-r)*(n.position.y+l.height-r);if(e>n.position.x&&e<n.position.x+l.width)return this.drawLinePropertyNameAndMultiplicity(s,(t=>e<n.position.x+l.width/2?e+this.propertySpacing:e-t-this.propertySpacing),(e=>n.position.y+l.height+this.propertySpacing),(t=>e<n.position.x+l.width/2?e-t-this.propertySpacing:e+this.propertySpacing),(e=>n.position.y+l.height+this.propertySpacing),i)}if(a<o){const e=r+(c-r)/(o-a)*(n.position.x-a);if(e>n.position.y&&e<n.position.y+l.height)return this.drawLinePropertyNameAndMultiplicity(s,(e=>n.position.x-e-this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e+this.propertySpacing:e-this.lineHeight-this.propertySpacing),(e=>n.position.x-e-this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e-this.lineHeight-this.propertySpacing:e+this.propertySpacing),i)}else{const e=r+(c-r)/(o-a)*(n.position.x+n.rectangle.width-a);if(e>n.position.y&&e<n.position.y+n.rectangle.height)return this.drawLinePropertyNameAndMultiplicity(s,(e=>n.position.x+n.rectangle.width+this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e+this.propertySpacing:e-this.lineHeight-this.propertySpacing),(e=>n.position.x+n.rectangle.width+this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e-this.lineHeight-this.propertySpacing:e+this.propertySpacing),i)}return new dh(new ch(0,0),new lh(0,0))}drawPropertyOrAssociation(e){const t=mh.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value),n=e.property.value;if(this.drawLinePropertyText(U(t[t.length-2],"Diagram path expected to have at least 2 points"),U(t[t.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,n,!1),this.ctx.beginPath(),this.ctx.lineWidth=e===this.selectedPropertyOrAssociation?2:1,t.forEach(((e,t)=>{const n=this.modelCoordinateToCanvasCoordinate(e);0===t?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y)})),this.ctx.stroke(),this.ctx.lineWidth=1,n instanceof zm){const s=t[1],i=t[0],a=s.x,r=s.y,o=i.x,c=i.y,l=e.from;let d=0,u=0;if(c>r){const e=a+(o-a)/(c-r)*(l.classView.value.position.y-r);e>l.classView.value.position.x&&e<l.classView.value.position.x+l.classView.value.rectangle.width&&(d=(e-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(l.classView.value.position.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const e=a+(o-a)/(c-r)*(l.classView.value.position.y+l.classView.value.rectangle.height-r);e>l.classView.value.position.x&&e<l.classView.value.position.x+l.classView.value.rectangle.width&&(d=(e-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(l.classView.value.position.y+l.classView.value.rectangle.height-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(o>a){const e=r+(c-r)/(o-a)*(l.classView.value.position.x-a);e>l.classView.value.position.y&&e<l.classView.value.position.y+l.classView.value.rectangle.height&&(d=(l.classView.value.position.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(e-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const e=r+(c-r)/(o-a)*(l.classView.value.position.x+l.classView.value.rectangle.width-a);e>l.classView.value.position.y&&e<l.classView.value.position.y+l.classView.value.rectangle.height&&(d=(l.classView.value.position.x+l.classView.value.rectangle.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(e-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(n.aggregation===Wm.COMPOSITE||n.aggregation===Wm.SHARED){let e=Math.atan((c-r)/(o-a));e=o>=a?e:e+Math.PI,this.ctx.beginPath(),this.ctx.moveTo(d+(this.screenOffset.x+Sh(this.diamond[0],e))*this.zoom,u+(this.screenOffset.y+Nh(this.diamond[0],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Sh(this.diamond[1],e))*this.zoom,u+(this.screenOffset.y+Nh(this.diamond[1],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Sh(this.diamond[2],e))*this.zoom,u+(this.screenOffset.y+Nh(this.diamond[2],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Sh(this.diamond[3],e))*this.zoom,u+(this.screenOffset.y+Nh(this.diamond[3],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Sh(this.diamond[0],e))*this.zoom,u+(this.screenOffset.y+Nh(this.diamond[0],e))*this.zoom),n.aggregation===Wm.SHARED&&(this.ctx.fillStyle=this.propertyViewSharedDiamondColor),n.aggregation===Wm.COMPOSITE&&(this.ctx.fillStyle=this.propertyViewOwnedDiamondColor),this.ctx.fill(),this.ctx.stroke(),this.ctx.lineWidth=1}}}drawInheritance(e){const t=e.to.classView.value.rectangle,n=mh.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value),s=U(n[n.length-2],"Diagram path expected to have at least 2 points").x,i=U(n[n.length-2],"Diagram path expected to have at least 2 points").y,a=U(n[n.length-1],"Diagram path expected to have at least 2 points").x,r=U(n[n.length-1],"Diagram path expected to have at least 2 points").y;let o=0,c=0;if(r>i){const n=s+(a-s)/(r-i)*(e.to.classView.value.position.y-i);n>e.to.classView.value.position.x&&n<e.to.classView.value.position.x+t.width&&(o=(n-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(e.to.classView.value.position.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const n=s+(a-s)/(r-i)*(e.to.classView.value.position.y+t.height-i);n>e.to.classView.value.position.x&&n<e.to.classView.value.position.x+t.width&&(o=(n-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(e.to.classView.value.position.y+t.height-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(a>s){const n=i+(r-i)/(a-s)*(e.to.classView.value.position.x-s);n>e.to.classView.value.position.y&&n<e.to.classView.value.position.y+t.height&&(o=(e.to.classView.value.position.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(n-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const n=i+(r-i)/(a-s)*(e.to.classView.value.position.x+t.width-s);n>e.to.classView.value.position.y&&n<e.to.classView.value.position.y+t.height&&(o=(e.to.classView.value.position.x+t.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(n-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}this.ctx.beginPath(),this.ctx.lineWidth=e===this.selectedInheritance?2:1,n.forEach(((e,t)=>{const n=this.modelCoordinateToCanvasCoordinate(e);0===t?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y)})),this.ctx.stroke();let l=Math.atan((r-i)/(a-s));l=a>=s?l:l+Math.PI,this.ctx.beginPath(),this.ctx.moveTo(o+(this.screenOffset.x+Sh(this.triangle[0],l))*this.zoom,c+(this.screenOffset.y+Nh(this.triangle[0],l))*this.zoom),this.ctx.lineTo(o+(this.screenOffset.x+Sh(this.triangle[1],l))*this.zoom,c+(this.screenOffset.y+Nh(this.triangle[1],l))*this.zoom),this.ctx.lineTo(o+(this.screenOffset.x+Sh(this.triangle[2],l))*this.zoom,c+(this.screenOffset.y+Nh(this.triangle[2],l))*this.zoom),this.ctx.lineTo(o+(this.screenOffset.x+Sh(this.triangle[0],l))*this.zoom,c+(this.screenOffset.y+Nh(this.triangle[0],l))*this.zoom),this.ctx.fillStyle=this.generalizationViewInheritanceTriangeFillColor,this.ctx.fill(),this.ctx.stroke(),this.ctx.lineWidth=1}reorderDiagramDomain(e,t){const n=t.classViews.filter((t=>t!==e));return n.push(e),n}potentiallyShiftRelationships(e,t,n,s){e.forEach((e=>{-1!==t.indexOf(e.from.classView.value)&&-1!==t.indexOf(e.to.classView.value)&&D_(e,e.path.map((e=>new ch(e.x-n,e.y-s))))}))}recenter(){if(0!==this.selectedClasses.length){const e=N(this.selectedClasses);e&&this.center(e.position.x+e.rectangle.width/2,e.position.y+e.rectangle.height/2)}else this.autoRecenter()}switchToZoomMode(){this.changeMode(this.interactionMode!==U_.ZOOM_IN?U_.ZOOM_IN:U_.ZOOM_OUT,G_.NONE)}switchToViewMode(){this.changeMode(U_.LAYOUT,G_.NONE)}switchToPanMode(){this.changeMode(U_.PAN,G_.NONE)}switchToAddPropertyMode(){this.isReadOnly||this.changeMode(U_.ADD_RELATIONSHIP,G_.PROPERTY)}switchToAddInheritanceMode(){this.isReadOnly||this.changeMode(U_.ADD_RELATIONSHIP,G_.INHERITANCE)}switchToAddClassMode(){this.isReadOnly||this.changeMode(U_.ADD_CLASS,G_.NONE)}ejectProperty(){this.isReadOnly||(this.mouseOverClassProperty?this.mouseOverClassProperty.genericType.value.rawType instanceof Ba&&this.addClassView(this.mouseOverClassProperty.genericType.value.rawType,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(new ch(this.cursorPosition.x,this.cursorPosition.y)))):this.selectedClassProperty&&(this.selectedClassProperty.property.genericType.value.rawType instanceof Ba&&this.addClassView(this.selectedClassProperty.property.genericType.value.rawType,this.selectedClassProperty.selectionPoint),this.selectedClassProperty=void 0))}getSuperTypeLevels(e,t,n,s){if(e.length){const i=(0,at.Z)(e.flatMap((e=>e.class.value.generalizations.map((e=>new uh(t,(0,a.Z)(),Xa.create(Zp(e.value,Ba))))))),(e=>e.class.value));if(i.forEach((e=>this.ensureClassViewMeetMinDimensions(e))),-1===s||n<s){const a=this.getSuperTypeLevels(i,t,n+1,s);return a.push(e),a}return[e]}return[]}layoutTaxonomy(e,t,n,s){return e.reverse(),[e.flatMap(((t,i)=>{let a=0,r=0,o=0,c=0;if(i>0){const t=e[i-1];if(t.length){const e=[...t].sort(((e,t)=>e.position.x-t.position.x));o=e[0].position.x,a=e[e.length-1].position.x+e[e.length-1].rectangle.width-e[0].position.x;const n=[...t].sort(((e,t)=>e.position.y-t.position.y));c=n[0].position.y,r=n[n.length-1].position.y+n[n.length-1].rectangle.height-n[0].position.y}}const l=Math.max(...t.map((e=>e.rectangle.height))),d=o+a/2-t.map((e=>e.rectangle.width)).reduce(((e,t)=>e+t+10))/2,u=s?c-l-30:c+r+30;return(n||i>0)&&(B_(t[0],new ch(d,u)),t.forEach(((e,n)=>{if(n>0){const s=t[n-1];B_(e,new ch(s.position.x+s.rectangle.width+10,u))}}))),t})),(s?e:e.slice().reverse()).slice(0,e.length-1).flatMap(((n,s)=>n.flatMap((n=>e[s+1].flatMap((e=>n.class.value.generalizations.map((e=>e.value.rawType)).includes(e.class.value)?new Eh(t,n,e):[]))))))]}keydown(e){if("Delete"===e.code)this.isReadOnly||(this.selectedClasses.forEach((e=>{C_(this.diagram,e),y_(this.diagram,this.diagram.associationViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e)))),T_(this.diagram,this.diagram.generalizationViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e)))),N_(this.diagram,this.diagram.propertyViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e))))})),this.selectedPropertyOrAssociation instanceof p_?b_(this.diagram,this.selectedPropertyOrAssociation):this.selectedPropertyOrAssociation instanceof _h&&A_(this.diagram,this.selectedPropertyOrAssociation),this.selectedInheritance&&this.diagram.generalizationViews.find((e=>e===this.selectedInheritance))&&S_(this.diagram,this.selectedInheritance),this.setSelectedClasses([]),this.drawScreen());else if("KeyE"===e.code)this.selectedClassProperty?(this.handleEditProperty(this.selectedClassProperty.property,this.selectedClassProperty.selectionPoint,void 0),e.preventDefault()):this.selectedPropertyOrAssociation?(this.handleEditProperty(this.selectedPropertyOrAssociation.property.value,this.selectedPoint??(this.selectedPropertyOrAssociation.path.length?this.selectedPropertyOrAssociation.path[0]:this.selectedPropertyOrAssociation.from.classView.value.center()),this.selectedPropertyOrAssociation),e.preventDefault()):1===this.selectedClasses.length&&this.handleEditClassView(this.selectedClasses[0]);else if(e.altKey&&"KeyP"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{I_(e,!e.hideProperties)})),this.drawScreen());else if(e.altKey&&"KeyS"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{O_(e,!e.hideStereotypes)})),this.drawScreen());else if(e.altKey&&"KeyT"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{w_(e,!e.hideTaggedValues)})),this.drawScreen());else if(e.altKey&&"ArrowDown"===e.code)this.isReadOnly||1!==this.selectedClasses.length||this.handleAddSimpleProperty(this.selectedClasses[0]);else if("ArrowUp"===e.code){const e=this.getSuperTypeLevels(this.selectedClasses,this.diagram,0,1),t=this.layoutTaxonomy(e,this.diagram,!1,!0);t[0].forEach((e=>E_(this.diagram,e))),t[1].forEach((e=>v_(this.diagram,e))),this.drawScreen()}else if("ArrowDown"===e.code){const e=(0,at.Z)(this.selectedClasses.flatMap((e=>e.class.value._subclasses.flatMap((e=>new uh(this.diagram,(0,a.Z)(),Xa.create(e)))))),(e=>e.class.value));if(e.length>0){e.forEach((e=>this.ensureClassViewMeetMinDimensions(e)));const t=this.layoutTaxonomy([e,this.selectedClasses],this.diagram,!1,!1);t[0].forEach((e=>E_(this.diagram,e))),t[1].forEach((e=>v_(this.diagram,e)))}this.drawScreen()}}mouseup(e){const t=this.resolveMouseEventCoordinate(e);switch(this.interactionMode){case U_.ZOOM_IN:{const e=Math.round(100*this.zoom);let n;n=e<=H_[0]-10?10*Math.floor(e/10)+10:e>=H_[H_.length-1]?100*Math.floor(e/100)+100:U(H_.find((t=>t>e))),this.zoomPoint(n/100,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)));break}case U_.ZOOM_OUT:{const e=Math.round(100*this.zoom);let n;n=e<=H_[0]?10*Math.ceil(e/10)-10:e>=H_[H_.length-1]+100?100*Math.ceil(e/100)-100:U((0,Vp.Z)(H_,(t=>t<e))),this.zoomPoint(n/100,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)));break}}if(!this.isReadOnly)switch(this.interactionMode){case U_.LAYOUT:this.diagram.generalizationViews.forEach((e=>F_(e))),this.diagram.associationViews.forEach((e=>F_(e))),this.diagram.propertyViews.forEach((e=>F_(e)));break;case U_.ADD_CLASS:{const e=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));this.onAddClassViewClick(e),this.changeMode(U_.LAYOUT,G_.NONE);break}case U_.ADD_RELATIONSHIP:if(this.startClassView&&this.selectionStart&&this.handleAddRelationship){const e=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));for(let t=this.diagram.classViews.length-1;t>=0;t--){const n=this.diagram.classViews[t];if(n.contains(e.x,e.y)){const t=this.handleAddRelationship(this.startClassView,n);t&&(R_(t.from,-(this.startClassView.position.x+this.startClassView.rectangle.width/2-this.selectionStart.x)),k_(t.from,-(this.startClassView.position.y+this.startClassView.rectangle.height/2-this.selectionStart.y)),R_(t.to,-(n.position.x+n.rectangle.width/2-e.x)),k_(t.to,-(n.position.y+n.rectangle.height/2-e.y)))}}this.changeMode(U_.LAYOUT,G_.NONE)}}this.setLeftClick(!1),this.setMiddleClick(!1),this.setRightClick(!1),this.setSelectedClassCorner(void 0),this.setSelectionStart(void 0),this.drawScreen()}mousedblclick(e){const t=this.resolveMouseEventCoordinate(e);if([U_.ADD_RELATIONSHIP,U_.ADD_CLASS,U_.ZOOM_IN,U_.ZOOM_OUT].includes(this.interactionMode))return;const n=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));if(this.mouseOverClassProperty&&this.onClassPropertyDoubleClick)return void this.onClassPropertyDoubleClick(this.mouseOverClassProperty,n,void 0);if(this.mouseOverClassName&&this.onClassNameDoubleClick)return void this.onClassNameDoubleClick(this.mouseOverClassName,n);const s=this.diagram.classViews.find((e=>e.contains(n.x,n.y)));s&&this.onClassViewDoubleClick?this.onClassViewDoubleClick(s,n):this.mouseOverPropertyHolderViewLabel&&this.onClassPropertyDoubleClick?this.onClassPropertyDoubleClick(this.mouseOverPropertyHolderViewLabel.property.value,n,this.mouseOverPropertyHolderViewLabel):this.onBackgroundDoubleClick&&this.onBackgroundDoubleClick(n)}mousedown(e){const t=this.resolveMouseEventCoordinate(e);this.setSelectionStart(void 0),this.setSelectedClassCorner(void 0),this.setSelectedPropertyOrAssociation(void 0),this.setSelectedInheritance(void 0),this.selection=void 0,this.selectedClassProperty=void 0,this.selectedPoint=void 0,this.startClassView=void 0;const n=this.eventCoordinateToCanvasCoordinate(t),s=this.canvasCoordinateToModelCoordinate(n);if(0===e.button)switch(this.setLeftClick(!0),this.interactionMode){case U_.PAN:return void(this.positionBeforeLastMove=t);case U_.LAYOUT:for(let e=this.diagram.classViews.length-1;e>=0;e--){const t=this.diagram.classViews[e];if(Ah(t).contains(s.x,s.y)){this.setSelectedClasses([]),this.setSelectedClassCorner(this.diagram.classViews[e]),this.isReadOnly||__(this.diagram,this.reorderDiagramDomain(U(this.selectedClassCorner),this.diagram));break}}if(!this.selectedClassCorner)if(this.mouseOverClassProperty)this.selectedClassProperty={property:this.mouseOverClassProperty,selectionPoint:s},this.setSelectedClasses([]);else{let e=!1;for(let t=this.diagram.classViews.length-1;t>=0;t--){const i=this.diagram.classViews[t];if(i.contains(s.x,s.y)){0!==this.selectedClasses.length&&-1!==this.selectedClasses.indexOf(i)||this.setSelectedClasses([i]),this.isReadOnly||__(this.diagram,this.reorderDiagramDomain(this.selectedClasses[0],this.diagram)),this.clickX=n.x/this.zoom-this.screenOffset.x,this.clickY=n.y/this.zoom-this.screenOffset.y,this._selectedClassesInitialPositions=this.selectedClasses.map((e=>({classView:e,oldPos:new ch(e.position.x,e.position.y)}))),e=!0;break}}if(e||this.setSelectedClasses([]),!this.selectedClasses.length){for(const e of this.diagram.generalizationViews){const t=P_(e,s.x,s.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedInheritance(e);break}}if(!this.selectedPoint)for(const e of this.diagram.associationViews){const t=P_(e,s.x,s.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedPropertyOrAssociation(e);break}}if(!this.selectedPoint)for(const e of this.diagram.propertyViews){const t=P_(e,s.x,s.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedPropertyOrAssociation(e);break}}this.selectedPoint||this.setSelectionStart(s)}}break;case U_.ADD_RELATIONSHIP:this.setSelectionStart(s),this.startClassView=void 0;for(let e=this.diagram.classViews.length-1;e>=0;e--){const t=this.diagram.classViews[e];t.contains(s.x,s.y)&&(this.startClassView=t)}this.startClassView||this.changeMode(U_.LAYOUT,G_.NONE)}else{if(1===e.button)return this.setMiddleClick(!0),void(this.positionBeforeLastMove=t);if(2===e.button)return this.setRightClick(!0),this.positionBeforeLastMove=t,void(this.mouseOverClassView&&(this.onClassViewRightClick(this.mouseOverClassView,s),this.setRightClick(!1)))}this.clearScreen(),this.drawAll()}mousewheel(e){const t=this.resolveMouseEventCoordinate(e);if(e.preventDefault(),e.stopImmediatePropagation(),Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;const n=this.zoom-e.deltaY/120*.05;this.executeZoom(n,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)))}mousemove(e){const t=this.resolveMouseEventCoordinate(e);if(this.cursorPosition=t,this.rightClick||this.middleClick||this.leftClick&&this.interactionMode===U_.PAN)this.screenOffset=new ch(this.screenOffset.x+(t.x-this.positionBeforeLastMove.x)/this.zoom,this.screenOffset.y+(t.y-this.positionBeforeLastMove.y)/this.zoom),this.positionBeforeLastMove=t,this.clearScreen(),this.drawAll();else if(this.leftClick){const e=this.eventCoordinateToCanvasCoordinate(t),n=this.canvasCoordinateToModelCoordinate(e);switch(this.interactionMode){case U_.LAYOUT:if(this.selectedClassCorner&&(M_(this.selectedClassCorner,new lh(n.x-this.selectedClassCorner.position.x,n.y-this.selectedClassCorner.position.y)),j_(this.selectedClassCorner),this.drawClassView(this.selectedClassCorner),this.drawScreen()),!this.selectionStart&&this.selectedClasses.length&&!this.isReadOnly){let t=0,n=0;this.selectedClasses.forEach(((s,i)=>{const a=this._selectedClassesInitialPositions.length>i?this._selectedClassesInitialPositions[i]:void 0;if(a){const i=e.x/this.zoom-this.screenOffset.x-(this.clickX-a.oldPos.x),r=e.y/this.zoom-this.screenOffset.y-(this.clickY-a.oldPos.y);t=s.position.x-i,n=s.position.y-r,B_(s,new ch(i,r)),j_(s)}})),this.potentiallyShiftRelationships(this.diagram.associationViews,this.selectedClasses,t,n),this.potentiallyShiftRelationships(this.diagram.propertyViews,this.selectedClasses,t,n),this.potentiallyShiftRelationships(this.diagram.generalizationViews,this.selectedClasses,t,n),this.drawScreen()}if(this.selectedPoint&&(this.selectedPropertyOrAssociation?L_(this.selectedPropertyOrAssociation,this.selectedPoint,n):this.selectedInheritance&&L_(this.selectedInheritance,this.selectedPoint,n),this.selectedPoint=n,this.drawScreen()),this.selectionStart){this.clearScreen(),this.drawAll();const t=this.modelCoordinateToCanvasCoordinate(this.selectionStart);this.ctx.fillStyle=this.selectionBoxBorderColor,this.ctx.fillRect(t.x,t.y,e.x-t.x,e.y-t.y),this.ctx.strokeRect(t.x,t.y,e.x-t.x,e.y-t.y);const n=(e.x-t.x)/this.zoom,s=(e.y-t.y)/this.zoom;this.selection=new dh(new ch(n>0?this.selectionStart.x:this.selectionStart.x+n,s>0?this.selectionStart.y:this.selectionStart.y+s),new lh(Math.abs(n),Math.abs(s))),this.setSelectedClasses([]);for(const e of this.diagram.classViews)(Ih(this.selection,e)||Ih(e,this.selection))&&this.setSelectedClasses([...this.selectedClasses,e])}break;case U_.ADD_RELATIONSHIP:if(this.selectionStart&&this.startClassView){this.clearScreen(),this.drawBoundingBox();const t=this.modelCoordinateToCanvasCoordinate(this.selectionStart);this.ctx.moveTo(t.x,t.y),this.ctx.lineTo(e.x,e.y),this.ctx.stroke(),this.drawDiagram()}}}else{this.drawScreen();const e=this.eventCoordinateToCanvasCoordinate(t),n=this.canvasCoordinateToModelCoordinate(e);this.setMouseOverClassView(void 0),this.setMouseOverClassName(void 0),this.setMouseOverClassCorner(void 0),this.setMouseOverClassProperty(void 0),this.setMouseOverPropertyHolderViewLabel(void 0);for(const t of this.diagram.classViews.slice().reverse())if(t.contains(n.x,n.y)){this.setMouseOverClassView(t),Ah(t).contains(n.x,n.y)&&this.setMouseOverClassCorner(t);const s=t.class.value;let i=t.position.y+this.classViewSpaceY;i+=t.hideStereotypes?0:s.stereotypes.length*this.lineHeight;const a=this.computeClassNameWidth(t);new dh(this.modelCoordinateToCanvasCoordinate(new ch(t.position.x+(t.rectangle.width-a)/2,i)),new lh(a,this.lineHeight)).contains(e.x,e.y)&&this.setMouseOverClassName(t),i+=this.lineHeight,i+=t.hideTaggedValues?0:s.taggedValues.length*this.lineHeight,i+=2*this.classViewSpaceY;for(const n of eh(s))this.hasPropertyView(t,n)||(this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`,new dh(this.modelCoordinateToCanvasCoordinate(new ch(t.position.x+this.classViewSpaceX,i)),new lh(this.drawClassViewProperty(t,n,0,0,!0)*this.zoom,this.lineHeight*this.zoom)).contains(e.x,e.y)&&this.setMouseOverClassProperty(n),i+=this.lineHeight);break}const s=[...this.diagram.propertyViews,...this.diagram.associationViews];for(const e of s){const t=mh.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value);if(this.drawLinePropertyText(U(t[t.length-2],"Diagram path expected to have at least 2 points"),U(t[t.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,e.property.value,!1).contains(n.x,n.y)){this.setMouseOverPropertyHolderViewLabel(e);break}}}}}class K_ extends Lg{diagramInfo;_renderer;diagram;diagramClasses;graph;diagramPath;filePath;fileLine;fileColumn;constructor(e,t,n,s,i,a){super(e),(0,Oe.rC)(this,{_renderer:Oe.LO,diagram:Oe.LO,diagramInfo:Oe.LO,diagramName:Oe.Fl,diagramCursorClass:Oe.Fl,addClassView:Oe.ls,rebuild:Oe.aD,setRenderer:Oe.aD}),this.diagramPath=n,this.filePath=s,this.fileLine=i,this.fileColumn=a,this.diagramInfo=t;const[r,o,c]=o_(t);this.diagram=r,this.graph=o,this.diagramClasses=c}get label(){return vg(this.diagramPath)}get description(){return`Diagram: ${vg(this.diagramPath)}`}get diagramName(){return $p(this.diagramPath)}match(e){return e instanceof K_&&this.diagramPath===e.diagramPath}get renderer(){return U(this._renderer,"Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)")}get isDiagramRendererInitialized(){return Boolean(this._renderer)}get diagramCursorClass(){if(!this.isDiagramRendererInitialized)return"";if(this.renderer.middleClick||this.renderer.rightClick)return"diagram-editor__cursor--grabbing";switch(this.renderer.interactionMode){case U_.PAN:return this.renderer.leftClick?"diagram-editor__cursor--grabbing":"diagram-editor__cursor--grab";case U_.ZOOM_IN:return"diagram-editor__cursor--zoom-in";case U_.ZOOM_OUT:return"diagram-editor__cursor--zoom-out";case U_.LAYOUT:return this.renderer.selectionStart?"diagram-editor__cursor--crosshair":this.renderer.mouseOverClassCorner||this.renderer.selectedClassCorner?"diagram-editor__cursor--resize":this.renderer.mouseOverClassView?"diagram-editor__cursor--pointer":"";default:return""}}rebuild(e){this.diagramInfo=e;const[t,n,s]=o_(e);this.diagram=t,this.graph=n,this.diagramClasses=s,this.fileLine=e.diagram.sourceInformation.line,this.fileColumn=e.diagram.sourceInformation.column}setupRenderer(){this.renderer.onClassViewDoubleClick=e=>{const t=this.diagramClasses.get(e.class.value.path)?.sourceInformation;if(t){const e=new Ng(t.sourceId,t.startLine,t.startColumn);(0,Oe.fl)(this.ideStore.executeNavigation(e)).catch(this.ideStore.applicationStore.alertUnhandledError)}}}setRenderer(e){this._renderer=e}*addClassView(e,t){const n=((e,t,n)=>{e.profiles.forEach((e=>{const n=`${e.package}${""===e.package?"":ua}${e.name}`;if(!t.getOwnNullableProfile(n)){const n=new Zm(e.name);Kp(Xp(t.root,e.package,!0,new Map),n),t.setOwnProfile(n.path,n),e.tags.forEach((e=>I(n.p_tags,new Rf(n,e)))),e.stereotypes.forEach((e=>I(n.p_stereotypes,new kf(n,e))))}})),e.enumerations.forEach((e=>{const n=`${e.package}${""===e.package?"":ua}${e.name}`;if(!t.getOwnNullableEnumeration(n)){const n=new Ua(e.name);Kp(Xp(t.root,e.package,!0,new Map),n),t.setOwnType(n.path,n)}}));const s=e.class,i=`${s.package}${""===s.package?"":ua}${s.name}`;let a=t.getOwnNullableClass(i);a||(a=new Ba(s.name),Kp(Xp(t.root,s.package,!0,new Map),a),t.setOwnType(a.path,a));const r=n.get(a.path)?.isStubbed??!0;return n.set(a.path,{sourceInformation:s.sourceInformation,isStubbed:!1}),e.specializations.forEach((e=>{const s=U(a),i=i_(U(`${e.package}${""===e.package?"":ua}${e.name}`),t,n,e.sourceInformation);I(s._subclasses,i),i.generalizations.map((e=>e.value.rawType)).includes(s)||I(i.generalizations,$m.create(new Hm(s)))})),r&&r_(a,s,t,n),a})((0,ge.vB)(n_,yield this.ideStore.client.getDiagramClassInfo(e)),this.graph,this.diagramClasses),s=this.renderer.addClassView(n,t);s&&(s.id=((e,t)=>{if(!t.match(/^[\w_-]+$/))throw new Error("Token must only contain digits, letters, or special characters _ and -");const n=e.map((e=>{const n=e.match(new RegExp(`^${t}_(?<count>\\d+)$`));return n?.groups?.count?parseInt(n.groups.count,10):0})).reduce(((e,t)=>Math.max(e,t)),0);return`${t}_${n+1}`})(this.diagram.classViews.map((e=>e.id)),"cview"))}registerCommands(){const e=()=>this.ideStore.tabManagerState.currentTab===this&&this.isDiagramRendererInitialized;this.ideStore.applicationStore.commandService.registerCommand({key:Mg.RECENTER,trigger:e,action:()=>this.renderer.recenter()}),this.ideStore.applicationStore.commandService.registerCommand({key:Mg.USE_ZOOM_TOOL,trigger:e,action:()=>this.renderer.switchToZoomMode()}),this.ideStore.applicationStore.commandService.registerCommand({key:Mg.USE_VIEW_TOOL,trigger:e,action:()=>this.renderer.switchToViewMode()}),this.ideStore.applicationStore.commandService.registerCommand({key:Mg.USE_PAN_TOOL,trigger:e,action:()=>this.renderer.switchToPanMode()})}deregisterCommands(){[Mg.RECENTER,Mg.USE_ZOOM_TOOL,Mg.USE_VIEW_TOOL,Mg.USE_PAN_TOOL].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e)))}}class Y_{text="";isCaseSensitive=!1;isRegExp=!1;constructor(){(0,Oe.rC)(this,{text:Oe.LO,isCaseSensitive:Oe.LO,isRegExp:Oe.LO,reset:Oe.aD,setText:Oe.aD,setCaseSensitive:Oe.aD,setRegExp:Oe.aD})}reset(){this.setText(""),this.setCaseSensitive(!1),this.setRegExp(!1)}setText(e){this.text=e}setCaseSensitive(e){this.isCaseSensitive=e}setRegExp(e){this.isRegExp=e}}class J_ extends R{}const X_=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,q_=/^\/?(?:\w+\/)*\w+(?:\.\w+)*$/,Z_=/(?:(?<url>https?:[/]{2}[^\s"'!*(){}|\\^<>`]*[^\s"':,.!?{}|\\^~[\]`()<>])|(?<path>resource:(?<path_sourceId>\/?(?:\w+\/)*\w+(?:\.\w+)*) (?:line:(?<path_line>\d+)) (?:column:(?<path_column>\d+))))/;class Q_{ideStore;constructor(e){this.ideStore=e}}class eE extends Q_{result;constructor(e,t){super(e),this.result=t}}class tE extends Q_{result;constructor(e,t){super(e),this.result=t}}class nE{ideStore;usageConcept;searchEntries=[];constructor(e,t,n,s){(0,Oe.rC)(this,{searchEntries:Oe.LO,numberOfFiles:Oe.Fl,numberOfResults:Oe.Fl}),this.ideStore=e,this.usageConcept=t;const i=new Map;n.forEach(((e,t)=>{let n;i.has(e.source)?n=U(i.get(e.source)):(n=new Cm,n.sourceId=e.source,i.set(e.source,n));const a=new Em(e.source,e.startLine,e.startColumn,e.endLine,e.endColumn);a.preview=s.find((t=>t.sourceId===e.source&&t.startLine===e.startLine&&t.startColumn===e.startColumn&&t.endLine===e.endLine&&t.endColumn===e.endColumn))?.preview,n.coordinates.push(a)})),this.searchEntries=Array.from(i.keys()).sort(((e,t)=>e.localeCompare(t))).map((e=>{const t=U(i.get(e));return t.setCoordinates(t.coordinates.sort(((e,t)=>e.startColumn-t.startColumn)).sort(((e,t)=>e.startLine-t.startLine))),t}))}dismissSearchEntry(e){w(this.searchEntries,e),this.searchEntries.length||this.ideStore.setReferenceUsageResult(void 0)}get numberOfFiles(){return this.searchEntries.length}get numberOfResults(){return this.searchEntries.flatMap((e=>e.coordinates)).length}}class sE{searchState;searchEntries=[];constructor(e,t){(0,Oe.rC)(this,{searchEntries:Oe.LO,numberOfFiles:Oe.Fl,numberOfResults:Oe.Fl}),this.searchState=e,this.searchEntries=t}dismissSearchEntry(e){w(this.searchEntries,e),this.searchEntries.length||this.searchState.setResult(void 0)}get numberOfFiles(){return this.searchEntries.length}get numberOfResults(){return this.searchEntries.flatMap((e=>e.coordinates)).length}}class iE{ideStore;loadState=we.create();searchInput;text="";isCaseSensitive=!1;isRegExp=!1;result;constructor(e){(0,Oe.rC)(this,{text:Oe.LO,isCaseSensitive:Oe.LO,isRegExp:Oe.LO,result:Oe.LO,setText:Oe.aD,setCaseSensitive:Oe.aD,setRegExp:Oe.aD,setResult:Oe.aD,search:Oe.ls}),this.ideStore=e}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}select(){this.searchInput?.select()}*search(){if(!this.loadState.isInProgress){this.loadState.inProgress();try{const e=(yield this.ideStore.client.searchText(this.text,this.isCaseSensitive,this.isRegExp)).map((e=>(e=>(0,ge.vB)(Cm,e))(e)));this.setResult(new sE(this,e)),this.loadState.pass()}catch(e){P(e),this.ideStore.applicationStore.notificationService.notifyError(e),this.loadState.fail()}}}setText(e){this.text=e}setCaseSensitive(e){this.isCaseSensitive=e}setRegExp(e){this.isRegExp=e}setResult(e){this.result=e}}class aE{applicationStore;initState=we.create();directoryTreeState;conceptTreeState;client;activePanelMode=Kh.TERMINAL;panelGroupDisplayState=new Pm({initial:0,default:300,snap:100});activeActivity=Wh.CONCEPT_EXPLORER;sideBarDisplayState=new Pm({initial:300,default:300,snap:150});tabManagerState=new Fg(this);executionState=we.create();navigationStack=[];fileSearchCommandLoadState=we.create();fileSearchCommandState=new Y_;openFileSearchCommand=!1;fileSearchCommandResults=[];codeFixSuggestion;referenceUsageLoadState=we.create();referenceUsageResult;textSearchState;testRunState=we.create();testRunnerState;constructor(e){var t;(0,Oe.rC)(this,{activePanelMode:Oe.LO,activeActivity:Oe.LO,navigationStack:Oe.LO,openFileSearchCommand:Oe.LO,fileSearchCommandResults:Oe.LO,fileSearchCommandState:Oe.LO,codeFixSuggestion:Oe.LO,referenceUsageResult:Oe.LO,testRunnerState:Oe.LO,setCodeFixSuggestion:Oe.aD,setReferenceUsageResult:Oe.aD,setOpenFileSearchCommand:Oe.aD,setActivePanelMode:Oe.aD,setActiveActivity:Oe.aD,setTestRunnerState:Oe.aD,pullInitializationActivity:Oe.aD,pullExecutionStatus:Oe.aD,initialize:Oe.ls,checkIfSessionWakingUp:Oe.ls,loadDiagram:Oe.ls,loadFile:Oe.ls,execute:Oe.ls,executeGo:Oe.ls,manageExecuteGoResult:Oe.ls,executeTests:Oe.ls,executeFullTestSuite:Oe.ls,executeNavigation:Oe.ls,navigateBack:Oe.ls,fullReCompile:Oe.ls,command:Oe.ls,findUsagesFromCoordinate:Oe.ls,findUsages:Oe.ls,renameConcept:Oe.ls,movePackageableElements:Oe.ls,updateFileUsingSuggestionCandidate:Oe.ls,updateFile:Oe.ls,searchFile:Oe.ls,createNewDirectory:Oe.ls,createNewFile:Oe.ls,renameFile:Oe.ls,deleteDirectoryOrFile:Oe.ls}),this.applicationStore=e,this.textSearchState=new iE(this),this.directoryTreeState=new Zg(this),this.conceptTreeState=new em(this),this.client=new Fm(new ue({baseUrl:this.applicationStore.config.useDynamicPureServer?window.location.origin:this.applicationStore.config.pureUrl})),(t=this).applicationStore.terminalService.terminal.setup({webLinkProvider:{handler:(e,n)=>{const s=n.match(Z_);s?.groups?.url?t.applicationStore.navigationService.navigator.visitAddress(s.groups.url):s?.groups?.path&&s.groups.path_sourceId&&s.groups.path_column&&s.groups.path_line&&(0,Oe.fl)(t.loadFile(s.groups.path_sourceId,new Ng(s.groups.path_sourceId,Number.parseInt(s.groups.path_line,10),Number.parseInt(s.groups.path_column,10)))).catch(t.applicationStore.alertUnhandledError)},regex:Z_},commands:[{command:Gg.GO,description:"Run the go() function in welcome file",usage:"go",aliases:["compile","executeGo"],handler:async e=>(0,Oe.fl)(t.executeGo()).catch(t.applicationStore.alertUnhandledError)},{command:Gg.TEST,description:"Run the test suite (by path if specified)",usage:"test [/some/path]",handler:async e=>{const n=N(e);!n||n.match(X_)?await(0,Oe.fl)(t.executeTests(n??zh)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid package/concept path")}},{command:Gg.REMOVE,description:"Remove a file or directory",usage:"rm /some/path",handler:async e=>{const n=N(e);n?.match(q_)?await(0,Oe.fl)(t.deleteDirectoryOrFile(n,void 0,void 0)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("rm command requires a valid file/directory path")}},{command:Gg.MOVE,description:"Move a file",usage:"mv /old/path /new/path",handler:async e=>{const n=e[0];if(!n?.match(q_))return void t.applicationStore.terminalService.terminal.fail("command requires a valid old file path");const s=e[1];s?.match(q_)?await(0,Oe.fl)(t.renameFile(n,s)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid new file path")}},{command:Gg.NEW_DIRECTORY,description:"Create a new directory",usage:"mkdir /some/path",handler:async e=>{const n=e[0];n?.match(q_)?await(0,Oe.fl)(t.createNewDirectory(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid directory path")}},{command:Gg.NEW_FILE,description:"Create a new file",usage:"touch /some/path",handler:async e=>{const n=e[0];n?.match(q_)?await(0,Oe.fl)(t.createNewDirectory(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid path")}},{command:Gg.WELCOME,description:"Open the welcome file",usage:"welcome",aliases:["start"],handler:async()=>{await(0,Oe.fl)(t.loadFile($h)).catch(t.applicationStore.alertUnhandledError)}},{command:Gg.OPEN_FILE,description:"Open a file",usage:"open /some/file/path",aliases:["edit","code","vi"],handler:async e=>{const n=e[0];n?.match(X_)?await(0,Oe.fl)(t.loadFile(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid file path")}},{command:Gg.OPEN_DIRECTORY,description:"Open a directory or a package",usage:"cd /some/directory/path | cd some::package::path",handler:async e=>{const n=e[0];if(n&&(n.match(q_)||n.match(X_)))try{n.match(X_)?await(0,Oe.fl)(t.conceptTreeState.revealConcept(n,{forceOpenExplorerPanel:!0,packageOnly:!0})):await(0,Oe.fl)(t.directoryTreeState.revealPath(n,{forceOpenExplorerPanel:!0,directoryOnly:!0}))}catch(e){P(e),t.applicationStore.terminalService.terminal.fail(e.message)}else t.applicationStore.terminalService.terminal.fail("command requires a valid directory or concept path")}},{command:Gg.LIST_DIRECTORY,description:"List children of a directory or package",usage:"cd /some/directory/path | cd some::package::path | cd ::",handler:async e=>{const n=e[0];if(n&&(n.match(q_)||n.match(X_)||[Hh,zh].includes(n)))try{n.match(X_)||n===zh?t.applicationStore.terminalService.terminal.output((await t.client.getConceptChildren(n)).map((e=>(0,ge.vB)(Tg,e))).map((e=>e.li_attr instanceof Cg?`${et.BRIGHT_CYAN}${e.text}${et.RESET}`:e.text)).join("\n")):t.applicationStore.terminalService.terminal.output((await t.client.getDirectoryChildren(n)).map((e=>(0,ge.vB)(Jg,e))).map((e=>e.isFolderNode?`${et.BRIGHT_CYAN}${e.text}${et.RESET}`:e.text)).join("\n"))}catch(e){P(e),t.applicationStore.terminalService.terminal.fail(e.message)}else t.applicationStore.terminalService.terminal.fail("command requires a valid directory or package path")}},{command:Gg.CLEAR,description:"Clear the terminal",usage:"clear",handler:async e=>{t.applicationStore.terminalService.terminal.clear()}},{command:Gg.ECHO,description:"Print text",usage:"echo 'some string'",handler:async(e,n,s)=>{const i=s.substring(s.indexOf(n)+n.length).trim();t.applicationStore.terminalService.terminal.output(i.replaceAll(/\\u001b/g,""))}},{command:Gg.ANSI,description:"Show common ANSI escape sequences used for styling",usage:"ansi",handler:async e=>(t.applicationStore.terminalService.terminal.showCommonANSIEscapeSequences(),Promise.resolve())},{command:Gg.HELP,description:"Show help",usage:"help",handler:async e=>(t.applicationStore.terminalService.terminal.showHelp(),Promise.resolve())}]})}setOpenFileSearchCommand(e){this.openFileSearchCommand=e}setActivePanelMode(e){this.activePanelMode=e}setCodeFixSuggestion(e){this.codeFixSuggestion=e}setReferenceUsageResult(e){this.referenceUsageResult=e}setTestRunnerState(e){this.testRunnerState=e}cleanUp(){this.applicationStore.alertService.setBlockingAlert(void 0),this.applicationStore.alertService.setActionAlertInfo(void 0),this.applicationStore.terminalService.terminal.dispose()}*initialize(e,t,n,s){if(this.initState.isInInitialState){this.client.mode=n,this.client.compilerMode=s,this.initState.inProgress();try{this.applicationStore.alertService.setBlockingAlert({message:"Loading Pure IDE...",prompt:"Please be patient as we are building the initial application state",showLoading:!0});const n=this.client.initialize(!e).catch((e=>{P(e),this.applicationStore.notificationService.notifyError(e),this.initState.fail(),this.applicationStore.alertService.setBlockingAlert({message:"Failed to initialize IDE",prompt:"Before debugging, make sure the server is running then restart the application"})}));yield this.pullInitializationActivity(),this.applicationStore.alertService.setBlockingAlert(void 0);const s=(0,Oe.fl)(this.loadFile($h)),a=this.directoryTreeState.initialize(),r=this.conceptTreeState.initialize(),o=(i=yield n).error?i.source?(0,ge.vB)(sm,i):(0,ge.vB)(nm,i):(0,ge.vB)(tm,i);o.text&&(this.applicationStore.terminalService.terminal.output(o.text,{systemCommand:"initialize application"}),this.setActivePanelMode(Kh.TERMINAL),this.panelGroupDisplayState.open()),o instanceof nm?o.sessionError?this.applicationStore.alertService.setBlockingAlert({message:"Session corrupted",prompt:o.sessionError}):o instanceof sm&&(yield(0,Oe.fl)(this.loadFile(o.source,new xg(o.source,o.line,o.column,new J_((o.text??"").split("\n").filter(Boolean)[0]))))):(t&&(yield t()),yield Promise.all([s,a,r])),this.initState.pass()}catch(e){P(e),this.applicationStore.notificationService.notifyError(e),this.initState.fail(),this.applicationStore.alertService.setActionAlertInfo({message:"Failed to initialize IDE",prompt:"This can either due to an internal server error, which you would need to manually resolve; or a compilation, which you can proceed to debug",type:Ft.CAUTION,actions:[{label:"Compile to debug",type:Pt.PROCEED_WITH_CAUTION,default:!0,handler:()=>{(0,Oe.fl)(this.executeGo()).catch(this.applicationStore.alertUnhandledError)}}]})}finally{this.applicationStore.terminalService.terminal.clear()}var i}else this.applicationStore.notificationService.notifyIllegalState("Editor store is re-initialized")}*checkIfSessionWakingUp(e){this.applicationStore.alertService.setBlockingAlert({message:e??"Checking IDE session...",showLoading:!0}),yield this.pullInitializationActivity((t=>{t.text&&this.applicationStore.alertService.setBlockingAlert({message:e??"Checking IDE session...",prompt:t.text,showLoading:!0})})),this.applicationStore.alertService.setBlockingAlert(void 0)}async pullInitializationActivity(e){return(await this.client.getInitializationActivity()).initializing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullInitializationActivity())}catch(e){t(e)}}),1e3))):Promise.resolve()}registerCommands(){this.applicationStore.commandService.registerCommand({key:Pg.SEARCH_FILE,action:()=>this.setOpenFileSearchCommand(!0)}),this.applicationStore.commandService.registerCommand({key:Pg.SEARCH_TEXT,action:()=>{this.setActivePanelMode(Kh.SEARCH),this.panelGroupDisplayState.open(),this.textSearchState.focus(),this.textSearchState.select()}}),this.applicationStore.commandService.registerCommand({key:Pg.GO_TO_FILE,action:()=>{this.tabManagerState.currentTab instanceof Hg&&this.directoryTreeState.revealPath(this.tabManagerState.currentTab.filePath,{forceOpenExplorerPanel:!0})}}),this.applicationStore.commandService.registerCommand({key:Pg.TOGGLE_TERMINAL_PANEL,action:()=>{this.panelGroupDisplayState.isOpen?this.activePanelMode!==Kh.TERMINAL?(this.setActivePanelMode(Kh.TERMINAL),this.applicationStore.terminalService.terminal.focus()):this.applicationStore.terminalService.terminal.isFocused()?this.panelGroupDisplayState.close():this.applicationStore.terminalService.terminal.focus():(this.setActivePanelMode(Kh.TERMINAL),this.panelGroupDisplayState.open())}}),this.applicationStore.commandService.registerCommand({key:Pg.EXECUTE,action:()=>{(0,Oe.fl)(this.executeGo()).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:Pg.FULL_RECOMPILE,action:()=>{(0,Oe.fl)(this.fullReCompile(!1)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:Pg.FULL_RECOMPILE_WITH_FULL_INIT,action:()=>{(0,Oe.fl)(this.fullReCompile(!0)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:Pg.RUN_ALL_TESTS,action:()=>{(0,Oe.fl)(this.executeFullTestSuite(!1)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:Pg.RUN_RELAVANT_TESTS,action:()=>{(0,Oe.fl)(this.executeFullTestSuite(!0)).catch(this.applicationStore.alertUnhandledError)}})}deregisterCommands(){[Pg.SEARCH_FILE,Pg.SEARCH_TEXT,Pg.GO_TO_FILE,Pg.TOGGLE_TERMINAL_PANEL,Pg.EXECUTE,Pg.FULL_RECOMPILE,Pg.FULL_RECOMPILE_WITH_FULL_INIT,Pg.RUN_ALL_TESTS,Pg.RUN_RELAVANT_TESTS].forEach((e=>this.applicationStore.commandService.deregisterCommand(e)))}setActiveActivity(e,t){this.sideBarDisplayState.isOpen?e!==this.activeActivity||t?.keepShowingIfMatchedCurrent||this.sideBarDisplayState.close():this.sideBarDisplayState.open(),this.activeActivity=e}*loadDiagram(e,t,n,s){let i=this.tabManagerState.tabs.find((e=>e instanceof K_&&e.diagramPath===t));i||(yield(0,Oe.fl)(this.checkIfSessionWakingUp()),i=new K_(this,(0,ge.vB)(t_,yield this.client.getDiagramInfo(t)),t,e,n,s)),this.tabManagerState.openTab(i)}*loadFile(e,t){try{let n=this.tabManagerState.tabs.find((t=>t instanceof Hg&&t.filePath===e));n||(yield(0,Oe.fl)(this.checkIfSessionWakingUp()),n=new Hg(this,(0,ge.vB)(Sg,yield this.client.getFile(e)),e)),this.tabManagerState.openTab(n),t&&(n.textEditorState.setForcedCursorPosition({lineNumber:t.line,column:t.column}),t instanceof xg&&n.showError(t))}catch(t){P(t),this.applicationStore.terminalService.terminal.fail(t.message,{systemCommand:`load file ${e}`})}}async reloadFile(e){const t=[];await Promise.all(this.tabManagerState.tabs.map((async n=>{if(n instanceof Hg&&n.filePath===e)n.setFile((0,ge.vB)(Sg,await this.client.getFile(e)));else if(n instanceof K_&&n.filePath===e)try{n.rebuild((0,ge.vB)(t_,await this.client.getDiagramInfo(n.diagramPath)))}catch{t.push(n)}}))),t.forEach((e=>this.tabManagerState.closeTab(e)))}*execute(e,t,n,s,i,a){if(!this.initState.hasCompleted)return void this.applicationStore.notificationService.notifyWarning("Can't execute while initializing application");if(this.executionState.isInProgress)return void this.applicationStore.notificationService.notifyWarning("Another execution is already in progress!");this.setCodeFixSuggestion(void 0),this.executionState.inProgress();const r=this.tabManagerState.tabs.filter(G(Hg)).map((e=>e.filePath));try{const c=this.tabManagerState.tabs.map((e=>e instanceof Hg?{path:e.filePath,code:e.file.content}:e instanceof K_?{diagram:e.diagramPath,code:s_(e.diagram)}:void 0)).filter(B),l=this.client.execute(c,e,t),d=1e3;let u,p=!1;yield Promise.all([l.then((e=>{p=!0,u=e})),new Promise(((e,t)=>setTimeout((()=>{!p&&n&&(this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:"Please do not refresh the application",showLoading:!0}),e(this.pullExecutionStatus().finally((()=>{this.applicationStore.alertService.setBlockingAlert(void 0)})))),e()}),d,!0)))]);const h=(o=U(u)).error?o.candidateName&&o.PureUnmatchedFunctionException?(0,ge.vB)(um,o):o.candidateName&&o.candidates?(0,ge.vB)(pm,o):(0,ge.vB)(rm,o):o.jumpTo?(0,ge.vB)(cm,o):o.tests?(0,ge.vB)(mm,o):(0,ge.vB)(am,o);this.applicationStore.alertService.setBlockingAlert(void 0),h instanceof rm?(this.applicationStore.notificationService.notifyError("Execution failed"+(h.text?`: ${h.text}`:"")),this.applicationStore.terminalService.terminal.fail(h.text,{systemCommand:i??"execute"}),h.sessionError?this.applicationStore.alertService.setBlockingAlert({message:"Session corrupted",prompt:h.sessionError}):yield(0,Oe.fl)(s(h,r))):(a?.silentTerminalOnSuccess||this.applicationStore.terminalService.terminal.output(h.text??"",{clear:a?.clearTerminal,systemCommand:i??"execute"}),h instanceof am?(this.applicationStore.notificationService.notifySuccess("Execution succeeded!"),h.reinit?(this.applicationStore.alertService.setBlockingAlert({message:"Reinitializing...",prompt:"Please do not refresh the application",showLoading:!0}),this.initState.reset(),yield(0,Oe.fl)(this.initialize(!1,(()=>(0,Oe.fl)(this.execute(e,t,n,s,i))),this.client.mode,this.client.compilerMode))):yield(0,Oe.fl)(s(h,r))):yield(0,Oe.fl)(s(h,r)))}catch(e){P(e),this.applicationStore.notificationService.notifyError(e),this.applicationStore.terminalService.terminal.fail(e.message,{systemCommand:i??"execute"})}finally{this.applicationStore.alertService.setBlockingAlert(void 0),this.executionState.reset()}var o}async pullExecutionStatus(){const e=await this.client.getExecutionActivity();return this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:e.text?e.text:"Please do not refresh the application",showLoading:!0}),e.executing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullExecutionStatus())}catch(e){t(e)}}),500))):(this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:"Please do not refresh the application",showLoading:!0}),Promise.resolve())}*executeGo(){yield(0,Oe.fl)(this.execute("executeGo",{},!0,((e,t)=>(0,Oe.fl)(this.manageExecuteGoResult(e,t))),Gg.GO,{clearTerminal:!0}))}*manageExecuteGoResult(e,t){const n=this.refreshTrees();if(this.tabManagerState.tabs.filter(G(Hg)).filter((e=>t.includes(e.filePath))).forEach((e=>e.clearError())),e instanceof rm)e.source&&(yield(0,Oe.fl)(this.loadFile(e.source,new xg(e.source,e.line,e.column,new J_(e.text.split("\n").filter(Boolean)[0]))))),e instanceof um?(this.setCodeFixSuggestion(new eE(this,e)),this.setActivePanelMode(Kh.CODE_FIX_SUGGESTION),this.panelGroupDisplayState.open()):e instanceof pm&&(this.setCodeFixSuggestion(new tE(this,e)),this.setActivePanelMode(Kh.CODE_FIX_SUGGESTION),this.panelGroupDisplayState.open()),this.resetChangeDetection(t);else if(e instanceof am){if(e.modifiedFiles.length)for(const t of e.modifiedFiles)yield this.reloadFile(t);this.resetChangeDetection(t.concat(e.modifiedFiles)),!this.initState.hasFailed&&this.conceptTreeState.treeData||(yield(0,Oe.fl)(this.conceptTreeState.initialize()),this.initState.pass())}yield n}*executeTests(e,t){t?this.applicationStore.notificationService.notifyUnsupportedFeature("Run relevant tests! (reason: VCS required)"):this.testRunState.isInProgress?this.applicationStore.notificationService.notifyWarning("Test runner is working. Please try again later"):(this.testRunState.inProgress(),yield(0,Oe.fl)(this.execute("executeTests",{path:e,relevantTestsOnly:t},!1,(async(e,t)=>{const n=this.refreshTrees();if(e instanceof rm)e.source&&await(0,Oe.fl)(this.loadFile(e.source,new xg(e.source,e.line,e.column,new J_(e.text.split("\n").filter(Boolean)[0])))),this.setActivePanelMode(Kh.TERMINAL),this.panelGroupDisplayState.open(),this.testRunState.fail();else if(e instanceof mm){this.setActivePanelMode(Kh.TEST_RUNNER),this.panelGroupDisplayState.open();const t=new Rm(this,e);this.setTestRunnerState(t),await(0,Oe.fl)(t.buildTestTreeData()),t.refreshTree(),await(0,Oe.fl)(t.pollTestRunnerResult()),this.testRunState.pass()}this.resetChangeDetection(t),await n}),`${Gg.TEST} ${e}`)))}*executeFullTestSuite(e){yield(0,Oe.fl)(this.executeTests(zh,e))}*executeNavigation(e){this.navigationStack.push(e),yield(0,Oe.fl)(this.execute("getConcept",{file:e.file,line:e.line,column:e.column},!1,(async(e,t)=>{e instanceof cm&&await(0,Oe.fl)(this.loadFile(e.jumpTo.source,new Ng(e.jumpTo.source,e.jumpTo.line,e.jumpTo.column))),this.resetChangeDetection(t)}),"navigate",{silentTerminalOnSuccess:!0}))}*navigateBack(){if(0!==this.navigationStack.length){if(this.navigationStack.length>0){const e=this.navigationStack.pop();e&&(yield(0,Oe.fl)(this.loadFile(e.file,e)))}}else this.applicationStore.notificationService.notifyWarning("Can't navigate back any further - navigation stack is empty")}*fullReCompile(e){this.applicationStore.alertService.setActionAlertInfo({message:"Are you sure you want to perform a full re-compile?",prompt:"This may take a long time to complete",type:Ft.CAUTION,actions:[{label:"Perform full re-compile",type:Pt.PROCEED_WITH_CAUTION,handler:()=>{(0,Oe.fl)(this.execute("executeSaveAndReset",{},!0,(async(t,n)=>{this.initState.reset(),await(0,Oe.fl)(this.initialize(e,void 0,this.client.mode,this.client.compilerMode)),this.resetChangeDetection(n),this.setActiveActivity(Wh.CONCEPT_EXPLORER,{keepShowingIfMatchedCurrent:!0})}),"recompile")).catch(this.applicationStore.alertUnhandledError)}},{label:"Abort",type:Pt.PROCEED,default:!0}]})}resetChangeDetection(e){this.tabManagerState.tabs.filter(G(Hg)).filter((t=>e.includes(t.filePath))).forEach((e=>e.resetChangeDetection()))}async refreshTrees(){await Promise.all([this.directoryTreeState.refreshTreeData(),this.conceptTreeState.refreshTreeData()])}async revealConceptInTree(e){let t;try{t=await this.client.getConceptInfo(e.file,e.line,e.column)}catch{return void this.applicationStore.notificationService.notifyWarning("Can't find concept info. Please make sure that the code compiles and that you are looking for references of non primitive types!")}if(t.path){this.applicationStore.alertService.setBlockingAlert({message:"Revealing concept in tree...",showLoading:!0});try{this.activeActivity!==Wh.CONCEPT_EXPLORER&&this.setActiveActivity(Wh.CONCEPT_EXPLORER);const e=t.path.split(ua);let n=U(e[0]),s=U(this.conceptTreeState.getTreeData().nodes.get(n));for(let t=1;t<e.length;++t)n=`${n}${ua}${e[t]}`,this.conceptTreeState.getTreeData().nodes.get(n)||await(0,Oe.fl)(this.conceptTreeState.expandNode(s)),s=U(this.conceptTreeState.getTreeData().nodes.get(n));this.conceptTreeState.setSelectedNode(s)}catch{this.applicationStore.notificationService.notifyWarning("Error revealing concept. Please make sure that the code compiles and that you are looking for a valid concept")}finally{this.applicationStore.alertService.setBlockingAlert(void 0)}}}*command(e,t){try{const s=(n=yield e()).error?(0,ge.vB)(Lm,n):new km;return!(s instanceof Lm&&(s.errorDialog?this.applicationStore.notificationService.notifyWarning(`Can't run command '${t}': ${s.text}`):this.applicationStore.terminalService.terminal.output(s.text,{systemCommand:t}),1))}catch(e){return P(e),this.applicationStore.notificationService.notifyError(e),this.applicationStore.terminalService.terminal.fail(e.message,{systemCommand:t}),!1}var n}async getConceptInfo(e){try{return await this.client.getConceptInfo(e.file,e.line,e.column)}catch{return void this.applicationStore.notificationService.notifyWarning("Can't find concept info. Please make sure that the code compiles and that you are looking for references of non primitive types!")}}async findConceptUsages(e,t){return(await this.client.getUsages(e,t)).map((e=>(0,ge.vB)(Og,e)))}*findUsagesFromCoordinate(e){const t=yield this.getConceptInfo(e);t&&(yield(0,Oe.fl)(this.findUsages(t)))}*findUsages(e){try{this.referenceUsageLoadState.inProgress(),this.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",prompt:`Finding references of ${Ig(e)}`,showLoading:!0});const t=yield this.findConceptUsages(e.pureType===_g.ENUM_VALUE?Ag.ENUM:e.pureType===_g.PROPERTY||e.pureType===_g.QUALIFIED_PROPERTY?Ag.PROPERTY:Ag.ELEMENT,(e.owner?[`'${e.owner}'`]:[]).concat(`'${e.path}'`)),n=(yield this.client.getTextSearchPreview(t.map((e=>(0,ge.qC)(Em,new Em(e.source,e.startLine,e.startColumn,e.endLine,e.endColumn)))))).map((e=>(0,ge.vB)(Em,e)));this.setReferenceUsageResult(new nE(this,e,t,n)),this.setActivePanelMode(Kh.REFERENCES),this.panelGroupDisplayState.open()}catch(e){P(e),this.applicationStore.notificationService.notifyError(e)}finally{this.applicationStore.alertService.setBlockingAlert(void 0),this.referenceUsageLoadState.complete()}}*renameConcept(e,t,n,s){try{yield this.client.renameConcept({oldName:e,newName:t,pureType:n,sourceInformations:s.map((e=>({sourceId:e.source,line:e.line,column:e.column})))});const i=s.map((e=>e.source));for(const e of i)yield this.reloadFile(e);yield this.refreshTrees(),this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(t){P(t),this.applicationStore.notificationService.notifyError(`Can't rename concept '${e}'`)}}*movePackageableElements(e){try{yield this.client.movePackageableElements(e.map((e=>({pureName:e.pureName,pureType:e.pureType,sourcePackage:e.sourcePackage,destinationPackage:e.destinationPackage,sourceInformations:e.usages.map((e=>({sourceId:e.source,line:e.line,column:e.column})))}))));const t=(0,ve.Z)(e.flatMap((e=>e.usages.map((e=>e.source)))));for(const e of t)yield this.reloadFile(e);yield this.refreshTrees(),this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(e){P(e),this.applicationStore.notificationService.notifyError(`Can't move packageable elements:\n${e.message}`)}}*updateFileUsingSuggestionCandidate(e){this.setCodeFixSuggestion(void 0),yield(0,Oe.fl)(this.updateFile(e.fileToBeModified,e.lineToBeModified,e.columnToBeModified,e.add,e.messageToBeModified)),this.setActivePanelMode(Kh.TERMINAL),this.panelGroupDisplayState.open()}*updateFile(e,t,n,s,i){try{const a=yield this.client.updateSource([{path:e,line:t,column:n,message:i,add:s}]);if(a.modifiedFiles.length)for(const e of a.modifiedFiles)yield this.reloadFile(e);this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(t){P(t),this.applicationStore.notificationService.notifyError(`Can't update file '${e}'`)}}*searchFile(){this.fileSearchCommandLoadState.isInProgress||(this.fileSearchCommandLoadState.inProgress(),this.fileSearchCommandResults=yield this.client.findFiles(this.fileSearchCommandState.text,this.fileSearchCommandState.isRegExp),this.fileSearchCommandLoadState.pass())}*createNewDirectory(e){try{yield(0,Oe.fl)(this.command((()=>this.client.createFolder(vg(e))),Gg.NEW_DIRECTORY)),yield(0,Oe.fl)(this.directoryTreeState.refreshTreeData())}catch(e){P(e),this.applicationStore.notificationService.notifyError(e)}}*createNewFile(e){try{const t=yield(0,Oe.fl)(this.command((()=>this.client.createFile(vg(e))),Gg.NEW_FILE));yield(0,Oe.fl)(this.directoryTreeState.refreshTreeData()),t&&(yield(0,Oe.fl)(this.loadFile(e)))}catch(e){P(e),this.applicationStore.notificationService.notifyError(e)}}*renameFile(e,t){try{yield(0,Oe.fl)(this.command((()=>this.client.renameFile(e,t)),Gg.MOVE)),yield(0,Oe.fl)(this.directoryTreeState.refreshTreeData());const n=this.tabManagerState.tabs.find((t=>t instanceof Hg&&t.filePath===e));n&&this.tabManagerState.closeTab(n)}catch(e){P(e),this.applicationStore.notificationService.notifyError(e)}}*deleteDirectoryOrFile(e,t,n){const s=async()=>{await(0,Oe.fl)(this.command((()=>this.client.deleteDirectoryOrFile(vg(e))),Gg.REMOVE)),this.tabManagerState.tabs.filter((n=>n instanceof Hg&&(void 0===t||t?n.filePath.startsWith(`${e}/`):n.filePath===e))).forEach((e=>this.tabManagerState.closeTab(e))),await(0,Oe.fl)(this.directoryTreeState.refreshTreeData())};void 0===t||void 0===n?s().catch(this.applicationStore.alertUnhandledError):this.applicationStore.alertService.setActionAlertInfo({message:`Are you sure you would like to delete this ${t?"directory":"file"}?`,prompt:n?"Beware! This directory is not empty, this action is not undo-able, you have to manually revert using VCS":"Beware! This action is not undo-able, you have to manually revert using VCS",type:Ft.CAUTION,actions:[{label:"Delete anyway",type:Pt.PROCEED_WITH_CAUTION,handler:()=>{s().catch(this.applicationStore.alertUnhandledError)}},{label:"Abort",type:Pt.PROCEED,default:!0}]})}}const rE=(0,Mt.createContext)(void 0),oE=({children:e})=>{const t=jt(),n=(0,vt.fv)((()=>new aE(t)));return(0,C.jsx)(rE.Provider,{value:n,children:e})},cE=()=>U((0,Mt.useContext)(rE),"Can't find editor store in context"),lE=(0,vt.Pi)((()=>{const e=cE(),t=jt().terminalService.terminal,n=(0,Mt.useRef)(null),{ref:s,width:i,height:a}=(0,Ys.NB)();(0,Mt.useEffect)((()=>(n.current&&t.searchConfig.setSearchInput(n.current),()=>t.searchConfig.setSearchInput(void 0))),[t]),(0,Mt.useEffect)((()=>{s.current&&t.mount(s.current)}),[t,s]),(0,Mt.useEffect)((()=>{e.panelGroupDisplayState.isOpen&&e.activePanelMode===Kh.TERMINAL&&t.focus()}),[t,e.panelGroupDisplayState.isOpen,e.activePanelMode]),(0,Mt.useEffect)((()=>{t.autoResize()}),[t,i,a]);const r=()=>{t.clear(),t.focus()},o=()=>t.copyAll();return t.isSetup?(0,C.jsxs)("div",{className:"terminal-panel",children:[(0,C.jsxs)("div",{className:"terminal-panel__header",children:[(0,C.jsxs)("div",{className:"terminal-panel__header__group",children:[(0,C.jsxs)("div",{className:"terminal-panel__header__searcher__input__container",children:[(0,C.jsx)("input",{ref:n,className:"terminal-panel__header__searcher__input input--dark",spellCheck:!1,value:t.searchConfig.searchText,onChange:e=>{const n=e.target.value;t.setSearchText(n),t.search(n)},onKeyDown:e=>{"Enter"===e.code?e.shiftKey?t.findPrevious():t.findNext():"Escape"===e.code&&(t.clearSearch(),t.focus())},placeholder:"Find"}),(0,C.jsxs)("div",{className:"terminal-panel__header__searcher__input__actions",children:[(0,C.jsx)("button",{className:"terminal-panel__header__searcher__input__action",tabIndex:-1,title:"Clear Search",onClick:()=>t.clearSearch(),children:(0,C.jsx)(Yn,{})}),(0,C.jsx)("button",{className:(0,At.clsx)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.matchCaseSensitive}),tabIndex:-1,title:"Match Case",onClick:()=>t.setSearchCaseSensitive(!t.searchConfig.matchCaseSensitive),children:(0,C.jsx)(Xn,{})}),(0,C.jsx)("button",{className:(0,At.clsx)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.matchWholeWord}),tabIndex:-1,title:"Match Whole Word",onClick:()=>t.setSearchWholeWord(!t.searchConfig.matchWholeWord),children:(0,C.jsx)(qn,{})}),(0,C.jsx)("button",{className:(0,At.clsx)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.useRegex}),tabIndex:-1,title:"Use Regular Expression",onClick:()=>t.setSearchRegex(!t.searchConfig.useRegex),children:(0,C.jsx)(Jn,{})})]})]}),(0,C.jsx)("div",{className:"terminal-panel__header__searcher__result",children:t.searchConfig.resultCount?`${void 0!==t.searchConfig.currentResultIndex?t.searchConfig.currentResultIndex+1:0} of ${t.searchConfig.resultCount}`:"No results"}),(0,C.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Previous Match (Shift+Enter)",disabled:!t.searchConfig.resultCount,tabIndex:-1,onClick:()=>{t.findPrevious()},children:(0,C.jsx)(Sn,{className:"terminal-panel__header__action__icon"})}),(0,C.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Next Match (Enter)",disabled:!t.searchConfig.resultCount,tabIndex:-1,onClick:()=>{t.findNext()},children:(0,C.jsx)(vn,{className:"terminal-panel__header__action__icon"})})]}),(0,C.jsx)("div",{className:"terminal-panel__header__group__separator"}),(0,C.jsxs)("div",{className:"terminal-panel__header__group",children:[(0,C.jsx)("button",{className:(0,At.clsx)("terminal-panel__header__action terminal-panel__header__group__action",{"terminal-panel__header__action--active":t.preserveLog}),title:"Toggle Preserve Console",tabIndex:-1,onClick:()=>t.setPreserveLog(!t.preserveLog),children:(0,C.jsx)(Yt,{className:"terminal-panel__header__action__icon"})}),(0,C.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Copy Text Content",tabIndex:-1,onClick:o,children:(0,C.jsx)(wn,{className:"terminal-panel__header__action__icon"})}),(0,C.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Clear Console",tabIndex:-1,onClick:r,children:(0,C.jsx)(fn,{className:"terminal-panel__header__action__icon"})}),(0,C.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Show Help",tabIndex:-1,onClick:()=>{t.showHelp(),t.focus()},children:(0,C.jsx)(rn,{className:"terminal-panel__header__action__icon"})})]})]}),(0,C.jsx)(Gs,{className:"terminal-panel__content",content:(0,C.jsxs)(Vs,{children:[(0,C.jsx)($s,{onClick:()=>t.copy(),children:"Copy"}),(0,C.jsx)($s,{onClick:o,children:"Copy All"}),(0,C.jsx)($s,{onClick:r,children:"Clear"})]}),menuProps:{elevation:7},children:(0,C.jsx)("div",{ref:s,className:"terminal-panel__container"})})]}):(0,C.jsx)("div",{className:"terminal-panel",children:(0,C.jsx)(Js,{children:"Terminal is not set up yet"})})})),dE=(0,vt.Pi)((e=>{const{searchResult:t,result:n}=e,s=cE(),i=jt(),a=e=>()=>(0,Oe.fl)(s.loadFile(n.sourceId,new Ng(n.sourceId,e.startLine,e.startColumn))).catch(i.alertUnhandledError),r=e=>()=>{n.dismissCoordinate(e),n.coordinates.length||t.dismissSearchEntry(n)};return(0,C.jsxs)("div",{className:"text-search-panel__entry",children:[(0,C.jsxs)("div",{className:"text-search-panel__entry__header",onClick:()=>n.setIsExpanded(!n.isExpanded),children:[(0,C.jsxs)("div",{className:"text-search-panel__entry__header__title",children:[(0,C.jsx)("div",{className:"text-search-panel__entry__header__title__expander",children:n.isExpanded?(0,C.jsx)(ss,{}):(0,C.jsx)(as,{})}),(0,C.jsx)("div",{className:"text-search-panel__entry__header__title__label",children:(0,C.jsx)(Rn,{})}),(0,C.jsx)("div",{className:"text-search-panel__entry__header__title__content",children:vg(n.sourceId)})]}),(0,C.jsxs)("div",{className:"text-search-panel__entry__header__actions",children:[(0,C.jsx)("div",{className:"text-search-panel__entry__header__action text-search-panel__entry__header__action--with-counter",children:(0,C.jsx)("div",{className:"text-search-panel__entry__header__action__counter",children:n.coordinates.length})}),(0,C.jsx)("button",{className:"text-search-panel__entry__header__action text-search-panel__entry__header__action--hidden",tabIndex:-1,title:"Dismiss",onClick:()=>t.dismissSearchEntry(n),children:(0,C.jsx)(qt,{})})]})]}),n.isExpanded&&(0,C.jsx)("div",{className:"text-search-panel__entry__content",children:n.coordinates.map((e=>(0,C.jsxs)("div",{className:"text-search-panel__entry__content__item",children:[(0,C.jsxs)("div",{className:"text-search-panel__entry__content__item__label text-search-panel__entry__content__item__label--full",title:e.preview?`${e.preview.before}${e.preview.found.replaceAll(/\n/g,"↵")}${e.preview.after}`:"Go To Result",onClick:a(e),children:[e.preview&&(0,C.jsxs)("div",{className:"text-search-panel__entry__content__item__label__content",children:[(0,C.jsx)("div",{className:"text-search-panel__entry__content__item__label__coordinates",children:`[${e.startLine}:${e.startColumn}]`}),(0,C.jsxs)("div",{className:"text-search-panel__entry__content__item__label__preview",children:[(0,C.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text",children:e.preview.before}),(0,C.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text text-search-panel__entry__content__item__label__preview__text--found",children:e.preview.found.replaceAll(/\n/g,"↵")}),(0,C.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text",children:e.preview.after})]})]}),!e.preview&&(0,C.jsx)(C.Fragment,{children:`line: ${e.startLine} - column: ${e.startColumn}`})]}),(0,C.jsx)("div",{className:"text-search-panel__entry__content__item__actions",children:(0,C.jsx)("button",{className:"text-search-panel__entry__content__item__action text-search-panel__entry__content__item__action--hidden",tabIndex:-1,title:"Dismiss",onClick:r(e),children:(0,C.jsx)(qt,{})})})]},e.uuid)))})]})})),uE=(0,vt.Pi)((e=>{const{searchResult:t}=e,n=cE(),s=jt(),i=t.searchEntries.some((e=>!e.isExpanded));return(0,C.jsxs)("div",{className:"text-search-panel__content",children:[(0,C.jsxs)("div",{className:"text-search-panel__content__header",children:[(0,C.jsx)("div",{className:"text-search-panel__content__header__title",children:t.searchEntries.length?`${t.numberOfResults} result(s) in ${t.numberOfFiles} files`:"No result"}),(0,C.jsxs)("div",{className:"text-search-panel__content__header__actions",children:[(0,C.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Refresh",onClick:()=>{(0,Oe.fl)(n.textSearchState.search()).catch(s.alertUnhandledError)},children:(0,C.jsx)(Gn,{})}),(0,C.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Clear",onClick:()=>{n.textSearchState.setText(""),n.textSearchState.setResult(void 0)},children:(0,C.jsx)(Yn,{})}),!i&&(0,C.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Collapse All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!1)))},children:(0,C.jsx)(es,{})}),i&&(0,C.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Expand All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!0)))},children:(0,C.jsx)(ts,{})})]})]}),(0,C.jsx)("div",{className:"text-search-panel__content__results",children:t.searchEntries.map((e=>(0,C.jsx)(dE,{searchResult:t,result:e},e.uuid)))})]})})),pE=(0,vt.Pi)((()=>{const e=cE(),t=(0,Mt.useRef)(null),n=e.textSearchState,s=(0,Mt.useMemo)((()=>(0,ii.Z)((()=>n.search()),300)),[n]);return(0,Mt.useEffect)((()=>(t.current&&n.setSearchInput(t.current),()=>n.setSearchInput(void 0))),[n]),(0,Mt.useEffect)((()=>{e.panelGroupDisplayState.isOpen&&e.activePanelMode===Kh.SEARCH&&n.focus()}),[n,e.panelGroupDisplayState.isOpen,e.activePanelMode]),(0,C.jsxs)("div",{className:"text-search-panel",children:[(0,C.jsx)(Ht,{isLoading:e.textSearchState.loadState.isInProgress}),(0,C.jsx)("div",{className:"text-search-panel__header",children:(0,C.jsxs)("div",{className:"text-search-panel__searcher__input__container",children:[(0,C.jsx)("input",{ref:t,autoFocus:!0,className:"text-search-panel__searcher__input input--dark",onChange:e=>{const t=e.target.value;n.setText(t),s.cancel(),t?s():n.setResult(void 0)},onKeyDown:e=>{"Enter"===e.code?(s.cancel(),n.text&&s()):"Escape"===e.code&&t.current?.select()},value:n.text,placeholder:"Search"}),(0,C.jsxs)("div",{className:"text-search-panel__searcher__input__actions",children:[(0,C.jsx)("button",{className:(0,At.clsx)("text-search-panel__searcher__input__action",{"text-search-panel__searcher__input__action--active":n.isCaseSensitive}),tabIndex:-1,title:"Match Case",onClick:()=>n.setCaseSensitive(!n.isCaseSensitive),children:(0,C.jsx)(Xn,{})}),(0,C.jsx)("button",{className:(0,At.clsx)("text-search-panel__searcher__input__action",{"text-search-panel__searcher__input__action--active":n.isRegExp}),tabIndex:-1,title:"Use Regular Expression",onClick:()=>n.setRegExp(!n.isRegExp),children:(0,C.jsx)(Jn,{})})]})]})}),e.textSearchState.result&&(0,C.jsx)(uE,{searchResult:e.textSearchState.result})]})})),hE=e=>{const{node:t,level:n,stepPaddingInRem:s,classPrefix:i,onNodeSelect:a}=e;return(0,C.jsxs)("div",{className:(0,At.clsx)("tree-view__node__container",{[`${i}__tree-view__node__container`]:i}),onClick:()=>a?.(t),style:{paddingLeft:(n-1)*(s??1)+"rem",display:"flex"},children:[(0,C.jsx)("div",{className:(0,At.clsx)("tree-view__node__icon",{[`${i}__tree-view__node__icon`]:i}),children:Boolean(t.childrenIds?.length)&&(t.isOpen?(0,C.jsx)(ss,{}):(0,C.jsx)(as,{}))}),(0,C.jsx)("div",{className:(0,At.clsx)("tree-view__node__label",{[`${i}__tree-view__node__label`]:i}),children:t.label})]})},gE=e=>{const{node:t,level:n,onNodeSelect:s,getChildNodes:i,classPrefix:a,components:r,stepPaddingInRem:o,innerProps:c}=e,l={TreeNodeView:gE,TreeNodeContainer:hE},d=r?{...l,...r}:l;return(0,C.jsxs)("div",{className:(0,At.clsx)("tree-view__node__block",{[`${a}__tree-view__node__block`]:a}),children:[(0,C.jsx)(d.TreeNodeContainer,{node:t,level:n+1,stepPaddingInRem:o,classPrefix:a,onNodeSelect:s,innerProps:c}),t.isOpen&&i(t).map((e=>(0,C.jsx)(d.TreeNodeView,{node:e,level:n+1,components:r,classPrefix:a,onNodeSelect:s,getChildNodes:i,innerProps:c},e.id)))]})},mE=e=>{const{treeData:t,className:n,classPrefix:s,components:i,onNodeSelect:a,getChildNodes:r,getRootNodes:o,innerProps:c}=e,l=o?.(t)??t.rootIds.map((e=>t.nodes.get(e))).filter(B),d={TreeNodeView:gE,TreeNodeContainer:hE},u=i?{...d,...i}:d;return(0,C.jsx)("div",{className:(0,At.clsx)("tree-view__node__root",n??"",{[`${s}__tree-view__node__root`]:s}),children:l.map((e=>(0,C.jsx)(u.TreeNodeView,{level:0,node:e,getChildNodes:r,components:u,onNodeSelect:a,classPrefix:s,innerProps:c},e.id)))})},fE=It("Panel","panel"),_E=(It("PanelFullContent","panel__content--full"),e=>{const{title:t,keepTitleFormat:n,labelClassName:s,darkMode:i,className:a,children:r}=e,o=Boolean(i),c=Boolean(n);return(0,C.jsxs)("div",{className:(0,At.clsx)("panel__header",a),children:[t&&(0,C.jsx)("div",{className:"panel__header__title",children:(0,C.jsx)("div",{className:(0,At.clsx)("panel__header__title__label",s,{"panel__header__title__label--light":o}),children:c?t:t.toLowerCase()})}),r]})}),EE=It("PanelHeaderActions","panel__header__actions"),CE=e=>{const{className:t,onClick:n,children:s,disabled:i,title:a}=e;return(0,C.jsx)("button",{className:(0,At.clsx)("panel__header__action",t),disabled:Boolean(i),onClick:n,title:a,tabIndex:-1,children:s})},yE=e=>{const{className:t,darkMode:n,children:s}=e;return(0,C.jsx)("div",{className:(0,At.clsx)("panel__content",t,{"panel__content--dark":n}),children:s})},bE=(It("PanelContentLists","panel__content__lists"),It("PanelList","panel__content__form__list"),It("PanelListItem","panel__content__form__list__item"),It("PanelListItemTitle","panel__content__form__list__item__title"),It("PanelListItemLabel","panel__content__form__list__item__label"),It("PanelForm","panel__content__form"),It("PanelDivider","panel__content__form__divider")),TE=(It("PanelFormDescription","panel__content__form__description"),It("PanelFormSection","panel__content__form__section"));(0,Mt.forwardRef)((function(e,t){const{name:n,value:s,update:i,prompt:a,errorMessageClassName:r,placeholder:o,validate:c,onValidate:l,isReadOnly:d,className:u,darkMode:p,fullWidth:h,inputType:g}=e,[m,f]=(0,Mt.useState)(s??""),_=c?.(m)??void 0;return(0,Mt.useEffect)((()=>{_||s===m||i(m),l?.(_)}),[s,m,_,l,i]),(0,C.jsxs)(TE,{children:[n&&(0,C.jsx)("div",{className:"panel__content__form__section__header__label",children:ct(n)}),a&&(0,C.jsx)("div",{className:"panel__content__form__section__header__prompt",children:a}),(0,C.jsxs)("div",{className:"input-group",children:[(0,C.jsx)("input",{className:(0,At.clsx)("input input-group__input panel__content__form__section__input",u,{"input--dark":p||!0},{"input--small":!h}),ref:t,type:g||"text",spellCheck:!1,disabled:d,placeholder:o,value:m,onChange:e=>{f(e.target.value)}}),_&&(0,C.jsx)("div",{className:(0,At.clsx)("panel__content__form__section__input-group__error-message input-group__error-message",{"input--small":!h},r),children:_})]})]})})),(0,Mt.forwardRef)((function(e,t){const{name:n,value:s,update:i,prompt:a,placeholder:r,isReadOnly:o,errorMessage:c,className:l,darkMode:d,fullWidth:u,inputType:p}=e,h=s??"";return(0,C.jsxs)(TE,{children:[(0,C.jsx)("div",{className:"panel__content__form__section__header__label",children:ct(n)}),(0,C.jsx)("div",{className:"panel__content__form__section__header__prompt",children:a}),(0,C.jsxs)("div",{className:"input-group",children:[(0,C.jsx)("input",{className:(0,At.clsx)("input input-group__input panel__content__form__section__input",l,{"input--dark":d||!0},{"input--small":!u}),ref:t,type:p||"text",spellCheck:!1,disabled:o,placeholder:r,value:h,onChange:e=>{const t=e.target.value;i(t||void 0)}}),c&&(0,C.jsx)("div",{className:(0,At.clsx)("panel__content__form__section__input-group__error-message input-group__error-message",{"input--small":!u}),children:c})]}),c&&(0,C.jsx)(bE,{})]})})),(0,vt.Pi)((e=>{const{value:t,name:n,prompt:s,children:i,isReadOnly:a,update:r}=e;return(0,C.jsxs)(TE,{children:[n&&(0,C.jsx)("div",{className:"panel__content__form__section__header__label",children:ct(n)}),(0,C.jsxs)("div",{className:(0,At.clsx)("panel__content__form__section__toggler",{"panel__content__form__section__toggler--disabled":a}),onClick:()=>{a||r(!t)},children:[(0,C.jsx)("button",{type:"button",className:(0,At.clsx)("panel__content__form__section__toggler__btn",{"panel__content__form__section__toggler__btn--toggled":t}),disabled:a,tabIndex:-1,children:t?(0,C.jsx)(sn,{}):(0,C.jsx)(nn,{})}),(0,C.jsxs)("div",{className:"panel__content__form__section__toggler__prompt",children:[s," ",i]})]})]})})),It("PanelFormActions","panel__content__form__actions");var vE=n(410);const SE=vE.gs,NE="resizable-panel--collapsed",xE=(e,t)=>({collapsiblePanel:{className:(0,At.clsx)(...t?.classes??[],{[NE]:e}),onStartResize:e=>{e.domElement.classList.remove(NE),t?.onStartResize?.(e)},onStopResize:e=>{const n=Number(e.domElement.style.flexGrow);n<=.01?e.domElement.style.flexGrow="0":n>=.99&&(e.domElement.style.flexGrow="1"),t?.onStopResize?.(e)},size:!e&&t?.size?t.size:0,flex:e?0:void 0},remainingPanel:{flex:e?1:void 0}}),AE=vE.jW,IE=vE.nN,OE=e=>(0,C.jsx)("div",{className:"resizable-panel__splitter-line",style:{background:e.color}});var wE=n(48845);const RE=(0,vt.Pi)((e=>{const{node:t,level:n,stepPaddingInRem:s,onNodeSelect:i,innerProps:a}=e,{testRunnerState:r,onNodeOpen:o,onNodeExpand:c,onNodeCompress:l,renderNodeLabel:d}=a,u=cE(),p=jt(),h=r.testResultInfo,g=!t.data.type,m=t.id===r.selectedTestId;let f;switch(h?((e,t)=>{const n=e.id;return Boolean(e.data.type)?((e,t)=>t.passedTests.has(e)?Tm.PASSED:t.failedTests.has(e)?Tm.FAILED:t.testsWithError.has(e)?Tm.ERROR:Tm.RUNNING)(n,t):t.failedTestIds.some((e=>e.startsWith(`${n}_`)))||t.testWithErrorIds.some((e=>e.startsWith(`${n}_`)))?Tm.FAILED:t.notRunTestIds.some((e=>e.startsWith(`${n}_`)))?Tm.RUNNING:Tm.PASSED})(t,h):void 0){case Tm.PASSED:f=(0,C.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--passed",children:(0,C.jsx)(_n,{})});break;case Tm.FAILED:f=(0,C.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--failed",children:(0,C.jsx)(In,{})});break;case Tm.ERROR:f=(0,C.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--error",children:(0,C.jsx)(Zt,{})});break;case Tm.RUNNING:f=(0,C.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--running",children:(0,C.jsx)(yn,{})});break;default:f=(0,C.jsx)(rn,{})}const _=()=>{t.isOpen?l(t):c(t)};return(0,C.jsxs)("div",{className:(0,At.clsx)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected":m}),onClick:e=>{e.stopPropagation(),e.preventDefault(),i?.(t),g?_():o(t)},onDoubleClick:()=>{g?_():(0,Oe.fl)(u.loadFile(t.data.li_attr.file,new Ng(t.data.li_attr.file,Number.parseInt(t.data.li_attr.line,10),Number.parseInt(t.data.li_attr.column,10)))).catch(p.alertUnhandledError)},style:{paddingLeft:n*(s??1)+"rem",display:"flex"},children:[(0,C.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[(0,C.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:e=>{e.stopPropagation(),_()},children:g?t.isOpen?(0,C.jsx)(ss,{}):(0,C.jsx)(as,{}):(0,C.jsx)("div",{})}),(0,C.jsx)("div",{className:"explorer__package-tree__node__icon__type",children:f})]}),(0,C.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:d?.(t)??t.label})]})})),kE=(0,vt.Pi)((e=>{const{testRunnerState:t}=e,n=t.getTreeData(),s=e=>t.setSelectedTestId(e.id),i=e=>{let t=e.id.split("__")[0];if(!t)return e.label;const n=t.split("_");return t=n.slice(1,n.length).join(ua),(0,C.jsxs)("div",{className:"test-runner-list__item__label",children:[(0,C.jsx)("div",{className:"test-runner-list__item__label__name",children:e.label}),(0,C.jsx)("div",{className:"test-runner-list__item__label__path",children:t})]})};return(0,C.jsx)("div",{className:"explorer__content",children:Array.from(t.allTests.keys()).map((e=>n.nodes.get(e))).filter(B).map((e=>(0,C.jsx)(RE,{node:e,level:0,onNodeSelect:()=>{},innerProps:{testRunnerState:t,onNodeOpen:s,renderNodeLabel:i,onNodeExpand:()=>{},onNodeCompress:()=>{}}},e.id)))})})),LE=(0,vt.Pi)((e=>{const{testRunnerState:t}=e,n=t.getTreeData(),s=0===n.nodes.size;return(0,C.jsxs)("div",{className:"explorer__content",children:[s&&(0,C.jsx)(Js,{children:"No tests found"}),!s&&(0,C.jsx)(mE,{components:{TreeNodeContainer:RE},treeData:n,onNodeSelect:()=>{},getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>n.nodes.get(e))).filter(B),innerProps:{testRunnerState:t,onNodeOpen:e=>t.setSelectedTestId(e.id),onNodeExpand:e=>{e.isOpen=!0,t.refreshTree()},onNodeCompress:e=>{e.isOpen=!1,t.refreshTree()}}})]})})),FE=/(?<path>resource:(?<path_sourceId>\/?(?:\w+\/)*\w+(?:\.\w+)*) (?:line:(?<path_line>\d+)) (?:column:(?<path_column>\d+)))/g,PE=e=>{const{wrapText:t,result:n}=e,s=cE(),i=jt(),[a,r]=(0,Mt.useState)(),o=(0,Mt.useRef)(void 0),c=(0,Mt.useRef)(null);return(0,Mt.useEffect)((()=>{if(!a&&c.current){const e=c.current,t=Jh.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,extraEditorClassName:"monaco-editor--small-font",readOnly:!0,glyphMargin:!1,folding:!1,lineNumbers:"off",lineDecorationsWidth:10,lineNumbersMinChars:0,minimap:{enabled:!1},guides:{bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveBracketPair:!1,indentation:!1,highlightActiveIndentation:!1},renderLineHighlight:"none",theme:ag.DEFAULT_DARK,language:fg.TEXT});r(t)}}),[i,a]),a&&(o.current?.dispose(),o.current=Jh.languages.registerLinkProvider(fg.TEXT,{provideLinks:e=>{const t=[];for(let n=1;n<=e.getLineCount();++n)Array.from(e.getLineContent(n).matchAll(FE)).forEach((e=>{void 0!==e.index&&e.groups?.path&&e.groups.path_sourceId&&e.groups.path_column&&e.groups.path_line&&t.push({range:{startLineNumber:n,startColumn:e.index+1,endLineNumber:n,endColumn:e.index+1+e.groups.path.length},tooltip:"Click to go to location",sourceId:e.groups.path_sourceId,line:e.groups.path_line,column:e.groups.path_column})}));return{links:t}},resolveLink:e=>{const t=e;(0,Oe.fl)(s.loadFile(t.sourceId,new Ng(t.sourceId,Number.parseInt(t.line,10),Number.parseInt(t.column,10)))).catch(s.applicationStore.alertUnhandledError)}})),(0,Mt.useEffect)((()=>{if(a){const e=n instanceof Sm?"Test passed!":n instanceof xm?n.error.text:"Running...";a.setValue(e),(n instanceof Sm||n instanceof xm)&&a.createDecorationsCollection([{range:{startLineNumber:1,startColumn:1,endLineNumber:Number.MAX_SAFE_INTEGER,endColumn:Number.MAX_SAFE_INTEGER},options:{inlineClassName:n instanceof Sm?"test-runner-panel__result__content--success":"test-runner-panel__result__content--failure"}}])}}),[a,n]),(0,Mt.useEffect)((()=>{a&&a.updateOptions({wordWrap:t?"on":"off"})}),[a,t]),(0,Mt.useEffect)((()=>()=>{a&&((e=>{e.dispose(),e.getModel()?.dispose()})(a),o.current?.dispose())}),[a]),(0,C.jsx)("div",{className:"code-editor__container",children:(0,C.jsx)("div",{className:"code-editor__body",ref:c})})},DE=(0,vt.Pi)((e=>{const{testRunnerState:t,selectedTestId:n,testResultInfo:s}=e,i=cE(),a=jt(),[r,o]=(0,Mt.useState)(!1),c=s.results.get(n),l=U(t.allTests.get(n),`Can't find info for test with ID '${n}'`);return(0,C.jsxs)(fE,{children:[(0,C.jsx)(_E,{title:l.text,children:(0,C.jsxs)(EE,{children:[(0,C.jsx)(CE,{className:(0,At.clsx)({"panel__header__action--active":r}),onClick:()=>o(!r),title:"Toggle Text Wrap",children:(0,C.jsx)(Wn,{className:"test-runner-panel__result__header__icon--text-wrap"})}),(0,C.jsx)(CE,{title:"Open File",onClick:()=>{(0,Oe.fl)(i.loadFile(l.li_attr.file,new Ng(l.li_attr.file,Number.parseInt(l.li_attr.line,10),Number.parseInt(l.li_attr.column,10)))).catch(a.alertUnhandledError)},children:(0,C.jsx)(Kn,{})})]})}),(0,C.jsx)(yE,{className:"test-runner-panel__result",children:(0,C.jsx)(PE,{result:c,wrapText:r})})]})})),ME=(0,vt.Pi)((e=>{const{testRunnerState:t}=e,n=cE(),s=jt(),i=t.testExecutionResult.count,a=t.testResultInfo,r=a?.suiteStatus??bm.NONE,o=a?.runPercentage??0;return(0,C.jsx)("div",{className:"test-runner-panel__content",children:(0,C.jsxs)(SE,{orientation:"vertical",children:[(0,C.jsx)(AE,{minSize:400,children:(0,C.jsxs)("div",{className:"panel test-runner-panel__explorer",children:[(0,C.jsx)(Ht,{isLoading:t.treeBuildingState.isInProgress}),(0,C.jsxs)("div",{className:"panel__header",children:[(0,C.jsx)("div",{className:"panel__header__title",children:(0,C.jsxs)("div",{className:"panel__header__title__content test-runner-panel__explorer__report",children:[(0,C.jsxs)("div",{className:"test-runner-panel__explorer__report__overview",children:[(0,C.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--total",children:[i," total"]}),(0,C.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--passed",children:[a?.passed??0," ",(0,C.jsx)(_n,{})]}),(0,C.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--failed",children:[a?.failed??0," ",(0,C.jsx)(In,{})]}),(0,C.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--error",children:[a?.error??0," ",(0,C.jsx)(Zt,{})]})]}),a&&(0,C.jsxs)("div",{className:"test-runner-panel__explorer__report__time",children:[a.time,"ms"]})]})}),(0,C.jsxs)("div",{className:"panel__header__actions",children:[(0,C.jsx)("button",{className:"panel__header__action",onClick:()=>t.setViewAsList(!t.viewAsList),title:t.viewAsList?"View As Tree":"View As List",children:t.viewAsList?(0,C.jsx)(Vn,{className:"test-runner-panel__icon--tree-view"}):(0,C.jsx)($n,{className:"test-runner-panel__icon--list-view"})}),(0,C.jsx)("button",{className:"panel__header__action",onClick:()=>t.expandTree(),title:"Expand All",children:(0,C.jsx)(bn,{})}),(0,C.jsx)("button",{className:"panel__header__action",onClick:()=>t.collapseTree(),title:"Collapse All",children:(0,C.jsx)(cn,{})}),(0,C.jsx)("button",{className:"panel__header__action",tabIndex:-1,disabled:!n.testRunState.isInProgress,onClick:()=>{(0,Oe.fl)(t.cancelTestRun()).catch(s.alertUnhandledError)},title:"Stop",children:(0,C.jsx)(On,{})}),(0,C.jsx)("button",{className:"panel__header__action",tabIndex:-1,onClick:()=>{(0,Oe.fl)(t.rerunTestSuite()).catch(s.alertUnhandledError)},disabled:n.testRunState.isInProgress,title:"Run Suite",children:(0,C.jsx)(dn,{})}),(0,C.jsx)("button",{className:"panel__header__action",tabIndex:-1,onClick:()=>{(0,Oe.fl)(t.cancelTestRun()).catch(s.alertUnhandledError).finally((()=>{n.setTestRunnerState(void 0)}))},title:"Reset",children:(0,C.jsx)(qt,{})})]})]}),(0,C.jsx)("div",{className:"test-runner-panel__header__status",children:(0,C.jsx)(wE.Z,{className:`test-runner-panel__progress-bar test-runner-panel__progress-bar--${r.toLowerCase()}`,classes:{bar:`test-runner-panel__progress-bar__bar test-runner-panel__progress-bar__bar--${r.toLowerCase()}`},variant:"determinate",value:o})}),(0,C.jsx)("div",{className:"panel__content",children:t.treeData&&(0,C.jsxs)(C.Fragment,{children:[!t.viewAsList&&(0,C.jsx)(LE,{testRunnerState:t}),t.viewAsList&&(0,C.jsx)(kE,{testRunnerState:t})]})})]})}),(0,C.jsx)(IE,{children:(0,C.jsx)(OE,{color:n.panelGroupDisplayState.isMaximized?"transparent":"var(--color-dark-grey-250)"})}),(0,C.jsxs)(AE,{minSize:400,children:[t.selectedTestId&&!a&&(0,C.jsx)("div",{}),t.selectedTestId&&a&&(0,C.jsx)(DE,{testRunnerState:t,selectedTestId:t.selectedTestId,testResultInfo:a}),!t.selectedTestId&&(0,C.jsxs)("div",{className:"panel",children:[(0,C.jsx)("div",{className:"panel__header"}),(0,C.jsx)("div",{className:"panel__content",children:(0,C.jsx)(Js,{children:"No test selected"})})]}),(0,C.jsx)("div",{})]})]})})})),BE=(0,vt.Pi)((()=>{const e=cE().testRunnerState;return(0,C.jsxs)("div",{className:"test-runner-panel",children:[!e&&(0,C.jsx)(Js,{children:(0,C.jsx)("div",{className:"panel-group__splash-screen",children:(0,C.jsxs)("div",{className:"panel-group__splash-screen__content",children:[(0,C.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,C.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Run full test suite"}),(0,C.jsx)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:(0,C.jsx)("div",{className:"hotkey__key",children:"F10"})})]}),(0,C.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,C.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Run relevant tests only"}),(0,C.jsxs)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:[(0,C.jsx)("div",{className:"hotkey__key",children:"Shift"}),(0,C.jsx)("div",{className:"hotkey__plus",children:(0,C.jsx)(Qt,{})}),(0,C.jsx)("div",{className:"hotkey__key",children:"F10"})]})]})]})})}),e&&(0,C.jsx)(ME,{testRunnerState:e})]})})),jE=(0,vt.Pi)((e=>{const{candidate:t}=e,n=cE(),s=jt(),i=()=>{(0,Oe.fl)(n.loadFile(t.sourceID,new Ng(t.sourceID,t.line,t.column))).catch(s.alertUnhandledError)};return(0,C.jsxs)("div",{className:"suggestions-panel__entry__content__item",children:[(0,C.jsxs)("div",{className:"suggestions-panel__entry__content__item__label__candidate",title:"Go to Result",onClick:i,children:[(0,C.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-name",children:t.foundName}),(0,C.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-location",children:`${vg(t.sourceID)} [${t.line}:${t.column}]`})]}),(0,C.jsx)("div",{className:"suggestions-panel__entry__content__item__actions",children:(0,C.jsx)("button",{className:"suggestions-panel__entry__content__item__action",tabIndex:-1,title:"Go to Result",onClick:i,children:(0,C.jsx)(un,{})})})]})})),UE=(0,vt.Pi)((e=>{const{candidate:t}=e,n=cE(),s=jt();return(0,C.jsxs)("div",{className:"suggestions-panel__entry__content__item",children:[(0,C.jsxs)("div",{className:"suggestions-panel__entry__content__item__label__candidate",title:"Add Suggested Import",onClick:()=>{(0,Oe.fl)(n.updateFileUsingSuggestionCandidate(t)).catch(s.alertUnhandledError)},children:[(0,C.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-name",children:t.foundName}),(0,C.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-location",children:`${vg(t.sourceID)} [${t.line}:${t.column}]`})]}),(0,C.jsx)("div",{className:"suggestions-panel__entry__content__item__actions",children:(0,C.jsx)("button",{className:"suggestions-panel__entry__content__item__action",tabIndex:-1,title:"Go to Result",onClick:()=>{(0,Oe.fl)(n.loadFile(t.sourceID,new Ng(t.sourceID,t.line,t.column))).catch(s.alertUnhandledError)},children:(0,C.jsx)(un,{})})})]})})),GE=(0,vt.Pi)((e=>{const{suggestionState:t}=e,n=t.result;return(0,C.jsxs)("div",{className:"suggestions-panel__content",children:[!n.candidatesWithPackageImported.length&&(0,C.jsx)("div",{className:"suggestions-panel__content__header",children:`No functions, in packages already imported, match the function '${n.candidateName}'`}),Boolean(n.candidatesWithPackageImported.length)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"suggestions-panel__content__header",children:`These functions, in packages already imported, would match the function '${n.candidateName}' if you changed the parameters`}),(0,C.jsx)("div",{className:"suggestions-panel__entry",children:n.candidatesWithPackageImported.map((e=>(0,C.jsx)(jE,{candidate:e},e.uuid)))})]}),!n.candidatesWithPackageNotImported.length&&(0,C.jsx)("div",{className:"suggestions-panel__content__header",children:`No functions, in packages not imported, match the function '${n.candidateName}'`}),Boolean(n.candidatesWithPackageNotImported.length)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"suggestions-panel__content__header",children:`These functions, in packages not imported, match the function '${n.candidateName}'. Click on result to import the necessary package`}),(0,C.jsx)("div",{className:"suggestions-panel__entry",children:n.candidatesWithPackageNotImported.map((e=>(0,C.jsx)(UE,{candidate:e},e.uuid)))})]})]})})),VE=(0,vt.Pi)((e=>{const{suggestionState:t}=e,n=t.result;return(0,C.jsxs)("div",{className:"suggestions-panel__content",children:[!n.candidates.length&&(0,C.jsx)("div",{className:"suggestions-panel__content__header",children:`No possible matches found for '${n.candidateName}'`}),Boolean(n.candidates.length)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"suggestions-panel__content__header",children:`Found possible matches for '${n.candidateName}'. Click on result to import the necessary package`}),(0,C.jsx)("div",{className:"suggestions-panel__entry",children:n.candidates.map((e=>(0,C.jsx)(UE,{candidate:e},e.uuid)))})]})]})})),$E=(0,vt.Pi)((()=>{const e=cE();return(0,C.jsxs)("div",{className:"suggestions-panel",children:[e.codeFixSuggestion instanceof eE&&(0,C.jsx)(GE,{suggestionState:e.codeFixSuggestion}),e.codeFixSuggestion instanceof tE&&(0,C.jsx)(VE,{suggestionState:e.codeFixSuggestion})]})})),HE=(0,vt.Pi)((e=>{const{referenceUsageResult:t,result:n}=e,s=cE(),i=jt(),a=e=>()=>(0,Oe.fl)(s.loadFile(n.sourceId,new Ng(n.sourceId,e.startLine,e.startColumn))).catch(i.alertUnhandledError),r=e=>()=>{n.dismissCoordinate(e),n.coordinates.length||t.dismissSearchEntry(n)};return(0,C.jsxs)("div",{className:"references-panel__entry",children:[(0,C.jsxs)("div",{className:"references-panel__entry__header",onClick:()=>n.setIsExpanded(!n.isExpanded),children:[(0,C.jsxs)("div",{className:"references-panel__entry__header__title",children:[(0,C.jsx)("div",{className:"references-panel__entry__header__title__expander",children:n.isExpanded?(0,C.jsx)(ss,{}):(0,C.jsx)(as,{})}),(0,C.jsx)("div",{className:"references-panel__entry__header__title__label",children:(0,C.jsx)(Rn,{})}),(0,C.jsx)("div",{className:"references-panel__entry__header__title__content",children:vg(n.sourceId)})]}),(0,C.jsxs)("div",{className:"references-panel__entry__header__actions",children:[(0,C.jsx)("div",{className:"references-panel__entry__header__action references-panel__entry__header__action--with-counter",children:(0,C.jsx)("div",{className:"references-panel__entry__header__action__counter",children:n.coordinates.length})}),(0,C.jsx)("button",{className:"references-panel__entry__header__action references-panel__entry__header__action--hidden",tabIndex:-1,title:"Dismiss",onClick:()=>t.dismissSearchEntry(n),children:(0,C.jsx)(qt,{})})]})]}),n.isExpanded&&(0,C.jsx)("div",{className:"references-panel__entry__content",children:n.coordinates.map((e=>(0,C.jsxs)("div",{className:"references-panel__entry__content__item",children:[(0,C.jsxs)("div",{className:"references-panel__entry__content__item__label references-panel__entry__content__item__label--full",title:e.preview?`${e.preview.before}${e.preview.found.replaceAll(/\n/g,"↵")}${e.preview.after}`:"Go To Result",onClick:a(e),children:[e.preview&&(0,C.jsxs)("div",{className:"references-panel__entry__content__item__label__content",children:[(0,C.jsx)("div",{className:"references-panel__entry__content__item__label__coordinates",children:`[${e.startLine}:${e.startColumn}]`}),(0,C.jsxs)("div",{className:"references-panel__entry__content__item__label__preview",children:[(0,C.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text",children:e.preview.before}),(0,C.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text references-panel__entry__content__item__label__preview__text--found",children:e.preview.found.replaceAll(/\n/g,"↵")}),(0,C.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text",children:e.preview.after})]})]}),!e.preview&&(0,C.jsx)(C.Fragment,{children:`line: ${e.startLine} - column: ${e.startColumn}`})]}),(0,C.jsx)("div",{className:"references-panel__entry__content__item__actions",children:(0,C.jsx)("button",{className:"references-panel__entry__content__item__action references-panel__entry__content__item__action--hidden",tabIndex:-1,title:"Dismiss",onClick:r(e),children:(0,C.jsx)(qt,{})})})]},e.uuid)))})]})})),zE=(0,vt.Pi)((e=>{const{referenceUsageState:t}=e,n=cE(),s=jt(),i=t.searchEntries.some((e=>!e.isExpanded));return(0,C.jsxs)("div",{className:"references-panel__content",children:[(0,C.jsxs)("div",{className:"references-panel__content__header",children:[(0,C.jsx)("div",{className:"references-panel__content__header__title",children:t.searchEntries.length?`${t.numberOfResults} usages(s) in ${t.numberOfFiles} files for ${Ig(t.usageConcept)}`:`No usages found for ${Ig(t.usageConcept)}`}),(0,C.jsxs)("div",{className:"references-panel__content__header__actions",children:[(0,C.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Refresh",onClick:()=>{(0,Oe.fl)(n.findUsages(t.usageConcept)).catch(s.alertUnhandledError)},children:(0,C.jsx)(Gn,{})}),(0,C.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Clear",onClick:()=>n.setReferenceUsageResult(void 0),children:(0,C.jsx)(Yn,{})}),!i&&(0,C.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Collapse All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!1)))},children:(0,C.jsx)(es,{})}),i&&(0,C.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Expand All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!0)))},children:(0,C.jsx)(ts,{})})]})]}),(0,C.jsx)("div",{className:"references-panel__content__results",children:t.searchEntries.map((e=>(0,C.jsx)(HE,{referenceUsageResult:t,result:e},e.uuid)))})]})})),WE=(0,vt.Pi)((()=>{const e=cE();return(0,C.jsxs)("div",{className:"references-panel",children:[(0,C.jsx)(Ht,{isLoading:e.referenceUsageLoadState.isInProgress}),!e.referenceUsageResult&&(0,C.jsx)(Js,{children:(0,C.jsx)("div",{className:"panel-group__splash-screen",children:(0,C.jsx)("div",{className:"panel-group__splash-screen__content",children:(0,C.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,C.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Find Concept References"}),(0,C.jsxs)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:[(0,C.jsx)("div",{className:"hotkey__key",children:"Alt"}),(0,C.jsx)("div",{className:"hotkey__plus",children:(0,C.jsx)(Qt,{})}),(0,C.jsx)("div",{className:"hotkey__key",children:"F7"})]})]})})})}),e.referenceUsageResult&&(0,C.jsx)(zE,{referenceUsageState:e.referenceUsageResult})]})})),KE=(0,vt.Pi)((()=>{const e=cE(),t={[Kh.TERMINAL]:{mode:Kh.TERMINAL,name:"TERMINAL",icon:(0,C.jsx)(Nn,{className:"panel-group__header__tab__icon--terminal"}),isVisible:!0},[Kh.SEARCH]:{mode:Kh.SEARCH,name:"SEARCH",icon:(0,C.jsx)(hn,{className:"panel-group__header__tab__icon--search"}),isVisible:!0},[Kh.TEST_RUNNER]:{mode:Kh.TEST_RUNNER,name:"TEST",icon:(0,C.jsx)(cs,{className:"panel-group__header__tab__icon--test"}),isVisible:!0},[Kh.REFERENCES]:{mode:Kh.REFERENCES,name:"REFERENCES",icon:(0,C.jsx)(Zn,{className:"panel-group__header__tab__icon--references"}),isVisible:!0},[Kh.CODE_FIX_SUGGESTION]:{mode:Kh.CODE_FIX_SUGGESTION,name:"SUGGESTIONS",icon:(0,C.jsx)(Qn,{className:"panel-group__header__tab__icon--suggestion"}),isVisible:Boolean(e.codeFixSuggestion)}},n=Object.values(Kh).filter((e=>B(t[e])&&t[e].isVisible)),s=t=>e.activePanelMode===t&&n.includes(t);return(0,Mt.useEffect)((()=>{n.includes(e.activePanelMode)||e.setActivePanelMode(Kh.TERMINAL)}),[e,n,e.activePanelMode]),(0,C.jsxs)(fE,{className:"panel-group",children:[(0,C.jsxs)(_E,{children:[(0,C.jsx)("div",{className:"panel-group__header__tabs",children:n.map((e=>t[e])).filter(B).map((t=>{return(0,C.jsxs)("button",{tabIndex:-1,className:(0,At.clsx)("panel-group__header__tab",{"panel-group__header__tab--active":e.activePanelMode===t.mode}),onClick:(n=t.mode,()=>e.setActivePanelMode(n)),children:[(0,C.jsx)("div",{className:"panel-group__header__tab__icon",children:t.icon}),(0,C.jsx)("div",{className:"panel-group__header__tab__title",children:t.name})]},t.mode);var n}))}),(0,C.jsxs)("div",{className:"panel-group__header__actions",children:[(0,C.jsx)("button",{className:"panel-group__header__action",onClick:()=>e.panelGroupDisplayState.toggleMaximize(),tabIndex:-1,title:"Toggle Expand/Collapse",children:e.panelGroupDisplayState.isMaximized?(0,C.jsx)(ss,{}):(0,C.jsx)(is,{})}),(0,C.jsx)("button",{className:"panel-group__header__action",onClick:()=>e.panelGroupDisplayState.toggle(),tabIndex:-1,title:"Close",children:(0,C.jsx)(rs,{})})]})]}),(0,C.jsxs)(yE,{children:[s(Kh.TERMINAL)&&(0,C.jsx)("div",{className:"panel-group__content__tab",children:(0,C.jsx)(lE,{})}),s(Kh.SEARCH)&&(0,C.jsx)("div",{className:"panel-group__content__tab",children:(0,C.jsx)(pE,{})}),s(Kh.TEST_RUNNER)&&(0,C.jsx)("div",{className:"panel-group__content__tab",children:(0,C.jsx)(BE,{})}),s(Kh.CODE_FIX_SUGGESTION)&&(0,C.jsx)("div",{className:"panel-group__content__tab",children:(0,C.jsx)($E,{})}),s(Kh.REFERENCES)&&(0,C.jsx)("div",{className:"panel-group__content__tab",children:(0,C.jsx)(WE,{})})]})]})}));var YE=n(42689);const JE=()=>(0,C.jsx)("div",{className:"icon color--package",children:(0,C.jsx)(vs,{})}),XE=()=>(0,C.jsx)("div",{className:"icon color--class",children:"C"}),qE=()=>(0,C.jsx)("div",{className:"icon color--enumeration",children:"E"}),ZE=()=>(0,C.jsx)("div",{className:"icon color--measure",children:"M"}),QE=()=>(0,C.jsx)("div",{className:"icon color--unit",children:"u"}),eC=()=>(0,C.jsx)("div",{className:"icon color--profile",children:"P"}),tC=()=>(0,C.jsx)("div",{className:"icon icon--function color--function",children:(0,C.jsx)(ws,{})}),nC=()=>(0,C.jsx)("div",{className:"icon color--mapping",children:(0,C.jsx)(ln,{})}),sC=()=>(0,C.jsx)("div",{className:"icon icon--unknown",children:(0,C.jsx)(Cs,{})}),iC=()=>(0,C.jsx)("div",{className:"icon icon--function color--native-function",children:(0,C.jsx)(ws,{})}),aC=()=>(0,C.jsx)("div",{className:"icon icon--property color--property",children:(0,C.jsx)(bs,{})}),rC=()=>(0,C.jsx)("div",{className:"icon color--diagram",children:(0,C.jsx)(pn,{})}),oC=()=>(0,C.jsx)("div",{className:"icon icon--database",children:(0,C.jsx)(Dn,{})}),cC=()=>(0,C.jsx)("div",{className:"icon color--association color--pure-association",children:"A"}),lC=e=>{switch(e){case _g.PACKAGE:return(0,C.jsx)(JE,{});case _g.PROFILE:return(0,C.jsx)(eC,{});case _g.CLASS:return(0,C.jsx)(XE,{});case _g.ASSOCIATION:return(0,C.jsx)(cC,{});case _g.PROPERTY:case _g.QUALIFIED_PROPERTY:return(0,C.jsx)(aC,{});case _g.ENUMERATION:return(0,C.jsx)(qE,{});case _g.MEASURE:return(0,C.jsx)(ZE,{});case _g.UNIT:return(0,C.jsx)(QE,{});case _g.FUNCTION:return(0,C.jsx)(tC,{});case _g.NATIVE_FUNCTION:return(0,C.jsx)(iC,{});case _g.DIAGRAM:return(0,C.jsx)(rC,{});case _g.DATABASE:return(0,C.jsx)(oC,{});case _g.MAPPING:return(0,C.jsx)(nC,{});default:return(0,C.jsx)(sC,{})}},dC=/^\w[\w$]*$/,uC=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,pC=(0,vt.Pi)((e=>{const{node:t}=e,n=cE(),s=jt(),i=t.data.li_attr.pureName??t.data.li_attr.pureId,a=t.data.li_attr.pureType===_g.PACKAGE,[r,o]=(0,Mt.useState)(a?$p(i):i),c=(0,Mt.useRef)(null),l=Boolean(r.match(a?uC:dC)),d=(a?$p(i):i)===r,u=l?void 0:"Invalid path",p=()=>n.conceptTreeState.setNodeForRenameConcept(void 0),h=e=>{e.preventDefault(),d||n.conceptTreeState.renameConcept(t,r).catch(s.alertUnhandledError).finally((()=>p()))};return(0,C.jsx)(xt.Z,{open:!0,onClose:p,TransitionProps:{onEnter:()=>c.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Rename concept"}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)("form",{className:"command-modal__content__form",onSubmit:h,children:(0,C.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,C.jsx)("input",{ref:c,className:"input input--dark",onChange:e=>o(e.target.value),value:r,spellCheck:!1}),u&&(0,C.jsx)("div",{className:"input-group__error-message",children:u})]})}),(0,C.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(u),onClick:h,children:"Rename"})]})]})})})),hC=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,gC=(0,vt.Pi)((e=>{const{node:t}=e,n=cE(),s=jt(),i=Hp(t.data.li_attr.pureId)??"",[a,r]=(0,Mt.useState)(i),o=(0,Mt.useRef)(null),c=Boolean(a.match(hC)),l=i===a,d=c?void 0:"Invalid path",u=()=>n.conceptTreeState.setNodeForMoveElement(void 0),p=e=>{e.preventDefault(),l||n.conceptTreeState.movePackageableElements([$(t.data.li_attr,bg)],a).catch(s.alertUnhandledError).finally((()=>u()))};return(0,C.jsx)(xt.Z,{open:!0,onClose:u,TransitionProps:{onEnter:()=>o.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Move element"}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,C.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,C.jsx)("input",{ref:o,className:"input input--dark",onChange:e=>r(e.target.value),value:a,spellCheck:!1}),d&&(0,C.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,C.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(d),onClick:p,children:"Move"})]})]})})})),mC=(0,vt.Pi)((0,Mt.forwardRef)((function(e,t){const{node:n,viewConceptSource:s}=e,i=n.data.li_attr,a=i.pureType,r=cE(),o=jt();return(0,C.jsxs)(Vs,{ref:t,children:[i.pureType!==_g.PROPERTY&&i.pureType!==_g.QUALIFIED_PROPERTY&&(0,C.jsx)($s,{onClick:()=>{o.clipboardService.copyTextToClipboard(i.pureId).catch(o.alertUnhandledError)},children:"Copy Path"}),a===_g.PACKAGE&&(0,C.jsx)($s,{onClick:()=>{(0,Oe.fl)(r.executeTests(n.data.li_attr.pureId)).catch(o.alertUnhandledError)},children:"Run Tests"}),a===_g.FUNCTION&&(0,C.jsx)($s,{onClick:()=>{o.navigationService.navigator.visitAddress(`${r.client.baseUrl}/execute?func=${i.pureId}&mode=${r.client.mode}`)},children:"Service (JSON)"}),(i instanceof yg||i instanceof bg)&&(0,C.jsx)($s,{onClick:()=>{(i instanceof bg||i instanceof yg)&&r.findUsagesFromCoordinate(new Ng(i.file,Number.parseInt(i.line,10),Number.parseInt(i.column,10)))},children:"Find Usages"}),a!==_g.PACKAGE&&(0,C.jsx)($s,{onClick:()=>s(n),children:"View Source"}),(0,C.jsx)(Hs,{}),(0,C.jsx)($s,{onClick:()=>r.conceptTreeState.setNodeForRenameConcept(n),children:"Rename"}),i instanceof bg&&(0,C.jsx)($s,{onClick:()=>r.conceptTreeState.setNodeForMoveElement(n),children:"Move"})]})})));var fC;!function(e){e.UNSUPPORTED="UNSUPPORTED",e.CLASS="CLASS"}(fC||(fC={}));const _C=e=>{const{node:t,level:n,stepPaddingInRem:s,onNodeSelect:i,innerProps:a}=e,[r,o]=(0,Mt.useState)(!1),{onNodeOpen:c,onNodeExpand:l,onNodeCompress:d,viewConceptSource:u}=a,p=t.parent&&t.data.li_attr instanceof yg&&t.data.li_attr.classPath!==t.parent.id,h=[_g.PACKAGE,_g.CLASS].includes(t.data.li_attr.pureType),g=t.data.li_attr.pureType===_g.QUALIFIED_PROPERTY?(0,C.jsxs)(C.Fragment,{children:[t.label,(0,C.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:"(...)"})]}):p?(0,C.jsxs)(C.Fragment,{children:[t.label,(0,C.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:$p($(t.data.li_attr,yg).classPath)})]}):t.label.includes("(")?(0,C.jsxs)(C.Fragment,{children:[t.label.substring(0,t.label.indexOf("(")),(0,C.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:t.label.substring(t.label.indexOf("("))})]}):t.label,m=()=>{t.isLoading||(t.isOpen?d(t):l(t))},[,f]=(0,YE.c)((()=>({type:"Class"===t.data.li_attr.pureType?fC.CLASS:fC.UNSUPPORTED,item:t.data})),[t]);return(0,C.jsx)(Gs,{content:(0,C.jsx)(mC,{node:t,viewConceptSource:u}),menuProps:{elevation:7},onOpen:()=>o(!0),onClose:()=>o(!1),children:(0,C.jsxs)("div",{className:(0,At.clsx)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected-from-context-menu":!t.isSelected&&r},{"explorer__package-tree__node__container--selected":t.isSelected}),onClick:e=>{e.stopPropagation(),e.preventDefault(),i?.(t)},ref:f,onDoubleClick:()=>{t.isLoading||(h&&m(),i?.(t),c(t))},style:{paddingLeft:n*(s??1)+"rem",display:"flex"},children:[(0,C.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[t.isLoading&&(0,C.jsx)("div",{className:"explorer__package-tree__node__icon__expand explorer__package-tree__node__icon__expand--is-loading",children:(0,C.jsx)(yn,{})}),!t.isLoading&&(0,C.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:m,children:h?t.isOpen?(0,C.jsx)(ss,{}):(0,C.jsx)(as,{}):(0,C.jsx)("div",{})}),(0,C.jsx)("div",{className:(0,At.clsx)("explorer__package-tree__node__icon__type",{"explorer__package-tree__node__icon__type--property-from-association":p}),children:lC(t.data.li_attr.pureType)})]}),(0,C.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:g})]})})},EC=(0,vt.Pi)((()=>{const e=cE(),t=jt(),n=e.conceptTreeState,s=e.conceptTreeState.getTreeData();return(0,C.jsxs)("div",{className:"explorer__content",onClick:()=>n.setSelectedNode(void 0),children:[(0,C.jsx)(mE,{components:{TreeNodeContainer:_C},treeData:s,onNodeSelect:e=>n.setSelectedNode(e),getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>s.nodes.get(e))).filter(B),innerProps:{onNodeOpen:e=>{(0,Oe.fl)(n.openNode(e)).catch(t.alertUnhandledError)},onNodeExpand:e=>{(0,Oe.fl)(n.expandNode(e)).catch(t.alertUnhandledError)},onNodeCompress:e=>{e.isOpen=!1,n.refreshTree()},viewConceptSource:n=>{const s=n.data.li_attr;(s instanceof bg||s instanceof yg)&&(0,Oe.fl)(e.directoryTreeState.revealPath(s.file,{forceOpenExplorerPanel:!0,coordinate:new Ng(s.file,Number.parseInt(s.line,10),Number.parseInt(s.column,10))})).catch(t.alertUnhandledError)}}}),n.nodeForRenameConcept&&(0,C.jsx)(pC,{node:n.nodeForRenameConcept}),n.nodeForMoveElement&&(0,C.jsx)(gC,{node:n.nodeForMoveElement})]})})),CC=(0,vt.Pi)((()=>{const e=cE(),t=jt(),n=e.conceptTreeState;return(0,C.jsxs)("div",{className:"panel explorer",children:[(0,C.jsx)("div",{className:"panel__header side-bar__header",children:(0,C.jsx)("div",{className:"panel__header__title",children:(0,C.jsx)("div",{className:"panel__header__title__content side-bar__header__title__content",children:"CONCEPTS"})})}),(0,C.jsx)("div",{className:"panel__content side-bar__content",children:(0,C.jsxs)("div",{className:"panel explorer",children:[(0,C.jsxs)("div",{className:"panel__header explorer__header",children:[(0,C.jsx)("div",{className:"panel__header__title"}),(0,C.jsxs)("div",{className:"panel__header__actions",children:[(0,C.jsx)("button",{className:"panel__header__action explorer__btn__refresh",onClick:()=>{(0,Oe.fl)(n.refreshTreeData()).catch(t.alertUnhandledError)},title:"Refresh Tree",children:(0,C.jsx)(Gn,{})}),(0,C.jsx)("button",{className:"panel__header__action",onClick:()=>{n.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),n.setSelectedNode(void 0),n.refreshTree()},title:"Collapse All",children:(0,C.jsx)(cn,{})})]})]}),(0,C.jsxs)("div",{className:"panel__content explorer__content__container",children:[(0,C.jsx)(Ht,{isLoading:n.loadInitialDataState.isInProgress}),n.loadInitialDataState.hasSucceeded&&(0,C.jsx)(EC,{}),!n.loadInitialDataState.hasSucceeded&&n.statusText&&(0,C.jsx)("div",{className:"explorer__content__container__message",children:n.statusText}),n.loadInitialDataState.hasFailed&&(0,C.jsx)(Js,{children:"Failed to build concept tree. Make sure graph compiles"})]})]})})]})})),yC=/^\w+(?:\.\w+)*$/,bC=(0,vt.Pi)((e=>{const{node:t}=e,n=cE(),s=jt(),[i,a]=(0,Mt.useState)("untitled.pure"),r=(0,Mt.useRef)(null),o=Boolean(i.match(yC)),c=!t.childrenIds?.map((e=>n.directoryTreeState.getTreeData().nodes.get(e))).filter((e=>e?.data.text===i)).length,l=o?c?void 0:"Already existed":"Invalid file name",d=()=>n.directoryTreeState.setNodeForCreateNewFile(void 0),u=e=>{e.preventDefault(),d(),(0,Oe.fl)(n.createNewFile(`${t.data.li_attr.path}/${i}`)).catch(s.alertUnhandledError)};return(0,C.jsx)(xt.Z,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Create a new file"}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,C.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,C.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>a(e.target.value),value:i,spellCheck:!1}),l&&(0,C.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,C.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Create"})]})]})})})),TC=/^\w+$/,vC=(0,vt.Pi)((e=>{const{node:t}=e,n=cE(),s=jt(),[i,a]=(0,Mt.useState)("untitled"),r=(0,Mt.useRef)(null),o=Boolean(i.match(TC)),c=!t.childrenIds?.map((e=>n.directoryTreeState.getTreeData().nodes.get(e))).filter((e=>e?.data.text===i)).length,l=o?c?void 0:"Already existed":"Invalid directory name",d=()=>n.directoryTreeState.setNodeForCreateNewDirectory(void 0),u=e=>{e.preventDefault(),d(),(0,Oe.fl)(n.createNewDirectory(`${t.data.li_attr.path}/${i}`)).catch(s.alertUnhandledError)};return(0,C.jsx)(xt.Z,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Create a new directory"}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,C.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,C.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>a(e.target.value),value:i,spellCheck:!1}),l&&(0,C.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,C.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Create"})]})]})})})),SC=/^\/?(?:\w+\/)*\w+(?:\.\w+)*$/,NC=(0,vt.Pi)((e=>{const{node:t}=e,n=cE(),s=jt(),[i,a]=(0,Mt.useState)(t.data.li_attr.path),r=(0,Mt.useRef)(null),o=Boolean(i.match(SC)),c=t.data.li_attr.path===i,l=o?void 0:"Invalid path",d=()=>n.directoryTreeState.setNodeForRenameFile(void 0),u=e=>{e.preventDefault(),c||(d(),(0,Oe.fl)(n.renameFile(t.data.li_attr.path,i)).catch(s.alertUnhandledError))};return(0,C.jsx)(xt.Z,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Rename file"}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,C.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,C.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>a(e.target.value),value:i,spellCheck:!1}),l&&(0,C.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,C.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Rename"})]})]})})})),xC=(0,vt.Pi)((0,Mt.forwardRef)((function(e,t){const{node:n}=e,s=jt(),i=cE(),a=n.data.isFolderNode,r=Boolean(n.data.children);return(0,C.jsxs)(Vs,{ref:t,children:[(0,C.jsx)($s,{onClick:()=>{s.clipboardService.copyTextToClipboard(n.data.li_attr.path).catch(s.alertUnhandledError)},children:"Copy Path"}),(0,C.jsx)(Hs,{}),a&&(0,C.jsx)($s,{onClick:()=>i.directoryTreeState.setNodeForCreateNewFile(n),children:"New File"}),a&&(0,C.jsx)($s,{onClick:()=>i.directoryTreeState.setNodeForCreateNewDirectory(n),children:"New Directory"}),!a&&(0,C.jsx)($s,{onClick:()=>i.directoryTreeState.setNodeForRenameFile(n),children:"Rename"}),(0,C.jsx)($s,{disabled:Boolean(n.data instanceof Jg&&n.data.children),onClick:()=>{(0,Oe.fl)(i.deleteDirectoryOrFile(n.data.li_attr.path,a,r)).catch(s.alertUnhandledError)},children:"Delete"})]})}))),AC=e=>{const{node:t,level:n,stepPaddingInRem:s,onNodeSelect:i,innerProps:a}=e,[r,o]=(0,Mt.useState)(!1),{onNodeOpen:c,onNodeExpand:l,onNodeCompress:d}=a,u=t.data instanceof Jg&&t.data.isRepoNode&&"/platform"===t.data.li_attr.path,p=t.data.li_attr.RO,h=t.data.isFolderNode,g=t.data instanceof Jg&&!t.data.children,m=u||t.data.isRepoNode&&t.data.li_attr.path.startsWith("/platform_")?(0,C.jsx)(Tn,{className:"explorer__icon--readonly"}):h?g?(0,C.jsx)(An,{className:(0,At.clsx)("explorer__icon--folder",{"explorer__icon--readonly":p})}):t.isOpen?(0,C.jsx)(xn,{className:(0,At.clsx)("explorer__icon--folder",{"explorer__icon--readonly":p})}):(0,C.jsx)(An,{className:(0,At.clsx)("explorer__icon--folder",{"explorer__icon--readonly":p})}):(0,C.jsx)(Rn,{className:(0,At.clsx)("explorer__icon--file",{"explorer__icon--readonly":p})}),f=()=>{g||t.isLoading||(t.isOpen?d(t):l(t))};return(0,C.jsx)(Gs,{content:(0,C.jsx)(xC,{node:t}),menuProps:{elevation:7},onOpen:()=>o(!0),onClose:()=>o(!1),children:(0,C.jsxs)("div",{className:(0,At.clsx)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected-from-context-menu":!t.isSelected&&r},{"explorer__package-tree__node__container--selected":t.isSelected}),onClick:e=>{e.stopPropagation(),e.preventDefault(),i?.(t)},onDoubleClick:()=>{t.isLoading||(h?f():c(t))},style:{paddingLeft:n*(s??1)+"rem",display:"flex"},children:[(0,C.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[t.isLoading&&(0,C.jsx)("div",{className:"explorer__package-tree__node__icon__expand explorer__package-tree__node__icon__expand--is-loading",children:(0,C.jsx)(yn,{})}),!t.isLoading&&(0,C.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:f,children:!h||g?(0,C.jsx)("div",{}):t.isOpen?(0,C.jsx)(ss,{}):(0,C.jsx)(as,{})}),(0,C.jsx)("div",{className:"explorer__package-tree__node__icon__type",children:m})]}),(0,C.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:u?"platform":t.label})]})})},IC=(0,vt.Pi)((()=>{const e=cE(),t=jt(),n=e.directoryTreeState,s=e.directoryTreeState.getTreeData();return(0,C.jsxs)("div",{className:"explorer__content",onClick:()=>n.setSelectedNode(void 0),children:[(0,C.jsx)(mE,{components:{TreeNodeContainer:AC},treeData:s,onNodeSelect:e=>n.setSelectedNode(e),getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>s.nodes.get(e))).filter(B),innerProps:{onNodeOpen:e=>{(0,Oe.fl)(n.openNode(e)).catch(t.alertUnhandledError)},onNodeExpand:e=>{(0,Oe.fl)(n.expandNode(e)).catch(t.alertUnhandledError)},onNodeCompress:e=>{e.isOpen=!1,n.refreshTree()}}}),n.nodeForCreateNewFile&&(0,C.jsx)(bC,{node:n.nodeForCreateNewFile}),n.nodeForCreateNewDirectory&&(0,C.jsx)(vC,{node:n.nodeForCreateNewDirectory}),n.nodeForRenameFile&&(0,C.jsx)(NC,{node:n.nodeForRenameFile})]})})),OC=(0,vt.Pi)((()=>{const e=cE(),t=jt(),n=e.directoryTreeState;return(0,C.jsxs)("div",{className:"panel explorer",children:[(0,C.jsx)("div",{className:"panel__header side-bar__header",children:(0,C.jsx)("div",{className:"panel__header__title",children:(0,C.jsx)("div",{className:"panel__header__title__content side-bar__header__title__content",children:"FILES"})})}),(0,C.jsx)("div",{className:"panel__content side-bar__content",children:(0,C.jsxs)("div",{className:"panel explorer",children:[(0,C.jsxs)("div",{className:"panel__header explorer__header",children:[(0,C.jsx)("div",{className:"panel__header__title"}),(0,C.jsxs)("div",{className:"panel__header__actions",children:[(0,C.jsx)("button",{className:"panel__header__action explorer__btn__refresh",onClick:()=>{(0,Oe.fl)(n.refreshTreeData()).catch(t.alertUnhandledError)},title:"Refresh Tree",children:(0,C.jsx)(Gn,{})}),(0,C.jsx)("button",{className:"panel__header__action",onClick:()=>{const s=e.tabManagerState.currentTab;s instanceof Hg&&(0,Oe.fl)(n.revealPath(s.filePath)).catch(t.alertUnhandledError)},title:"Focus",children:(0,C.jsx)(Jt,{})}),(0,C.jsx)("button",{className:"panel__header__action",onClick:()=>{n.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),n.setSelectedNode(void 0),n.refreshTree()},title:"Collapse All",children:(0,C.jsx)(cn,{})})]})]}),(0,C.jsxs)("div",{className:"panel__content explorer__content__container",children:[(0,C.jsx)(Ht,{isLoading:n.loadInitialDataState.isInProgress}),n.loadInitialDataState.hasSucceeded&&(0,C.jsx)(IC,{}),n.loadInitialDataState.hasFailed&&(0,C.jsx)(Js,{children:"Failed to build directory tree"})]})]})})]})})),wC=(0,vt.Pi)((()=>{const e=cE();return(0,C.jsx)("div",{className:"side-bar",children:(0,C.jsx)("div",{className:(0,At.clsx)("side-bar__view","side-bar__view--active"),children:(()=>{switch(e.activeActivity){case Wh.CONCEPT_EXPLORER:return(0,C.jsx)(CC,{});case Wh.FILE_EXPLORER:return(0,C.jsx)(OC,{});default:return null}})()},e.activeActivity)})})),RC=e=>{const{className:t}=e;return(0,C.jsx)("div",{className:(0,At.clsx)("logo",t),children:(0,C.jsxs)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",width:"1em",height:"1em",viewBox:"0 0 215 215",xmlns:"https://www.w3.org/2000/svg",children:[(0,C.jsx)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,C.jsx)("path",{d:"M141.9,86.5L141.9,68.1C141.9,66.5 140.7,65.2 139.1,65.2L66.5,65.2C64.9,65.2 63.7,66.5 63.7,68.1L63.7,86.5C63.7,88.1 64.9,89.4 66.5,89.4L139.1,89.4C140.7,89.4 141.9,88.1 141.9,86.5Z"})}),(0,C.jsx)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,C.jsx)("path",{d:"M118.4,116.9L118.4,98.5C118.4,96.9 117.5,95.6 116.4,95.6L65.7,95.6C64.6,95.6 63.7,96.9 63.7,98.5L63.7,116.9C63.7,118.5 64.6,119.8 65.7,119.8L116.5,119.8C117.6,119.8 118.4,118.6 118.4,116.9Z"})}),(0,C.jsx)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,C.jsx)("path",{d:"M141.9,147.3L141.9,129C141.9,127.4 140.7,126.1 139.1,126.1L66.5,126.1C64.9,126.1 63.7,127.4 63.7,129L63.7,147.4C63.7,149 64.9,150.3 66.5,150.3L139.1,150.3C140.7,150.3 141.9,149 141.9,147.3Z"})}),(0,C.jsx)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,C.jsx)("path",{d:"M205,170.7L152.7,139.1C150,137.4 147.7,138.7 147.7,141.9L147.7,157.9L55.8,157.9L55.8,59.4L67.2,59.4C70.4,59.4 71.7,57.2 70,54.4L38.4,2.1C36.7,-0.6 34.1,-0.6 32.4,2.1L0.7,54.4C-1,57.1 0.3,59.4 3.5,59.4L15.6,59.4L15.6,185.5C15.6,188.5 18,190.9 21,190.9L147.7,190.9L147.7,205.7C147.7,208.9 149.9,210.1 152.7,208.5L205,176.9C207.7,175.1 207.7,172.4 205,170.7Z"})})]})})},kC=(0,vt.Pi)((()=>{const e=cE(),t=t=>()=>e.setActiveActivity(t),n=[{mode:Wh.CONCEPT_EXPLORER,title:"Concept Explorer",icon:(0,C.jsx)(gn,{})},{mode:Wh.FILE_EXPLORER,title:"File Explorer",icon:(0,C.jsx)(Rn,{})}].filter((e=>Boolean(e)));return(0,C.jsxs)("div",{className:"activity-bar",children:[(0,C.jsx)("div",{className:"activity-bar__logo",children:(0,C.jsx)(RC,{})}),(0,C.jsx)("div",{className:"activity-bar__items",children:n.map((n=>(0,C.jsx)("button",{className:(0,At.clsx)("activity-bar__item",{"activity-bar__item--active":e.sideBarDisplayState.isOpen&&e.activeActivity===n.mode}),onClick:t(n.mode),tabIndex:-1,title:n.title,children:n.icon},n.mode)))})]})})),LC=(0,vt.Pi)((e=>{const{fileEditorState:t}=e,n=t.textEditorState.cursorObserver,s=n?.selection?t.textEditorState.model.getValueInRange(n.selection).length:0;return(0,C.jsx)("div",{className:"file-editor__status-bar",children:n?.position&&(0,C.jsx)("button",{className:"editor__status-bar__action file-editor__status-bar__cursor-info",onClick:()=>t.setShowGoToLinePrompt(!0),tabIndex:-1,title:"Go to Line/Column",children:`Ln ${n.position.lineNumber}, Col ${n.position.column} ${s?` (${s} selected)`:""}`})})})),FC=(0,vt.Pi)((()=>{const e=cE(),t=jt();return(0,C.jsxs)("div",{className:"editor__status-bar",children:[(0,C.jsx)("div",{className:"editor__status-bar__left",children:(0,C.jsx)("div",{className:"editor__status-bar__workspace"})}),(0,C.jsxs)("div",{className:"editor__status-bar__right",children:[e.tabManagerState.currentTab instanceof Hg&&(0,C.jsx)(LC,{fileEditorState:e.tabManagerState.currentTab}),(0,C.jsx)("button",{className:(0,At.clsx)("editor__status-bar__action editor__status-bar__compile-btn",{"editor__status-bar__compile-btn--wiggling":e.executionState.isInProgress}),disabled:e.initState.isInInitialState||e.executionState.isInProgress,onClick:()=>{(0,Oe.fl)(e.executeGo()).catch(t.alertUnhandledError)},tabIndex:-1,title:"Execute (F9)",children:(0,C.jsx)(an,{})}),(0,C.jsx)("button",{className:(0,At.clsx)("editor__status-bar__action editor__status-bar__action__toggler",{"editor__status-bar__action__toggler--active":Boolean(e.panelGroupDisplayState.isOpen)}),onClick:()=>e.panelGroupDisplayState.toggle(),tabIndex:-1,title:"Toggle panel",children:(0,C.jsx)(Nn,{})}),(0,C.jsx)("button",{className:(0,At.clsx)("editor__status-bar__action editor__status-bar__action__toggler",{"editor__status-bar__action__toggler--active":!t.assistantService.isHidden}),onClick:()=>t.assistantService.toggleAssistant(),tabIndex:-1,title:"Toggle assistant",children:(0,C.jsx)(Hn,{})})]})]})})),PC=e=>{(0,Mt.useEffect)((()=>(e.registerCommands(),()=>e.deregisterCommands())),[e])},DC=/[0-9]+(?::[0-9]+)?/,MC=(0,vt.Pi)((e=>{const{fileEditorState:t}=e,[n,s]=(0,Mt.useState)(""),i=(0,Mt.useRef)(null),a=Boolean(n.match(DC)),r=t.textEditorState.editor?.getPosition(),[o,c]=(e=>{const t=e.split(":");return t.length<1||t.length>2?[1,void 0]:[D((()=>parseInt(U(N(t)))))??1,D((()=>parseInt(U(x(t)))))]})(n),l=1<=o&&o<=t.textEditorState.model.getLineCount(),d=a?l?void 0:"Invalid line number":"Invalid value (format [line:column] - e.g. 123:45)",u=()=>t.setShowGoToLinePrompt(!1),p=e=>{e.preventDefault(),u(),t.textEditorState.setForcedCursorPosition({lineNumber:o,column:c??1})};return(0,C.jsx)(xt.Z,{open:!0,onClose:u,TransitionProps:{onEnter:()=>i.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Go to..."}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,C.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,C.jsx)("input",{ref:i,className:"input input--dark",onChange:e=>s(e.target.value),placeholder:r?`Current Line: ${r.lineNumber}, Col: ${r.column}. Type a line between 1 and ${t.textEditorState.model.getLineCount()} to navigate to`:void 0,value:n,spellCheck:!1}),""!==n&&d&&(0,C.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,C.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:""===n||Boolean(d),onClick:p,children:"Go"})]})]})})})),BC=(0,vt.Pi)((e=>{const{editorState:t}=e,n=cE(),s=jt(),i=(0,Mt.useRef)(null),[a,r]=(0,Mt.useState)();return(0,Mt.useEffect)((()=>{if(!a&&i.current){const e=i.current,n=Jh.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,theme:ag.DEFAULT_DARK,wordWrap:t.textEditorState.wrapText?"on":"off",readOnly:t.file.RO});n.onDidChangeModelContent((()=>{const e=n.getValue();e!==t.file.content&&t.clearError(),t.file.setContent(e)})),n.onDidChangeCursorPosition((()=>{t.textEditorState.notifyCursorObserver()})),n.onDidChangeCursorSelection((()=>{t.textEditorState.notifyCursorObserver()})),n.setModel(t.textEditorState.model),t.textEditorState.viewState&&n.restoreViewState(t.textEditorState.viewState),n.focus(),t.textEditorState.setEditor(n),r(n)}}),[n,s,t,a]),PC(t),(0,Mt.useEffect)((()=>{a&&t.textEditorState.forcedCursorPosition&&(gg(a,t.textEditorState.forcedCursorPosition),t.textEditorState.setForcedCursorPosition(void 0))}),[a,t,t.textEditorState.forcedCursorPosition]),(0,Mt.useEffect)((()=>()=>{a&&(t.textEditorState.setViewState(a.saveViewState()??void 0),a.dispose())}),[t,a]),(0,C.jsxs)("div",{className:"panel editor-group file-editor",children:[(0,C.jsx)("div",{className:"panel__header file-editor__header",children:(0,C.jsxs)("div",{className:"file-editor__header__actions",children:[(0,C.jsx)("button",{className:(0,At.clsx)("file-editor__header__action",{"file-editor__header__action--active":t.textEditorState.wrapText}),tabIndex:-1,onClick:()=>t.textEditorState.setWrapText(!t.textEditorState.wrapText),title:"Toggle Text Wrap",children:(0,C.jsx)(Wn,{className:"file-editor__icon--text-wrap"})}),t.showGoToLinePrompt&&(0,C.jsx)(MC,{fileEditorState:t})]})}),(0,C.jsx)("div",{className:"panel__content file-editor__content",children:(0,C.jsx)("div",{className:"code-editor__container",children:(0,C.jsx)("div",{className:"code-editor__body",ref:i})})})]})})),jC=(e,t,n=!1)=>{if(n)return t.map((e=>`${e}.pure`)).includes(e);const s=U(N(e.split(".")));return t.includes(s)};class UC{pureType;pureId;pureName;text;requiredClassProperties=[]}(0,ge.yu)(UC,{pureType:(0,ge.Ru)(),pureId:(0,ge.Ru)(),pureName:(0,ge.Ru)(),text:(0,ge.Ru)(),requiredClassProperties:(0,ge.jt)((0,ge.pb)((0,ge.Ru)()))});class GC{pureType;pureName;owner;ownerPureType}(0,ge.yu)(GC,{pureType:(0,ge.Ru)(),pureName:(0,ge.Ru)(),owner:(0,ge.Ru)(),ownerPureType:(0,ge.Ru)()});class VC{pureId;pureName;requiredClassProperties=[]}(0,ge.yu)(VC,{pureId:(0,ge.Ru)(),pureName:(0,ge.Ru)(),requiredClassProperties:(0,ge.jt)((0,ge.pb)((0,ge.Ru)()))});class $C{name}(0,ge.yu)($C,{name:(0,ge.Ru)()});const HC="Diagram",zC="Diagram",WC=()=>{const e=[];return e.push({label:{label:"/copyright",description:"(copyright header)"},kind:Jh.languages.CompletionItemKind.Snippet,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`// Copyright \${1:${(new Date).getFullYear()}} Goldman Sachs\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an "AS IS" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n`,range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1e3}}),e},KC=e=>({label:{label:e.pureName,description:e.pureId},kind:Jh.languages.CompletionItemKind.Class,filterText:e.pureName,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`${e.pureName}(${e.requiredClassProperties.map(((e,t)=>`${e}=\${${t+1}:}`)).join(",")})`}),YC=(e,t)=>{const n=e.pureType,s=n===_g.FUNCTION||n===_g.NATIVE_FUNCTION?((e,t,n)=>{const s=$p(t),i=D((()=>s.substring(s.indexOf("_"),s.length-1))),a=i?.split("__")??[];return a.pop(),n&&a.shift(),`${e}(${a.map(((e,t)=>`\${${t+1}:}`)).join(",")})`})(e.pureName,e.pureId,Boolean(t?.preferArrowFunctionForm)):e.pureName,i=n===_g.PACKAGE?Jh.languages.CompletionItemKind.Folder:n===_g.CLASS?Jh.languages.CompletionItemKind.Class:n===_g.FUNCTION?Jh.languages.CompletionItemKind.Function:n===_g.ENUMERATION?Jh.languages.CompletionItemKind.Enum:n===_g.PROFILE?Jh.languages.CompletionItemKind.Module:n===_g.ASSOCIATION?Jh.languages.CompletionItemKind.Interface:Jh.languages.CompletionItemKind.Value;return{label:{label:e.pureName,description:e.text},kind:i,filterText:e.pureName,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:s,sortText:n===_g.PACKAGE?`zzzz_${e.text}`:e.text}},JC=/(?<incompletePath>(?:\w[\w$]*::)+$)/,XC=/->\s*(?:\w[\w$]*::)+$/,qC=/\^\s*(?:\w[\w$]*::)+$/,ZC=/^\s*import\s+(?:(?<importPath>(?:(?:\w[\w$]*)::)*\w[\w$]*)::*)/,QC=(e,t)=>{const n=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),s=`${pa}${d_.PURE}\n${n}`.split("\n");return s.slice(s.map((e=>e.startsWith(pa))).lastIndexOf(!0)).map((e=>e.match(ZC)?.groups?.importPath)).filter(B)},ey=/->\s*(?:\w[\w$]*)?$/,ty=/\^\s*(?:\w[\w$]*)?$/,ny=/^(?<owner>(?:(?:\w[\w$]*)::)*\w[\w$]*)\s*.$/,sy=(e,t)=>({label:e.name,kind:Jh.languages.CompletionItemKind.Variable,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:t?e.name:`zzzz_${e.name}`,insertText:e.name}),iy=/^\w[\w$]*$/,ay=(0,vt.Pi)((e=>{const{renameConceptState:t}=e,n=jt(),s=t.fileEditorState,i=t.concept.pureName,[a,r]=(0,Mt.useState)(i),o=(0,Mt.useRef)(null),c=Boolean(a.match(iy)),l=i===a,d=c?void 0:"Invalid concept name",u=()=>{(0,Oe.fl)(s.setConceptToRenameState(void 0)).catch(n.alertUnhandledError)},p=e=>{e.preventDefault(),l||s.renameConcept(a).catch(n.alertUnhandledError).finally((()=>u()))};return(0,C.jsx)(xt.Z,{open:!0,onClose:u,TransitionProps:{onEnter:()=>o.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Rename concept"}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,C.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,C.jsx)("input",{ref:o,className:"input input--dark",onChange:e=>r(e.target.value),value:a,spellCheck:!1}),d&&(0,C.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,C.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(d),onClick:p,children:"Rename"})]})]})})})),ry=(0,vt.Pi)((e=>{const{editorState:t}=e,n=(0,Mt.useRef)(void 0),s=(0,Mt.useRef)(void 0),i=(0,Mt.useRef)(void 0),a=(0,Mt.useRef)(null),[r,o]=(0,Mt.useState)(),[c,l]=(0,Mt.useState)(!1),d=cE(),u=jt();return(0,Mt.useEffect)((()=>{if(!r&&a.current){const e=a.current,n=Jh.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,language:fg.PURE,theme:ag.DEFAULT_DARK,wordSeparators:"`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",wordWrap:t.textEditorState.wrapText?"on":"off",readOnly:t.file.RO,contextmenu:!0,useShadowDOM:!1});n._codeEditorService.openCodeEditor=async()=>{const e=n.getPosition();e&&(0,Oe.fl)(d.executeNavigation(new Ng(t.filePath,e.lineNumber,e.column))).catch(u.alertUnhandledError)},n.updateOptions({gotoLocation:{multiple:"goto",multipleDefinitions:"goto",alternativeDefinitionCommand:"DUMMY"}}),n.onContextMenu((()=>l(!0))),n.addAction({id:jg.FIND_USAGES,label:"Find Usages",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();if(n){const e=new Ng(t.filePath,n.lineNumber,n.column);t.findConceptUsages(e)}}}),n.addAction({id:jg.REVEAL_CONCEPT_IN_TREE,label:"Reveal Concept",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();n&&d.revealConceptInTree(new Ng(t.filePath,n.lineNumber,n.column)).catch(u.alertUnhandledError)}}),n.addAction({id:jg.RENAME_CONCEPT,label:"Rename",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();if(n){if(!t.textEditorState.model.getWordAtPosition(n))return;const e=new Ng(t.filePath,n.lineNumber,n.column);(0,Oe.fl)(t.setConceptToRenameState(e)).catch(d.applicationStore.alertUnhandledError)}}}),n.onDidChangeModelContent((()=>{const e=n.getValue();e!==t.file.content&&t.clearError(),t.file.setContent(e)})),n.onDidChangeCursorPosition((()=>{t.textEditorState.notifyCursorObserver()})),n.onDidChangeCursorSelection((()=>{t.textEditorState.notifyCursorObserver()})),n.setModel(t.textEditorState.model),t.textEditorState.viewState&&n.restoreViewState(t.textEditorState.viewState),n.focus(),t.textEditorState.setEditor(n),o(n)}}),[d,u,t,r]),r&&(n.current?.dispose(),n.current=Jh.languages.registerDefinitionProvider(fg.PURE,{provideDefinition:(e,n)=>{const s=e.getLineContent(n.lineNumber),i=Jh.editor.tokenize(s,fg.PURE)[0];if(!i)return[];let a,r;for(let e=1;e<=i.length;++e){const t=e===i.length?s.length:U(i[e]).offset;if(t+1>n.column){a=U(i[e-1]),r={startLineNumber:n.lineNumber,startColumn:a.offset+1,endLineNumber:n.lineNumber,endColumn:t+1};break}}return a&&r&&jC(a.type,[Yh.TYPE,Yh.VARIABLE,Yh.PROPERTY,Yh.PARAMETER,Yh.IDENTIFIER])?[{uri:t.textEditorState.model.uri,range:r}]:[]}}),s.current?.dispose(),s.current=Jh.languages.registerCompletionItemProvider(fg.PURE,{triggerCharacters:["/","#",":",">",".","@","^","$"],provideCompletionItems:async(e,n,s)=>{let i=[];if(s.triggerKind===Jh.languages.CompletionTriggerKind.TriggerCharacter)switch(s.triggerCharacter){case"/":i=i.concat(WC());break;case"#":i=i.concat(((e,t,n)=>{const s=[],i=t.getWordUntilPosition(e),a={startLineNumber:e.lineNumber,startColumn:1,endLineNumber:e.lineNumber,endColumn:i.endColumn};var r;return r=t.getValueInRange(a).trim(),Boolean(r.match(/\s/))||n.forEach((e=>{s.push({label:{label:`${pa}${e.text}`,description:e.description},kind:Jh.languages.CompletionItemKind.Keyword,insertText:`${pa}${e.insertText}\n`,range:a,documentation:e.documentation?e.documentation.markdownText?{value:e.documentation.markdownText.value}:e.documentation.text:void 0})})),s})(n,e,[{text:d_.PURE,description:"(core Pure)",insertText:d_.PURE},{text:d_.MAPPING,description:"(dsl)",insertText:d_.MAPPING},{text:d_.CONNECTION,description:"(dsl)",insertText:d_.CONNECTION},{text:d_.RUNTIME,description:"(dsl)",insertText:d_.RUNTIME},{text:d_.RELATIONAL,description:"(external store)",insertText:d_.RELATIONAL},{text:HC,description:"(dsl)",insertText:zC}]));break;case":":i=i.concat(await(async(e,t,n)=>{const s=t.getLineContent(e.lineNumber).substring(0,e.column-1).match(JC);if(s?.groups?.incompletePath){const i=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(XC)),a=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(qC));let r=[];try{r=(await n.client.getSuggestionsForIncompletePath(s.groups.incompletePath.substring(0,s.groups.incompletePath.length-2),a?[_g.CLASS]:i?[_g.FUNCTION,_g.NATIVE_FUNCTION]:[])).map((e=>(0,ge.vB)(UC,e)))}catch{}return r.map((e=>a?KC(e):YC(e,{preferArrowFunctionForm:i})))}return[]})(n,e,d));break;case">":i=i.concat(await(async(e,t,n)=>{const s=QC(e,t);let i=[];try{i=(await n.client.getSuggestionsForIdentifier(s,[_g.FUNCTION,_g.NATIVE_FUNCTION])).map((e=>(0,ge.vB)(UC,e)))}catch{}return i.map((e=>YC(e,{preferArrowFunctionForm:!0})))})(n,e,d));break;case".":i=i.concat(await(async(e,t,n)=>{const s=t.getLineContent(e.lineNumber).substring(0,e.column-1).match(ny),i=QC(e,t);if(s?.groups?.owner){let e=[];try{e=(await n.client.getSuggestionsForAttribute(i,s.groups.owner)).map((e=>(0,ge.vB)(GC,e)))}catch{}return e.map((e=>(e=>{const t=e.pureType,n=t===_g.PROPERTY||t===_g.QUALIFIED_PROPERTY?`${e.pureName}(\${1:})`:e.pureName,s=t===_g.PROPERTY?Jh.languages.CompletionItemKind.Property:t===_g.QUALIFIED_PROPERTY?Jh.languages.CompletionItemKind.Method:t===_g.TAG?Jh.languages.CompletionItemKind.Constant:t===_g.STEREOTYPE?Jh.languages.CompletionItemKind.Value:t===_g.ENUM_VALUE?Jh.languages.CompletionItemKind.Enum:Jh.languages.CompletionItemKind.Value;return{label:{label:e.pureName,description:`${e.owner}.${e.pureName}`},kind:s,filterText:e.pureName,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:n}})(e)))}return[]})(n,e,d));break;case"^":i=i.concat(await(async(e,t,n)=>{const s=QC(e,t);let i=[];try{i=(await n.client.getSuggestionsForClass(s)).map((e=>(0,ge.vB)(VC,e)))}catch{}return i.map((e=>KC(e)))})(n,e,d));break;case"@":i=i.concat(await(async(e,t,n)=>{const s=QC(e,t);let i=[];try{i=(await n.client.getSuggestionsForClass(s)).map((e=>(0,ge.vB)(VC,e)))}catch{}return i.map((e=>(e=>({label:{label:e.pureName,description:e.pureId},kind:Jh.languages.CompletionItemKind.Class,filterText:e.pureName,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:e.pureName}))(e)))})(n,e,d));break;case"$":i=i.concat(await(async(e,t,n,s)=>{let i=[];try{i=(await s.client.getSuggestionsForVariable(n,e.lineNumber,e.column)).map((e=>(0,ge.vB)($C,e)))}catch{}const a=new Set;let r=!1;for(let n=e.lineNumber-1;n>Math.max(0,e.lineNumber-1-10)&&!r;--n){const s=t.getLineContent(n+1);(s.match(/^\s*function\s+/)||s.match(/^\s*###\w+/))&&(r=!0);const i=U(Jh.editor.tokenize(t.getLineContent(n+1),fg.PURE)[0]);i.forEach(((s,r)=>{(n!==e.lineNumber-1||s.offset<e.column)&&jC(s.type,[Yh.VARIABLE,Yh.PARAMETER],!0)&&a.add(t.getValueInRange({startLineNumber:n+1,startColumn:s.offset+1,endLineNumber:n+1,endColumn:r===i.length-1?Number.MAX_SAFE_INTEGER:U(i[r+1]).offset+1}))}))}const o=i.map((e=>e.name));return i.map((e=>sy(e,!0))).concat(Array.from(a).filter((e=>!o.includes(e))).map((e=>{const t=new $C;return t.name=e,t})).map((e=>sy(e,!1))))})(n,e,t.filePath,d))}return{suggestions:i}}}),i.current?.dispose(),i.current=Jh.languages.registerCompletionItemProvider(fg.PURE,{triggerCharacters:[],provideCompletionItems:async(e,t,n)=>{let s=[];return n.triggerKind===Jh.languages.CompletionTriggerKind.Invoke&&(s=s.concat(WC()),s=s.concat(((e,t,n)=>{const s=[],i=t.getWordUntilPosition(e),a=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),r=`${pa}${d_.PURE}\n${a}`.split("\n").filter((e=>e.startsWith(pa))),o=(e=>{if(e.startsWith(pa))return e.substring(3).split(" ")[0]})(r[r.length-1]??"");return o&&n(o).forEach((t=>{s.push({label:{label:t.text,description:t.description},kind:Jh.languages.CompletionItemKind.Snippet,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`${t.insertText}\n`,range:{startLineNumber:e.lineNumber,startColumn:i.startColumn,endLineNumber:e.lineNumber,endColumn:i.endColumn},documentation:t.documentation?t.documentation.markdownText?{value:t.documentation.markdownText.value}:t.documentation.text:void 0})})),s})(t,e,(e=>(e=>{switch(e){case d_.PURE:return[{text:c_.CLASS,description:"(blank)",insertText:"Class ${1:model::NewClass}\n// example of a constraint\n// [\n// SomeConstraint: true\n// ]\n{\n ${2:// example of a standard property\n // prop1: String[1];\n\n // example of a derived property\n // derivation1() {''\\}: String[1];}\n}"},{text:c_.CLASS,description:"with property",insertText:"Class ${1:model::NewClass}\n{\n ${2:prop1}: ${3:String[1]};\n}"},{text:c_.CLASS,description:"with inheritance",insertText:"Class ${1:model::NewClass} extends ${2:model::ParentClass}\n{\n ${3:// class content}\n}"},{text:c_.CLASS,description:"with constraint",insertText:"Class ${1:model::NewClass}\n[\n ${3:SomeConstraint: true}\n]\n{\n ${2:// class content}\n}"},{text:c_.PROFILE,insertText:"Profile ${1:model::NewProfile}\n{\n stereotypes: [${2:}];\n tags: [${3:}];\n}"},{text:c_.ENUMERATION,insertText:"Enum ${1:model::NewEnumeration}\n{\n ${2:VALUE_1,\n VALUE_2}\n}"},{text:c_.ASSOCIATION,insertText:"Association ${1:model::NewAssociation}\n{\n ${2:prop1}: ${3:model::Type1[1]};\n ${4:prop2}: ${5:model::Type2[1]};\n}"},{text:c_.FUNCTION,description:"(blank)",insertText:"function ${1:model::NewEnumeration}(${2:param1: String[1]}): ${3:String[1]}\n{\n ${4:''; // function content}\n}"},{text:c_.FUNCTION,insertText:"function ${1:model::NewEnumeration}(): String[1]\n{\n ''\n}"}];case d_.MAPPING:return[{text:c_.MAPPING,description:"(blank)",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:// mapping content}\n)"},{text:c_.MAPPING,description:"with model-to-model mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Pure\n {\n ~src ${3:model::SourceClass}\n // example of property mappings\n // prop1: $src.prop1\n }\n)"},{text:c_.MAPPING,description:"with relational mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Relational {\n ~mainTable ${3:[model::SomeDatabase]SomeTable}\n // example of property mappings\n // prop1: [model::SomeDatabase]SomeTable.col1,\n }\n)"},{text:c_.MAPPING,description:"with enumeration mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetEnumeration}: EnumerationMapping ${3:EnumerationMappingID}\n {\n // example of enum-value mapping\n // VAL_1: ['val1'],\n // VAL_2: ['val2', 'val_2']\n }\n)"}];case d_.RELATIONAL:return[{text:c_.DATABASE,description:"(blank)",insertText:"Database ${1:model::NewDatabase}\n(\n // example database schema\n // Schema SOME_SCHEMA\n // (\n // Table TABLE_1\n // (\n // COL_1 VARCHAR(200)\n // )\n // Table TABLE_2\n // (\n // COL_2 VARCHAR(200) PRIMARY_KEY\n // )\n // )\n\n // example database join\n // Join SomeJoin(SOME_SCHEMA.TABLE_1.COL_1 = SCHEMA1.TABLE_2.COL_2)\n\n ${2:// database content}\n)"}];case HC:return[{text:zC,description:"(blank)",insertText:"Diagram ${1:model::NewDiagram}(width=0.0, height=0.0)\n{\n // NOTE: it is recommended to use diagram visual editor\n // to edit diagram: double-click on the diagram in\n // the concept explorer tree to open the editor\n}"}];default:return[]}})(e)))),s=s.concat(((e,t,n=[])=>{const s=t.getWordUntilPosition(e);return[{text:"let",description:"new variable",insertText:"let ${1:} = ${2:};"},{text:"let",description:"new collection",insertText:"let ${1:} = [${2:}];"},{text:"cast",description:"type casting",insertText:"cast(@${1:model::SomeClass})"},{text:"if",description:"(conditional)",insertText:"if(${1:'true'}, | ${2:/* if true do this */}, | ${3:/* if false do this */})"},{text:"case",description:"(conditional)",insertText:"case(${1:}, ${2:'true'}, ${3:'false'})"},{text:"match",description:"(conditional)",insertText:"match([x:${1:String[1]}, ${2:''}])"},{text:"map",description:"(collection)",insertText:"map(x|${1:})"},{text:"filter",description:"(collection)",insertText:"filter(x|${1:})"},{text:"fold",description:"(collection)",insertText:"fold({a, b| ${1:$a + $b}}, ${2:0})"},{text:"filter",description:"(collection)",insertText:"filter(x|${1:})"},{text:"sort",description:"(collection)",insertText:"sort()"},{text:"in",description:"(collection)",insertText:"in()"},{text:"slice",description:"(collection)",insertText:"slice(${1:1},${2:2})"},{text:"removeDuplicates",description:"(collection)",insertText:"removeDuplicates()"},{text:"toOne",description:"(collection)",insertText:"toOne(${1:})"},{text:"toOneMany",description:"(collection)",insertText:"toOneMany(${1:})"},{text:"isEmpty",description:"(collection)",insertText:"isEmpty()"},{text:"endsWith",description:"(string)",insertText:"endsWith()"},{text:"startsWith",description:"(string)",insertText:"startsWith()"},...n].map((t=>({label:{label:t.text,description:t.description},kind:Jh.languages.CompletionItemKind.Snippet,insertTextRules:Jh.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:t.insertText,range:{startLineNumber:e.lineNumber,startColumn:s.startColumn,endLineNumber:e.lineNumber,endColumn:s.endColumn},documentation:t.documentation?t.documentation.markdownText?{value:t.documentation.markdownText.value}:t.documentation.text:void 0})))})(t,e,[{text:"print",description:"(io)",insertText:"print(${1:})"},{text:"println",description:"(io)",insertText:"println(${1:})"},{text:"NULL",description:"(nullish value)",insertText:"[]"}])),s=s.concat(await(async(e,t,n)=>{const s=QC(e,t),i=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(ey)),a=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(ty));let r=[];try{r=(await n.client.getSuggestionsForIdentifier(s,a?[_g.CLASS]:i?[_g.FUNCTION,_g.NATIVE_FUNCTION]:[])).map((e=>(0,ge.vB)(UC,e)))}catch{}return r.map((e=>a?KC(e):YC(e,{preferArrowFunctionForm:i})))})(t,e,d))),{suggestions:s}}})),PC(t),(0,Mt.useEffect)((()=>{if(c){if(document.querySelector(".file-editor .monaco-menu")){const e=["Peek"];Array.from(document.querySelectorAll(".file-editor .monaco-menu .action-label")).filter((t=>e.includes(t.innerHTML))).forEach((e=>{const t=e.parentElement?.parentElement;t&&(t.classList.add("disabled"),t.style.opacity="0.3",t.style.pointerEvents="none")}))}l(!1)}}),[c]),(0,Mt.useEffect)((()=>{r&&t.textEditorState.forcedCursorPosition&&(gg(r,t.textEditorState.forcedCursorPosition),t.textEditorState.setForcedCursorPosition(void 0))}),[r,t,t.textEditorState.forcedCursorPosition]),(0,Mt.useEffect)((()=>()=>{r&&(t.textEditorState.setViewState(r.saveViewState()??void 0),r.dispose(),n.current?.dispose(),s.current?.dispose(),i.current?.dispose())}),[t,r]),(0,C.jsxs)("div",{className:"panel editor-group file-editor",children:[(0,C.jsx)("div",{className:"panel__header file-editor__header",children:(0,C.jsxs)("div",{className:"file-editor__header__actions",children:[(0,C.jsx)("button",{className:(0,At.clsx)("file-editor__header__action",{"file-editor__header__action--active":t.textEditorState.wrapText}),tabIndex:-1,onClick:()=>t.textEditorState.setWrapText(!t.textEditorState.wrapText),title:"Toggle Text Wrap",children:(0,C.jsx)(Wn,{className:"file-editor__icon--text-wrap"})}),t.renameConceptState&&(0,C.jsx)(ay,{renameConceptState:t.renameConceptState}),t.showGoToLinePrompt&&(0,C.jsx)(MC,{fileEditorState:t})]})}),(0,C.jsx)("div",{className:"panel__content file-editor__content",children:(0,C.jsx)("div",{className:"code-editor__container",children:(0,C.jsx)("div",{className:"code-editor__body",ref:a})})})]})}));var oy=n(8533);const cy=e=>{const{open:t,className:n,children:s,menuProps:i,content:a,title:r,disabled:o,onClose:c,onOpen:l}=e,d=(0,Mt.useRef)(null),[u,p]=(0,Mt.useState)(null);return(0,Mt.useEffect)((()=>{void 0!==t&&(t&&!u&&d.current?p(d.current):!t&&u&&p(null))}),[u,t]),(0,C.jsxs)("button",{ref:d,className:n,disabled:o,onClick:e=>{e.stopPropagation(),e.preventDefault(),o||(u?(c?.(),p(null)):d.current&&(l?.(),p(d.current)))},tabIndex:-1,title:r,children:[s,(0,C.jsx)(Us,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:u,open:(void 0===t||Boolean(t))&&Boolean(u),BackdropProps:{invisible:!0},elevation:0,marginThreshold:0,disableRestoreFocus:!0,...i,children:a})]})},ly=(0,vt.Pi)((0,Mt.forwardRef)((function(e,t){const{diagramEditorState:n}=e,s=jt(),i=n.diagram,a=t,{width:r,height:o}=(0,Ys.NB)({refreshMode:"debounce",refreshRate:50,targetRef:a});(0,Mt.useEffect)((()=>{const e=new W_(a.current,i);n.setRenderer(e),n.setupRenderer(),e.render({initial:!0})}),[a,n,i]),(0,Mt.useEffect)((()=>{n.isDiagramRendererInitialized&&n.renderer.render({initial:!0})}),[n,n.isDiagramRendererInitialized]),(0,Mt.useEffect)((()=>{n.isDiagramRendererInitialized&&n.renderer.refresh()}),[n,r,o]);const c=(0,Mt.useCallback)(((e,t)=>{if(e instanceof Tg){const i=t.getClientOffset(),a=i?n.renderer.canvasCoordinateToModelCoordinate(n.renderer.eventCoordinateToCanvasCoordinate(new ch(i.x,i.y))):void 0;(0,Oe.fl)(n.addClassView(e.li_attr.pureId,a)).catch(s.alertUnhandledError)}}),[s,n]),[,l]=(0,oy.L)((()=>({accept:fC.CLASS,drop:(e,t)=>c(e,t)})),[c]);return l(a),(0,C.jsx)("div",{ref:a,className:(0,At.clsx)("diagram-canvas diagram-editor__canvas",n.diagramCursorClass),tabIndex:0})}))),dy=(0,vt.Pi)((e=>{const{diagramEditorState:t}=e,n=cE(),s=jt(),i=e=>()=>{t.renderer.zoomCenter(e/100)},a=t.renderer.selectedClasses.length<2;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align left",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.ALIGN_LEFT),children:(0,C.jsx)(gs,{className:"diagram-editor__icon--aligner"})}),(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align center",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.ALIGN_CENTER),children:(0,C.jsx)(ms,{className:"diagram-editor__icon--aligner"})}),(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align right",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.ALIGN_RIGHT),children:(0,C.jsx)(fs,{className:"diagram-editor__icon--aligner"})})]}),(0,C.jsx)("div",{className:"diagram-editor__header__group__separator"}),(0,C.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align top",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.ALIGN_TOP),children:(0,C.jsx)(us,{className:"diagram-editor__icon--aligner"})}),(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align middle",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.ALIGN_MIDDLE),children:(0,C.jsx)(ps,{className:"diagram-editor__icon--aligner"})}),(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align bottom",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.ALIGN_BOTTOM),children:(0,C.jsx)(hs,{className:"diagram-editor__icon--aligner"})})]}),(0,C.jsx)("div",{className:"diagram-editor__header__group__separator"}),(0,C.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Space horizontally",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.SPACE_HORIZONTALLY),children:(0,C.jsx)(_s,{className:"diagram-editor__icon--aligner"})}),(0,C.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Space vertically",disabled:a,tabIndex:-1,onClick:()=>t.renderer.align(V_.SPACE_VERTICALLY),children:(0,C.jsx)(Es,{className:"diagram-editor__icon--aligner"})})]}),(0,C.jsxs)(cy,{className:"diagram-editor__header__dropdown",title:"Zoom...",content:(0,C.jsxs)(Vs,{children:[(0,C.jsx)($s,{className:"diagram-editor__header__zoomer__dropdown__menu__item",onClick:()=>t.renderer.zoomToFit(),children:"Fit"}),(0,C.jsx)(Hs,{}),H_.map((e=>(0,C.jsxs)($s,{className:"diagram-editor__header__zoomer__dropdown__menu__item",onClick:i(e),children:[e,"%"]},e)))]}),menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:7},children:[(0,C.jsxs)("div",{className:"diagram-editor__header__dropdown__label diagram-editor__header__zoomer__dropdown__label",children:[Math.round(100*t.renderer.zoom),"%"]}),(0,C.jsx)("div",{className:"diagram-editor__header__dropdown__trigger diagram-editor__header__zoomer__dropdown__trigger",children:(0,C.jsx)(tn,{})})]}),(0,C.jsx)("div",{className:"diagram-editor__header__actions",children:(0,C.jsx)("button",{className:"diagram-editor__header__action",tabIndex:-1,onClick:()=>{(0,Oe.fl)(n.loadFile(t.filePath,new Ng(t.filePath,t.fileLine,t.fileColumn))).catch(s.alertUnhandledError)},children:(0,C.jsx)(Kn,{className:"diagram-editor__icon--go-to-file"})})})]})})),uy=(0,vt.Pi)((e=>{const{diagramEditorState:t}=e,n=t.renderer,s=(e,t)=>()=>n.changeMode(e,t);return(0,C.jsxs)("div",{className:"diagram-editor__tools",children:[(0,C.jsx)("button",{className:(0,At.clsx)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===U_.LAYOUT}),tabIndex:-1,onClick:s(U_.LAYOUT,G_.NONE),title:"View Tool (V)",children:(0,C.jsx)(Ss,{className:"diagram-editor__icon--layout"})}),(0,C.jsx)("button",{className:(0,At.clsx)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===U_.PAN}),tabIndex:-1,onClick:s(U_.PAN,G_.NONE),title:"Pan Tool (M)",children:(0,C.jsx)(Ns,{className:"diagram-editor__icon--pan"})}),(0,C.jsx)("button",{className:(0,At.clsx)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===U_.ZOOM_IN}),tabIndex:-1,title:"Zoom In (Z)",onClick:s(U_.ZOOM_IN,G_.NONE),children:(0,C.jsx)(xs,{className:"diagram-editor__icon--zoom-in"})}),(0,C.jsx)("button",{className:(0,At.clsx)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===U_.ZOOM_OUT}),tabIndex:-1,title:"Zoom Out (Z)",onClick:s(U_.ZOOM_OUT,G_.NONE),children:(0,C.jsx)(As,{className:"diagram-editor__icon--zoom-out"})})]})})),py=(0,vt.Pi)((e=>{const{diagramEditorState:t}=e,n=(0,Mt.useRef)(null);return PC(t),(0,C.jsxs)("div",{className:"diagram-editor",children:[(0,C.jsx)("div",{className:"diagram-editor__header",children:t.isDiagramRendererInitialized&&(0,C.jsx)(dy,{diagramEditorState:t})}),(0,C.jsx)("div",{className:"diagram-editor__content",children:(0,C.jsxs)("div",{className:"diagram-editor__stage",children:[t.isDiagramRendererInitialized&&(0,C.jsx)(uy,{diagramEditorState:t}),(0,C.jsx)(ly,{diagramEditorState:t,ref:n})]})})]})}));var hy=n(98533),gy=n(84153);(0,vt.Pi)((0,Mt.forwardRef)((function(e,t){const{children:n,placeholder:s,showPlaceholder:i,className:a}=e;return(0,C.jsxs)("div",{ref:t,className:(0,At.clsx)("dnd__entry__container",a),children:[i&&(0,C.jsx)("div",{className:"dnd__entry__placeholder",children:s?(0,C.jsx)(C.Fragment,{children:s}):(0,C.jsx)("div",{className:"dnd__entry__placeholder__content"})}),(0,C.jsx)(C.Fragment,{children:n})]})})));const my=e=>{const{children:t,label:n,isDragOver:s,isDroppable:i,className:a}=e;return s||i?(0,C.jsx)("div",{className:(0,At.clsx)(["dnd__entry-dropzone__placeholder",a,{"dnd__entry-dropzone__placeholder--active":s,"dnd__entry-dropzone__placeholder--droppable":i}]),children:(0,C.jsx)("div",{className:"dnd__entry-dropzone__placeholder__content",children:(0,C.jsx)("div",{className:"dnd__entry-dropzone__placeholder__label",children:n??""})})}):(0,C.jsx)(C.Fragment,{children:t})};function fy(e){const{labelGetter:t,types:n}=e,{itemType:s,item:i,isDragging:a,currentPosition:r}=(0,hy.f)((e=>({itemType:e.getItemType(),item:e.getItem(),isDragging:e.isDragging(),currentPosition:e.getClientOffset()})));return a&&i&&s&&n.includes(s.toString())?(0,C.jsx)("div",{className:"dnd__drag-preview-layer",children:(0,C.jsx)("div",{className:"dnd__drag-preview-layer__content",style:r?{transform:`translate(${r.x/10+2}rem, ${r.y/10+1}rem)`}:{display:"none"},children:t(i)})}):null}const _y=e=>{if(Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let t;e.stopPropagation(),t=0===e.deltaY?e.deltaY:e.deltaY<0?-Math.abs(e.deltaY):Math.abs(e.deltaY),e.currentTarget.scrollBy(t,0)},Ey=(0,vt.Pi)((e=>{const{tabState:t,managerTabState:n}=e;return(0,C.jsxs)(Vs,{children:[(0,C.jsx)($s,{onClick:()=>n.closeTab(t),children:"Close"}),(0,C.jsx)($s,{disabled:n.tabs.length<2,onClick:()=>n.closeAllOtherTabs(t),children:"Close Others"}),(0,C.jsx)($s,{onClick:()=>n.closeAllTabs(),children:"Close All"})]})})),Cy=(0,vt.Pi)((e=>{const t=(0,Mt.useRef)(null),{tabManagerState:n,tabState:s,tabRenderer:i}=e,a=(0,Mt.useCallback)(((e,i)=>{const a=e.tab,r=s,o=n.tabs.findIndex((e=>e===a)),c=n.tabs.findIndex((e=>e===r)),l=t.current?.getBoundingClientRect(),d=((l?.left??0)-(l?.right??0))/2,u=(i.getClientOffset()?.x??0)-(l?.right??0);o<c&&u<d||o>c&&u>d||n.swapTabs(a,r)}),[n,s]),[{isBeingDraggedEditorPanel:r},o]=(0,oy.L)((()=>({accept:[n.dndType],hover:(e,t)=>a(e,t),collect:e=>({isBeingDraggedEditorPanel:e.getItem()?.tab})})),[a]),c=s===r,[,l,d]=(0,YE.c)((()=>({type:n.dndType,item:()=>({tab:s})})),[s,n]);return l(o(t)),(e=>{(0,Mt.useEffect)((()=>{e((0,gy.r)())}),[e])})(d),(0,C.jsx)("div",{ref:t,"data-testid":"tab-manager__tab",className:(0,At.clsx)("tab-manager__tab",{"tab-manager__tab--active":s===n.currentTab,"tab-manager__tab--dragged":c}),onMouseUp:(u=s,e=>{1===e.nativeEvent.button&&n.closeTab(u)}),children:(0,C.jsx)(my,{isDragOver:!1,className:"tab-manager__tab__dnd__placeholder",children:(0,C.jsxs)(Gs,{content:(0,C.jsx)(Ey,{tabState:s,managerTabState:n}),className:"tab-manager__tab__content",children:[(0,C.jsx)("button",{className:"tab-manager__tab__label",tabIndex:-1,onClick:()=>n.openTab(s),title:s.description,children:i?.(s)??s.label}),(0,C.jsx)("button",{className:"tab-manager__tab__close-btn",onClick:()=>n.closeTab(s),tabIndex:-1,title:"Close",children:(0,C.jsx)(qt,{})})]})})});var u})),yy=(0,vt.Pi)((e=>{const{managerTabState:t}=e;return(0,C.jsx)(cy,{className:"tab-manager__menu__toggler",title:"Show All Tabs",content:(0,C.jsx)(Vs,{className:"tab-manager__menu",children:t.tabs.map((e=>(0,C.jsxs)($s,{className:(0,At.clsx)("tab-manager__menu__item",{"tab-manager__menu__item--active":e===t.currentTab}),onClick:()=>t.openTab(e),children:[(0,C.jsx)("div",{className:"tab-manager__menu__item__label",children:e.label}),(0,C.jsx)("div",{className:"tab-manager__menu__item__close-btn",onClick:n=>{n.stopPropagation(),t.closeTab(e)},tabIndex:-1,title:"Close",children:(0,C.jsx)(qt,{})})]},e.uuid)))}),menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},children:(0,C.jsx)(ss,{})})})),by=(0,vt.Pi)((e=>{const{tabManagerState:t,tabRenderer:n}=e;return(0,C.jsxs)("div",{className:"tab-manager",children:[(0,C.jsxs)("div",{className:"tab-manager__content",onWheel:_y,children:[t.tabs.map((e=>(0,C.jsx)(Cy,{tabState:e,tabManagerState:t,tabRenderer:n},e.uuid))),(0,C.jsx)(fy,{labelGetter:e=>e.tab.label,types:[t.dndType]})]}),(0,C.jsx)(yy,{managerTabState:t})]})})),Ty=()=>{const[e,t]=(0,Mt.useState)(!1),{ref:n,width:s,height:i}=(0,Ys.NB)();return(0,Mt.useEffect)((()=>{t((s??0)>300&&(i??0)>150)}),[s,i]),(0,C.jsx)("div",{ref:n,className:"editor-group__splash-screen",children:(0,C.jsxs)("div",{className:(0,At.clsx)("editor-group__splash-screen__content",{"editor-group__splash-screen__content--hidden":!e}),children:[(0,C.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,C.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Run the go() function"}),(0,C.jsx)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:(0,C.jsx)("div",{className:"hotkey__key",children:"F9"})})]}),(0,C.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,C.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Run the full test suite"}),(0,C.jsx)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:(0,C.jsx)("div",{className:"hotkey__key",children:"F10"})})]}),(0,C.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,C.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Search for a file"}),(0,C.jsxs)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:[(0,C.jsx)("div",{className:"hotkey__key",children:"Ctrl"}),(0,C.jsx)("div",{className:"hotkey__plus",children:(0,C.jsx)(Qt,{})}),(0,C.jsx)("div",{className:"hotkey__key",children:"P"})]})]})]})})},vy=(0,vt.Pi)((()=>{const e=cE(),t=e.tabManagerState.currentTab;return t?(0,C.jsxs)("div",{className:"panel editor-group",children:[(0,C.jsxs)("div",{className:"panel__header editor-group__header",children:[(0,C.jsx)("div",{className:"editor-group__header__tabs",children:(0,C.jsx)(by,{tabManagerState:e.tabManagerState,tabRenderer:t=>{if(t instanceof Hg){const n=e.tabManagerState.tabs.filter((e=>e instanceof Hg&&e.fileName===t.fileName)).length>1;return(0,C.jsxs)("div",{className:"editor-group__header__tab",children:[(0,C.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,C.jsx)(Rn,{className:"editor-group__header__tab__icon--file"})}),(0,C.jsx)("div",{className:"editor-group__header__tab__label",children:t.fileName}),n&&(0,C.jsx)("div",{className:"editor-group__header__tab__path",children:t.filePath}),t.file.RO&&(0,C.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,C.jsx)(Xt,{className:"editor-group__header__tab__icon--readonly"})})]})}if(t instanceof K_){const n=e.tabManagerState.tabs.filter((e=>e instanceof K_&&e.diagramName===t.diagramName)).length>1;return(0,C.jsxs)("div",{className:"editor-group__header__tab",children:[(0,C.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,C.jsx)(rC,{})}),(0,C.jsx)("div",{className:"editor-group__header__tab__label",children:t.diagramName}),n&&(0,C.jsx)("div",{className:"editor-group__header__tab__path",children:t.diagramPath})]})}return t.label}})}),(0,C.jsx)("div",{className:"panel__header__actions"})]}),(0,C.jsx)("div",{className:"panel__content editor-group__content",children:t instanceof Hg?t.textEditorState.language===fg.PURE?(0,C.jsx)(ry,{editorState:t}):(0,C.jsx)(BC,{editorState:t}):t instanceof K_?(0,C.jsx)(py,{diagramEditorState:t}):null},t.uuid)]}):(0,C.jsx)(Ty,{})}));var Sy=n(50166),Ny=n(97493);Ny.Select.createFilter;const xy=e=>{const{options:t,children:n,getValue:s,selectProps:i}=e,a=i.optionCustomization?.rowHeight??3.5*parseInt(getComputedStyle(document.documentElement).fontSize,10),[r]=s(),o=t.indexOf(r)*a,c=n.length?n.findIndex((e=>e.props.isFocused)):0,l=(0,Mt.useRef)(null);return(0,Mt.useEffect)((()=>{l.current?.scrollToItem(c)}),[c]),n.length?(0,C.jsx)(Sy.t7,{className:i.darkMode?"scrollbar--light selector-menu--dark":"",ref:l,width:"100%",height:Math.min(n.length,6)*a,itemCount:n.length,itemSize:a,initialScrollOffset:o,children:({index:e,style:t})=>(0,C.jsx)("div",{style:t,className:"selector-input__option-wrapper",children:n[e]})}):(0,C.jsx)("div",{className:"selector-menu--no-match "+(i.darkMode?"selector-menu--dark":""),children:i.noMatchMessage??"No match found"})},Ay=e=>{const{children:t,selectProps:n}=e;return(0,C.jsx)(Ny.SelectComponents.Option,{...e,className:(0,At.clsx)(n.darkMode?{"selector-input--dark__option":!0,"selector-input--dark__option--is-focused":e.isFocused,"selector-input--dark__option--is-selected":e.isSelected}:{"selector-input__option":!0,"selector-input__option--is-focused":e.isFocused,"selector-input__option--is-selected":e.isSelected},{"selector-input__option--custom":Boolean(n.optionCustomization)}),children:t})},Iy="selector-input",Oy="selector-input--dark",wy=()=>(0,C.jsx)("div",{className:`${Iy}__indicator ${Iy}__loading-indicator ${Oy}__loading-indicator`,children:(0,C.jsx)(yn,{})}),Ry=()=>(0,C.jsx)("div",{className:`${Iy}__indicator ${Iy}__dropdown-indicator`,children:(0,C.jsx)(tn,{})}),ky=e=>{const{innerProps:{ref:t,...n}}=e;return(0,C.jsx)("div",{...n,ref:t,children:(0,C.jsx)("div",{className:`${Iy}__indicator ${Iy}__clear-indicator`,children:(0,C.jsx)(qt,{})})})},Ly=e=>(0,C.jsx)(Ny.Select.components.Input,{...e,isHidden:!1}),Fy=(0,Mt.forwardRef)((function(e,t){const{allowCreating:n,noMatchMessage:s,disabled:i,components:a,className:r,darkMode:o,hasError:c,...l}=e,d=n?Ny.CreatableSelect.default:Ny.Select.default,u=o?Oy:Iy;return(0,C.jsx)(d,{styles:{menuPortal:e=>({...e,zIndex:9999})},menuPortalTarget:document.body,ref:t,isDisabled:Boolean(i),className:(0,At.clsx)(u,r,{"selector-input--has-error":c,"selector-input--custom":Boolean(e.optionCustomization)}),classNamePrefix:u,components:{Option:Ay,ClearIndicator:ky,DropdownIndicator:Ry,LoadingIndicator:wy,MenuList:xy,Input:Ly,...a},...l,darkMode:o,noMatchMessage:s})})),Py=(e,t)=>e.label.localeCompare(t.label),Dy=(0,vt.Pi)((()=>{const e=cE(),t=jt(),n=e.fileSearchCommandLoadState,s=e.fileSearchCommandState,i=(0,Mt.useRef)(null),a=(0,Mt.useMemo)((()=>(0,ii.Z)((()=>{(0,Oe.fl)(e.searchFile()).catch(t.alertUnhandledError)}),500)),[t,e]),r=()=>e.setOpenFileSearchCommand(!1);return(0,C.jsx)(xt.Z,{open:e.openFileSearchCommand,onClose:r,TransitionProps:{onEnter:()=>{i.current?.focus()}},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,C.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,C.jsx)("div",{className:"modal__title",children:"Open file"}),(0,C.jsxs)("div",{className:"command-modal__content",children:[(0,C.jsx)(Fy,{ref:i,className:"command-modal__content__input",options:e.fileSearchCommandResults.map((e=>({label:e,value:e}))).sort(Py),onChange:n=>{n?.value&&(r(),s.reset(),(0,Oe.fl)(e.loadFile(n.value)).catch(t.alertUnhandledError))},onInputChange:e=>{s.setText(e),a.cancel(),a()},placeholder:"Enter file name or path",escapeClearsValue:!0,darkMode:!0,isLoading:n.isInProgress}),(0,C.jsx)("button",{className:(0,At.clsx)("command-modal__content__config-btn btn--sm",{"command-modal__content__config-btn--toggled":s.isRegExp}),title:`Use Regular Expression (${s.isRegExp?"on":"off"})`,onClick:()=>s.setRegExp(!s.isRegExp),children:(0,C.jsx)(Jn,{})})]})]})})}));var My;!function(e){e.MODE="mode",e.FAST_COMPILE="fastCompile"}(My||(My={}));const By=(jy=(0,vt.Pi)((()=>{const e=cE(),t=jt(),{ref:n,width:s,height:i}=(0,Ys.NB)(),a=xE(0===e.sideBarDisplayState.size,{onStopResize:t=>e.sideBarDisplayState.setSize(t.domElement.getBoundingClientRect().width),size:e.sideBarDisplayState.size}),r=xE(0===e.panelGroupDisplayState.size,{onStopResize:t=>e.panelGroupDisplayState.setSize(t.domElement.getBoundingClientRect().height),size:e.panelGroupDisplayState.size}),o=xE(e.panelGroupDisplayState.isMaximized);return(0,Mt.useEffect)((()=>{n.current&&e.panelGroupDisplayState.setMaxSize(n.current.offsetHeight)}),[e,n,i,s]),(0,Mt.useEffect)((()=>()=>{e.cleanUp()}),[e]),(0,Mt.useEffect)((()=>{(0,Oe.fl)(e.initialize(!1,void 0,t.navigationService.navigator.getCurrentLocationParameterValue(My.MODE),t.navigationService.navigator.getCurrentLocationParameterValue(My.FAST_COMPILE))).catch(t.alertUnhandledError)}),[e,t]),(0,Mt.useEffect)((()=>(t.navigationService.navigator.blockNavigation([()=>!0],void 0,(()=>t.notificationService.notifyWarning("Navigation from the editor is blocked"))),()=>{t.navigationService.navigator.unblockNavigation()})),[e,t]),PC(e),(0,C.jsxs)("div",{className:"ide",children:[(0,C.jsxs)("div",{className:"ide__body",children:[(0,C.jsx)(kC,{}),(0,C.jsx)("div",{className:"ide__content-container",ref:n,children:(0,C.jsx)("div",{className:"ide__content",children:(0,C.jsxs)(SE,{orientation:"vertical",children:[(0,C.jsx)(AE,{...a.collapsiblePanel,direction:1,children:(0,C.jsx)(wC,{})}),(0,C.jsx)(IE,{}),(0,C.jsx)(AE,{...a.remainingPanel,minSize:300,children:(0,C.jsxs)(SE,{orientation:"horizontal",children:[(0,C.jsx)(AE,{...o.collapsiblePanel,...0===e.panelGroupDisplayState.size?r.remainingPanel:{},children:(0,C.jsx)(vy,{})}),(0,C.jsx)(IE,{children:(0,C.jsx)(OE,{color:e.panelGroupDisplayState.isMaximized?"transparent":"var(--color-dark-grey-250)"})}),(0,C.jsx)(AE,{...r.collapsiblePanel,...e.panelGroupDisplayState.isMaximized?o.remainingPanel:{},direction:-1,children:(0,C.jsx)(KE,{})})]})})]})})})]}),(0,C.jsx)(FC,{}),(0,C.jsx)(Dy,{})]})})),function(){return(0,C.jsx)(oE,{children:(0,C.jsx)(jy,{})})});var jy;const Uy=(0,vt.Pi)((e=>{const{children:t}=e,n=U((0,Mt.useContext)(Uh),"Can't find application platform in context"),s=jt();return(0,Mt.useEffect)((()=>{s.initialize(n).catch(s.alertUnhandledError)}),[s,n]),s.initState.hasSucceeded?(0,C.jsx)(gi,{children:t}):(0,C.jsx)(C.Fragment,{})}));class Gy{applicationStore;pluginManager;constructor(e){this.applicationStore=e,this.pluginManager=e.pluginManager}}const Vy=(0,Mt.createContext)(void 0),$y=({children:e})=>{const t=jt(),n=(0,vt.fv)((()=>new Gy(t)));return(0,C.jsx)(Vy.Provider,{value:n,children:e})},Hy=({children:e})=>(0,C.jsx)(Uy,{children:(0,C.jsx)($y,{children:e})}),zy=e=>{const{baseUrl:t}=e;return(0,C.jsx)(Vh,{baseUrl:t,children:(0,C.jsx)(Hy,{children:(0,C.jsx)(By,{})})})},Wy=JSON.parse('{"i8":"8.0.46","Rw":{"p":"@finos/legend-application-pure-ide-plugin-core"}}');class Ky extends Yi{_$nominalTypeBrand;install(e){e.registerApplicationPlugin(this)}}const Yy={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>))")}}};class Jy extends Ky{static NAME=Wy.Rw.p;constructor(){super(Jy.NAME,Wy.i8)}getExtraApplicationSetups(){return[async e=>{await(async e=>{const t=`Monospaced font '${Ze}' has not been loaded properly, code editor might not display properly`;await Promise.all([400,700].map((e=>document.fonts.load(`${e} 1em ${Ze}`)))).then((()=>{document.fonts.check(`1em ${Ze}`)?Jh.editor.remeasureFonts():e.logService.error(u.create(he.APPLICATION_SETUP__FAILURE),t)})).catch((()=>e.logService.error(u.create(he.APPLICATION_SETUP__FAILURE),t)));const n="legend.code-editor.override-default-keybinding";Jh.editor.registerCommand(n,((t,...n)=>{e.keyboardShortcutsService.dispatch(n[0])}));const s=[[Jh.KeyCode.F1,"F1"],[Jh.KeyCode.F8,"F8"],[Jh.KeyCode.F9,"F9"],[Jh.KeyMod.WinCtrl|Jh.KeyCode.KeyG,"Control+KeyG"],[Jh.KeyMod.WinCtrl|Jh.KeyCode.KeyB,"Control+KeyB"],[Jh.KeyMod.WinCtrl|Jh.KeyCode.KeyO,"Control+KeyO"],[Jh.KeyMod.WinCtrl|Jh.KeyCode.KeyD,"Control+KeyD"],[Jh.KeyMod.WinCtrl|Jh.KeyCode.KeyP,"Control+KeyP"],[Jh.KeyMod.Shift|Jh.KeyCode.F10,"Shift+F10"],[Jh.KeyMod.WinCtrl|Jh.KeyCode.F2,"Control+F2"],[Jh.KeyMod.WinCtrl|Jh.KeyCode.F12,"Control+F12"]];Jh.editor.addKeybindingRules(s.map((([e,t])=>({keybinding:e,command:n,commandArgs:t})))),Jh.editor.defineTheme(ag.DEFAULT_DARK,rg),Jh.editor.defineTheme(ag.SOLARIZED_DARK,og),Jh.editor.defineTheme(ag.GITHUB_DARK,cg),Jh.editor.defineTheme(ag.GITHUB_DARK_DIMMED,lg),Jh.editor.defineTheme(ag.MATERIAL_DEFAULT,dg),Jh.editor.defineTheme(ag.MATERIAL_DARKER,ug),Jh.editor.defineTheme(ag.ONE_DARK_PRO,pg),Jh.editor.defineTheme(ag.ONE_DARK_PRO_DARKER,hg)})(e),function(e){var t;Jh.languages.register({id:fg.PURE}),Jh.languages.setLanguageConfiguration(fg.PURE,Yy),Jh.languages.setMonarchTokensProvider(fg.PURE,(t=e?.extraKeywords??[],{defaultToken:"invalid",tokenPostfix:".pure",keywords:[...t,"Schema","Table","Join","View","primaryKey","groupBy","mainTable","let","extends","true","false","projects",c_.CLASS,c_.ASSOCIATION,c_.ENUMERATION,c_.MEASURE,c_.PROFILE,c_.FUNCTION,c_.MAPPING,c_.RUNTIME,c_.CONNECTION,c_.FILE_GENERATION,c_.GENERATION_SPECIFICATION,c_.DATA_ELEMENT,l_.JSON_MODEL_CONNECTION,l_.MODEL_CHAIN_CONNECTION,l_.XML_MODEL_CONNECTION,"include","EnumerationMapping","Pure","AssociationMapping","XStore","AggregationAware",c_.SERVICE,c_.FLAT_DATA,c_.DATABASE,l_.FLAT_DATA_CONNECTION,l_.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]+/,Yh.PARSER],[/(@identifier)/,{cases:{"@languageStructs":Yh.LANGUAGE_STRUCT,"@keywords":`${Yh.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]+\\$)))_":Yh.TYPE,"@default":Yh.IDENTIFIER}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":Yh.OPERATOR,"@default":Yh.IDENTIFIER}}],{include:"@number"},[/[;,.]/,Yh.DELIMITER],[/'([^'\\]|\\.)*$/,`${Yh.STRING}.invalid`],[/'/,Yh.STRING,"@string"],{include:"@characters"}],pure:[[/(@package\*)/,[Yh.PACKAGE]],[/(@package?)(@identifier)(@generics?)(\s*)(@multiplicity)/,[Yh.PACKAGE,Yh.TYPE,Yh.GENERICS,Yh.WHITESPACE,Yh.MULTIPLICITY]],[/(@package)(@identifier)(@generics?)/,[Yh.PACKAGE,Yh.TYPE,Yh.GENERICS]],[/([@^])(\s*)(@package?)(@identifier)(@generics?)(@multiplicity?)/,[`${Yh.TYPE}.operator`,Yh.WHITESPACE,Yh.PACKAGE,Yh.TYPE,Yh.GENERICS,Yh.MULTIPLICITY]],[/(\.\s*)(@identifier)/,[Yh.DELIMITER,Yh.PROPERTY]],[/(@identifier)(\s*=)/,[Yh.PROPERTY,Yh.OPERATOR]],[/(@identifier)(\.)(@identifier)/,[Yh.TYPE,Yh.OPERATOR,Yh.PROPERTY]],[/(@identifier)(\s*:)/,[Yh.PARAMETER,Yh.OPERATOR]],[/(let)(\s+)(@identifier)(\s*=)/,[Yh.KEYWORD,Yh.WHITESPACE,Yh.VARIABLE,Yh.OPERATOR]],[/(\$@identifier)/,[`${Yh.VARIABLE}.reference`]]],date:[[/(%latest)/,[`${Yh.DATE}.latest`]],[/(@date)/,[Yh.DATE]],[/(@time)/,[`${Yh.DATE}.time`]]],color:[[/(#[0-9a-fA-F]{6})/,[Yh.COLOR]]],number:[[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,`${Yh.NUMBER}.float`],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,`${Yh.NUMBER}.float`],[/0[xX](@hexdigits)[Ll]?/,`${Yh.NUMBER}.hex`],[/0(@octaldigits)[Ll]?/,`${Yh.NUMBER}.octal`],[/0[bB](@binarydigits)[Ll]?/,`${Yh.NUMBER}.binary`],[/(@digits)[fFdD]/,`${Yh.NUMBER}.float`],[/(@digits)[lL]?/,Yh.NUMBER]],whitespace:[[/[ \t\r\n]+/,Yh.WHITESPACE],[/\/\*\*(?!\/)/,`${Yh.COMMENT}.doc`,"@doc"],[/\/\*/,Yh.COMMENT,"@comment"],[/\/\/.*$/,Yh.COMMENT]],comment:[[/[^/*]+/,Yh.COMMENT],[/\*\//,Yh.COMMENT,"@pop"],[/[/*]/,Yh.COMMENT]],doc:[[/[^/*]+/,`${Yh.COMMENT}.doc`],[/\/\*/,`${Yh.COMMENT}.doc.invalid`],[/\*\//,`${Yh.COMMENT}.doc`,"@pop"],[/[/*]/,`${Yh.COMMENT}.doc`]],string:[[/[^\\']+/,Yh.STRING],[/@escapes/,`${Yh.STRING}.escape`],[/\\./,`${Yh.STRING}.escape.invalid`],[/'/,Yh.STRING,"@pop"]],characters:[[/'[^\\']'/,Yh.STRING],[/(')(@escapes)(')/,[Yh.STRING,`${Yh.STRING}.escape`,Yh.STRING]],[/'/,`${Yh.STRING}.invalid`]]}}))}({extraKeywords:[zC]})}]}getExtraKeyedCommandConfigEntries(){return[Dg,Ug,Bg].flatMap((e=>{return t=e,Object.entries(t).map((e=>({key:e[0],content:e[1]})));var t}))}}class Xy extends zi{static create(){const e=new Xy(Qi.create());return e.withBasePlugins([new Ji,new Jy]),e.withBasePresets([new Lh]),e}async configureApplication(e){return new qi(e)}async loadApplication(e){(0,y.s)((()=>{let e=document.getElementsByTagName(Wi).length?document.getElementsByTagName(Wi)[0]:void 0;return e||(e=document.createElement(Wi),document.body.appendChild(e)),e.setAttribute("style","height: 100%; width: 100%; display: block"),e})()).render((0,C.jsx)(Ut,{store:e,children:(0,C.jsx)(zy,{baseUrl:this.baseAddress})}))}}class qy{static getPresetCollection(){return[]}static getPluginCollection(){return[new E]}static run(e){Xy.create().setup({baseAddress:e}).withPresets(qy.getPresetCollection()).withPlugins(qy.getPluginCollection()).start().catch((e=>{throw e}))}}qy.run("/ide/")},97493:(e,t,n)=>{const s=n(54319),i=n(31776);e.exports={CreatableSelect:s,Select:i,SelectComponents:i.components}},44524:(e,t,n)=>{const s=n(18978),i=n(1553),a=n(65186),r=n(49385),o=n(70563),c=n(16636),l=n(91914),d=n(8799),u=n(77245),p=n(30924),h=n(34543),g=n(75100),m=n(58920),f=n(52742);e.exports={FA:s,GI:i,MD:a,VSC:r,GO:o,SI:c,IO5:l,BS:d,BI:u,CG:p,FI:h,RI:g,TB:m,HI:f}},81931:(e,t,n)=>{const s=n(71659);e.exports={Fuse:s}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=a,o.amdO={},e=[],o.O=(t,n,s,i)=>{if(!n){var a=1/0;for(d=0;d<e.length;d++){for(var[n,s,i]=e[d],r=!0,c=0;c<n.length;c++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(r=!1,i<a&&(a=i));if(r){e.splice(d--,1);var l=s();void 0!==l&&(t=l)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[n,s,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,s){if(1&s&&(e=this(e)),8&s)return e;if("object"==typeof e&&e){if(4&s&&e.__esModule)return e;if(16&s&&"function"==typeof e.then)return e}var i=Object.create(null);o.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var r=2&s&&e;"object"==typeof r&&!~t.indexOf(r);r=n(r))Object.getOwnPropertyNames(r).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"static/"+e+"."+{14:"6a7e96d2",135:"3b62eae4",246:"63a82c7f",309:"ca0f7cf5",399:"7ad47fd9",471:"bde04e4b",947:"50215a8f"}[e]+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s={},i="@finos/legend-application-pure-ide-deployment:",o.l=(e,t,n,a)=>{if(s[e])s[e].push(t);else{var r,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==i+n){r=u;break}}r||(c=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",i+n),r.src=e),s[e]=[t];var p=(t,n)=>{r.onerror=r.onload=null,clearTimeout(h);var i=s[e];if(delete s[e],r.parentNode&&r.parentNode.removeChild(r),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=p.bind(null,r.onerror),r.onload=p.bind(null,r.onload),c&&document.head.appendChild(r)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/ide/",(()=>{var e={826:0};o.f.j=(t,n)=>{var s=o.o(e,t)?e[t]:void 0;if(0!==s)if(s)n.push(s[2]);else{var i=new Promise(((n,i)=>s=e[t]=[n,i]));n.push(s[2]=i);var a=o.p+o.u(t),r=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;r.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",r.name="ChunkLoadError",r.type=i,r.request=a,s[1](r)}}),"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var s,i,[a,r,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(s in r)o.o(r,s)&&(o.m[s]=r[s]);if(c)var d=c(o)}for(t&&t(n);l<a.length;l++)i=a[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(d)},n=globalThis.webpackChunk_finos_legend_application_pure_ide_deployment=globalThis.webpackChunk_finos_legend_application_pure_ide_deployment||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c=o.O(void 0,[736],(()=>o(31862)));c=o.O(c)})();
|
2
|
+
//# sourceMappingURL=index.b23a8708.js.map
|