diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..7bd4396fe --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build and test + +on: + push: + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Java setup + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + cache: 'maven' + - name: Build with maven + run: | + ./mvnw -U clean install -DskipTests + ./mvnw -pl :klab.ogc test -Dtest="*STAC*" diff --git a/.gitignore b/.gitignore index 9ec2550cd..f7534bb59 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ target /workspace/ **/*.xtendbin **/.temp-* -**/*._trace \ No newline at end of file +**/*._trace +.mvn/wrapper/maven-wrapper.jar \ No newline at end of file diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 000000000..5f115e1df --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1,2 @@ +--batch-mode +--no-transfer-progress diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 000000000..eacdc9ed1 --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip +wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar diff --git a/Jenkinsfile b/Jenkinsfile index dfe0b2099..43c7a58d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ def kmodelers = [ ] pipeline { - agent { label "maven-3-9-5-eclipse-temurin-17"} + agent { label "klab-agent-jdk17"} options { skipDefaultCheckout(true) } environment { VERSION_DATE = sh( @@ -49,7 +49,7 @@ pipeline { env.SNAPSHOT = sh( returnStdout: true, - script: 'mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate ' + + script: './mvnw org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate ' + '-Dexpression=project.version -q -DforceStdout ' + '--batch-mode -U -e -Dsurefire.useFile=false' ).trim() @@ -88,8 +88,19 @@ pipeline { stage('Maven install with jib') { steps { withCredentials([usernamePassword(credentialsId: "${env.REGISTRY_CREDENTIALS}", passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME')]) { - sh 'mvn -ntp -U clean install -DskipTests jib:build -Djib.httpTimeout=60000' - sh 'mvn -ntp -pl :klab.ogc test -Dtest="*STAC*"' + sh './mvnw -U clean install -DskipTests jib:build -Djib.httpTimeout=60000' + sh './mvnw -pl :klab.ogc test -Dtest="*STAC*"' + } + } + } + + stage('Maven deploy') { + when { + anyOf { branch 'develop'; branch 'master' } + } + steps { + configFileProvider([configFile(fileId: '1f5f24a2-9839-4194-b2ad-0613279f9fba', variable: 'MAVEN_SETTINGS_XML')]) { + sh './mvnw --settings $MAVEN_SETTINGS_XML deploy -pl :api -DskipTests' } } } diff --git a/Jenkinsfile.withParams b/Jenkinsfile.withParams index 1681ba3f4..e044ad99f 100644 --- a/Jenkinsfile.withParams +++ b/Jenkinsfile.withParams @@ -7,7 +7,7 @@ def kmodelers = [ ] pipeline { - agent { label "mvn-java-agent"} + agent { label "klab-agent-jdk17"} options { skipDefaultCheckout(true) } parameters { string(name: 'BRANCH', @@ -51,11 +51,11 @@ pipeline { returnStdout: true).trim() MAVEN_OPTS="--illegal-access=permit" REGISTRY = "registry.integratedmodelling.org" - STAT_CONTAINER = "stat-server-16" - ENGINE_CONTAINER = "engine-server-16" - HUB_CONTAINER = "hub-server-16" - NODE_CONTAINER = "node-server-16" - BASE_CONTAINER = "klab-base-16:bc344fa9a66e93edaa3a2b528a65e7efa2e55a6f" + STAT_CONTAINER = "stat-server-17" + ENGINE_CONTAINER = "engine-server-17" + HUB_CONTAINER = "hub-server-17" + NODE_CONTAINER = "node-server-17" + BASE_CONTAINER = "klab-base-17:04da07762c87f77f2a3c04c880815327f94643c3" MAIN = "master" DEVELOP = "develop" PRODUCTS_GEN = "yes" @@ -113,7 +113,7 @@ pipeline { env.SNAPSHOT = sh( returnStdout: true, - script: 'mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate ' + + script: './mvnw org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate ' + '-Dexpression=project.version -q -DforceStdout ' + '--batch-mode -U -e -Dsurefire.useFile=false' ).trim() @@ -159,7 +159,18 @@ pipeline { stage('Maven install with jib') { steps { withCredentials([usernamePassword(credentialsId: "${params.REGISTRY_CREDENTIALS}", passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME')]) { - sh 'export JAVA_HOME=/opt/java16/openjdk && mvn clean install -U -DskipTests jib:build -Djib.httpTimeout=60000' + sh './mvnw clean install -U -DskipTests jib:build -Djib.httpTimeout=60000' + } + } + } + + stage('Maven deploy') { + when { + anyOf { branch 'develop'; branch 'master' } + } + steps { + configFileProvider([configFile(fileId: '1f5f24a2-9839-4194-b2ad-0613279f9fba', variable: 'MAVEN_SETTINGS_XML')]) { + sh './mvnw --settings $MAVEN_SETTINGS_XML deploy -pl :api -DskipTests' } } } diff --git a/adapters/klab.ogc/pom.xml b/adapters/klab.ogc/pom.xml index c933db106..24df982f5 100644 --- a/adapters/klab.ogc/pom.xml +++ b/adapters/klab.ogc/pom.xml @@ -107,31 +107,31 @@ org.junit.jupiter junit-jupiter-api - 5.10.0 + ${junit5.version} test org.mockito mockito-core - 5.6.0 + ${mockito.version} test org.hamcrest hamcrest - 2.2 + ${hamcrest.version} test org.powermock powermock-module-junit4 - 2.0.9 + ${powermock.version} test org.powermock powermock-api-mockito2 - 2.0.9 + ${powermock.version} test diff --git a/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/rest/Layout.java b/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/rest/Layout.java index 01fab0cc9..927409a72 100644 --- a/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/rest/Layout.java +++ b/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/rest/Layout.java @@ -24,8 +24,8 @@ Footer (max 1 elemento) Attributi -Guardando la definizione che usa Quasar di Layout (che la cosa corrispondente) ci sono 2 cose interessanti che magari verrebbero bene pi avanti: -- Un Layout pu essere un container quindi pu passare ad essere pure lui un componente. Nel caso di Quasar, questo fa s che le dimensioni facciano riferimento alla pgina intera o al Panel dove messo (per maggiori dettagli mi dici). Per noi questo potrebbe essere utile pensando a una view generale che sostituisca l'explorer come ben dicevi tu +Guardando la definizione che usa Quasar di Layout (che � la cosa corrispondente) ci sono 2 cose interessanti che magari verrebbero bene pi� avanti: +- Un Layout pu� essere un container quindi pu� passare ad essere pure lui un componente. Nel caso di Quasar, questo fa s� che le dimensioni facciano riferimento alla p�gina intera o al Panel dove � messo (per maggiori dettagli mi dici). Per noi questo potrebbe essere utile pensando a una view generale che sostituisca l'explorer come ben dicevi tu - Usano una serie di lettere per gestire le sovrapposizioni: Fondamentalmente si gestisce se i pannelli laterali coprono o no l'header e il footer @@ -33,17 +33,17 @@ Header Footer Non so se Header e Footer sono rimasugli di altre implementazioni, pero credo che non sono necessari. -Quasar ha dei componenti specifici per fondamentalmente gestisce dettagli estetici. Un panel messo nella propriet header di View non penso abbia bisogno di ulteriori dettagli, quindi mi centrerei in Panel -Panel un contenitore di elementi eterogenei posizionati a seconda di come si definiscono e del layout previsto per il pannello, -Un pannello pu contenere altri pannelli e cos successivamente -Personalmente credo che tutti i componenti dovrebbero essere contenuti in un pannello e non possano essere lasciati soli, pi che altro per essere un po' coerenti +Quasar ha dei componenti specifici per� fondamentalmente gestisce dettagli estetici. Un panel messo nella propriet� header di View non penso abbia bisogno di ulteriori dettagli, quindi mi centrerei in Panel +Panel � un contenitore di elementi eterogenei posizionati a seconda di come si definiscono e del layout previsto per il pannello, +Un pannello pu� contenere altri pannelli e cos� successivamente +Personalmente credo che tutti i componenti dovrebbero essere contenuti in un pannello e non possano essere lasciati soli, pi� che altro per essere un po' coerenti Attributi -visible: visibilit che po essere legata a una variabile -layout: qualche descrizione sul tipo di layout. Qua ci si pu mettere di tutto, per in un principio con orizzontale, verticale ed indicare se puoi andare a capo dovrebbe essere sufficiente. La storia del a capo per sapere se si cambia la dimensione degli elementi per starci o quando non ci si sta si va a nuova linea. -Magari si pu anche pensare in un GridLayout o in un Flex pi avanti. +visible: visibilit� che p�o essere legata a una variabile +layout: qualche descrizione sul tipo di layout. Qua ci si pu� mettere di tutto, per� in un principio con orizzontale, verticale ed indicare se puoi andare a capo dovrebbe essere sufficiente. La storia del a capo � per sapere se si cambia la dimensione degli elementi per starci o quando non ci si sta si va a nuova linea. +Magari si pu� anche pensare in un GridLayout o in un Flex pi� avanti. Group -Un gruppo credo dovrebbe essere qualcosa di omogeneo per poter gestire elementi come se fossero una unit. necessario per i radioButton e i checkButton +Un gruppo credo dovrebbe essere qualcosa di omogeneo per poter gestire elementi come se fossero una unit�. � necessario per i radioButton e i checkButton Attributi Credo che possono essere gli stessi di un componente: @@ -60,13 +60,13 @@ align width: qui userei o percentuale o cose fisse senza dimensioni specifiche (xs, s, m, etc) e poi lo stile li definisce Ed in questo momento non mi viene in mente alto -E poi lascerei una serie di attributi come un Map visto che il funzionamento di ogni componente avr le sue necessita specifiche +E poi lascerei una serie di attributi come un Map visto che il funzionamento di ogni componente avr� le sue necessita specifiche Alert Confirm Questi due li stiamo trattando in una maniera speciale, penso che potranno avere un panel e dentro ci sia quello che vuoi -Sarebbero pi simili ad una View pero con una parte dove metti il panel con il contenuto, e una parte con i bottoni specifici (alert solo ok, confirm ok e cancel) -Oppure un tipo Dialog que pu avere delle implementazioni per alert e confirm +Sarebbero pi� simili ad una View pero con una parte dove metti il panel con il contenuto, e una parte con i bottoni specifici (alert solo ok, confirm ok e cancel) +Oppure un tipo Dialog que pu� avere delle implementazioni per alert e confirm -------------------------------------------------------------------------------------------------------- * * @@ -83,6 +83,7 @@ public static class MenuItem { private String text; // a slash is used to define nested menus private String id; + private String url; public String getText() { return text; @@ -96,7 +97,12 @@ public String getId() { public void setId(String id) { this.id = id; } - + public String getUrl() { + return url; + } + public void setUrl(String url) { + this.url = url; + } } private List panels = new ArrayList<>(); diff --git a/klab.engine/pom.xml b/klab.engine/pom.xml index caba99985..6143ed393 100644 --- a/klab.engine/pom.xml +++ b/klab.engine/pom.xml @@ -901,7 +901,7 @@ org.junit.jupiter junit-jupiter-api - 5.9.3 + ${junit5.version} test diff --git a/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewBehavior.java b/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewBehavior.java index 2e88f4a1b..1f394b0e3 100644 --- a/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewBehavior.java +++ b/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewBehavior.java @@ -150,13 +150,18 @@ public void onMessage(KlabMessage message, IKActorsBehavior.Scope scope) { action = new ViewAction(this.component = copyComponent(this.initializedComponent)); break; default: - action = new ViewAction(this.component = setComponent(mess, scope)); + ViewComponent ret = setComponent(mess, scope); + if (ret != null) { + action = new ViewAction(this.component = setComponent(mess, scope)); + } + } + if (action != null) { + action.setApplicationId(mess.getAppId()); + action.setData(getMetadata(mess.getArguments(), scope)); + action.setComponentTag(this.getName()); + session.getState().updateView(this.component); + session.getMonitor().send(IMessage.MessageClass.ViewActor, IMessage.Type.ViewAction, action); } - action.setApplicationId(mess.getAppId()); - action.setData(getMetadata(mess.getArguments(), scope)); - action.setComponentTag(this.getName()); - session.getState().updateView(this.component); - session.getMonitor().send(IMessage.MessageClass.ViewActor, IMessage.Type.ViewAction, action); } } diff --git a/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewScope.java b/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewScope.java index 7bfeeb9bb..50397305f 100644 --- a/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewScope.java +++ b/klab.engine/src/main/java/org/integratedmodelling/klab/components/runtime/actors/ViewScope.java @@ -230,6 +230,7 @@ public Layout createLayout(IBehavior behavior, IKActorsBehavior.Scope scope) { Layout.MenuItem menuItem = new Layout.MenuItem(); menuItem.setId("menu." + action.getId()); menuItem.setText(menu.containsKey("title") ? scope.localize(menu.get("title").toString()) : "Unnamed menu"); + menuItem.setUrl(menu.containsKey("url") ? menu.get("url").toString() : null); ret.getMenu().add(menuItem); } } diff --git a/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EngineViewController.java b/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EngineViewController.java index c271c9cad..89aaf4ea2 100644 --- a/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EngineViewController.java +++ b/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EngineViewController.java @@ -219,7 +219,7 @@ public void getObservationData(Principal principal, @PathVariable String observa file = zipFile; } - IObservation context = session.getObservation(observation); + IObservation context = session.getState().getCurrentContext(); ActivityBuilder stats = ((IRuntimeScope)context.getScope()).getStatistics().forTarget(file, context.getObservable().getDefinition()); try (InputStream input = new FileInputStream(file)) { response.setContentType(outputFormat); diff --git a/klab.engine/src/main/resources/static/ui/css/74fd8965.f297b4d2.css b/klab.engine/src/main/resources/static/ui/css/74fd8965.7c485e34.css similarity index 88% rename from klab.engine/src/main/resources/static/ui/css/74fd8965.f297b4d2.css rename to klab.engine/src/main/resources/static/ui/css/74fd8965.7c485e34.css index e64aede5c..bb9516200 100644 --- a/klab.engine/src/main/resources/static/ui/css/74fd8965.f297b4d2.css +++ b/klab.engine/src/main/resources/static/ui/css/74fd8965.7c485e34.css @@ -1 +1 @@ -[data-v-b602390c]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.spinner-circle[data-v-b602390c]{fill:#da1f26;-webkit-transform:rotate(6deg);transform:rotate(6deg)}.spinner-circle.moving[data-v-b602390c]{-webkit-animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}@keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}#modal-connection-status.fullscreen{z-index:10000}#modal-connection-status .modal-borders{border-radius:40px}#modal-connection-status #modal-spinner{margin-right:10px;margin-left:1px}#modal-connection-status .modal-klab-content>span{display:inline-block;line-height:100%;vertical-align:middle;margin-right:15px}#modal-connection-status .modal-content{min-width:200px}.klab-settings-container{background-color:var(--app-background-color)!important}.klab-settings-container .klab-settings-button{position:fixed;bottom:28px;right:26px;opacity:.2}.klab-settings-container .klab-settings-button:hover{opacity:1}.klab-settings-container .klab-settings-button:hover .q-btn-fab{height:56px;width:56px}.klab-settings-container .klab-settings-button:hover .q-btn-fab .q-icon{font-size:28px}.klab-settings-container .klab-settings-button.klab-df-info-open{right:346px}.klab-settings-container .klab-settings-button .q-btn-fab{height:42px;width:42px}.klab-settings-container .klab-settings-button .q-btn-fab .q-icon{font-size:21px}.klab-settings-container .klab-settings-button .q-btn-fab-mini{height:24px;width:24px}.klab-settings-container .klab-settings-button .q-btn-fab-mini .q-icon{font-size:12px}.klab-settings-container .klab-settings-button.klab-fab-open{opacity:1}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab{height:56px;width:56px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab .q-icon{font-size:28px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini{height:48px;width:48px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini .q-icon{font-size:24px}.klab-settings-container .q-fab-up{bottom:100%;padding-bottom:10%}.ks-container{background-color:var(--app-background-color);padding:15px 20px;border-radius:5px;width:500px}.ks-container .ks-title{font-size:1.3em;color:var(--app-title-color);font-weight:400;margin-bottom:10px}.ks-container .ks-title .ks-title-text{display:inline-block}.ks-container .ks-title .ks-reload-button{display:inline-block;padding-left:10px;opacity:.3}.ks-container .ks-title .ks-reload-button:hover{opacity:1}.ks-container .ks-debug,.ks-container .ks-term{position:absolute;top:8px}.ks-container .ks-debug{right:46px}.ks-container .ks-term{right:16px}.ks-container .kud-owner{border:1px solid var(--app-main-color);border-radius:5px;padding:20px}.ks-container .kud-owner .kud-label{display:inline-block;width:100px;line-height:2.5em;vertical-align:middle;color:var(--app-title-color)}.ks-container .kud-owner .kud-value{display:inline-block;line-height:30px;vertical-align:middle;color:var(--app-text-color)}.ks-container .kud-owner .kud-value.kud-group{padding-right:10px}.ks-container .kal-apps .kal-app{margin-bottom:16px}.ks-container .kal-apps .kal-app .kal-app-description{display:-webkit-box;display:-ms-flexbox;display:flex;padding:8px 16px;border-radius:6px 16px 6px 16px;border:1px solid transparent;border-color:var(--app-lighten75-main-color)}.ks-container .kal-apps .kal-app .kal-app-description:not(.kal-active){cursor:pointer}.ks-container .kal-apps .kal-app .kal-app-description.kal-active{border-color:var(--app-darken-main-color)}.ks-container .kal-apps .kal-app .kal-app-description:hover{background-color:var(--app-lighten75-main-color)}.ks-container .kal-apps .kal-app .kal-app-description .kal-logo{-ms-flex-item-align:start;align-self:start;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:50px;height:50px;margin:0 16px 0 0}.ks-container .kal-apps .kal-app .kal-app-description .kal-logo img{display:block;max-width:50px;max-height:50px;vertical-align:middle}.ks-container .kal-apps .kal-app .kal-app-description .kal-info{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.ks-container .kal-apps .kal-app .kal-app-description .kal-info .kal-name{color:var(--app-title-color);font-weight:400}.ks-container .kal-apps .kal-app .kal-app-description .kal-info .kal-description{color:var(--app-text-color);font-size:80%}.ks-container .kal-apps .kal-locales span{display:inline-block;padding-left:2px}.ks-container .kal-apps .kal-locales span.flag-icon{font-size:90%}.ks-container .kal-apps .kal-locales .kal-lang-selector{height:32px;font-size:90%;padding:0 4px;border-radius:4px}.ks-container .kal-apps .kal-locales .kal-lang-selector .q-input-target{color:var(--app-main-color)}.kud-group-detail,.kud-group-id{text-align:center}.kud-group-detail{font-style:italic}.kud-no-group-icon{background-color:var(--app-title-color);text-align:center;color:var(--app-background-color);padding:2px 0 0;cursor:default;border-radius:15px}.kud-img-logo,.kud-no-group-icon{width:30px;height:30px;line-height:30px}.kud-img-logo{display:inline-block;vertical-align:middle}.klab-setting-tooltip{background-color:var(--app-main-color)}.kal-locale-options{color:var(--app-main-color);font-size:90%}.kal-locale-options .q-item-side{color:var(--app-main-color);min-width:0}.xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.kterm-container{z-index:4999}.kterm-container .kterm-header{border-top-right-radius:8px;border-top-left-radius:8px;height:30px;border-top:1px solid hsla(0,0%,100%,.5);border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);cursor:move;opacity:.9;z-index:5001}.kterm-container .kterm-header .kterm-button{position:absolute}.kterm-container .kterm-header .kterm-close{top:0;right:0}.kterm-container .kterm-header .kterm-minimize{top:0;right:30px}.kterm-container .kterm-header .kterm-drag{top:0;right:60px}.kterm-container .kterm-header .kterm-delete-history{top:0;right:90px}.kterm-container.kterm-minimized{width:90px;position:absolute;bottom:25px;left:25px;top:unset}.kterm-container.kterm-minimized .kterm-header{border-bottom-left-radius:10px;border-bottom-right-radius:10px;border:none}.kterm-container.kterm-focused{z-index:5000}.kterm-container .kterm-terminal{border:1px solid hsla(0,0%,100%,.5)}.kterm-tooltip{background-color:var(--app-main-color)!important}.kaa-container{background-color:hsla(0,0%,99.2%,.8);padding:15px;border-radius:5px}.kaa-container .kaa-content{border:1px solid var(--app-main-color);border-radius:5px;padding:20px;color:var(--app-title-color)}.kaa-container .kaa-button{margin:10px 0 0;width:100%;text-align:right}.kaa-container .kaa-button .q-btn{margin-left:10px}.klab-destructive-actions .klab-button{color:#ff6464!important}#ks-container{overflow-x:hidden;overflow-y:hidden;white-space:nowrap}#ks-container #ks-internal-container{float:left}.ks-tokens{display:inline-block;margin-right:-3px;padding:0 3px}.ks-tokens-accepted{font-weight:600}.ks-tokens.selected{outline:none}.bg-semantic-elements{border-radius:4px;border-style:solid;border-width:2px}.q-tooltip{max-width:512px}.q-popover{max-width:512px!important;border-radius:10px}#ks-autocomplete{scrollbar-color:#e5e5e5 transparent;scrollbar-width:thin}#ks-autocomplete .q-item.text-faded{color:#333}#ks-autocomplete .q-item.ka-separator{padding:8px 16px 5px;min-height:0;font-size:.8em;border-bottom:1px solid #e0e0e0}#ks-autocomplete .q-item.ka-separator.q-select-highlight{background-color:transparent}#ks-autocomplete .q-item:not(.text-faded):active{background:hsla(0,0%,74.1%,.5)}#ks-autocomplete::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar{width:6px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar-thumb{border-radius:10px;width:5px;background-color:#e5e5e5}.ks-tokens-fuzzy{width:100%}.ks-tokens-klab{width:256px}#ks-search-input{background-color:transparent}.ks-search-focused{padding:0;border-radius:4px;background-color:#e4fdff}.ks-search-focused,.ks-search-focused.ks-fuzzy{-webkit-transition:background-color .8s;transition:background-color .8s}.ks-search-focused.ks-fuzzy{background-color:#e7ffdb}#ks-autocomplete .q-item-side.q-item-section.q-item-side-left{-ms-flex-item-align:start;align-self:start}#ks-autocomplete .q-item-sublabel{font-size:80%}#ks-autocomplete .text-faded .q-item-section{font-size:1rem}.kl-model-desc-container{width:400px;background-color:#fff;color:#616161;border:1px solid #e0e0e0;padding:10px}.kl-model-desc-container .kl-model-desc-title{float:left;padding:5px 0;font-size:larger;margin-bottom:5px}.kl-model-desc-container .kl-model-desc-state{float:right;display:inline-block;padding:4px;border-radius:4px;color:#fff}.kl-model-desc-container .kl-model-desc-content{padding:10px 0;clear:both;border-top:1px solid #e0e0e0}.st-container.marquee.hover-active:hover .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee.hover-active:hover .st-edges{opacity:inherit}.st-container.marquee.hover-active:not(:hover) .st-text{left:0!important;width:100%;text-overflow:ellipsis}.st-container.marquee:not(.hover-active) .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee:not(.hover-active) .st-edges{opacity:inherit}.st-container.marquee:not(.hover-active):hover .st-text{-webkit-animation-play-state:paused;animation-play-state:paused}.st-container.marquee:not(.hover-active):hover:not(.active) .st-accentuate{color:rgba(0,0,0,.8);cursor:default}.st-container.marquee .st-text{position:relative;display:inline-block;overflow:hidden}.st-placeholder{color:#777;opacity:.6}.st-edges{left:-5px;right:0;top:0;bottom:0;position:absolute;height:100%;opacity:0;-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));-webkit-mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);-webkit-mask-size:5% 100%;mask-size:5% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left center,right center;mask-position:left center,right center;-webkit-transition:background-color .8s,opacity .8s;transition:background-color .8s,opacity .8s}@-webkit-keyframes klab-marquee{0%{left:0}}@keyframes klab-marquee{0%{left:0}}.sr-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sr-container.sr-light{color:#333;text-shadow:0 0 1px #ccc}.sr-container.sr-light .sr-spacescale{background-color:#333;color:#ccc}.sr-container.sr-dark{color:#ccc;text-shadow:0 0 1px #333}.sr-container.sr-dark .sr-spacescale{background-color:#ccc;color:#333}.sr-container .sr-editables{display:inline}.sr-container .sr-editables .klab-item{text-align:center}.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-scaletype{width:30px}.sr-container .sr-no-scalereference .sr-scaletype span,.sr-container .sr-scalereference .sr-scaletype span{display:block;height:24px;line-height:24px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-scalereference .sr-locked{width:30px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-locked,.sr-container .sr-scalereference .sr-scaletype{text-align:center;font-size:12px}.sr-container .sr-no-scalereference .sr-locked.sr-icon,.sr-container .sr-no-scalereference .sr-scaletype.sr-icon,.sr-container .sr-scalereference .sr-locked.sr-icon,.sr-container .sr-scalereference .sr-scaletype.sr-icon{font-size:20px}.sr-container .sr-no-scalereference .sr-description,.sr-container .sr-scalereference .sr-description{font-size:12px;width:calc(100% - 60px)}.sr-container .sr-no-scalereference .sr-spacescale,.sr-container .sr-scalereference .sr-spacescale{font-size:10px;height:20px;line-height:20px;width:20px;border-radius:10px;text-align:center;padding:0;display:inline-block;margin:0 5px}.sr-container .sr-no-scalereference.sr-full .sr-description,.sr-container .sr-scalereference.sr-full .sr-description{width:calc(100% - 90px)}.sr-container.sr-vertical{margin:5px 0}.sr-container.sr-vertical .klab-item{float:left;width:100%;margin:5px 0}.sr-container.sr-vertical .sr-spacescale{width:20px;margin-left:calc(50% - 10px)}.modal-scroll{overflow:hidden;max-height:600px}.mdi-lock-outline{color:#1ab}.sr-tooltip{text-align:center;padding:4px 0}.sr-tooltip.sr-time-tooltip{color:#ffc300}.mcm-icon-close-popover{position:absolute;right:4px;top:6px}.mcm-menubutton{top:6px;right:5px}.mcm-contextbutton{right:-5px}.mcm-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:180px}.mcm-container.mcm-context-label{width:250px}#btn-reset-context{width:15px;height:15px}#mc-eraserforcontext{padding:0 0 0 3px}.mcm-actual-context{color:#999}.q-icon.mcm-contextbutton{position:absolute;top:7px;right:5px}.mcm-context-label .klab-menuitem{width:calc(100% - 20px)}.mcm-copy-icon{padding:0 10px 0 5px;color:#eee}.mcm-copy-icon:hover{cursor:pointer;color:#212121}.klab-version{font-size:10px;width:100%;text-align:right;color:#9e9e9e}#ksb-container{width:100%;-webkit-transition:background-color .8s;transition:background-color .8s;line-height:inherit}#ksb-container.ksb-docked{-webkit-transition:width .5s;transition:width .5s}#ksb-container.ksb-docked #ksb-search-container{position:relative;padding:16px 10px;height:52px;-webkit-transition:background-color .8s;transition:background-color .8s}#ksb-container.ksb-docked #ksb-search-container .ksb-context-text{width:90%;position:relative}#ksb-container.ksb-docked #ksb-search-container .ksb-status-texts{width:90%;position:relative;bottom:2px}#ksb-container.ksb-docked #ksb-search-container .mcm-menubutton{top:11px}#ksb-container:not(.ksb-docked){border-radius:30px;cursor:move}#ksb-container:not(.ksb-docked) #ks-container,#ksb-container:not(.ksb-docked) .ksb-context-text{width:85%;position:absolute;left:45px;margin-top:8px}#ksb-container:not(.ksb-docked) .ksb-status-texts{width:85%;position:absolute;bottom:-4px;left:45px;margin:0 auto}#ksb-container #ksb-spinner{float:left;border:none;width:40px;height:40px}#ksb-container #ksb-undock{text-align:right;height:32px}#ksb-container #ksb-undock #ksb-undock-icon{padding:6px 10px;text-align:center;display:inline-block;cursor:pointer;-webkit-transition:.1s;transition:.1s;color:#999}#ksb-container #ksb-undock #ksb-undock-icon:hover{color:#1ab;-webkit-transform:translate(5px) rotate(33deg);transform:translate(5px) rotate(33deg)}#ksb-container .ksb-context-text,#ksb-container .ksb-status-texts{white-space:nowrap;overflow:hidden}#ksb-container .ksb-status-texts{font-size:11px;color:rgba(0,0,0,.4);height:15px}#ksb-container .mdi-lock-outline{position:absolute;right:35px;top:12px}.kbc-container{position:relative;height:20px;font-size:10px;padding:2px 5px}.kbc-container span{color:#eee}.kbc-container span:not(:last-child){cursor:pointer;color:#1ab}.kbc-container span:not(:last-child):hover{color:#ffc300}.kbc-container span:not(:last-child):after{content:" / ";color:#eee}.vue-splitter{height:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vue-splitter .splitter-pane{height:inherit;overflow:hidden;padding:0}.vue-splitter .left-pane{white-space:nowrap}.vue-splitter .right-pane{word-wrap:break-word}.splitter-actions{width:2em;height:2em}#splitter-close{position:absolute;right:0}.splitter-controllers{background-color:#000;text-align:center;height:20px}.kt-drag-enter{background-color:#555}.kt-tree-container .klab-no-nodes{padding:5px 0;margin:0;text-align:center;font-style:italic}.kt-tree-container .q-tree>.q-tree-node{padding:0}.kt-tree-container .q-tree-node-collapsible{overflow-x:hidden}.kt-tree-container .q-tree-children{margin-bottom:4px}.kt-tree-container .q-tree-node-selected{background-color:rgba(0,0,0,.15)}.kt-tree-container .q-tree-node{padding:0 0 3px 15px}.kt-tree-container .q-tree-node.q-tree-node-child{min-height:var(--q-tree-no-child-min-height)}.kt-tree-container .q-tree-node-header{margin-top:0}.kt-tree-container .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree-node-header:hover .node-substituible{display:none}.kt-tree-container .q-tree-node-header:hover .kt-download,.kt-tree-container .q-tree-node-header:hover .kt-upload{display:block}.kt-tree-container .q-tree-node-header:hover .kt-download:hover,.kt-tree-container .q-tree-node-header:hover .kt-upload:hover{background-color:#fff;border:none;color:#666}.kt-tree-container .q-tree-node-header.disabled{opacity:1!important}.kt-tree-container .q-chip.node-chip{position:absolute;right:10px;height:20px;min-width:20px;top:4px;text-align:center}.kt-tree-container .q-chip.node-chip .q-chip-main{padding-right:2px}.kt-tree-container .kt-download,.kt-tree-container .kt-upload{position:absolute;top:4px;display:none;z-index:9999;color:#eee;border:2px solid #eee;width:20px;height:20px}.kt-tree-container .kt-download{right:10px}.kt-tree-container .kt-upload{right:34px}.kt-tree-container .node-emphasized{color:#fff;font-weight:700;-webkit-animation:flash 2s linear;animation:flash 2s linear}.kt-tree-container .node-element{text-shadow:none;cursor:pointer}.kt-tree-container .node-selected{-webkit-text-decoration:underline #ffc300 dotted;text-decoration:underline #ffc300 dotted;color:#ffc300}.kt-tree-container .mdi-buddhism{padding-left:1px;margin-right:2px!important}.kt-tree-container .node-updatable{font-style:italic}.kt-tree-container .node-disabled{opacity:.6!important}.kt-tree-container .node-no-tick{margin-right:5px}.kt-tree-container .node-on-top{color:#ffc300}.kt-tree-container .node-icon{display:inline;padding-left:5px}.kt-tree-container .node-icon-time{position:relative;right:-5px}.kt-tree-container .node-icon-time.node-loading-layer{opacity:0}.kt-tree-container .node-icon-time.node-loading-layer.animate-spin{opacity:1}.kt-tree-container .kt-q-tooltip{background-color:#333}.kt-tree-container .q-tree-node-link{cursor:default}.kt-tree-container .q-tree-node-link .q-tree-arrow{cursor:pointer}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header{padding-left:0}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header:before{width:12px;left:-14px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header>i{margin-right:2px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children{padding-left:20px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header{padding-left:4px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:after{left:-17px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:after{left:-17px}@-webkit-keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@-webkit-keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}@keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}.hv-histogram-container.hv-histogram-horizontal{height:160px;width:100%}.hv-histogram-container.hv-histogram-vertical{height:100%}.hv-histogram,.hv-histogram-nodata{height:calc(100% - 30px);position:relative}.hv-histogram-nodata.k-with-colormap,.hv-histogram.k-with-colormap{height:calc(100% - 60px)}.hv-histogram-nodata{color:#fff;text-align:center;background-color:hsla(0,0%,46.7%,.65);padding-top:20%}.hv-histogram-col{float:left;height:100%;position:relative}.hv-histogram-col:hover{background:hsla(0,0%,46.7%,.65)}.hv-histogram-val{background:#000;width:100%;position:absolute;bottom:0;border-right:1px solid hsla(0,0%,46.7%,.85);border-left:1px solid hsla(0,0%,46.7%,.85)}.hv-histogram-val:hover{background:rgba(0,0,0,.7)}.hv-colormap-horizontal{height:30px;position:relative}.hv-colormap-horizontal .hv-colormap-col{float:left;height:100%;min-width:1px}.hv-colormap-vertical{width:30px;min-width:30px;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-vertical .hv-colormap-col{display:block;width:100%;min-height:1px}.hv-colormap-container-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.hv-colormap-container-vertical .hv-colormap-legend{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-container-vertical .hv-categories{overflow:hidden}.hv-colormap-col{background-color:#fff}.hv-details-vertical{float:left}.hv-data-details{color:#fff;text-align:center;font-size:small;padding:2px 0;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;height:30px;line-height:30px;text-overflow:ellipsis}.hv-histogram-max,.hv-histogram-min{width:50px}.hv-categories{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-left:16px}.hv-categories .hv-category{text-overflow:ellipsis;white-space:nowrap;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-size:12px}.hv-zero-category{font-style:italic;opacity:.5}.hv-data-nodetail,.hv-data-value{width:calc(100% - 100px);border-left:1px solid #696969;border-right:1px solid #696969}.hv-data-value,.hv-tooltip{color:#ffc300;-webkit-transition:none;transition:none;font-style:normal}.hv-tooltip{background-color:#444}#oi-container{height:calc(var(--main-control-max-height) - 164px);max-height:calc(var(--main-control-max-height) - 164px)}#oi-metadata-map-wrapper{height:calc(100% - 40px)}#oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#oi-metadata-map-wrapper #oi-scroll-metadata-container{padding-top:5px}.oi-text{color:#ffc300;text-shadow:0 0 1px #666;padding:0 0 0 5px}.oi-metadata-name{padding-bottom:2px}.oi-metadata-value{color:#fff;margin:0 5px 5px;background-color:#666;-webkit-box-shadow:inset 0 0 0 1px #666;box-shadow:inset 0 0 0 1px #666;padding:2px 0 2px 5px}#oi-scroll-container{height:100%}#oi-scroll-container.with-mapinfo{height:50%}#oi-controls{height:40px;width:100%;border-bottom:1px dotted #333}#oi-controls .oi-control{float:left}#oi-controls #oi-name{width:50%;display:table;overflow:hidden;height:40px}#oi-controls #oi-name span{display:table-cell;vertical-align:middle;padding-top:2px}#oi-controls #oi-visualize{text-align:center;width:40px;line-height:40px}#oi-controls #oi-slider{width:calc(50% - 40px)}#oi-controls #oi-slider .q-slider{padding:0 10px 0 5px;height:40px}#oi-mapinfo-container{height:50%;width:100%;padding:5px;position:relative}#oi-mapinfo-map{height:100%;width:100%}.oi-pixel-indicator{position:absolute;background-color:#fff;mix-blend-mode:difference}#oi-pixel-h{left:50%;top:5px;height:calc(100% - 10px);width:1px}#oi-pixel-v{top:50%;left:5px;height:1px;width:calc(100% - 10px)}.ktp-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}.q-tree .text-white{text-shadow:1px 0 0 #aaa}#kt-user-tree{padding-top:15px;padding-bottom:10px}.kt-separator{width:96%;left:4%;height:2px;border-top:1px solid hsla(0,0%,48.6%,.8);border-bottom:1px solid #7c7c7c;margin:0 4%}#klab-tree-pane{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}#klab-tree-pane details{padding:6px 0 10px 10px;background-color:#7d7d7d;border-top:1px solid #555}#klab-tree-pane details:not([open]){padding:0;margin-bottom:15px}#klab-tree-pane details:not([open]) #ktp-main-tree-arrow{top:-12px}#klab-tree-pane details[open] #ktp-main-tree-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}#klab-tree-pane details .mdi-dots-horizontal:before{padding-top:2px}#klab-tree-pane details summary{height:0;outline:none;position:relative;cursor:pointer;display:block}#klab-tree-pane details summary::-webkit-details-marker{color:transparent}#klab-tree-pane details #ktp-main-tree-arrow{position:absolute;width:22px;height:22px;right:9px;top:-18px;color:#fff;background-color:#555;border-radius:12px;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}#klab-tree-pane details>div{margin:5px 0 0 -10px}.ktp-no-tree{height:30px}.otv-now{font-size:11px;line-height:24px;vertical-align:middle;text-align:center;color:#fff;width:150px;height:24px}.otv-now.otv-docked{float:left;color:#fff;line-height:34px}.otv-now:not(.otv-docked){position:absolute;bottom:0;left:0;background-color:hsla(0,0%,46.7%,.65);border-top:1px solid #000;border-right:1px solid #000;border-top-right-radius:4px}.otv-now.otv-running{color:#ffc300}.otv-now.otv-novisible{opacity:0}.otv-now .fade-enter-active,.otv-now .fade-leave-active{-webkit-transition:opacity 1s;transition:opacity 1s}.otv-now .fade-enter,.otv-now .fade-leave-to{opacity:0}.ot-wrapper{width:100%}.ot-wrapper.ot-no-timestamp .ot-container.ot-docked{width:calc(100% - 5px)}.ot-wrapper:not(.ot-no-timestamp) .ot-container.ot-docked{width:280px;float:left}.ot-container{position:relative}.ot-container .ot-player{width:20px;height:16px;line-height:16px;float:left}.ot-container .ot-player .q-icon{vertical-align:baseline!important}.ot-container .ot-time{width:calc(100% - 20px);position:relative}.ot-container .ot-time.ot-time-full{left:10px}.ot-container .ot-time .ot-date{min-width:16px;max-width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;vertical-align:middle;background-color:#555;border-radius:8px;position:relative;cursor:default;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-date.ot-date-fill,.ot-container .ot-time .ot-date.ot-date-loaded{background-color:#1ab}.ot-container .ot-time .ot-date.ot-date-start+.ot-date-text{left:16px}.ot-container .ot-time .ot-date.ot-date-end+.ot-date-text{right:16px}.ot-container .ot-time .ot-date .ot-time-origin{vertical-align:baseline;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date .ot-time-origin.ot-time-origin-loaded{color:#e4fdff}.ot-container .ot-time .ot-date-text{white-space:nowrap;font-size:8px;position:absolute;top:-4px;color:#888;font-weight:400;letter-spacing:1px;padding:0;-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}.ot-container .ot-time .ot-timeline-container .ot-timeline{height:6px;width:calc(100% + 4px);background-color:#555;position:relative;top:5px;margin:0 -2px;padding:0 2px;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-timeline-container .ot-timeline.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container{z-index:10000;width:32px;height:6px;position:absolute;top:7px}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container .ot-modification{height:100%;width:1px;margin-left:1px;border-left:1px solid #555;border-right:1px solid #aaa}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-actual-time{width:2px;height:6px;background-color:#1ab;position:absolute;margin-right:4px;top:0;z-index:10001}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-loaded-time{height:6px;left:-2px;background-color:#1ab;position:relative;top:0}.ot-container.ot-active-timeline .ot-time .ot-date-start{border-top-right-radius:0;border-bottom-right-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-date-end{border-top-left-radius:0;border-bottom-left-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-timeline{height:16px;width:100%;top:0;margin:0}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-timeline-viewer{height:10px;background-color:#666;border-radius:2px;width:calc(100% - 2px);position:absolute;top:3px;z-index:9000}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-loaded-time{height:16px}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-actual-time{height:10px;top:3px}.ot-date-tooltip{width:100px}.ot-date-tooltip .ot-date-tooltip-content{text-align:center}.ot-speed-container{border-radius:6px;margin-left:-6px}.ot-speed-container .ot-speed-selector{padding:5px 0;background-color:rgba(35,35,35,.8);color:#eee}.ot-speed-container .ot-speed-selector .ot-speed{min-height:20px;font-size:small;padding:5px}.ot-speed-container .ot-speed-selector .ot-speed.ot-speed-disabled{color:#1ab;font-weight:800}.ot-speed-container .ot-speed-selector .ot-speed:hover{background-color:#333;color:#ffc300;cursor:pointer}.ot-change-speed-tooltip{text-align:center}#klab-log-pane{max-height:calc(var(--main-control-max-height) - 124px)}#klab-log-pane.lm-component{max-height:100%}#klab-log-pane #log-container{margin:10px 0}#klab-log-pane .q-item.log-item{font-size:10px}#klab-log-pane .q-item.log-no-items{font-size:12px;color:#ccc;text-shadow:1px 0 0 #777}.log-item .q-item-side{min-width:auto}.q-list-dense>.q-item{padding-left:10px}.klp-separator{width:100%;text-align:center;border-top:1px solid #555;border-bottom:1px solid #777;line-height:0;margin:10px 0}.klp-separator>span{padding:0 10px;background-color:#717070}.klp-level-selector{border-bottom:1px dotted #ccc}.klp-level-selector ul{margin:10px 0;padding-left:10px;list-style:none}.klp-level-selector ul li{display:inline-block;padding-right:10px;opacity:.5}.klp-level-selector ul li.klp-selected{opacity:1}.klp-level-selector ul li .klp-chip{padding:2px 8px;cursor:pointer}.klab-mdi-next-scale{color:#ffc300;opacity:.6}.klab-mdi-next-scale:hover{opacity:1}.sb-scales *{cursor:pointer}.sb-next-scale{background-color:rgba(255,195,0,.7)}.sb-tooltip{text-align:center;font-size:.7em;color:#fff;background-color:#616161;padding:2px 0}.kvs-popover-container{background-color:#616161;border-color:#616161}.kvs-popover{background-color:transparent}.kvs-container .klab-button.klab-action .klab-button-notification{right:26px;top:0}.kvs-container .klab-button:not(.disabled) .kvs-button{color:#1ab}.mc-container .q-card>.mc-q-card-title{border-radius:30px;cursor:move;-webkit-transition:background-color .8s;transition:background-color .8s}.mc-container .q-card{width:512px;-webkit-transition:width .5s;transition:width .5s}.mc-container .q-card.with-context{width:482px;background-color:rgba(35,35,35,.8);border-radius:5px}.mc-container .q-card.with-context .mc-q-card-title{overflow:hidden;margin:15px}.mc-container .q-card.mc-large-mode-1{width:640px}.mc-container .q-card.mc-large-mode-2{width:768px}.mc-container .q-card.mc-large-mode-3{width:896px}.mc-container .q-card.mc-large-mode-4{width:1024px}.mc-container .q-card.mc-large-mode-5{width:1152px}.mc-container .q-card.mc-large-mode-6{width:1280px}.mc-container .q-card-title{position:relative}.mc-container .spinner-lonely-div{position:absolute;width:44px;height:44px;border:2px solid;border-radius:40px}.mc-container .q-card-title{line-height:inherit}.mc-container #mc-text-div{text-shadow:0 0 1px #555}.mc-container .q-card-main{overflow:auto;line-height:inherit;background-color:hsla(0,0%,46.7%,.85);padding:0}.mc-container .kmc-bottom-actions.q-card-actions{padding:0 4px 4px 6px}.mc-container .kmc-bottom-actions.q-card-actions .klab-button{font-size:18px;padding:4px}.mc-container .klab-main-actions{position:relative}.mc-container .klab-button-notification{top:4px;right:4px;width:10px;height:10px}.mc-container .context-actions{padding:0;margin:0;position:relative}.mc-container .mc-separator{width:2px;height:60%;position:absolute;top:20%;border-left:1px solid #444;border-right:1px solid #666}.mc-container .mc-separator.mab-separator{right:45px}.mc-container .mc-tab.active{background-color:hsla(0,0%,46.7%,.85)}.mc-container .component-fade-enter-active,.mc-container .component-fade-leave-active{-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.mc-container .component-fade-enter,.mc-container .component-fade-leave-to{opacity:0}.mc-container .mc-docking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.1);border:1px solid hsla(0,0%,52.9%,.5);-webkit-animation-duration:.2s;animation-duration:.2s}.mc-container .kbc-container{position:absolute;top:63px;left:0;width:100%;text-align:center}.mc-container #kt-out-container{height:100%;overflow:hidden;max-height:calc(var(--main-control-max-height) - 144px)}.mc-container #kt-out-container.kpt-loading{max-height:calc(var(--main-control-max-height) - 114px)}.mc-container #kt-out-container.with-splitter{max-height:calc(var(--main-control-max-height) - 164px)}.mc-container .klab-button{font-size:22px;margin:0;padding:2px 7px 5px;border-top-left-radius:4px;border-top-right-radius:4px}.mc-container .klab-destructive-actions .klab-button{position:absolute;right:6px;padding-right:0}.mc-container .sb-scales{position:absolute;right:42px}.mc-container .sb-scales .klab-button{padding-right:2px}.mc-container .context-actions .sr-locked,.mc-container .context-actions .sr-scaletype{font-size:9px}.mc-container .context-actions .sr-locked.sr-icon,.mc-container .context-actions .sr-scaletype.sr-icon{font-size:14px}.mc-container .context-actions .sr-description{font-size:9px}.mc-container .context-actions .sr-spacescale{font-size:9px;height:16px;width:16px;border-radius:8px;padding:3px 0 0;margin:0 2px}.mc-container .mc-timeline{width:calc(100% - 200px);position:absolute;left:100px;bottom:8px}.mc-container .klab-bottom-right-actions{position:absolute;right:6px}.mc-container .klab-bottom-right-actions .klab-button.klab-action{border-radius:4px;margin:3px 0 0;padding:2px 5px 3px!important}.mc-container .klab-bottom-right-actions .klab-button.klab-action:hover:not(.disabled){background-color:hsla(0,0%,52.9%,.2)}.mc-kv-popover{border-radius:6px;border:none}.mc-kv-popover .mc-kv-container{background-color:#616161;border-radius:2px!important}.md-draw-controls{position:absolute;top:30px;left:calc(50vw - 100px);background-color:hsla(0,0%,100%,.8);border-radius:10px}.md-draw-controls .md-title{color:#fff;background-color:#1ab;width:100%;padding:5px;font-size:16px;text-align:center;border-top-left-radius:10px;border-top-right-radius:10px}.md-draw-controls .md-controls .md-control{font-size:30px;font-weight:700;width:calc(33% - 24px);padding:5px;margin:10px 12px;height:40px;border-radius:10px;cursor:pointer}.md-draw-controls .md-controls .md-ok{color:#19a019}.md-draw-controls .md-controls .md-ok:hover{background-color:#19a019;color:#fff}.md-draw-controls .md-controls .md-cancel{color:#db2828}.md-draw-controls .md-controls .md-cancel:hover{background-color:#db2828;color:#fff}.md-draw-controls .md-controls .md-erase.disabled{cursor:default}.md-draw-controls .md-controls .md-erase:not(.disabled){color:#ffc300}.md-draw-controls .md-controls .md-erase:not(.disabled):hover{background-color:#ffc300;color:#fff}.md-draw-controls .md-selector .q-btn-group{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.md-draw-controls .md-selector button{width:50px}.md-draw-controls .md-selector button:first-child{border-bottom-left-radius:10px}.md-draw-controls .md-selector button:nth-child(4){border-bottom-right-radius:10px}.layer-switcher{position:absolute;top:3.5em;right:.5em;text-align:left}.layer-switcher .panel{border:4px solid #eee;background-color:#fff;display:none;max-height:inherit;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.layer-switcher button{float:right;z-index:1;width:38px;height:38px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:2px;background-color:#fff;color:#000;border:none}.layer-switcher button:focus,.layer-switcher button:hover{background-color:#fff}.layer-switcher.shown{overflow-y:hidden}.layer-switcher.shown.ol-control,.layer-switcher.shown.ol-control:hover{background-color:transparent}.layer-switcher.shown .panel{display:block}.layer-switcher.shown button{display:none}.layer-switcher.shown.layer-switcher-activation-mode-click>button{display:block;background-image:unset;right:2px;position:absolute;background-color:#eee;margin:0 1px}.layer-switcher.shown button:focus,.layer-switcher.shown button:hover{background-color:#fafafa}.layer-switcher ul{list-style:none;margin:1.6em .4em;padding-left:0}.layer-switcher ul ul{padding-left:1.2em;margin:.1em 0 0}.layer-switcher li.group+li.group{margin-top:.4em}.layer-switcher li.group>label{font-weight:700}.layer-switcher.layer-switcher-group-select-style-none li.group>label{padding-left:1.2em}.layer-switcher li{position:relative;margin-top:.3em}.layer-switcher li input{position:absolute;left:1.2em;height:1em;width:1em;font-size:1em}.layer-switcher li label{padding-left:2.7em;padding-right:1.2em;display:inline-block;margin-top:1px}.layer-switcher label.disabled{opacity:.4}.layer-switcher input{margin:0}.layer-switcher.touch ::-webkit-scrollbar{width:4px}.layer-switcher.touch ::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px}.layer-switcher.touch ::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}li.layer-switcher-base-group>label{padding-left:1.2em}.layer-switcher .group button{position:absolute;left:0;display:inline-block;vertical-align:top;float:none;font-size:1em;width:1em;height:1em;margin:0;background-position:center 2px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAW0lEQVR4nGNgGAWMyBwXFxcGBgaGeii3EU0tXHzPnj1wQRYsihqQ+I0ExDEMQAYNONgoAN0AmMkNaDSyQSheY8JiaCMOGzE04zIAmyFYNTMw4A+DRhzsUUBtAADw4BCeIZkGdwAAAABJRU5ErkJggg==");-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.layer-switcher .group.layer-switcher-close button{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.layer-switcher .group.layer-switcher-fold.layer-switcher-close>ul{overflow:hidden;height:0}.layer-switcher.shown.layer-switcher-activation-mode-click{padding-left:34px}.layer-switcher.shown.layer-switcher-activation-mode-click>button{left:0;border-right:0}.layer-switcher{top:5em}.layer-switcher button{background-position:2px 3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTkuOTk2IiB3aWR0aD0iMjAiPjxnIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xOS4zMSAzLjgzNUwxMS41My4yODljLS44NDMtLjM4NS0yLjIyMy0uMzg1LTMuMDY2IDBMLjY5IDMuODM1Yy0uOTE3LjQxNi0uOTE3IDEuMDk5IDAgMS41MTVsNy43MDYgMy41MTVjLjg4LjQgMi4zMjguNCAzLjIwOCAwTDE5LjMxIDUuMzVjLjkxNi0uNDE2LjkxNi0xLjA5OSAwLTEuNTE1ek04LjM5NiAxNi4yMDdMMy4yIDEzLjgzN2EuODQ1Ljg0NSAwIDAwLS42OTMgMGwtMS44MTcuODI4Yy0uOTE3LjQxNy0uOTE3IDEuMSAwIDEuNTE2bDcuNzA2IDMuNTE0Yy44OC40MDEgMi4zMjguNDAxIDMuMjA4IDBsNy43MDYtMy41MTRjLjkxNi0uNDE3LjkxNi0xLjA5OSAwLTEuNTE2bC0xLjgxNy0uODI4YS44NDUuODQ1IDAgMDAtLjY5MyAwbC01LjE5NiAyLjM3Yy0uODguNC0yLjMyOC40LTMuMjA4IDB6Ii8+PHBhdGggZD0iTTE5LjMxIDkuMjVsLTEuNjUtLjc1YS44MzMuODMzIDAgMDAtLjY4OCAwbC01LjYyMyAyLjU0N2MtLjc5Ny4yNy0xLjkwNi4yNy0yLjcwMyAwTDMuMDIzIDguNWEuODMzLjgzMyAwIDAwLS42ODggMGwtMS42NS43NWMtLjkxNy40MTctLjkxNyAxLjA5OSAwIDEuNTE1TDguMzkgMTQuMjhjLjg4LjQwMSAyLjMyNy40MDEgMy4yMDcgMGw3LjcwNy0zLjUxNWMuOTIxLS40MTYuOTIxLTEuMDk4LjAwNS0xLjUxNXoiLz48L2c+PC9zdmc+")}.layer-switcher .panel{padding:0 1em 0 0;margin:0;border:1px solid #999;border-radius:4px;background-color:hsla(0,0%,46.7%,.65);color:#fff}.map-selection-marker{font-size:28px;color:#fff;mix-blend-mode:exclusion}.gl-msg-content{border-radius:20px;padding:20px;background-color:hsla(0,0%,100%,.7)}.gl-msg-content .gl-btn-container{text-align:right;padding:.2em}.gl-msg-content .gl-btn-container .q-btn{margin-left:.5em}.gl-msg-content h5{margin:.2em 0 .5em;font-weight:700}.gl-msg-content em{color:#1ab;font-style:normal;font-weight:700}.mv-exploring{cursor:crosshair!important}.ol-popup{position:absolute;background-color:hsla(0,0%,100%,.9);padding:20px 15px;border-radius:10px;bottom:25px;left:-48px;min-height:80px}.ol-popup:after,.ol-popup:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ol-popup:after{border-top-color:hsla(0,0%,100%,.9);border-width:10px;left:48px;margin-left:-10px}.ol-popup .ol-popup-closer{position:absolute;top:2px;right:8px}.ol-popup .ol-popup-content h3{margin:0 0 .2em;line-height:1.1em;font-size:1.1em;color:#1ab;white-space:nowrap;font-weight:300}.ol-popup .ol-popup-content p{margin:0;color:rgba(50,50,50,.9);white-space:nowrap;font-weight:400}.ol-popup .ol-popup-content .mv-popup-value{font-size:1.6em;padding:10px 0}.ol-popup .ol-popup-content .mv-popup-coord{font-size:.8em;padding-top:5px;color:#7c7c7c}.ol-popup .ol-popup-content .mv-popup-separator{height:1px;border-top:1px solid hsla(0,0%,48.6%,.3);margin:0 auto}.ol-mouse-position{right:50px!important;top:14px;margin:1px;padding:4px 8px;color:#fff;font-size:.9em;text-align:center;background-color:rgba(0,60,136,.5);border:4px solid hsla(0,0%,100%,.7)}#mv-extent-map{width:200px;height:200px;position:absolute;bottom:0;right:0;border:1px solid var(--app-main-color)}#mv-extent-map.mv-extent-map-hide{display:none}.mv-remove-proposed-context{position:absolute;bottom:10px;left:10px;opacity:.3;background-color:#3187ca;color:#fff!important}.mv-remove-proposed-context:hover{opacity:1}canvas{position:absolute;top:0;left:0}.net{height:100%;margin:0}.node{stroke:rgba(18,120,98,.7);stroke-width:3px;-webkit-transition:fill .5s ease;transition:fill .5s ease;fill:#dcfaf3}.node.selected{stroke:#caa455}.node.pinned{stroke:rgba(190,56,93,.6)}.link{stroke:rgba(18,120,98,.3)}.link,.node{stroke-linecap:round}.link:hover,.node:hover{stroke:#be385d;stroke-width:5px}.link.selected{stroke:rgba(202,164,85,.6)}.curve{fill:none}.link-label,.node-label{fill:#127862}.link-label{-webkit-transform:translateY(-.5em);transform:translateY(-.5em);text-anchor:middle}.gv-container{background-color:#e0e0e0;overflow:hidden}.gv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}.uv-container{background-color:#e7ffdb;overflow:hidden}.uv-container h4{text-align:center}.uv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}[data-v-216658d8]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.thumb-view[data-v-216658d8]{width:200px;height:200px;margin:5px;border:1px solid #333;-webkit-box-shadow:#5c6bc0;box-shadow:#5c6bc0;bottom:0;z-index:9998;overflow:hidden}.thumb-view:hover>.thumb-viewer-title[data-v-216658d8]{opacity:1}.thumb-viewer-title[data-v-216658d8]{opacity:0;background-color:rgba(17,170,187,.85);color:#e0e0e0;text-shadow:0 1px 5px rgba(0,0,0,.2),0 2px 2px rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12);font-size:.9em;padding:0;-webkit-transition:opacity 1s;transition:opacity 1s;z-index:9999}.thumb-viewer-label[data-v-216658d8]{width:140px;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;text-overflow:ellipsis}.thumb-viewer-label.thumb-closable[data-v-216658d8]{width:100px}.thumb-viewer-button[data-v-216658d8]{margin-top:5px;margin-left:0;margin-right:4px}.thumb-viewer-button>button[data-v-216658d8]{font-size:6px}.thumb-close[data-v-216658d8]{margin-left:5px}.dh-container{background-color:rgba(35,35,35,.8)}.dh-container .dh-spinner{width:28px;margin-left:16px;margin-right:16px}.dh-container .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.dh-container .dh-tabs .q-tabs-head .q-tab{padding:10px 16px}.dh-container .dh-tabs .q-tabs-head .q-tab.active{color:#1ab!important}.dh-container .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:#1ab;right:-3px;top:-1px}.dh-container .dh-actions{text-align:right;padding-right:12px}.dh-container .dh-actions .dh-button{padding:8px}.kd-is-app .q-layout-header{-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid var(--app-darken-background-color)}.kd-is-app .dh-container{background-color:var(--app-darken-background-color)}.kd-is-app .dh-actions .dh-button{color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab{padding:13px 16px;text-shadow:none}.kd-is-app .dh-tabs .q-tabs-head .q-tab.active{color:var(--app-main-color)!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-bar{color:var(--app-main-color);border-bottom-width:4px}.q-layout-drawer,.q-layout-header{-webkit-box-shadow:none!important;box-shadow:none!important;border-bottom:1px solid var(--app-main-color)}.dt-container{padding:16px 0;font-size:smaller!important}.dt-container .dt-tree-empty{margin:16px;color:#fff}.kd-is-app .klab-left{background-color:var(--app-darken-background-color)}.kd-is-app .klab-left .dt-tree-empty,.kd-is-app .klab-left .q-tree .q-tree-node,.kd-is-app .klab-left .text-white{color:var(--app-main-color)!important}.tabulator{position:relative;background-color:#fff;overflow:hidden;font-size:14px;text-align:left;-webkit-transform:translatez(0);transform:translatez(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableHolder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator .tabulator-header{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-col{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border-right:1px solid #ddd;background-color:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-menu-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{cursor:pointer;background-color:#e6e6e6}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{-ms-writing-mode:tb-rl;-webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;text-orientation:mixed;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{display:inline-block;position:absolute;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:600%;background:#f2f2f2!important;border-top:1px solid #ddd;border-bottom:1px solid #999;overflow:hidden}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{min-width:600%}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableHolder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableHolder:focus{outline:none}.tabulator .tabulator-tableHolder .tabulator-placeholder{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder span{display:inline-block;margin:0 auto;padding:10px;color:#000;font-weight:700;font-size:20px}.tabulator .tabulator-tableHolder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-col-resize-handle{position:absolute;right:0;top:0;bottom:0;width:5px}.tabulator .tabulator-col-resize-handle.prev{left:0;right:auto}.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}.tabulator .tabulator-footer{padding:5px 10px;border-top:1px solid #999;background-color:#fff;text-align:right;color:#555;font-weight:700;white-space:nowrap;-ms-user-select:none;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;width:calc(100% + 20px);margin:-5px -10px 5px;text-align:left;background:#f2f2f2!important;border-bottom:1px solid #fff;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer .tabulator-paginator{color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}.tabulator .tabulator-loader{position:absolute;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-loader .tabulator-loader-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading{border:4px solid #333;color:#000}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:22px;border-bottom:1px solid #ddd}.tabulator-row,.tabulator-row:nth-child(2n){background-color:#fff}.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}.tabulator-row.tabulator-selected{background-color:#9abcea}.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none!important;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}.tabulator-row .tabulator-frozen{display:inline-block;position:absolute;background-color:inherit;z-index:10}.tabulator-row .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-responsive-collapse{-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator-row .tabulator-cell.tabulator-row-handle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open,.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#666}.tabulator-menu{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-menu .tabulator-menu-item{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 10px;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:"";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-select-list{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:200px;background:#fff;border:1px solid #ddd;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-edit-select-list .tabulator-edit-select-list-item{padding:4px;color:#333}.tabulator-edit-select-list .tabulator-edit-select-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-select-list .tabulator-edit-select-list-item.focused{outline:1px solid #1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-notice{padding:4px;color:#333;text-align:center}.tabulator-edit-select-list .tabulator-edit-select-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-col-resize-handle{position:absolute;left:0;right:auto}.tabulator.tabulator-rtl .tabulator-col-resize-handle.prev{right:0;left:auto}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-print-table-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.ft-wrapper{margin-top:8px;width:100%;margin-bottom:40px}.ft-container{position:relative}.ft-container .ft-time{width:100%;position:relative}.ft-container .ft-time .ft-date-container{width:4px;height:14px;line-height:14px;background-color:#1ab;cursor:default}.ft-container .ft-time-origin-container{width:28px;height:14px;line-height:14px;color:#1ab;text-align:center;cursor:pointer}.ft-container .ft-time-origin-container .ft-time-origin{vertical-align:baseline;color:#1ab}.ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#0277bd}.ft-container .ft-timeline-container .ft-timeline{height:14px;width:100%;top:0;margin:0;position:relative;padding:0;cursor:pointer}.ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{height:1px;background-color:#1ab;width:100%;position:absolute;top:6.5px;z-index:9000}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container{z-index:10000;width:4px;height:14px;position:absolute}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice{height:100%;width:100%;background-color:#1ab}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{font-size:.65em;color:#1ab;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ft-container .ft-timeline-container .ft-timeline .ft-actual-time{height:14px;font-size:22px;color:#1ab;position:absolute;top:-12px;left:-15px;z-index:10001}.kd-is-app .ft-container .ft-time .ft-date-container{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container,.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin{color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:var(--app-link-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline{background-color:var(--app-background-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:var(--app-main-color)}.ft-date-tooltip{width:150px}.ft-date-tooltip .ft-date-tooltip-content{text-align:center}.dv-empty-documentation{position:absolute;width:100%;height:80px;text-aling:center;top:calc((100% - 80px)/2);padding:0;text-align:center;font-size:60px;font-weight:700;color:#1ab}.dv-documentation-wrapper{position:absolute;left:0;width:100%;height:100%;overflow:auto;border:none}.dv-documentation .dv-content{padding:1em 2em}.dv-documentation .dv-content h1,.dv-documentation .dv-content h2,.dv-documentation .dv-content h3,.dv-documentation .dv-content h4,.dv-documentation .dv-content h5,.dv-documentation .dv-content h6{font-weight:700;color:#777;margin:0;padding:.6em 0}.dv-documentation .dv-content [id]{-webkit-transition:.3s ease;transition:.3s ease;border-radius:4px}.dv-documentation .dv-content [id].dv-selected{-webkit-animation:blinker 1.5s;animation:blinker 1.5s}.dv-documentation .dv-table-container .dv-table-title{font-weight:700;color:#777;font-size:larger;padding:16px 0}.dv-documentation .dv-table-container .dv-table-bottom{margin:8px 0 0}.dv-documentation .dv-figure-container{padding:16px;margin:16px 0;border:1px solid #1ab;max-width:960px}.dv-documentation .dv-figure-container .dv-figure-caption-wrapper{padding-bottom:8px}.dv-documentation .dv-figure-container .dv-figure-caption{color:#1ab;font-style:italic}.dv-documentation .dv-figure-container .dv-figure-timestring{color:#1ab;font-size:.8em;text-align:right}.dv-documentation .dv-figure-wrapper .dv-figure-image{text-align:center;overflow:hidden;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-figure-image img{width:100%;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-col-fill,.dv-documentation .dv-figure-wrapper .dv-figure-legend{padding-left:16px;width:320px;max-width:320px}.dv-documentation .dv-figure-wrapper .dv-figure-wait{max-width:640px;min-height:320px;height:auto;border:1px solid #eee;text-align:center}.dv-documentation .dv-figure-wrapper .dv-figure-wait .q-spinner{color:#9e9e9e}.dv-documentation .dv-figure-wrapper .hv-details-nodata,.dv-documentation .dv-figure-wrapper .hv-histogram-nodata{display:none}.dv-documentation .dv-figure-wrapper .hv-categories{margin-left:8px}.dv-documentation .dv-figure-wrapper .hv-categories .hv-category{overflow:hidden;color:#1ab}.dv-documentation .dv-citation,.dv-documentation .dv-paragraph,.dv-documentation .dv-reference{color:var(--app-main-color)}.dv-documentation .dv-citation a,.dv-documentation .dv-paragraph a,.dv-documentation .dv-reference a{display:inline-block;text-decoration:none;color:var(--app-main-color)}.dv-documentation .dv-citation a:visited,.dv-documentation .dv-paragraph a:visited,.dv-documentation .dv-reference a:visited{color:var(--app-main-color)}.dv-documentation .dv-citation a:after,.dv-documentation .dv-paragraph a:after,.dv-documentation .dv-reference a:after{content:"";display:block;width:0;border-bottom-width:1px;border-bottom-style:solid;-webkit-transition:width .3s;transition:width .3s}.dv-documentation .dv-citation a:not(.disabled):hover:after,.dv-documentation .dv-paragraph a:not(.disabled):hover:after,.dv-documentation .dv-reference a:not(.disabled):hover:after{width:100%}.dv-documentation .dv-citation a.disabled,.dv-documentation .dv-paragraph a.disabled,.dv-documentation .dv-reference a.disabled{cursor:default!important}.dv-documentation .dv-model-container,.dv-documentation .dv-resource-container{margin:8px 0;padding:8px 16px;color:#1ab;font-weight:400}.dv-documentation .dv-resource-container{border:1px solid #1ab;border-radius:10px!important;margin:16px 0}.dv-documentation .dv-resource-container.dv-selected{border-width:4px!important}.dv-documentation .dv-resource-container .dv-resource-title-container{background-color:var(--app-darklight-background-color);padding:8px;margin:8px 0 16px;border-radius:2px}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-title{font-size:var(--app-title-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-originator{font-size:var(--app-subtitle-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords{padding:8px 8px 0 0}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper{display:inline-block;font-size:var(--app-small-size);color:var(--app-link-color)}.dv-documentation .dv-resource-container .dv-resource-description{font-size:smaller}.dv-documentation .dv-resource-map{width:360px}.dv-documentation .dv-resource-map .dv-resource-authors{font-size:var(--app-small-size);padding-bottom:5px}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-wrapper{display:inline-block}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator{padding-right:8px}.dv-documentation .dv-resource-map .dv-resource-references{font-size:calc(var(--app-small-size) - 2px)}.dv-documentation .dv-resource-urls{margin:16px 0 0;font-size:var(--app-small-size)}.dv-documentation .klab-inline-link{font-size:var(--app-small-size);vertical-align:super}.dv-documentation .dv-button{padding:8px}.kd-is-app{background-image:none!important}.kd-is-app .kd-container{background-color:var(--app-darken-background-color)}.kd-is-app .dv-documentation-wrapper{border-top-left-radius:8px}.kd-is-app .dv-empty-documentation{color:var(--app-text-color)}.kd-is-app .dv-documentation,.kd-is-app .dv-documentation .dv-content{background-color:var(--app-background-color)}.kd-is-app .dv-documentation .dv-content h1,.kd-is-app .dv-documentation .dv-content h2,.kd-is-app .dv-documentation .dv-content h3,.kd-is-app .dv-documentation .dv-content h4,.kd-is-app .dv-documentation .dv-content h5,.kd-is-app .dv-documentation .dv-content h6{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-table-container .dv-table-title{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-caption{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-timestring,.kd-is-app .dv-documentation .dv-figure-container .dv-figure-wait .q-spinner{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .hv-categories .hv-category,.kd-is-app .dv-documentation .dv-figure-container .hv-data-details,.kd-is-app .dv-documentation .dv-figure-container .hv-data-value,.kd-is-app .dv-documentation .dv-figure-container .hv-tooltip{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-model-container,.kd-is-app .dv-documentation .dv-resource-container{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-resource-container{border-color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-model-container{font-family:monospace}.kd-is-app .dv-documentation .dv-model-container .dv-selected{font-size:larger}.kd-is-app .dv-documentation .dv-model-container .dv-model-space{display:inline-block;width:2em}.kd-is-app .dv-documentation .dv-reference{margin:8px 0;padding:8px 0}.kd-is-app .dv-documentation .dv-reference.dv-selected{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-other-container{display:none}.kd-is-app .dv-documentation .klab-link{color:var(--app-link-color);font-weight:500!important}.kd-is-app .dv-documentation .klab-link:visited{color:var(--app-link-visited-color)}.kd-is-app .dv-documentation .dv-button{color:var(--app-main-color)}@media print{.kd-modal .modal-content .dv-figure-wrapper,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .dv-table-container{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}.kd-modal .modal-content .dv-figure-container{border:none}.kd-modal .modal-content .dv-figure-container .dv-figure-caption,.kd-modal .modal-content .dv-figure-container .dv-figure-timestring{color:#000}.kd-modal .modal-content .hv-category{color:#000!important}.kd-modal .modal-content .ft-container .ft-time .ft-date-container{background-color:#fff}.kd-modal .modal-content .ft-container .ft-time-origin-container,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#000}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline{background-color:#fff}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:#000}.kd-modal .modal-content .dv-model-container,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:#000}.kd-modal .modal-content .dv-resource-container{border:1px solid #000}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container{background-color:#fff}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper,.kd-modal .modal-content .dv-resource-container .dv-resource-urls .klab-link{color:#000}}@-webkit-keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}@keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}.kexplorer-container.kd-is-app{background-color:var(--app-background-color)}.kd-modal .modal-content{border-radius:20px;padding:20px 0;background-color:#fff;overflow:hidden;width:1024px;min-height:80vh}.kd-modal .dv-documentation-wrapper .dv-content{padding-top:0}.kd-modal .dv-print-hide{position:absolute;top:5px;right:20px}@media print{body{min-width:100%}#q-app{display:none}.kd-modal.fullscreen{position:static}.kd-modal .modal-content{min-width:100%;max-width:100%;min-height:100%;max-height:100%;-webkit-box-shadow:none;box-shadow:none;width:100%!important;border-radius:0!important}.dv-documentation-wrapper p,.dv-documentation-wrapper table td{word-break:break-word}.dv-documentation-wrapper{display:block!important;position:relative!important;overflow:visible!important;overflow-y:visible!important;width:100%!important;height:100%!important;margin:0!important;left:0!important;border:none!important}.modal-backdrop{background:transparent!important}}.dip-container{color:#fff;padding-top:30px;width:100%}.dip-container .dip-content{margin-bottom:40px}.dip-container .dip-close{width:100%;text-align:right;position:absolute;left:0;top:0;color:#fff}.dip-container .simplebar-scrollbar:before{background:#888}.dip-container article{padding:0 10px}.dip-container article hr{height:1px;border:none;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444}.dip-container article h1{color:#1ab;font-size:1.4em;margin:0 0 10px;font-weight:700;word-break:break-all}.dip-container article .dfe-fixed{color:hsla(0,0%,100%,.6);font-size:.7em}.dip-container article .dfe-fixed p{margin:0 0 .6em}.dip-container article .dfe-content{font-size:.8em}.dip-container article .dfe-content table{padding:10px 0}.dip-container article .dfe-content table th{color:#ffc300;text-align:left;border-bottom:1px solid;margin:0}.dip-container article .dfe-content table tr:nth-child(2n){background-color:hsla(0,0%,59.6%,.1)}.dip-container article .dfe-content mark{background-color:transparent;color:#ffc300;font-weight:700}.dip-container article .dfe-content div{margin:.2em 0 .8em;padding:5px;border-radius:5px;background-color:hsla(0,0%,59.6%,.4);word-break:break-all}.dip-container article .dfe-content div p{margin-bottom:.5em}.kd-is-app .dip-container{color:var(--app-text-color)}.kd-is-app .dip-close{color:var(--app-main-color)}.kd-is-app .simplebar-scrollbar:before{background:var(--app-main-color)}.kd-is-app article hr{border-top:none;border-bottom:1px solid var(--app-main-color)}.kd-is-app article h1{color:var(--app-title-color)}.kd-is-app article .dfe-fixed{color:var(--app-lighten-main-color)}.kd-is-app article .dfe-content table th{color:var(--app-title-color)}.kd-is-app article .dfe-content table tr:nth-child(2n){background-color:var(--app-darken-background-color,.1)}.kd-is-app article .dfe-content mark{color:var(--app-title-color)}.kd-is-app article .dfe-content div{background-color:var(--app-darken-background-color,.4)}.kd-is-app article .dfe-content div p{margin-bottom:.5em}.dfv-container{width:100%}.dfv-container.dfv-with-info{width:calc(100% - 320px)}.dfv-container.dfv-with-info #sprotty{right:320px}.dfv-container .dfv-graph-info{position:absolute;top:0;left:0;width:100%;height:40px;background-color:#e0e0e0;border-bottom:1px solid hsla(0,0%,52.9%,.2)}.dfv-container .dfv-graph-info .dfv-graph-type{padding:10px;font-weight:500;min-width:100px;width:50%;float:left;color:var(--app-title-color)}.dfv-container .dfv-graph-info .dfv-graph-selector{text-align:right;min-width:100px;width:50%;right:0;float:left}.dfv-container .dfv-graph-info .dfv-graph-selected{cursor:default;background-color:var(--app-main-color);color:#fff}.dfv-container #sprotty{position:absolute;background-color:#e0e0e0;top:40px;left:0;right:0;bottom:0}.dfv-container #sprotty svg{width:100%;height:calc(100% - 5px);cursor:default}.dfv-container #sprotty svg:focus{outline-style:none}.dfv-container #sprotty svg .elknode{stroke:#b0bec5;fill:#eceff1;stroke-width:1}.dfv-container #sprotty svg .elkport{stroke:#78909c;stroke-width:1;fill:#78909c}.dfv-container #sprotty svg .elkedge{fill:none;stroke:#546e7a;stroke-width:1}.dfv-container #sprotty svg .elkedge.arrow{fill:#37474f}.dfv-container #sprotty svg .elklabel{stroke-width:0;stroke:#000;fill:#000;font-family:Roboto;font-size:12px;dominant-baseline:middle}.dfv-container #sprotty svg .elkjunction{stroke:none;fill:#37474f}.dfv-container #sprotty svg .selected>rect{stroke-width:3px}.dfv-container #sprotty svg .elk-actuator,.dfv-container #sprotty svg .elk-instantiator,.dfv-container #sprotty svg .elk-resolver,.dfv-container #sprotty svg .elk-resources,.dfv-container #sprotty svg .elk-table,.dfv-container #sprotty svg .mouseover{stroke-width:2px}.dfv-container #sprotty svg .waiting.elk-resource{fill:#e8f5e9;stroke:#c8e6c9}.dfv-container #sprotty svg .waiting.elk-actuator,.dfv-container #sprotty svg .waiting.elk-resolver{fill:#cfd8dc;stroke:#b0bec5}.dfv-container #sprotty svg .waiting.elk-instantiator,.dfv-container #sprotty svg .waiting.elk-table{fill:#e0e0e0;stroke:#bdbdbd}.dfv-container #sprotty svg .waiting.elk-resource_entity{fill:#80cbc4;stroke:blue-$grey-4}.dfv-container #sprotty svg .waiting.elk-semantic_entity{fill:#b2dfdb;stroke:#80cbc4}.dfv-container #sprotty svg .waiting.elk-literal_entity{fill:#80cbc4;stroke:#4db6ac}.dfv-container #sprotty svg .waiting.elk-model_activity{fill:#4db6ac;stroke:#26a69a}.dfv-container #sprotty svg .waiting.elk-task_activity{fill:#e0f2f1;stroke:#b2dfdb}.dfv-container #sprotty svg .waiting.elk-dataflow_plan{fill:#b2dfdb;stroke:#80cbc4}.dfv-container #sprotty svg .waiting.elk-klab_agent{fill:#80cbc4;stroke:#4db6ac}.dfv-container #sprotty svg .waiting.elk-user_agent,.dfv-container #sprotty svg .waiting.elk-view_entity{fill:#4db6ac;stroke:#26a69a}.dfv-container #sprotty svg .processed.elk-resource{fill:#c8e6c9;stroke:#a5d6a7}.dfv-container #sprotty svg .processed.elk-actuator,.dfv-container #sprotty svg .processed.elk-resolver{fill:#b0bec5;stroke:#78909c}.dfv-container #sprotty svg .processed.elk-instantiator,.dfv-container #sprotty svg .processed.elk-table{fill:#bdbdbd;stroke:#9e9e9e}.dfv-container #sprotty svg .processing.elk-resource{fill:#a5d6a7;stroke:#81c784}.dfv-container #sprotty svg .processing.elk-actuator,.dfv-container #sprotty svg .processing.elk-resolver{fill:#78909c;stroke:#455a64}.dfv-container #sprotty svg .processing.elk-instantiator,.dfv-container #sprotty svg .processing.elk-table{fill:#9e9e9e;stroke:#757575}.dfv-info-container{position:absolute;background-color:rgba(35,35,35,.9);overflow:hidden;height:100%!important;width:320px;left:calc(100% - 320px);right:0;bottom:0;top:0;z-index:1001}.kd-is-app #dfv-container #sprotty{background-color:var(--app-darken-background-color);padding-left:16px}.kd-is-app .dfv-info-container{background-color:rgba(var(--app-rgb-background-color),.9)}.irm-container{padding:20px;width:60vw;overflow:hidden;position:relative}.irm-container h3,.irm-container h4,.irm-container h5,.irm-container p{margin:0;padding:0;color:#1ab}.irm-container h3,.irm-container p{margin-bottom:10px}.irm-container h3,.irm-container h4,.irm-container h5{line-height:1.4em}.irm-container h3{font-size:1.4em}.irm-container h4{font-size:1.2em}.irm-container h5{font-size:1em}.irm-container h4+p,.irm-container h5+p{color:#333;font-size:.8em;font-style:italic}.irm-container h5+p{padding-bottom:10px}.irm-container .q-tabs:not(.irm-tabs-hidden) .q-tabs-head,.irm-container h5+p{border-bottom:1px solid #1ab}.irm-container .q-tab:not(.irm-tabs-hidden){border-top-left-radius:5px;border-top-right-radius:5px;background-color:#1ab}.irm-container .q-tabs-position-top>.q-tabs-head .q-tabs-bar{border-bottom-width:10px;color:hsla(0,0%,100%,.3)}.irm-container .irm-fields-container{max-height:50vh;overflow:hidden;border:1px dotted #1ab;margin:10px 0}.irm-container .irm-fields-container .irm-fields-wrapper{padding:10px;overflow-x:hidden}.irm-container .irm-fields-container label{font-style:italic}.irm-container .irm-group{margin-bottom:30px}.irm-container .irm-buttons{position:absolute;bottom:0;right:0;margin:0 30px 10px 0}.irm-container .irm-buttons .q-btn{margin-left:10px}.scd-inactive-multiplier .q-input-target{color:#979797}#dmc-container.full-height{height:calc(100% - 86px)!important}#dmc-container #kt-out-container{height:100%;position:relative}#dmc-container #dmc-tree{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none;background-color:hsla(0,0%,46.7%,.65);overflow:hidden}#dmc-container #dmc-tree #klab-tree-pane{height:100%}#dmc-container #dmc-tree #oi-container{height:calc(100% - 24px);max-height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper{height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#dmc-container.dmc-dragging{cursor:move!important}#dmc-container .kbc-container{margin:2px;padding:0;height:10px}#dmc-container .q-card-main.dmc-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}#dmc-container .q-card-main.dmc-loading .ktp-loading{background:transparent;-webkit-animation:none;animation:none}#dmc-container details{background-color:#777;border-top:1px solid #333}#dmc-container details #ktp-main-tree-arrow{background-color:#333}#dmc-container details[open]{border-bottom:1px solid #333}#dmc-container .dmc-timeline .ot-container{padding:9px 0}#lm-container{width:100%;overflow:hidden}#lm-container #spinner-leftmenu-container{padding-top:10px;padding-bottom:20px}#lm-container #spinner-leftmenu-div{width:44px;height:44px;margin-top:10px;margin-left:auto;margin-right:auto;background-color:#fff;border-radius:40px;border:2px solid}#lm-container #lm-actions,#lm-container #lm-content{float:left;border-right:1px solid hsla(0,0%,52.9%,.2)}#lm-container #lm-actions.klab-lm-panel,#lm-container #lm-content.klab-lm-panel{background-color:rgba(35,35,35,.5)}#lm-container .lm-separator{width:90%;left:5%;height:2px;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444;margin:0 auto}#lm-container .klab-button{display:block;font-size:30px;width:42px;height:42px;line-height:42px;vertical-align:middle;padding:0 5px;margin:15px auto}#lm-container .klab-main-actions .klab-button:hover{color:#1ab!important}#lm-container .klab-main-actions .klab-button:active{color:#fff}#lm-container .klab-button-notification{width:10px;height:10px;top:5px;right:5px}#lm-container .sb-scales{margin:0}#lm-container .sb-scales .lm-separator{width:60%;border-top-style:dashed;border-bottom-style:dashed}#lm-container #lm-bottom-menu{width:100%;position:fixed;bottom:0;left:0}.ol-box{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width}.ol-overlay-container{will-change:left,right,top,bottom}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.ol-control{position:absolute;background-color:hsla(0,0%,100%,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:hsla(0,0%,100%,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;-webkit-transition:opacity .25s linear,visibility 0s linear;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;-webkit-transition:opacity .25s linear,visibility 0s linear .25s;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}@media print{.ol-control{display:none}}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;font-size:.7rem;line-height:1.375em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none;line-height:inherit}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0;height:1.1em;line-height:1em}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.kexplorer-container{background-color:#263238;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHUlEQVQIW2NgY2OzYUACYL6+vn4UsgAynwwBEB8ARuIGpsZxGOoAAAAASUVORK5CYII=)}.klab-spinner{display:inline;vertical-align:middle;background-color:#fff;border-radius:40px;padding:3px;margin:0}.kexplorer-undocking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.3);border:4px solid hsla(0,0%,52.9%,.6);-webkit-animation-duration:.2s;animation-duration:.2s;cursor:move}.klab-left{position:absolute;background-color:rgba(35,35,35,.8)}.klab-large-mode.no-scroll{overflow:visible!important}.kapp-container .kcv-alert .modal-backdrop{background-color:transparent}.kapp-container .q-input-target{color:var(--app-text-color);background-color:var(--app-background-color);line-height:var(--app-line-height);height:auto}.kapp-container .q-btn{min-height:var(--app-line-height)}.kapp-container .q-no-input-spinner{-moz-appearance:textfield!important}.kapp-container .q-no-input-spinner::-webkit-inner-spin-button,.kapp-container .q-no-input-spinner::-webkit-outer-spin-button{-webkit-appearance:auto}.kapp-container .q-if:after,.kapp-container .q-if:before{border-bottom-style:none}.kapp-container .q-if .q-if-inner{min-height:unset}.kapp-container .q-if-baseline{line-height:var(--app-line-height)}.kapp-container .q-field-bottom,.kapp-container .q-field-icon,.kapp-container .q-field-label,.kapp-container .q-if,.kapp-container .q-if-addon,.kapp-container .q-if-control,.kapp-container .q-if-label,.kapp-container .q-if:before{-webkit-transition:none;transition:none}.kcv-main-container+.kcv-group{padding-bottom:1px}.kcv-main-container>.kcv-group{height:100%!important;border-bottom:1px solid var(--app-main-color)}.kcv-main-container>.kcv-group>.kcv-group-container>.kcv-group-content>.kcv-group>.kcv-group-content{padding-bottom:0!important}.kcv-main-container>.kcv-group .kcv-group-container{height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content{padding-bottom:var(--app-smaller-mp);-ms-flex-pack:distribute;justify-content:space-around}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-group{padding:calc(var(--app-smaller-mp)/4) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-pushbutton{margin:var(--app-large-mp) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group-legend{color:var(--app-title-color);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2em;vertical-align:center;font-weight:300;font-size:1.2em}.kcv-main-container>.kcv-group .kcv-group-bottom{position:fixed;bottom:0;z-index:1000;background-color:var(--app-background-color);border-top:1px solid var(--app-main-color)}.kcv-collapsible .kcv-collapsible-header{background-color:var(--app-background-color);color:var(--app-title-color);border-bottom:1px solid var(--app-darken-background-color)}.kcv-collapsible .kcv-collapsible-header .q-item-side-left{min-width:0}.kcv-collapsible .kcv-collapsible-header .q-item-side-left .q-icon{font-size:1.2em;width:1.2em}.kcv-collapsible .kcv-collapsible-header .q-item-label{font-size:var(--app-font-size)}.kcv-collapsible .kcv-collapsible-header .q-item-side{color:var(--app-title-color)}.kcv-collapsible .kcv-collapsible-header .q-item-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.kcv-collapsible .kcv-collapsible-header .q-item-icon.rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.kcv-collapsible .q-item{min-height:unset;padding:var(--app-small-mp)}.kcv-collapsible .q-collapsible-sub-item{padding:0}.kcv-collapsible .q-collapsible-sub-item>.kcv-group{border-top:1px solid var(--app-main-color);border-bottom:1px solid var(--app-main-color)}.kcv-tree-container{padding:var(--app-small-mp) 0;position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.kcv-tree-container .kcv-tree-legend{color:var(--app-title-color);padding:var(--app-small-mp);margin:0 var(--app-small-mp);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kcv-hr-separator{width:100%;color:var(--app-main-color);height:1px}.kcv-separator{padding:var(--app-large-mp) var(--app-small-mp);position:relative;border-bottom:1px solid var(--app-main-color);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.2em}.kcv-separator .kcv-separator-icon{margin-right:var(--app-small-mp);font-size:1.2em;width:1.2em}.kcv-separator .kcv-separator-title{font-weight:300;font-size:1.2em;-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10}.kcv-separator .kcv-separator-right{font-size:1.3em;width:1.2em;-ms-flex-item-align:start;align-self:flex-start;cursor:pointer}.kcv-label{font-weight:400;color:var(--app-main-color);vertical-align:middle;line-height:calc(var(--app-line-height) + 4px);-ms-flex-item-align:center;align-self:center;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-label.kcv-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kcv-label.kcv-with-icon{min-width:calc(1rem + var(--app-small-mp)*2)}.kcv-label .kcv-label-icon{margin-right:var(--app-small-mp)}.kcv-label.kcv-title{color:var(--app-alt-color);font-weight:700;cursor:default;margin-top:var(--app-smaller-mp)}.kcv-label.kcv-clickable{cursor:pointer}.kcv-text{margin:var(--app-large-mp) var(--app-small-mp);text-align:justify;position:relative;color:var(--app-text-color)}.kcv-text .kcv-internal-text{overflow:hidden}.kcv-text .kcv-internal-text p{padding:0 var(--app-small-mp);margin-bottom:var(--app-large-mp)}.kcv-text .kcv-internal-text strong{color:var(--app-title-color)}.kcv-text .kcv-collapse-button{width:100%;position:absolute;bottom:0;left:0;text-align:center;vertical-align:middle;line-height:20px;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;background-color:rgba(var(--app-rgb-main-color),.1);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.kcv-text:hover .kcv-collapse-button{opacity:1}.kcv-text.kcv-collapse{margin-bottom:1em}.kcv-text.kcv-collapsed{padding-top:0;height:20px!important;overflow:hidden;padding-bottom:14px}.kcv-text.kcv-collapsed .kcv-internal-text{display:none}.kcv-text.kcv-collapsed .kcv-collapse-button{opacity:1;border-radius:4px}.kcv-form-element{margin:0 var(--app-small-mp)}.kcv-form-element:not(.kcv-roundbutton){border-radius:6px}.kcv-text-input{min-height:var(--app-line-height);vertical-align:middle;border:1px solid var(--app-main-color);background-color:var(--app-background-color);padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-text-input.kcv-search{margin-top:var(--app-smaller-mp)}.kcv-combo{padding:2px 10px;background-color:var(--app-background-color);border-radius:6px;border:1px solid var(--app-main-color)}.kcv-combo-option{color:var(--app-main-color);min-height:unset;padding:var(--app-small-mp) var(--app-large-mp)}.kcv-pushbutton{font-size:var(--app-font-size);margin:0 var(--app-small-mp)}.kcv-pushbutton .q-icon{color:var(--button-icon-color)}.kcv-reset-button,.kcv-roundbutton{margin:0 var(--app-smaller-mp)}.kcv-checkbutton{display:block;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-checkbutton:not(.kcv-check-only){width:100%}.kcv-checkbutton.kcv-check-computing span,.kcv-checkbutton.kcv-check-waiting span{font-style:italic}.kcv-checkbutton.kcv-check-computing .q-icon:before,.kcv-checkbutton.kcv-check-waiting .q-icon:before{font-size:calc(1em + 1px);-webkit-animation:q-spin 2s linear infinite;animation:q-spin 2s linear infinite}.kcv-label-toggle{color:var(--app-darken-background-color);text-shadow:-1px -1px 0 var(--app-main-color)}.kcv-error-tooltip{background-color:var(--app-negative-color)}.kcv-browser{border-radius:8px}.kcv-style-dark .kcv-reset-button{color:#fa7575!important}@-webkit-keyframes flash-button{50%{background-color:var(--flash-color)}}@keyframes flash-button{50%{background-color:var(--flash-color)}}body .klab-main-app{position:relative}body .kapp-footer-container,body .kapp-header-container,body .kapp-left-inner-container,body .kapp-main-container:not(.is-kexplorer),body .kapp-right-inner-container{color:var(--app-text-color);font-family:var(--app-font-family);font-size:var(--app-font-size);line-height:var(--app-line-height);background-color:var(--app-background-color);padding:0;margin:0}body .kapp-right-inner-container{position:absolute!important}body .kapp-right-inner-container .kapp-right-wrapper{overflow:hidden}body .kapp-left-inner-container{position:absolute!important}body .kapp-left-inner-container .kapp-left-wrapper{overflow:hidden}.kapp-main.q-layout{border:0;padding:0;margin:0}.kapp-main .simplebar-scrollbar:before{background-color:var(--app-main-color)}.kapp-header{background-color:var(--app-background-color);padding:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;height:calc(40px + var(--app-title-size) + var(--app-subtitle-size));min-height:calc(40px + var(--app-title-size) + var(--app-subtitle-size))}.kapp-header .kapp-logo-container{-ms-flex-item-align:center;align-self:center;margin:0 10px}.kapp-header .kapp-logo-container img{max-width:80px;max-height:80px}.kapp-header .kapp-title-container{color:var(--app-title-color);-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:center;align-self:center;padding-left:10px}.kapp-header .kapp-title-container .kapp-title{height:var(--app-title-size);line-height:var(--app-title-size);font-weight:500;font-size:var(--app-title-size);margin-bottom:6px}.kapp-header .kapp-title-container .kapp-version{display:inline-block;font-weight:300;font-size:var(--app-subtitle-size);margin-left:16px;position:relative;bottom:3px;padding:0 4px;opacity:.5;border:1px solid var(--app-main-color)}.kapp-header .kapp-title-container .kapp-subtitle{height:var(--app-subtitle-size);line-height:var(--app-subtitle-size);font-size:var(--app-subtitle-size);font-weight:300}.kapp-header .kapp-header-menu-container{position:absolute;right:0;padding:10px 16px}.kapp-header .kapp-header-menu-container .kapp-header-menu-item{margin:0 0 0 16px;color:var(--app-title-color);cursor:pointer}.kapp-header .kapp-actions-container .klab-main-actions{margin:0 1px 0 0;min-width:178px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button{width:60px;height:45px;font-size:26px;margin:0 -1px 0 0;text-align:center;padding:10px 0;border-top-left-radius:4px!important;border-top-right-radius:4px!important;border:1px solid var(--app-main-color);border-bottom:0;text-shadow:0 1px 2px var(--app-lighten-background-color);color:var(--app-main-color)!important;position:relative;bottom:-1px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button.active{background-color:var(--app-darken-background-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button:hover:not(.active){background-color:var(--app-darken-background-color);border-bottom:1px solid var(--app-main-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button-notification{width:11px;height:11px;border-radius:10px;top:5px;right:11px;background-color:var(--app-main-color)!important;border:1px solid var(--app-background-color)}.kcv-dir-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.klab-close-app{position:absolute;z-index:100000}.klab-close-app.klab-close-app-on-left,.klab-close-app.klab-close-app-on-panel{height:32px;width:32px;opacity:.2}.klab-close-app.klab-close-app-on-left .q-icon,.klab-close-app.klab-close-app-on-panel .q-icon{font-size:16px}.klab-close-app.klab-close-app-on-left:hover,.klab-close-app.klab-close-app-on-panel:hover{height:50px;width:50px;opacity:1}.klab-close-app.klab-close-app-on-left:hover .q-icon,.klab-close-app.klab-close-app-on-panel:hover .q-icon{font-size:22px}.klab-close-app.klab-close-app-on-left:hover{-webkit-transform:translate(-22px);transform:translate(-22px)}.klab-close-app.klab-close-app-on-panel{background-color:var(--app-main-color);color:var(--app-background-color)}.kapp-loading{background-color:var(--app-background-color);padding:16px;text-align:center;min-width:60px;border-radius:20px}.kapp-loading div{margin-top:15px;color:var(--app-main-color)}.km-main-container .km-title{background-color:var(--app-main-color)!important;color:var(--app-background-color)}.km-main-container .km-title .q-toolbar-title{font-size:var(--app-modal-title-size)}.km-main-container .km-title .km-subtitle{font-size:var(--app-modal-subtitle-size)}.km-main-container .km-content{overflow:hidden;border-radius:8px;border:1px solid var(--app-main-color);margin:16px 16px 0;padding:8px;background-color:var(--app-background-color)}.km-main-container .km-content .kcv-main-container>.kcv-group{border:none}.km-main-container .km-buttons{margin:8px 16px}.km-main-container .km-buttons .klab-button{font-size:16px;background-color:var(--app-main-color);color:var(--app-background-color)!important}.ks-stack-container{position:relative;height:calc(100% - 30px);margin:30px 20px 0}.ks-stack-container .ks-layer{position:absolute;top:0;left:0;bottom:90px;right:0;opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out;overflow:hidden}.ks-stack-container .ks-layer.ks-top-layer{z-index:999!important;opacity:1}.ks-stack-container li{padding-bottom:10px}.ks-stack-container .ks-layer-caption{position:absolute;padding:12px;width:auto;height:auto;color:#616161;max-height:100%;overflow:auto}.ks-stack-container .ks-layer-caption .ks-caption-title{font-size:24px;letter-spacing:normal;margin:0;text-align:center}.ks-stack-container .ks-layer-caption .ks-caption-text{font-size:16px}.ks-stack-container .ks-layer-image{position:absolute;overflow:hidden}.ks-stack-container .ks-layer-image img{width:auto;height:auto}.ks-stack-container .ks-middle{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ks-stack-container .ks-middle.ks-center{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ks-stack-container .ks-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.ks-stack-container .ks-center:not(.ks-layer-image){width:100%}.ks-stack-container .ks-top{top:0}.ks-stack-container .ks-bottom{bottom:0}.ks-stack-container .ks-left{left:0}.ks-stack-container .ks-right{right:0}.ks-stack-container .ks-navigation{width:100%;text-align:center;position:absolute;bottom:50px;right:0;z-index:10000;vertical-align:middle;-webkit-transition:opacity .3s;transition:opacity .3s;height:40px;border-bottom:1px solid #eee}.ks-stack-container .ks-navigation.ks-navigation-transparent{opacity:.6}.ks-stack-container .ks-navigation:hover{opacity:1}@media (min-width:1600px){.ks-stack-container .ks-caption-title{font-size:32px!important;margin:0 0 1em!important}.ks-stack-container .ks-caption-text{font-size:18px!important}}.klab-modal-container .klab-modal-inner .kp-no-presentation{font-weight:700;position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .kp-refresh-btn{position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .klab-small{font-size:smaller}.klab-modal-container .kp-help-titlebar{position:absolute;width:100%;height:25px;padding:8px 0 0 20px;z-index:100000}.klab-modal-container .kp-help-titlebar .kp-link{font-size:11px;color:#616161;cursor:pointer;float:left;padding:0 10px 0 0}.klab-modal-container .kp-help-titlebar .kp-link:hover:not(.kp-link-current){text-decoration:underline;color:#1ab}.klab-modal-container .kp-help-titlebar .kp-link-current{cursor:default;text-decoration:underline}.klab-modal-container .kp-carousel .kp-slide{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.klab-modal-container .kp-carousel .kp-main-content{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.klab-modal-container .kp-carousel .kp-main-content .kp-main-image{text-align:center;background-repeat:no-repeat;background-size:contain;background-position:50%;height:calc(100% - 40px)}.klab-modal-container .kp-main-title,.klab-modal-container .kp-nav-tooltip{position:absolute;bottom:0;vertical-align:middle;font-size:20px;line-height:50px;height:50px;text-align:center;width:80%;margin-left:10%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.klab-modal-container .kp-nav-tooltip{-webkit-transition:opacity .3s;transition:opacity .3s;opacity:0}.klab-modal-container .kp-nav-tooltip.visible{opacity:1}.klab-modal-container .kp-navigation{position:absolute;bottom:0;padding:10px 10px 10px 15px;vertical-align:middle}.klab-modal-container .kp-navigation .kp-navnumber-container{padding-left:3px;position:relative;float:left}.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-current,.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-number{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .kp-navigation .kp-nav-number{height:30px;width:30px;line-height:30px;vertical-align:middle;color:#fff;text-align:center;padding:0;cursor:pointer;border-radius:20px;background-color:rgba(97,97,97,.4);opacity:.7;z-index:10000}.klab-modal-container .kp-navigation .kp-nav-number.kp-nav-current,.klab-modal-container .kp-navigation .kp-nav-number:hover{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .internal-link{cursor:pointer}.klab-modal-container .internal-link:hover{color:#ffc300}.klab-modal-container .kp-icon-close-popover,.klab-modal-container .kp-icon-refresh-size{position:absolute;top:1px;right:2px;width:22px;height:22px;z-index:200000}.klab-modal-container .kp-icon-close-popover .q-focus-helper,.klab-modal-container .kp-icon-refresh-size .q-focus-helper{opacity:0}.klab-modal-container .kp-icon-close-popover:hover .mdi-close-circle-outline:before,.klab-modal-container .kp-icon-refresh-size:hover .mdi-close-circle-outline:before{content:"\F0159"}.klab-modal-container .kp-icon-refresh-size{right:24px}.klab-modal-container .kp-icon-refresh-size:hover{color:#1ab!important}.klab-modal-container .kp-checkbox{position:absolute;right:20px;bottom:10px;font-size:10px}.kn-modal-container .modal-content{max-width:640px!important}.kn-title{font-size:var(--app-title-size);color:var(--app-title-color)}.kn-content{font-size:var(--app-text-size)}.kn-checkbox,.kn-content{color:var(--app-text-color)}.kn-checkbox{position:absolute;left:20px;bottom:16px;font-size:10px}[data-simplebar]{position:relative;z-index:0;overflow:hidden!important;max-height:inherit;-webkit-overflow-scrolling:touch}[data-simplebar=init]{display:-webkit-box;display:-ms-flexbox;display:flex}[data-simplebar] .simplebar-content,[data-simplebar] .simplebar-scroll-content{overflow:hidden}[data-simplebar=init] .simplebar-content,[data-simplebar=init] .simplebar-scroll-content{overflow:scroll}.simplebar-scroll-content{overflow-x:hidden!important;min-width:100%!important;max-height:inherit!important;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.simplebar-content{overflow-y:hidden!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;min-height:100%!important}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;width:11px;pointer-events:none}.simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:0;right:0;opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.simplebar-track .simplebar-scrollbar.visible:before{opacity:.5;-webkit-transition:opacity 0 linear;transition:opacity 0 linear}.simplebar-track.vertical{top:0}.simplebar-track.vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.horizontal{left:0;width:auto;height:11px}.simplebar-track.horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.horizontal.simplebar-track .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track{right:auto;left:0}[data-simplebar-direction=rtl] .simplebar-track.horizontal{right:0}:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.klab-wait-app{min-width:50px}.klab-wait-app .klab-wait-app-container{text-align:center;width:100%;font-weight:300;font-size:1.5em;padding:20px}.klab-wait-app .klab-wait-app-container p{margin-bottom:0}.klab-wait-app .klab-wait-app-container strong{color:#1ab}.klab-wait-app .klab-wait-app-container .q-spinner{margin-bottom:16px}.klab-wait-app .klab-wait-app-container .klab-app-error,.klab-wait-app .klab-wait-app-container .klab-app-error strong{color:#ff6464}.klab-wait-app .klab-wait-app-container a.klab-app-refresh{display:block;color:#1ab;padding:8px 0 0;text-decoration:none}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:after{content:"\F0450";display:inline-block;font-family:Material Design Icons;margin:2px 0 0 8px;vertical-align:bottom;-webkit-transition:.6s;transition:.6s}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:hover:after{-webkit-transform:rotate(1turn);transform:rotate(1turn)} \ No newline at end of file +[data-v-b602390c]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.spinner-circle[data-v-b602390c]{fill:#da1f26;-webkit-transform:rotate(6deg);transform:rotate(6deg)}.spinner-circle.moving[data-v-b602390c]{-webkit-animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}@keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}#modal-connection-status.fullscreen{z-index:10000}#modal-connection-status .modal-borders{border-radius:40px}#modal-connection-status #modal-spinner{margin-right:10px;margin-left:1px}#modal-connection-status .modal-klab-content>span{display:inline-block;line-height:100%;vertical-align:middle;margin-right:15px}#modal-connection-status .modal-content{min-width:200px}.klab-settings-container{background-color:var(--app-background-color)!important}.klab-settings-container .klab-settings-button{position:fixed;bottom:28px;right:26px;opacity:.2}.klab-settings-container .klab-settings-button:hover{opacity:1}.klab-settings-container .klab-settings-button:hover .q-btn-fab{height:56px;width:56px}.klab-settings-container .klab-settings-button:hover .q-btn-fab .q-icon{font-size:28px}.klab-settings-container .klab-settings-button.klab-df-info-open{right:346px}.klab-settings-container .klab-settings-button .q-btn-fab{height:42px;width:42px}.klab-settings-container .klab-settings-button .q-btn-fab .q-icon{font-size:21px}.klab-settings-container .klab-settings-button .q-btn-fab-mini{height:24px;width:24px}.klab-settings-container .klab-settings-button .q-btn-fab-mini .q-icon{font-size:12px}.klab-settings-container .klab-settings-button.klab-fab-open{opacity:1}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab{height:56px;width:56px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab .q-icon{font-size:28px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini{height:48px;width:48px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini .q-icon{font-size:24px}.klab-settings-container .q-fab-up{bottom:100%;padding-bottom:10%}.ks-container{background-color:var(--app-background-color);padding:15px 20px;border-radius:5px;width:500px}.ks-container .ks-title{font-size:1.3em;color:var(--app-title-color);font-weight:400;margin-bottom:10px}.ks-container .ks-title .ks-title-text{display:inline-block}.ks-container .ks-title .ks-reload-button{display:inline-block;padding-left:10px;opacity:.3}.ks-container .ks-title .ks-reload-button:hover{opacity:1}.ks-container .ks-debug,.ks-container .ks-term{position:absolute;top:8px}.ks-container .ks-debug{right:46px}.ks-container .ks-term{right:16px}.ks-container .kud-owner{border:1px solid var(--app-main-color);border-radius:5px;padding:20px}.ks-container .kud-owner .kud-label{display:inline-block;width:100px;line-height:2.5em;vertical-align:middle;color:var(--app-title-color)}.ks-container .kud-owner .kud-value{display:inline-block;line-height:30px;vertical-align:middle;color:var(--app-text-color)}.ks-container .kud-owner .kud-value.kud-group{padding-right:10px}.ks-container .kal-apps .kal-app{margin-bottom:16px}.ks-container .kal-apps .kal-app .kal-app-description{display:-webkit-box;display:-ms-flexbox;display:flex;padding:8px 16px;border-radius:6px 16px 6px 16px;border:1px solid transparent;border-color:var(--app-lighten75-main-color)}.ks-container .kal-apps .kal-app .kal-app-description:not(.kal-active){cursor:pointer}.ks-container .kal-apps .kal-app .kal-app-description.kal-active{border-color:var(--app-darken-main-color)}.ks-container .kal-apps .kal-app .kal-app-description:hover{background-color:var(--app-lighten75-main-color)}.ks-container .kal-apps .kal-app .kal-app-description .kal-logo{-ms-flex-item-align:start;align-self:start;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:50px;height:50px;margin:0 16px 0 0}.ks-container .kal-apps .kal-app .kal-app-description .kal-logo img{display:block;max-width:50px;max-height:50px;vertical-align:middle}.ks-container .kal-apps .kal-app .kal-app-description .kal-info{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.ks-container .kal-apps .kal-app .kal-app-description .kal-info .kal-name{color:var(--app-title-color);font-weight:400}.ks-container .kal-apps .kal-app .kal-app-description .kal-info .kal-description{color:var(--app-text-color);font-size:80%}.ks-container .kal-apps .kal-locales span{display:inline-block;padding-left:2px}.ks-container .kal-apps .kal-locales span.flag-icon{font-size:90%}.ks-container .kal-apps .kal-locales .kal-lang-selector{height:32px;font-size:90%;padding:0 4px;border-radius:4px}.ks-container .kal-apps .kal-locales .kal-lang-selector .q-input-target{color:var(--app-main-color)}.kud-group-detail,.kud-group-id{text-align:center}.kud-group-detail{font-style:italic}.kud-no-group-icon{background-color:var(--app-title-color);text-align:center;color:var(--app-background-color);padding:2px 0 0;cursor:default;border-radius:15px}.kud-img-logo,.kud-no-group-icon{width:30px;height:30px;line-height:30px}.kud-img-logo{display:inline-block;vertical-align:middle}.klab-setting-tooltip{background-color:var(--app-main-color)}.kal-locale-options{color:var(--app-main-color);font-size:90%}.kal-locale-options .q-item-side{color:var(--app-main-color);min-width:0}.xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.kterm-container{z-index:4999}.kterm-container .kterm-header{border-top-right-radius:8px;border-top-left-radius:8px;height:30px;border-top:1px solid hsla(0,0%,100%,.5);border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);cursor:move;opacity:.9;z-index:5001}.kterm-container .kterm-header .kterm-button{position:absolute}.kterm-container .kterm-header .kterm-close{top:0;right:0}.kterm-container .kterm-header .kterm-minimize{top:0;right:30px}.kterm-container .kterm-header .kterm-drag{top:0;right:60px}.kterm-container .kterm-header .kterm-delete-history{top:0;right:90px}.kterm-container.kterm-minimized{width:90px;position:absolute;bottom:25px;left:25px;top:unset}.kterm-container.kterm-minimized .kterm-header{border-bottom-left-radius:10px;border-bottom-right-radius:10px;border:none}.kterm-container.kterm-focused{z-index:5000}.kterm-container .kterm-terminal{border:1px solid hsla(0,0%,100%,.5)}.kterm-tooltip{background-color:var(--app-main-color)!important}.kaa-container{background-color:hsla(0,0%,99.2%,.8);padding:15px;border-radius:5px}.kaa-container .kaa-content{border:1px solid var(--app-main-color);border-radius:5px;padding:20px;color:var(--app-title-color)}.kaa-container .kaa-button{margin:10px 0 0;width:100%;text-align:right}.kaa-container .kaa-button .q-btn{margin-left:10px}.klab-destructive-actions .klab-button{color:#ff6464!important}#ks-container{overflow-x:hidden;overflow-y:hidden;white-space:nowrap}#ks-container #ks-internal-container{float:left}.ks-tokens{display:inline-block;margin-right:-3px;padding:0 3px}.ks-tokens-accepted{font-weight:600}.ks-tokens.selected{outline:none}.bg-semantic-elements{border-radius:4px;border-style:solid;border-width:2px}.q-tooltip{max-width:512px}.q-popover{max-width:512px!important;border-radius:10px}#ks-autocomplete{scrollbar-color:#e5e5e5 transparent;scrollbar-width:thin}#ks-autocomplete .q-item.text-faded{color:#333}#ks-autocomplete .q-item.ka-separator{padding:8px 16px 5px;min-height:0;font-size:.8em;border-bottom:1px solid #e0e0e0}#ks-autocomplete .q-item.ka-separator.q-select-highlight{background-color:transparent}#ks-autocomplete .q-item:not(.text-faded):active{background:hsla(0,0%,74.1%,.5)}#ks-autocomplete::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar{width:6px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar-thumb{border-radius:10px;width:5px;background-color:#e5e5e5}.ks-tokens-fuzzy{width:100%}.ks-tokens-klab{width:256px}#ks-search-input{background-color:transparent}.ks-search-focused{padding:0;border-radius:4px;background-color:#e4fdff}.ks-search-focused,.ks-search-focused.ks-fuzzy{-webkit-transition:background-color .8s;transition:background-color .8s}.ks-search-focused.ks-fuzzy{background-color:#e7ffdb}#ks-autocomplete .q-item-side.q-item-section.q-item-side-left{-ms-flex-item-align:start;align-self:start}#ks-autocomplete .q-item-sublabel{font-size:80%}#ks-autocomplete .text-faded .q-item-section{font-size:1rem}.kl-model-desc-container{width:400px;background-color:#fff;color:#616161;border:1px solid #e0e0e0;padding:10px}.kl-model-desc-container .kl-model-desc-title{float:left;padding:5px 0;font-size:larger;margin-bottom:5px}.kl-model-desc-container .kl-model-desc-state{float:right;display:inline-block;padding:4px;border-radius:4px;color:#fff}.kl-model-desc-container .kl-model-desc-content{padding:10px 0;clear:both;border-top:1px solid #e0e0e0}.st-container.marquee.hover-active:hover .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee.hover-active:hover .st-edges{opacity:inherit}.st-container.marquee.hover-active:not(:hover) .st-text{left:0!important;width:100%;text-overflow:ellipsis}.st-container.marquee:not(.hover-active) .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee:not(.hover-active) .st-edges{opacity:inherit}.st-container.marquee:not(.hover-active):hover .st-text{-webkit-animation-play-state:paused;animation-play-state:paused}.st-container.marquee:not(.hover-active):hover:not(.active) .st-accentuate{color:rgba(0,0,0,.8);cursor:default}.st-container.marquee .st-text{position:relative;display:inline-block;overflow:hidden}.st-placeholder{color:#777;opacity:.6}.st-edges{left:-5px;right:0;top:0;bottom:0;position:absolute;height:100%;opacity:0;-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));-webkit-mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);-webkit-mask-size:5% 100%;mask-size:5% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left center,right center;mask-position:left center,right center;-webkit-transition:background-color .8s,opacity .8s;transition:background-color .8s,opacity .8s}@-webkit-keyframes klab-marquee{0%{left:0}}@keyframes klab-marquee{0%{left:0}}.sr-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sr-container.sr-light{color:#333;text-shadow:0 0 1px #ccc}.sr-container.sr-light .sr-spacescale{background-color:#333;color:#ccc}.sr-container.sr-dark{color:#ccc;text-shadow:0 0 1px #333}.sr-container.sr-dark .sr-spacescale{background-color:#ccc;color:#333}.sr-container .sr-editables{display:inline}.sr-container .sr-editables .klab-item{text-align:center}.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-scaletype{width:30px}.sr-container .sr-no-scalereference .sr-scaletype span,.sr-container .sr-scalereference .sr-scaletype span{display:block;height:24px;line-height:24px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-scalereference .sr-locked{width:30px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-locked,.sr-container .sr-scalereference .sr-scaletype{text-align:center;font-size:12px}.sr-container .sr-no-scalereference .sr-locked.sr-icon,.sr-container .sr-no-scalereference .sr-scaletype.sr-icon,.sr-container .sr-scalereference .sr-locked.sr-icon,.sr-container .sr-scalereference .sr-scaletype.sr-icon{font-size:20px}.sr-container .sr-no-scalereference .sr-description,.sr-container .sr-scalereference .sr-description{font-size:12px;width:calc(100% - 60px)}.sr-container .sr-no-scalereference .sr-spacescale,.sr-container .sr-scalereference .sr-spacescale{font-size:10px;height:20px;line-height:20px;width:20px;border-radius:10px;text-align:center;padding:0;display:inline-block;margin:0 5px}.sr-container .sr-no-scalereference.sr-full .sr-description,.sr-container .sr-scalereference.sr-full .sr-description{width:calc(100% - 90px)}.sr-container.sr-vertical{margin:5px 0}.sr-container.sr-vertical .klab-item{float:left;width:100%;margin:5px 0}.sr-container.sr-vertical .sr-spacescale{width:20px;margin-left:calc(50% - 10px)}.modal-scroll{overflow:hidden;max-height:600px}.mdi-lock-outline{color:#1ab}.sr-tooltip{text-align:center;padding:4px 0}.sr-tooltip.sr-time-tooltip{color:#ffc300}.mcm-icon-close-popover{position:absolute;right:4px;top:6px}.mcm-menubutton{top:6px;right:5px}.mcm-contextbutton{right:-5px}.mcm-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:180px}.mcm-container.mcm-context-label{width:250px}#btn-reset-context{width:15px;height:15px}#mc-eraserforcontext{padding:0 0 0 3px}.mcm-actual-context{color:#999}.q-icon.mcm-contextbutton{position:absolute;top:7px;right:5px}.mcm-context-label .klab-menuitem{width:calc(100% - 20px)}.mcm-copy-icon{padding:0 10px 0 5px;color:#eee}.mcm-copy-icon:hover{cursor:pointer;color:#212121}.klab-version{font-size:10px;width:100%;text-align:right;color:#9e9e9e}#ksb-container{width:100%;-webkit-transition:background-color .8s;transition:background-color .8s;line-height:inherit}#ksb-container.ksb-docked{-webkit-transition:width .5s;transition:width .5s}#ksb-container.ksb-docked #ksb-search-container{position:relative;padding:16px 10px;height:52px;-webkit-transition:background-color .8s;transition:background-color .8s}#ksb-container.ksb-docked #ksb-search-container .ksb-context-text{width:90%;position:relative}#ksb-container.ksb-docked #ksb-search-container .ksb-status-texts{width:90%;position:relative;bottom:2px}#ksb-container.ksb-docked #ksb-search-container .mcm-menubutton{top:11px}#ksb-container:not(.ksb-docked){border-radius:30px;cursor:move}#ksb-container:not(.ksb-docked) #ks-container,#ksb-container:not(.ksb-docked) .ksb-context-text{width:85%;position:absolute;left:45px;margin-top:8px}#ksb-container:not(.ksb-docked) .ksb-status-texts{width:85%;position:absolute;bottom:-4px;left:45px;margin:0 auto}#ksb-container #ksb-spinner{float:left;border:none;width:40px;height:40px}#ksb-container #ksb-undock{text-align:right;height:32px}#ksb-container #ksb-undock #ksb-undock-icon{padding:6px 10px;text-align:center;display:inline-block;cursor:pointer;-webkit-transition:.1s;transition:.1s;color:#999}#ksb-container #ksb-undock #ksb-undock-icon:hover{color:#1ab;-webkit-transform:translate(5px) rotate(33deg);transform:translate(5px) rotate(33deg)}#ksb-container .ksb-context-text,#ksb-container .ksb-status-texts{white-space:nowrap;overflow:hidden}#ksb-container .ksb-status-texts{font-size:11px;color:rgba(0,0,0,.4);height:15px}#ksb-container .mdi-lock-outline{position:absolute;right:35px;top:12px}.kbc-container{position:relative;height:20px;font-size:10px;padding:2px 5px}.kbc-container span{color:#eee}.kbc-container span:not(:last-child){cursor:pointer;color:#1ab}.kbc-container span:not(:last-child):hover{color:#ffc300}.kbc-container span:not(:last-child):after{content:" / ";color:#eee}.vue-splitter{height:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vue-splitter .splitter-pane{height:inherit;overflow:hidden;padding:0}.vue-splitter .left-pane{white-space:nowrap}.vue-splitter .right-pane{word-wrap:break-word}.splitter-actions{width:2em;height:2em}#splitter-close{position:absolute;right:0}.splitter-controllers{background-color:#000;text-align:center;height:20px}.kt-drag-enter{background-color:#555}.kt-tree-container .klab-no-nodes{padding:5px 0;margin:0;text-align:center;font-style:italic}.kt-tree-container .q-tree>.q-tree-node{padding:0}.kt-tree-container .q-tree-node-collapsible{overflow-x:hidden}.kt-tree-container .q-tree-children{margin-bottom:4px}.kt-tree-container .q-tree-node-selected{background-color:rgba(0,0,0,.15)}.kt-tree-container .q-tree-node{padding:0 0 3px 15px}.kt-tree-container .q-tree-node.q-tree-node-child{min-height:var(--q-tree-no-child-min-height)}.kt-tree-container .q-tree-node-header{margin-top:0}.kt-tree-container .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree-node-header:hover .node-substituible{display:none}.kt-tree-container .q-tree-node-header:hover .kt-download,.kt-tree-container .q-tree-node-header:hover .kt-upload{display:block}.kt-tree-container .q-tree-node-header:hover .kt-download:hover,.kt-tree-container .q-tree-node-header:hover .kt-upload:hover{background-color:#fff;border:none;color:#666}.kt-tree-container .q-tree-node-header.disabled{opacity:1!important}.kt-tree-container .q-chip.node-chip{position:absolute;right:10px;height:20px;min-width:20px;top:4px;text-align:center}.kt-tree-container .q-chip.node-chip .q-chip-main{padding-right:2px}.kt-tree-container .kt-download,.kt-tree-container .kt-upload{position:absolute;top:4px;display:none;z-index:9999;color:#eee;border:2px solid #eee;width:20px;height:20px}.kt-tree-container .kt-download{right:10px}.kt-tree-container .kt-upload{right:34px}.kt-tree-container .node-emphasized{color:#fff;font-weight:700;-webkit-animation:flash 2s linear;animation:flash 2s linear}.kt-tree-container .node-element{text-shadow:none;cursor:pointer}.kt-tree-container .node-selected{-webkit-text-decoration:underline #ffc300 dotted;text-decoration:underline #ffc300 dotted;color:#ffc300}.kt-tree-container .mdi-buddhism{padding-left:1px;margin-right:2px!important}.kt-tree-container .node-updatable{font-style:italic}.kt-tree-container .node-disabled{opacity:.6!important}.kt-tree-container .node-no-tick{margin-right:5px}.kt-tree-container .node-on-top{color:#ffc300}.kt-tree-container .node-icon{display:inline;padding-left:5px}.kt-tree-container .node-icon-time{position:relative;right:-5px}.kt-tree-container .node-icon-time.node-loading-layer{opacity:0}.kt-tree-container .node-icon-time.node-loading-layer.animate-spin{opacity:1}.kt-tree-container .kt-q-tooltip{background-color:#333}.kt-tree-container .q-tree-node-link{cursor:default}.kt-tree-container .q-tree-node-link .q-tree-arrow{cursor:pointer}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header{padding-left:0}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header:before{width:12px;left:-14px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header>i{margin-right:2px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children{padding-left:20px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header{padding-left:4px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:after{left:-17px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:after{left:-17px}@-webkit-keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@-webkit-keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}@keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}.hv-histogram-container.hv-histogram-horizontal{height:160px;width:100%}.hv-histogram-container.hv-histogram-vertical{height:100%}.hv-histogram,.hv-histogram-nodata{height:calc(100% - 30px);position:relative}.hv-histogram-nodata.k-with-colormap,.hv-histogram.k-with-colormap{height:calc(100% - 60px)}.hv-histogram-nodata{color:#fff;text-align:center;background-color:hsla(0,0%,46.7%,.65);padding-top:20%}.hv-histogram-col{float:left;height:100%;position:relative}.hv-histogram-col:hover{background:hsla(0,0%,46.7%,.65)}.hv-histogram-val{background:#000;width:100%;position:absolute;bottom:0;border-right:1px solid hsla(0,0%,46.7%,.85);border-left:1px solid hsla(0,0%,46.7%,.85)}.hv-histogram-val:hover{background:rgba(0,0,0,.7)}.hv-colormap-horizontal{height:30px;position:relative}.hv-colormap-horizontal .hv-colormap-col{float:left;height:100%;min-width:1px}.hv-colormap-vertical{width:30px;min-width:30px;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-vertical .hv-colormap-col{display:block;width:100%;min-height:1px}.hv-colormap-container-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.hv-colormap-container-vertical .hv-colormap-legend{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-container-vertical .hv-categories{overflow:hidden}.hv-colormap-col{background-color:#fff}.hv-details-vertical{float:left}.hv-data-details{color:#fff;text-align:center;font-size:small;padding:2px 0;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;height:30px;line-height:30px;text-overflow:ellipsis}.hv-histogram-max,.hv-histogram-min{width:50px}.hv-categories{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-left:16px}.hv-categories .hv-category{text-overflow:ellipsis;white-space:nowrap;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-size:12px}.hv-zero-category{font-style:italic;opacity:.5}.hv-data-nodetail,.hv-data-value{width:calc(100% - 100px);border-left:1px solid #696969;border-right:1px solid #696969}.hv-data-value,.hv-tooltip{color:#ffc300;-webkit-transition:none;transition:none;font-style:normal}.hv-tooltip{background-color:#444}#oi-container{height:calc(var(--main-control-max-height) - 164px);max-height:calc(var(--main-control-max-height) - 164px)}#oi-metadata-map-wrapper{height:calc(100% - 40px)}#oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#oi-metadata-map-wrapper #oi-scroll-metadata-container{padding-top:5px}.oi-text{color:#ffc300;text-shadow:0 0 1px #666;padding:0 0 0 5px}.oi-metadata-name{padding-bottom:2px}.oi-metadata-value{color:#fff;margin:0 5px 5px;background-color:#666;-webkit-box-shadow:inset 0 0 0 1px #666;box-shadow:inset 0 0 0 1px #666;padding:2px 0 2px 5px}#oi-scroll-container{height:100%}#oi-scroll-container.with-mapinfo{height:50%}#oi-controls{height:40px;width:100%;border-bottom:1px dotted #333}#oi-controls .oi-control{float:left}#oi-controls #oi-name{width:50%;display:table;overflow:hidden;height:40px}#oi-controls #oi-name span{display:table-cell;vertical-align:middle;padding-top:2px}#oi-controls #oi-visualize{text-align:center;width:40px;line-height:40px}#oi-controls #oi-slider{width:calc(50% - 40px)}#oi-controls #oi-slider .q-slider{padding:0 10px 0 5px;height:40px}#oi-mapinfo-container{height:50%;width:100%;padding:5px;position:relative}#oi-mapinfo-map{height:100%;width:100%}.oi-pixel-indicator{position:absolute;background-color:#fff;mix-blend-mode:difference}#oi-pixel-h{left:50%;top:5px;height:calc(100% - 10px);width:1px}#oi-pixel-v{top:50%;left:5px;height:1px;width:calc(100% - 10px)}.ktp-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}.q-tree .text-white{text-shadow:1px 0 0 #aaa}#kt-user-tree{padding-top:15px;padding-bottom:10px}.kt-separator{width:96%;left:4%;height:2px;border-top:1px solid hsla(0,0%,48.6%,.8);border-bottom:1px solid #7c7c7c;margin:0 4%}#klab-tree-pane{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}#klab-tree-pane details{padding:6px 0 10px 10px;background-color:#7d7d7d;border-top:1px solid #555}#klab-tree-pane details:not([open]){padding:0;margin-bottom:15px}#klab-tree-pane details:not([open]) #ktp-main-tree-arrow{top:-12px}#klab-tree-pane details[open] #ktp-main-tree-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}#klab-tree-pane details .mdi-dots-horizontal:before{padding-top:2px}#klab-tree-pane details summary{height:0;outline:none;position:relative;cursor:pointer;display:block}#klab-tree-pane details summary::-webkit-details-marker{color:transparent}#klab-tree-pane details #ktp-main-tree-arrow{position:absolute;width:22px;height:22px;right:9px;top:-18px;color:#fff;background-color:#555;border-radius:12px;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}#klab-tree-pane details>div{margin:5px 0 0 -10px}.ktp-no-tree{height:30px}.otv-now{font-size:11px;line-height:24px;vertical-align:middle;text-align:center;color:#fff;width:150px;height:24px}.otv-now.otv-docked{float:left;color:#fff;line-height:34px}.otv-now:not(.otv-docked){position:absolute;bottom:0;left:0;background-color:hsla(0,0%,46.7%,.65);border-top:1px solid #000;border-right:1px solid #000;border-top-right-radius:4px}.otv-now.otv-running{color:#ffc300}.otv-now.otv-novisible{opacity:0}.otv-now .fade-enter-active,.otv-now .fade-leave-active{-webkit-transition:opacity 1s;transition:opacity 1s}.otv-now .fade-enter,.otv-now .fade-leave-to{opacity:0}.ot-wrapper{width:100%}.ot-wrapper.ot-no-timestamp .ot-container.ot-docked{width:calc(100% - 5px)}.ot-wrapper:not(.ot-no-timestamp) .ot-container.ot-docked{width:280px;float:left}.ot-container{position:relative}.ot-container .ot-player{width:20px;height:16px;line-height:16px;float:left}.ot-container .ot-player .q-icon{vertical-align:baseline!important}.ot-container .ot-time{width:calc(100% - 20px);position:relative}.ot-container .ot-time.ot-time-full{left:10px}.ot-container .ot-time .ot-date{min-width:16px;max-width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;vertical-align:middle;background-color:#555;border-radius:8px;position:relative;cursor:default;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-date.ot-date-fill,.ot-container .ot-time .ot-date.ot-date-loaded{background-color:#1ab}.ot-container .ot-time .ot-date.ot-date-start+.ot-date-text{left:16px}.ot-container .ot-time .ot-date.ot-date-end+.ot-date-text{right:16px}.ot-container .ot-time .ot-date .ot-time-origin{vertical-align:baseline;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date .ot-time-origin.ot-time-origin-loaded{color:#e4fdff}.ot-container .ot-time .ot-date-text{white-space:nowrap;font-size:8px;position:absolute;top:-4px;color:#888;font-weight:400;letter-spacing:1px;padding:0;-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}.ot-container .ot-time .ot-timeline-container .ot-timeline{height:6px;width:calc(100% + 4px);background-color:#555;position:relative;top:5px;margin:0 -2px;padding:0 2px;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-timeline-container .ot-timeline.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container{z-index:10000;width:32px;height:6px;position:absolute;top:7px}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container .ot-modification{height:100%;width:1px;margin-left:1px;border-left:1px solid #555;border-right:1px solid #aaa}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-actual-time{width:2px;height:6px;background-color:#1ab;position:absolute;margin-right:4px;top:0;z-index:10001}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-loaded-time{height:6px;left:-2px;background-color:#1ab;position:relative;top:0}.ot-container.ot-active-timeline .ot-time .ot-date-start{border-top-right-radius:0;border-bottom-right-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-date-end{border-top-left-radius:0;border-bottom-left-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-timeline{height:16px;width:100%;top:0;margin:0}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-timeline-viewer{height:10px;background-color:#666;border-radius:2px;width:calc(100% - 2px);position:absolute;top:3px;z-index:9000}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-loaded-time{height:16px}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-actual-time{height:10px;top:3px}.ot-date-tooltip{width:100px}.ot-date-tooltip .ot-date-tooltip-content{text-align:center}.ot-speed-container{border-radius:6px;margin-left:-6px}.ot-speed-container .ot-speed-selector{padding:5px 0;background-color:rgba(35,35,35,.8);color:#eee}.ot-speed-container .ot-speed-selector .ot-speed{min-height:20px;font-size:small;padding:5px}.ot-speed-container .ot-speed-selector .ot-speed.ot-speed-disabled{color:#1ab;font-weight:800}.ot-speed-container .ot-speed-selector .ot-speed:hover{background-color:#333;color:#ffc300;cursor:pointer}.ot-change-speed-tooltip{text-align:center}#klab-log-pane{max-height:calc(var(--main-control-max-height) - 124px)}#klab-log-pane.lm-component{max-height:100%}#klab-log-pane #log-container{margin:10px 0}#klab-log-pane .q-item.log-item{font-size:10px}#klab-log-pane .q-item.log-no-items{font-size:12px;color:#ccc;text-shadow:1px 0 0 #777}.log-item .q-item-side{min-width:auto}.q-list-dense>.q-item{padding-left:10px}.klp-separator{width:100%;text-align:center;border-top:1px solid #555;border-bottom:1px solid #777;line-height:0;margin:10px 0}.klp-separator>span{padding:0 10px;background-color:#717070}.klp-level-selector{border-bottom:1px dotted #ccc}.klp-level-selector ul{margin:10px 0;padding-left:10px;list-style:none}.klp-level-selector ul li{display:inline-block;padding-right:10px;opacity:.5}.klp-level-selector ul li.klp-selected{opacity:1}.klp-level-selector ul li .klp-chip{padding:2px 8px;cursor:pointer}.klab-mdi-next-scale{color:#ffc300;opacity:.6}.klab-mdi-next-scale:hover{opacity:1}.sb-scales *{cursor:pointer}.sb-next-scale{background-color:rgba(255,195,0,.7)}.sb-tooltip{text-align:center;font-size:.7em;color:#fff;background-color:#616161;padding:2px 0}.kvs-popover-container{background-color:#616161;border-color:#616161}.kvs-popover{background-color:transparent}.kvs-container .klab-button.klab-action .klab-button-notification{right:26px;top:0}.kvs-container .klab-button:not(.disabled) .kvs-button{color:#1ab}.mc-container .q-card>.mc-q-card-title{border-radius:30px;cursor:move;-webkit-transition:background-color .8s;transition:background-color .8s}.mc-container .q-card{width:512px;-webkit-transition:width .5s;transition:width .5s}.mc-container .q-card.with-context{width:482px;background-color:rgba(35,35,35,.8);border-radius:5px}.mc-container .q-card.with-context .mc-q-card-title{overflow:hidden;margin:15px}.mc-container .q-card.mc-large-mode-1{width:640px}.mc-container .q-card.mc-large-mode-2{width:768px}.mc-container .q-card.mc-large-mode-3{width:896px}.mc-container .q-card.mc-large-mode-4{width:1024px}.mc-container .q-card.mc-large-mode-5{width:1152px}.mc-container .q-card.mc-large-mode-6{width:1280px}.mc-container .q-card-title{position:relative}.mc-container .spinner-lonely-div{position:absolute;width:44px;height:44px;border:2px solid;border-radius:40px}.mc-container .q-card-title{line-height:inherit}.mc-container #mc-text-div{text-shadow:0 0 1px #555}.mc-container .q-card-main{overflow:auto;line-height:inherit;background-color:hsla(0,0%,46.7%,.85);padding:0}.mc-container .kmc-bottom-actions.q-card-actions{padding:0 4px 4px 6px}.mc-container .kmc-bottom-actions.q-card-actions .klab-button{font-size:18px;padding:4px}.mc-container .klab-main-actions{position:relative}.mc-container .klab-button-notification{top:4px;right:4px;width:10px;height:10px}.mc-container .context-actions{padding:0;margin:0;position:relative}.mc-container .mc-separator{width:2px;height:60%;position:absolute;top:20%;border-left:1px solid #444;border-right:1px solid #666}.mc-container .mc-separator.mab-separator{right:45px}.mc-container .mc-tab.active{background-color:hsla(0,0%,46.7%,.85)}.mc-container .component-fade-enter-active,.mc-container .component-fade-leave-active{-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.mc-container .component-fade-enter,.mc-container .component-fade-leave-to{opacity:0}.mc-container .mc-docking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.1);border:1px solid hsla(0,0%,52.9%,.5);-webkit-animation-duration:.2s;animation-duration:.2s}.mc-container .kbc-container{position:absolute;top:63px;left:0;width:100%;text-align:center}.mc-container #kt-out-container{height:100%;overflow:hidden;max-height:calc(var(--main-control-max-height) - 144px)}.mc-container #kt-out-container.kpt-loading{max-height:calc(var(--main-control-max-height) - 114px)}.mc-container #kt-out-container.with-splitter{max-height:calc(var(--main-control-max-height) - 164px)}.mc-container .klab-button{font-size:22px;margin:0;padding:2px 7px 5px;border-top-left-radius:4px;border-top-right-radius:4px}.mc-container .klab-destructive-actions .klab-button{position:absolute;right:6px;padding-right:0}.mc-container .sb-scales{position:absolute;right:42px}.mc-container .sb-scales .klab-button{padding-right:2px}.mc-container .context-actions .sr-locked,.mc-container .context-actions .sr-scaletype{font-size:9px}.mc-container .context-actions .sr-locked.sr-icon,.mc-container .context-actions .sr-scaletype.sr-icon{font-size:14px}.mc-container .context-actions .sr-description{font-size:9px}.mc-container .context-actions .sr-spacescale{font-size:9px;height:16px;width:16px;border-radius:8px;padding:3px 0 0;margin:0 2px}.mc-container .mc-timeline{width:calc(100% - 200px);position:absolute;left:100px;bottom:8px}.mc-container .klab-bottom-right-actions{position:absolute;right:6px}.mc-container .klab-bottom-right-actions .klab-button.klab-action{border-radius:4px;margin:3px 0 0;padding:2px 5px 3px!important}.mc-container .klab-bottom-right-actions .klab-button.klab-action:hover:not(.disabled){background-color:hsla(0,0%,52.9%,.2)}.mc-kv-popover{border-radius:6px;border:none}.mc-kv-popover .mc-kv-container{background-color:#616161;border-radius:2px!important}.md-draw-controls{position:absolute;top:30px;left:calc(50vw - 100px);background-color:hsla(0,0%,100%,.8);border-radius:10px}.md-draw-controls .md-title{color:#fff;background-color:#1ab;width:100%;padding:5px;font-size:16px;text-align:center;border-top-left-radius:10px;border-top-right-radius:10px}.md-draw-controls .md-controls .md-control{font-size:30px;font-weight:700;width:calc(33% - 24px);padding:5px;margin:10px 12px;height:40px;border-radius:10px;cursor:pointer}.md-draw-controls .md-controls .md-ok{color:#19a019}.md-draw-controls .md-controls .md-ok:hover{background-color:#19a019;color:#fff}.md-draw-controls .md-controls .md-cancel{color:#db2828}.md-draw-controls .md-controls .md-cancel:hover{background-color:#db2828;color:#fff}.md-draw-controls .md-controls .md-erase.disabled{cursor:default}.md-draw-controls .md-controls .md-erase:not(.disabled){color:#ffc300}.md-draw-controls .md-controls .md-erase:not(.disabled):hover{background-color:#ffc300;color:#fff}.md-draw-controls .md-selector .q-btn-group{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.md-draw-controls .md-selector button{width:50px}.md-draw-controls .md-selector button:first-child{border-bottom-left-radius:10px}.md-draw-controls .md-selector button:nth-child(4){border-bottom-right-radius:10px}.layer-switcher{position:absolute;top:3.5em;right:.5em;text-align:left}.layer-switcher .panel{border:4px solid #eee;background-color:#fff;display:none;max-height:inherit;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.layer-switcher button{float:right;z-index:1;width:38px;height:38px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:2px;background-color:#fff;color:#000;border:none}.layer-switcher button:focus,.layer-switcher button:hover{background-color:#fff}.layer-switcher.shown{overflow-y:hidden}.layer-switcher.shown.ol-control,.layer-switcher.shown.ol-control:hover{background-color:transparent}.layer-switcher.shown .panel{display:block}.layer-switcher.shown button{display:none}.layer-switcher.shown.layer-switcher-activation-mode-click>button{display:block;background-image:unset;right:2px;position:absolute;background-color:#eee;margin:0 1px}.layer-switcher.shown button:focus,.layer-switcher.shown button:hover{background-color:#fafafa}.layer-switcher ul{list-style:none;margin:1.6em .4em;padding-left:0}.layer-switcher ul ul{padding-left:1.2em;margin:.1em 0 0}.layer-switcher li.group+li.group{margin-top:.4em}.layer-switcher li.group>label{font-weight:700}.layer-switcher.layer-switcher-group-select-style-none li.group>label{padding-left:1.2em}.layer-switcher li{position:relative;margin-top:.3em}.layer-switcher li input{position:absolute;left:1.2em;height:1em;width:1em;font-size:1em}.layer-switcher li label{padding-left:2.7em;padding-right:1.2em;display:inline-block;margin-top:1px}.layer-switcher label.disabled{opacity:.4}.layer-switcher input{margin:0}.layer-switcher.touch ::-webkit-scrollbar{width:4px}.layer-switcher.touch ::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px}.layer-switcher.touch ::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}li.layer-switcher-base-group>label{padding-left:1.2em}.layer-switcher .group button{position:absolute;left:0;display:inline-block;vertical-align:top;float:none;font-size:1em;width:1em;height:1em;margin:0;background-position:center 2px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAW0lEQVR4nGNgGAWMyBwXFxcGBgaGeii3EU0tXHzPnj1wQRYsihqQ+I0ExDEMQAYNONgoAN0AmMkNaDSyQSheY8JiaCMOGzE04zIAmyFYNTMw4A+DRhzsUUBtAADw4BCeIZkGdwAAAABJRU5ErkJggg==");-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.layer-switcher .group.layer-switcher-close button{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.layer-switcher .group.layer-switcher-fold.layer-switcher-close>ul{overflow:hidden;height:0}.layer-switcher.shown.layer-switcher-activation-mode-click{padding-left:34px}.layer-switcher.shown.layer-switcher-activation-mode-click>button{left:0;border-right:0}.layer-switcher{top:5em}.layer-switcher button{background-position:2px 3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTkuOTk2IiB3aWR0aD0iMjAiPjxnIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xOS4zMSAzLjgzNUwxMS41My4yODljLS44NDMtLjM4NS0yLjIyMy0uMzg1LTMuMDY2IDBMLjY5IDMuODM1Yy0uOTE3LjQxNi0uOTE3IDEuMDk5IDAgMS41MTVsNy43MDYgMy41MTVjLjg4LjQgMi4zMjguNCAzLjIwOCAwTDE5LjMxIDUuMzVjLjkxNi0uNDE2LjkxNi0xLjA5OSAwLTEuNTE1ek04LjM5NiAxNi4yMDdMMy4yIDEzLjgzN2EuODQ1Ljg0NSAwIDAwLS42OTMgMGwtMS44MTcuODI4Yy0uOTE3LjQxNy0uOTE3IDEuMSAwIDEuNTE2bDcuNzA2IDMuNTE0Yy44OC40MDEgMi4zMjguNDAxIDMuMjA4IDBsNy43MDYtMy41MTRjLjkxNi0uNDE3LjkxNi0xLjA5OSAwLTEuNTE2bC0xLjgxNy0uODI4YS44NDUuODQ1IDAgMDAtLjY5MyAwbC01LjE5NiAyLjM3Yy0uODguNC0yLjMyOC40LTMuMjA4IDB6Ii8+PHBhdGggZD0iTTE5LjMxIDkuMjVsLTEuNjUtLjc1YS44MzMuODMzIDAgMDAtLjY4OCAwbC01LjYyMyAyLjU0N2MtLjc5Ny4yNy0xLjkwNi4yNy0yLjcwMyAwTDMuMDIzIDguNWEuODMzLjgzMyAwIDAwLS42ODggMGwtMS42NS43NWMtLjkxNy40MTctLjkxNyAxLjA5OSAwIDEuNTE1TDguMzkgMTQuMjhjLjg4LjQwMSAyLjMyNy40MDEgMy4yMDcgMGw3LjcwNy0zLjUxNWMuOTIxLS40MTYuOTIxLTEuMDk4LjAwNS0xLjUxNXoiLz48L2c+PC9zdmc+")}.layer-switcher .panel{padding:0 1em 0 0;margin:0;border:1px solid #999;border-radius:4px;background-color:hsla(0,0%,46.7%,.65);color:#fff}.map-selection-marker{font-size:28px;color:#fff;mix-blend-mode:exclusion}.gl-msg-content{border-radius:20px;padding:20px;background-color:hsla(0,0%,100%,.7)}.gl-msg-content .gl-btn-container{text-align:right;padding:.2em}.gl-msg-content .gl-btn-container .q-btn{margin-left:.5em}.gl-msg-content h5{margin:.2em 0 .5em;font-weight:700}.gl-msg-content em{color:#1ab;font-style:normal;font-weight:700}.mv-exploring{cursor:crosshair!important}.ol-popup{position:absolute;background-color:hsla(0,0%,100%,.9);padding:20px 15px;border-radius:10px;bottom:25px;left:-48px;min-height:80px}.ol-popup:after,.ol-popup:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ol-popup:after{border-top-color:hsla(0,0%,100%,.9);border-width:10px;left:48px;margin-left:-10px}.ol-popup .ol-popup-closer{position:absolute;top:2px;right:8px}.ol-popup .ol-popup-content h3{margin:0 0 .2em;line-height:1.1em;font-size:1.1em;color:#1ab;white-space:nowrap;font-weight:300}.ol-popup .ol-popup-content p{margin:0;color:rgba(50,50,50,.9);white-space:nowrap;font-weight:400}.ol-popup .ol-popup-content .mv-popup-value{font-size:1.6em;padding:10px 0}.ol-popup .ol-popup-content .mv-popup-coord{font-size:.8em;padding-top:5px;color:#7c7c7c}.ol-popup .ol-popup-content .mv-popup-separator{height:1px;border-top:1px solid hsla(0,0%,48.6%,.3);margin:0 auto}.ol-mouse-position{right:50px!important;top:14px;margin:1px;padding:4px 8px;color:#fff;font-size:.9em;text-align:center;background-color:rgba(0,60,136,.5);border:4px solid hsla(0,0%,100%,.7)}#mv-extent-map{width:200px;height:200px;position:absolute;bottom:0;right:0;border:1px solid var(--app-main-color)}#mv-extent-map.mv-extent-map-hide{display:none}.mv-remove-proposed-context{position:absolute;bottom:10px;left:10px;opacity:.3;background-color:#3187ca;color:#fff!important}.mv-remove-proposed-context:hover{opacity:1}canvas{position:absolute;top:0;left:0}.net{height:100%;margin:0}.node{stroke:rgba(18,120,98,.7);stroke-width:3px;-webkit-transition:fill .5s ease;transition:fill .5s ease;fill:#dcfaf3}.node.selected{stroke:#caa455}.node.pinned{stroke:rgba(190,56,93,.6)}.link{stroke:rgba(18,120,98,.3)}.link,.node{stroke-linecap:round}.link:hover,.node:hover{stroke:#be385d;stroke-width:5px}.link.selected{stroke:rgba(202,164,85,.6)}.curve{fill:none}.link-label,.node-label{fill:#127862}.link-label{-webkit-transform:translateY(-.5em);transform:translateY(-.5em);text-anchor:middle}.gv-container{background-color:#e0e0e0;overflow:hidden}.gv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}.uv-container{background-color:#e7ffdb;overflow:hidden}.uv-container h4{text-align:center}.uv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}[data-v-216658d8]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.thumb-view[data-v-216658d8]{width:200px;height:200px;margin:5px;border:1px solid #333;-webkit-box-shadow:#5c6bc0;box-shadow:#5c6bc0;bottom:0;z-index:9998;overflow:hidden}.thumb-view:hover>.thumb-viewer-title[data-v-216658d8]{opacity:1}.thumb-viewer-title[data-v-216658d8]{opacity:0;background-color:rgba(17,170,187,.85);color:#e0e0e0;text-shadow:0 1px 5px rgba(0,0,0,.2),0 2px 2px rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12);font-size:.9em;padding:0;-webkit-transition:opacity 1s;transition:opacity 1s;z-index:9999}.thumb-viewer-label[data-v-216658d8]{width:140px;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;text-overflow:ellipsis}.thumb-viewer-label.thumb-closable[data-v-216658d8]{width:100px}.thumb-viewer-button[data-v-216658d8]{margin-top:5px;margin-left:0;margin-right:4px}.thumb-viewer-button>button[data-v-216658d8]{font-size:6px}.thumb-close[data-v-216658d8]{margin-left:5px}.dh-container{background-color:rgba(35,35,35,.8)}.dh-container .dh-spinner{width:28px;margin-left:16px;margin-right:16px}.dh-container .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.dh-container .dh-tabs .q-tabs-head .q-tab{padding:10px 16px}.dh-container .dh-tabs .q-tabs-head .q-tab.active{color:#1ab!important}.dh-container .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:#1ab;right:-3px;top:-1px}.dh-container .dh-actions{text-align:right;padding-right:12px}.dh-container .dh-actions .dh-button{padding:8px}.kd-is-app .q-layout-header{-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid var(--app-darken-background-color)}.kd-is-app .dh-container{background-color:var(--app-darken-background-color)}.kd-is-app .dh-actions .dh-button{color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab{padding:13px 16px;text-shadow:none}.kd-is-app .dh-tabs .q-tabs-head .q-tab.active{color:var(--app-main-color)!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-bar{color:var(--app-main-color);border-bottom-width:4px}.q-layout-drawer,.q-layout-header{-webkit-box-shadow:none!important;box-shadow:none!important;border-bottom:1px solid var(--app-main-color)}.dt-container{padding:16px 0;font-size:smaller!important}.dt-container .dt-tree-empty{margin:16px;color:#fff}.kd-is-app .klab-left{background-color:var(--app-darken-background-color)}.kd-is-app .klab-left .dt-tree-empty,.kd-is-app .klab-left .q-tree .q-tree-node,.kd-is-app .klab-left .text-white{color:var(--app-main-color)!important}.tabulator{position:relative;background-color:#fff;overflow:hidden;font-size:14px;text-align:left;-webkit-transform:translatez(0);transform:translatez(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableHolder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator .tabulator-header{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-col{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border-right:1px solid #ddd;background-color:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-menu-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{cursor:pointer;background-color:#e6e6e6}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{-ms-writing-mode:tb-rl;-webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;text-orientation:mixed;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{display:inline-block;position:absolute;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:600%;background:#f2f2f2!important;border-top:1px solid #ddd;border-bottom:1px solid #999;overflow:hidden}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{min-width:600%}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableHolder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableHolder:focus{outline:none}.tabulator .tabulator-tableHolder .tabulator-placeholder{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder span{display:inline-block;margin:0 auto;padding:10px;color:#000;font-weight:700;font-size:20px}.tabulator .tabulator-tableHolder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-col-resize-handle{position:absolute;right:0;top:0;bottom:0;width:5px}.tabulator .tabulator-col-resize-handle.prev{left:0;right:auto}.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}.tabulator .tabulator-footer{padding:5px 10px;border-top:1px solid #999;background-color:#fff;text-align:right;color:#555;font-weight:700;white-space:nowrap;-ms-user-select:none;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;width:calc(100% + 20px);margin:-5px -10px 5px;text-align:left;background:#f2f2f2!important;border-bottom:1px solid #fff;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer .tabulator-paginator{color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}.tabulator .tabulator-loader{position:absolute;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-loader .tabulator-loader-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading{border:4px solid #333;color:#000}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:22px;border-bottom:1px solid #ddd}.tabulator-row,.tabulator-row:nth-child(2n){background-color:#fff}.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}.tabulator-row.tabulator-selected{background-color:#9abcea}.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none!important;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}.tabulator-row .tabulator-frozen{display:inline-block;position:absolute;background-color:inherit;z-index:10}.tabulator-row .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-responsive-collapse{-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator-row .tabulator-cell.tabulator-row-handle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open,.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#666}.tabulator-menu{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-menu .tabulator-menu-item{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 10px;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:"";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-select-list{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:200px;background:#fff;border:1px solid #ddd;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-edit-select-list .tabulator-edit-select-list-item{padding:4px;color:#333}.tabulator-edit-select-list .tabulator-edit-select-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-select-list .tabulator-edit-select-list-item.focused{outline:1px solid #1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-notice{padding:4px;color:#333;text-align:center}.tabulator-edit-select-list .tabulator-edit-select-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-col-resize-handle{position:absolute;left:0;right:auto}.tabulator.tabulator-rtl .tabulator-col-resize-handle.prev{right:0;left:auto}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-print-table-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.ft-wrapper{margin-top:8px;width:100%;margin-bottom:40px}.ft-container{position:relative}.ft-container .ft-time{width:100%;position:relative}.ft-container .ft-time .ft-date-container{width:4px;height:14px;line-height:14px;background-color:#1ab;cursor:default}.ft-container .ft-time-origin-container{width:28px;height:14px;line-height:14px;color:#1ab;text-align:center;cursor:pointer}.ft-container .ft-time-origin-container .ft-time-origin{vertical-align:baseline;color:#1ab}.ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#0277bd}.ft-container .ft-timeline-container .ft-timeline{height:14px;width:100%;top:0;margin:0;position:relative;padding:0;cursor:pointer}.ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{height:1px;background-color:#1ab;width:100%;position:absolute;top:6.5px;z-index:9000}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container{z-index:10000;width:4px;height:14px;position:absolute}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice{height:100%;width:100%;background-color:#1ab}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{font-size:.65em;color:#1ab;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ft-container .ft-timeline-container .ft-timeline .ft-actual-time{height:14px;font-size:22px;color:#1ab;position:absolute;top:-12px;left:-15px;z-index:10001}.kd-is-app .ft-container .ft-time .ft-date-container{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container,.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin{color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:var(--app-link-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline{background-color:var(--app-background-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:var(--app-main-color)}.ft-date-tooltip{width:150px}.ft-date-tooltip .ft-date-tooltip-content{text-align:center}.dv-empty-documentation{position:absolute;width:100%;height:80px;text-aling:center;top:calc((100% - 80px)/2);padding:0;text-align:center;font-size:60px;font-weight:700;color:#1ab}.dv-documentation-wrapper{position:absolute;left:0;width:100%;height:100%;overflow:auto;border:none}.dv-documentation .dv-content{padding:1em 2em}.dv-documentation .dv-content h1,.dv-documentation .dv-content h2,.dv-documentation .dv-content h3,.dv-documentation .dv-content h4,.dv-documentation .dv-content h5,.dv-documentation .dv-content h6{font-weight:700;color:#777;margin:0;padding:.6em 0}.dv-documentation .dv-content [id]{-webkit-transition:.3s ease;transition:.3s ease;border-radius:4px}.dv-documentation .dv-content [id].dv-selected{-webkit-animation:blinker 1.5s;animation:blinker 1.5s}.dv-documentation .dv-table-container .dv-table-title{font-weight:700;color:#777;font-size:larger;padding:16px 0}.dv-documentation .dv-table-container .dv-table-bottom{margin:8px 0 0}.dv-documentation .dv-figure-container{padding:16px;margin:16px 0;border:1px solid #1ab;max-width:960px}.dv-documentation .dv-figure-container .dv-figure-caption-wrapper{padding-bottom:8px}.dv-documentation .dv-figure-container .dv-figure-caption{color:#1ab;font-style:italic}.dv-documentation .dv-figure-container .dv-figure-timestring{color:#1ab;font-size:.8em;text-align:right}.dv-documentation .dv-figure-wrapper .dv-figure-image{text-align:center;overflow:hidden;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-figure-image img{width:100%;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-col-fill,.dv-documentation .dv-figure-wrapper .dv-figure-legend{padding-left:16px;width:320px;max-width:320px}.dv-documentation .dv-figure-wrapper .dv-figure-wait{max-width:640px;min-height:320px;height:auto;border:1px solid #eee;text-align:center}.dv-documentation .dv-figure-wrapper .dv-figure-wait .q-spinner{color:#9e9e9e}.dv-documentation .dv-figure-wrapper .hv-details-nodata,.dv-documentation .dv-figure-wrapper .hv-histogram-nodata{display:none}.dv-documentation .dv-figure-wrapper .hv-categories{margin-left:8px}.dv-documentation .dv-figure-wrapper .hv-categories .hv-category{overflow:hidden;color:#1ab}.dv-documentation .dv-citation,.dv-documentation .dv-paragraph,.dv-documentation .dv-reference{color:var(--app-main-color)}.dv-documentation .dv-citation a,.dv-documentation .dv-paragraph a,.dv-documentation .dv-reference a{display:inline-block;text-decoration:none;color:var(--app-main-color)}.dv-documentation .dv-citation a:visited,.dv-documentation .dv-paragraph a:visited,.dv-documentation .dv-reference a:visited{color:var(--app-main-color)}.dv-documentation .dv-citation a:after,.dv-documentation .dv-paragraph a:after,.dv-documentation .dv-reference a:after{content:"";display:block;width:0;border-bottom-width:1px;border-bottom-style:solid;-webkit-transition:width .3s;transition:width .3s}.dv-documentation .dv-citation a:not(.disabled):hover:after,.dv-documentation .dv-paragraph a:not(.disabled):hover:after,.dv-documentation .dv-reference a:not(.disabled):hover:after{width:100%}.dv-documentation .dv-citation a.disabled,.dv-documentation .dv-paragraph a.disabled,.dv-documentation .dv-reference a.disabled{cursor:default!important}.dv-documentation .dv-model-container,.dv-documentation .dv-resource-container{margin:8px 0;padding:8px 16px;color:#1ab;font-weight:400}.dv-documentation .dv-resource-container{border:1px solid #1ab;border-radius:10px!important;margin:16px 0}.dv-documentation .dv-resource-container.dv-selected{border-width:4px!important}.dv-documentation .dv-resource-container .dv-resource-title-container{background-color:var(--app-darklight-background-color);padding:8px;margin:8px 0 16px;border-radius:2px}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-title{font-size:var(--app-title-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-originator{font-size:var(--app-subtitle-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords{padding:8px 8px 0 0}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper{display:inline-block;font-size:var(--app-small-size);color:var(--app-link-color)}.dv-documentation .dv-resource-container .dv-resource-description{font-size:smaller}.dv-documentation .dv-resource-map{width:360px}.dv-documentation .dv-resource-map .dv-resource-authors{font-size:var(--app-small-size);padding-bottom:5px}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-wrapper{display:inline-block}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator{padding-right:8px}.dv-documentation .dv-resource-map .dv-resource-references{font-size:calc(var(--app-small-size) - 2px)}.dv-documentation .dv-resource-urls{margin:16px 0 0;font-size:var(--app-small-size)}.dv-documentation .klab-inline-link{font-size:var(--app-small-size);vertical-align:super}.dv-documentation .dv-button{padding:8px}.kd-is-app{background-image:none!important}.kd-is-app .kd-container{background-color:var(--app-darken-background-color)}.kd-is-app .dv-documentation-wrapper{border-top-left-radius:8px}.kd-is-app .dv-empty-documentation{color:var(--app-text-color)}.kd-is-app .dv-documentation,.kd-is-app .dv-documentation .dv-content{background-color:var(--app-background-color)}.kd-is-app .dv-documentation .dv-content h1,.kd-is-app .dv-documentation .dv-content h2,.kd-is-app .dv-documentation .dv-content h3,.kd-is-app .dv-documentation .dv-content h4,.kd-is-app .dv-documentation .dv-content h5,.kd-is-app .dv-documentation .dv-content h6{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-table-container .dv-table-title{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-caption{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-timestring,.kd-is-app .dv-documentation .dv-figure-container .dv-figure-wait .q-spinner{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .hv-categories .hv-category,.kd-is-app .dv-documentation .dv-figure-container .hv-data-details,.kd-is-app .dv-documentation .dv-figure-container .hv-data-value,.kd-is-app .dv-documentation .dv-figure-container .hv-tooltip{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-model-container,.kd-is-app .dv-documentation .dv-resource-container{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-resource-container{border-color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-model-container{font-family:monospace}.kd-is-app .dv-documentation .dv-model-container .dv-selected{font-size:larger}.kd-is-app .dv-documentation .dv-model-container .dv-model-space{display:inline-block;width:2em}.kd-is-app .dv-documentation .dv-reference{margin:8px 0;padding:8px 0}.kd-is-app .dv-documentation .dv-reference.dv-selected{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-other-container{display:none}.kd-is-app .dv-documentation .klab-link{color:var(--app-link-color);font-weight:500!important}.kd-is-app .dv-documentation .klab-link:visited{color:var(--app-link-visited-color)}.kd-is-app .dv-documentation .dv-button{color:var(--app-main-color)}@media print{.kd-modal .modal-content .dv-figure-wrapper,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .dv-table-container{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}.kd-modal .modal-content .dv-figure-container{border:none}.kd-modal .modal-content .dv-figure-container .dv-figure-caption,.kd-modal .modal-content .dv-figure-container .dv-figure-timestring{color:#000}.kd-modal .modal-content .hv-category{color:#000!important}.kd-modal .modal-content .ft-container .ft-time .ft-date-container{background-color:#fff}.kd-modal .modal-content .ft-container .ft-time-origin-container,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#000}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline{background-color:#fff}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:#000}.kd-modal .modal-content .dv-model-container,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:#000}.kd-modal .modal-content .dv-resource-container{border:1px solid #000}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container{background-color:#fff}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper,.kd-modal .modal-content .dv-resource-container .dv-resource-urls .klab-link{color:#000}}@-webkit-keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}@keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}.kexplorer-container.kd-is-app{background-color:var(--app-background-color)}.kd-modal .modal-content{border-radius:20px;padding:20px 0;background-color:#fff;overflow:hidden;width:1024px;min-height:80vh}.kd-modal .dv-documentation-wrapper .dv-content{padding-top:0}.kd-modal .dv-print-hide{position:absolute;top:5px;right:20px}@media print{body{min-width:100%}#q-app{display:none}.kd-modal.fullscreen{position:static}.kd-modal .modal-content{min-width:100%;max-width:100%;min-height:100%;max-height:100%;-webkit-box-shadow:none;box-shadow:none;width:100%!important;border-radius:0!important}.dv-documentation-wrapper p,.dv-documentation-wrapper table td{word-break:break-word}.dv-documentation-wrapper{display:block!important;position:relative!important;overflow:visible!important;overflow-y:visible!important;width:100%!important;height:100%!important;margin:0!important;left:0!important;border:none!important}.modal-backdrop{background:transparent!important}}.dip-container{color:#fff;padding-top:30px;width:100%}.dip-container .dip-content{margin-bottom:40px}.dip-container .dip-close{width:100%;text-align:right;position:absolute;left:0;top:0;color:#fff}.dip-container .simplebar-scrollbar:before{background:#888}.dip-container article{padding:0 10px}.dip-container article hr{height:1px;border:none;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444}.dip-container article h1{color:#1ab;font-size:1.4em;margin:0 0 10px;font-weight:700;word-break:break-all}.dip-container article .dfe-fixed{color:hsla(0,0%,100%,.6);font-size:.7em}.dip-container article .dfe-fixed p{margin:0 0 .6em}.dip-container article .dfe-content{font-size:.8em}.dip-container article .dfe-content table{padding:10px 0}.dip-container article .dfe-content table th{color:#ffc300;text-align:left;border-bottom:1px solid;margin:0}.dip-container article .dfe-content table tr:nth-child(2n){background-color:hsla(0,0%,59.6%,.1)}.dip-container article .dfe-content mark{background-color:transparent;color:#ffc300;font-weight:700}.dip-container article .dfe-content div{margin:.2em 0 .8em;padding:5px;border-radius:5px;background-color:hsla(0,0%,59.6%,.4);word-break:break-all}.dip-container article .dfe-content div p{margin-bottom:.5em}.kd-is-app .dip-container{color:var(--app-text-color)}.kd-is-app .dip-close{color:var(--app-main-color)}.kd-is-app .simplebar-scrollbar:before{background:var(--app-main-color)}.kd-is-app article hr{border-top:none;border-bottom:1px solid var(--app-main-color)}.kd-is-app article h1{color:var(--app-title-color)}.kd-is-app article .dfe-fixed{color:var(--app-lighten-main-color)}.kd-is-app article .dfe-content table th{color:var(--app-title-color)}.kd-is-app article .dfe-content table tr:nth-child(2n){background-color:var(--app-darken-background-color,.1)}.kd-is-app article .dfe-content mark{color:var(--app-title-color)}.kd-is-app article .dfe-content div{background-color:var(--app-darken-background-color,.4)}.kd-is-app article .dfe-content div p{margin-bottom:.5em}.dfv-container{width:100%}.dfv-container.dfv-with-info{width:calc(100% - 320px)}.dfv-container.dfv-with-info #sprotty{right:320px}.dfv-container .dfv-graph-info{position:absolute;top:0;left:0;width:100%;height:40px;background-color:#e0e0e0;border-bottom:1px solid hsla(0,0%,52.9%,.2)}.dfv-container .dfv-graph-info .dfv-graph-type{padding:10px;font-weight:500;min-width:100px;width:50%;float:left;color:var(--app-title-color)}.dfv-container .dfv-graph-info .dfv-graph-selector{text-align:right;min-width:100px;width:50%;right:0;float:left}.dfv-container .dfv-graph-info .dfv-graph-selected{cursor:default;background-color:var(--app-main-color);color:#fff}.dfv-container #sprotty{position:absolute;background-color:#e0e0e0;top:40px;left:0;right:0;bottom:0}.dfv-container #sprotty svg{width:100%;height:calc(100% - 5px);cursor:default}.dfv-container #sprotty svg:focus{outline-style:none}.dfv-container #sprotty svg .elknode{stroke:#b0bec5;fill:#eceff1;stroke-width:1}.dfv-container #sprotty svg .elkport{stroke:#78909c;stroke-width:1;fill:#78909c}.dfv-container #sprotty svg .elkedge{fill:none;stroke:#546e7a;stroke-width:1}.dfv-container #sprotty svg .elkedge.arrow{fill:#37474f}.dfv-container #sprotty svg .elklabel{stroke-width:0;stroke:#000;fill:#000;font-family:Roboto;font-size:12px;dominant-baseline:middle}.dfv-container #sprotty svg .elkjunction{stroke:none;fill:#37474f}.dfv-container #sprotty svg .selected>rect{stroke-width:3px}.dfv-container #sprotty svg .elk-actuator,.dfv-container #sprotty svg .elk-instantiator,.dfv-container #sprotty svg .elk-resolver,.dfv-container #sprotty svg .elk-resources,.dfv-container #sprotty svg .elk-table,.dfv-container #sprotty svg .mouseover{stroke-width:2px}.dfv-container #sprotty svg .waiting.elk-resource{fill:#e8f5e9;stroke:#c8e6c9}.dfv-container #sprotty svg .waiting.elk-actuator,.dfv-container #sprotty svg .waiting.elk-resolver{fill:#cfd8dc;stroke:#b0bec5}.dfv-container #sprotty svg .waiting.elk-instantiator,.dfv-container #sprotty svg .waiting.elk-table{fill:#e0e0e0;stroke:#bdbdbd}.dfv-container #sprotty svg .waiting.elk-resource_entity{fill:#80cbc4;stroke:blue-$grey-4}.dfv-container #sprotty svg .waiting.elk-semantic_entity{fill:#b2dfdb;stroke:#80cbc4}.dfv-container #sprotty svg .waiting.elk-literal_entity{fill:#80cbc4;stroke:#4db6ac}.dfv-container #sprotty svg .waiting.elk-model_activity{fill:#4db6ac;stroke:#26a69a}.dfv-container #sprotty svg .waiting.elk-task_activity{fill:#e0f2f1;stroke:#b2dfdb}.dfv-container #sprotty svg .waiting.elk-dataflow_plan{fill:#b2dfdb;stroke:#80cbc4}.dfv-container #sprotty svg .waiting.elk-klab_agent{fill:#80cbc4;stroke:#4db6ac}.dfv-container #sprotty svg .waiting.elk-user_agent,.dfv-container #sprotty svg .waiting.elk-view_entity{fill:#4db6ac;stroke:#26a69a}.dfv-container #sprotty svg .processed.elk-resource{fill:#c8e6c9;stroke:#a5d6a7}.dfv-container #sprotty svg .processed.elk-actuator,.dfv-container #sprotty svg .processed.elk-resolver{fill:#b0bec5;stroke:#78909c}.dfv-container #sprotty svg .processed.elk-instantiator,.dfv-container #sprotty svg .processed.elk-table{fill:#bdbdbd;stroke:#9e9e9e}.dfv-container #sprotty svg .processing.elk-resource{fill:#a5d6a7;stroke:#81c784}.dfv-container #sprotty svg .processing.elk-actuator,.dfv-container #sprotty svg .processing.elk-resolver{fill:#78909c;stroke:#455a64}.dfv-container #sprotty svg .processing.elk-instantiator,.dfv-container #sprotty svg .processing.elk-table{fill:#9e9e9e;stroke:#757575}.dfv-info-container{position:absolute;background-color:rgba(35,35,35,.9);overflow:hidden;height:100%!important;width:320px;left:calc(100% - 320px);right:0;bottom:0;top:0;z-index:1001}.kd-is-app #dfv-container #sprotty{background-color:var(--app-darken-background-color);padding-left:16px}.kd-is-app .dfv-info-container{background-color:rgba(var(--app-rgb-background-color),.9)}.irm-container{padding:20px;width:60vw;overflow:hidden;position:relative}.irm-container h3,.irm-container h4,.irm-container h5,.irm-container p{margin:0;padding:0;color:#1ab}.irm-container h3,.irm-container p{margin-bottom:10px}.irm-container h3,.irm-container h4,.irm-container h5{line-height:1.4em}.irm-container h3{font-size:1.4em}.irm-container h4{font-size:1.2em}.irm-container h5{font-size:1em}.irm-container h4+p,.irm-container h5+p{color:#333;font-size:.8em;font-style:italic}.irm-container h5+p{padding-bottom:10px}.irm-container .q-tabs:not(.irm-tabs-hidden) .q-tabs-head,.irm-container h5+p{border-bottom:1px solid #1ab}.irm-container .q-tab:not(.irm-tabs-hidden){border-top-left-radius:5px;border-top-right-radius:5px;background-color:#1ab}.irm-container .q-tabs-position-top>.q-tabs-head .q-tabs-bar{border-bottom-width:10px;color:hsla(0,0%,100%,.3)}.irm-container .irm-fields-container{max-height:50vh;overflow:hidden;border:1px dotted #1ab;margin:10px 0}.irm-container .irm-fields-container .irm-fields-wrapper{padding:10px;overflow-x:hidden}.irm-container .irm-fields-container label{font-style:italic}.irm-container .irm-group{margin-bottom:30px}.irm-container .irm-buttons{position:absolute;bottom:0;right:0;margin:0 30px 10px 0}.irm-container .irm-buttons .q-btn{margin-left:10px}.scd-inactive-multiplier .q-input-target{color:#979797}#dmc-container.full-height{height:calc(100% - 86px)!important}#dmc-container #kt-out-container{height:100%;position:relative}#dmc-container #dmc-tree{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none;background-color:hsla(0,0%,46.7%,.65);overflow:hidden}#dmc-container #dmc-tree #klab-tree-pane{height:100%}#dmc-container #dmc-tree #oi-container{height:calc(100% - 24px);max-height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper{height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#dmc-container.dmc-dragging{cursor:move!important}#dmc-container .kbc-container{margin:2px;padding:0;height:10px}#dmc-container .q-card-main.dmc-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}#dmc-container .q-card-main.dmc-loading .ktp-loading{background:transparent;-webkit-animation:none;animation:none}#dmc-container details{background-color:#777;border-top:1px solid #333}#dmc-container details #ktp-main-tree-arrow{background-color:#333}#dmc-container details[open]{border-bottom:1px solid #333}#dmc-container .dmc-timeline .ot-container{padding:9px 0}#lm-container{width:100%;overflow:hidden}#lm-container #spinner-leftmenu-container{padding-top:10px;padding-bottom:20px}#lm-container #spinner-leftmenu-div{width:44px;height:44px;margin-top:10px;margin-left:auto;margin-right:auto;background-color:#fff;border-radius:40px;border:2px solid}#lm-container #lm-actions,#lm-container #lm-content{float:left;border-right:1px solid hsla(0,0%,52.9%,.2)}#lm-container #lm-actions.klab-lm-panel,#lm-container #lm-content.klab-lm-panel{background-color:rgba(35,35,35,.5)}#lm-container .lm-separator{width:90%;left:5%;height:2px;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444;margin:0 auto}#lm-container .klab-button{display:block;font-size:30px;width:42px;height:42px;line-height:42px;vertical-align:middle;padding:0 5px;margin:15px auto}#lm-container .klab-main-actions .klab-button:hover{color:#1ab!important}#lm-container .klab-main-actions .klab-button:active{color:#fff}#lm-container .klab-button-notification{width:10px;height:10px;top:5px;right:5px}#lm-container .sb-scales{margin:0}#lm-container .sb-scales .lm-separator{width:60%;border-top-style:dashed;border-bottom-style:dashed}#lm-container #lm-bottom-menu{width:100%;position:fixed;bottom:0;left:0}.ol-box{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width}.ol-overlay-container{will-change:left,right,top,bottom}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.ol-control{position:absolute;background-color:hsla(0,0%,100%,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:hsla(0,0%,100%,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;-webkit-transition:opacity .25s linear,visibility 0s linear;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;-webkit-transition:opacity .25s linear,visibility 0s linear .25s;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}@media print{.ol-control{display:none}}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;font-size:.7rem;line-height:1.375em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none;line-height:inherit}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0;height:1.1em;line-height:1em}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.kexplorer-container{background-color:#263238;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHUlEQVQIW2NgY2OzYUACYL6+vn4UsgAynwwBEB8ARuIGpsZxGOoAAAAASUVORK5CYII=)}.klab-spinner{display:inline;vertical-align:middle;background-color:#fff;border-radius:40px;padding:3px;margin:0}.kexplorer-undocking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.3);border:4px solid hsla(0,0%,52.9%,.6);-webkit-animation-duration:.2s;animation-duration:.2s;cursor:move}.klab-left{position:absolute;background-color:rgba(35,35,35,.8)}.klab-large-mode.no-scroll{overflow:visible!important}.kapp-container .kcv-alert .modal-backdrop{background-color:transparent}.kapp-container .q-input-target{color:var(--app-text-color);background-color:var(--app-background-color);line-height:var(--app-line-height);height:auto}.kapp-container .q-btn{min-height:var(--app-line-height)}.kapp-container .q-no-input-spinner{-moz-appearance:textfield!important}.kapp-container .q-no-input-spinner::-webkit-inner-spin-button,.kapp-container .q-no-input-spinner::-webkit-outer-spin-button{-webkit-appearance:auto}.kapp-container .q-if:after,.kapp-container .q-if:before{border-bottom-style:none}.kapp-container .q-if .q-if-inner{min-height:unset}.kapp-container .q-if-baseline{line-height:var(--app-line-height)}.kapp-container .q-field-bottom,.kapp-container .q-field-icon,.kapp-container .q-field-label,.kapp-container .q-if,.kapp-container .q-if-addon,.kapp-container .q-if-control,.kapp-container .q-if-label,.kapp-container .q-if:before{-webkit-transition:none;transition:none}.kcv-main-container+.kcv-group{padding-bottom:1px}.kcv-main-container>.kcv-group{height:100%!important;border-bottom:1px solid var(--app-main-color)}.kcv-main-container>.kcv-group>.kcv-group-container>.kcv-group-content>.kcv-group>.kcv-group-content{padding-bottom:0!important}.kcv-main-container>.kcv-group .kcv-group-container{height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content{padding-bottom:var(--app-smaller-mp);-ms-flex-pack:distribute;justify-content:space-around}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-group{padding:calc(var(--app-smaller-mp)/4) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-pushbutton{margin:var(--app-large-mp) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group-legend{color:var(--app-title-color);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2em;vertical-align:center;font-weight:300;font-size:1.2em}.kcv-main-container>.kcv-group .kcv-group-bottom{position:fixed;bottom:0;z-index:1000;background-color:var(--app-background-color);border-top:1px solid var(--app-main-color)}.kcv-collapsible .kcv-collapsible-header{background-color:var(--app-background-color);color:var(--app-title-color);border-bottom:1px solid var(--app-darken-background-color)}.kcv-collapsible .kcv-collapsible-header .q-item-side-left{min-width:0}.kcv-collapsible .kcv-collapsible-header .q-item-side-left .q-icon{font-size:1.2em;width:1.2em}.kcv-collapsible .kcv-collapsible-header .q-item-label{font-size:var(--app-font-size)}.kcv-collapsible .kcv-collapsible-header .q-item-side{color:var(--app-title-color)}.kcv-collapsible .kcv-collapsible-header .q-item-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.kcv-collapsible .kcv-collapsible-header .q-item-icon.rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.kcv-collapsible .q-item{min-height:unset;padding:var(--app-small-mp)}.kcv-collapsible .q-collapsible-sub-item{padding:0}.kcv-collapsible .q-collapsible-sub-item>.kcv-group{border-top:1px solid var(--app-main-color);border-bottom:1px solid var(--app-main-color)}.kcv-tree-container{padding:var(--app-small-mp) 0;position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.kcv-tree-container .kcv-tree-legend{color:var(--app-title-color);padding:var(--app-small-mp);margin:0 var(--app-small-mp);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kcv-hr-separator{width:100%;color:var(--app-main-color);height:1px}.kcv-separator{padding:var(--app-large-mp) var(--app-small-mp);position:relative;border-bottom:1px solid var(--app-main-color);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.2em}.kcv-separator .kcv-separator-icon{margin-right:var(--app-small-mp);font-size:1.2em;width:1.2em}.kcv-separator .kcv-separator-title{font-weight:300;font-size:1.2em;-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10}.kcv-separator .kcv-separator-right{font-size:1.3em;width:1.2em;-ms-flex-item-align:start;align-self:flex-start;cursor:pointer}.kcv-label{font-weight:400;color:var(--app-main-color);vertical-align:middle;line-height:calc(var(--app-line-height) + 4px);-ms-flex-item-align:center;align-self:center;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-label.kcv-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kcv-label.kcv-with-icon{min-width:calc(1rem + var(--app-small-mp)*2)}.kcv-label .kcv-label-icon{margin-right:var(--app-small-mp)}.kcv-label.kcv-title{color:var(--app-alt-color);font-weight:700;cursor:default;margin-top:var(--app-smaller-mp)}.kcv-label.kcv-clickable{cursor:pointer}.kcv-text{margin:var(--app-large-mp) var(--app-small-mp);text-align:justify;position:relative;color:var(--app-text-color)}.kcv-text .kcv-internal-text{overflow:hidden}.kcv-text .kcv-internal-text p{padding:0 var(--app-small-mp);margin-bottom:var(--app-large-mp)}.kcv-text .kcv-internal-text strong{color:var(--app-title-color)}.kcv-text .kcv-collapse-button{width:100%;position:absolute;bottom:0;left:0;text-align:center;vertical-align:middle;line-height:20px;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;background-color:rgba(var(--app-rgb-main-color),.1);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.kcv-text:hover .kcv-collapse-button{opacity:1}.kcv-text.kcv-collapse{margin-bottom:1em}.kcv-text.kcv-collapsed{padding-top:0;height:20px!important;overflow:hidden;padding-bottom:14px}.kcv-text.kcv-collapsed .kcv-internal-text{display:none}.kcv-text.kcv-collapsed .kcv-collapse-button{opacity:1;border-radius:4px}.kcv-form-element{margin:0 var(--app-small-mp)}.kcv-form-element:not(.kcv-roundbutton){border-radius:6px}.kcv-text-input{min-height:var(--app-line-height);vertical-align:middle;border:1px solid var(--app-main-color);background-color:var(--app-background-color);padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-text-input.kcv-search{margin-top:var(--app-smaller-mp)}.kcv-combo{padding:2px 10px;background-color:var(--app-background-color);border-radius:6px;border:1px solid var(--app-main-color)}.kcv-combo-option{color:var(--app-main-color);min-height:unset;padding:var(--app-small-mp) var(--app-large-mp)}.kcv-pushbutton{font-size:var(--app-font-size);margin:0 var(--app-small-mp)}.kcv-pushbutton .q-icon{color:var(--button-icon-color)}.kcv-reset-button,.kcv-roundbutton{margin:0 var(--app-smaller-mp)}.kcv-checkbutton{display:block;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-checkbutton:not(.kcv-check-only){width:100%}.kcv-checkbutton.kcv-check-computing span,.kcv-checkbutton.kcv-check-waiting span{font-style:italic}.kcv-checkbutton.kcv-check-computing .q-icon:before,.kcv-checkbutton.kcv-check-waiting .q-icon:before{font-size:calc(1em + 1px);-webkit-animation:q-spin 2s linear infinite;animation:q-spin 2s linear infinite}.kcv-label-toggle{color:var(--app-darken-background-color);text-shadow:-1px -1px 0 var(--app-main-color)}.kcv-error-tooltip{background-color:var(--app-negative-color)}.kcv-browser{border-radius:8px}.kcv-style-dark .kcv-reset-button{color:#fa7575!important}@-webkit-keyframes flash-button{50%{background-color:var(--flash-color)}}@keyframes flash-button{50%{background-color:var(--flash-color)}}body .klab-main-app{position:relative}body .km-modal-window{background-color:var(--app-background-color)}body .km-modal-window iframe{background-color:#fff}body .kapp-footer-container,body .kapp-header-container,body .kapp-left-inner-container,body .kapp-main-container:not(.is-kexplorer),body .kapp-right-inner-container{color:var(--app-text-color);font-family:var(--app-font-family);font-size:var(--app-font-size);line-height:var(--app-line-height);background-color:var(--app-background-color);padding:0;margin:0}body .kapp-right-inner-container{position:absolute!important}body .kapp-right-inner-container .kapp-right-wrapper{overflow:hidden}body .kapp-left-inner-container{position:absolute!important}body .kapp-left-inner-container .kapp-left-wrapper{overflow:hidden}.kapp-main.q-layout{border:0;padding:0;margin:0}.kapp-main .simplebar-scrollbar:before{background-color:var(--app-main-color)}.kapp-header{background-color:var(--app-background-color);padding:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;height:calc(40px + var(--app-title-size) + var(--app-subtitle-size));min-height:calc(40px + var(--app-title-size) + var(--app-subtitle-size))}.kapp-header .kapp-logo-container{-ms-flex-item-align:center;align-self:center;margin:0 10px}.kapp-header .kapp-logo-container img{max-width:80px;max-height:80px}.kapp-header .kapp-title-container{color:var(--app-title-color);-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:center;align-self:center;padding-left:10px}.kapp-header .kapp-title-container .kapp-title{height:var(--app-title-size);line-height:var(--app-title-size);font-weight:500;font-size:var(--app-title-size);margin-bottom:6px}.kapp-header .kapp-title-container .kapp-version{display:inline-block;font-weight:300;font-size:var(--app-subtitle-size);margin-left:16px;position:relative;bottom:3px;padding:0 4px;opacity:.5;border:1px solid var(--app-main-color)}.kapp-header .kapp-title-container .kapp-subtitle{height:var(--app-subtitle-size);line-height:var(--app-subtitle-size);font-size:var(--app-subtitle-size);font-weight:300}.kapp-header .kapp-header-menu-container{position:absolute;right:0;padding:10px 16px}.kapp-header .kapp-header-menu-container .kapp-header-menu-item{margin:0 0 0 16px;color:var(--app-title-color);cursor:pointer}.kapp-header .kapp-actions-container .klab-main-actions{margin:0 1px 0 0;min-width:178px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button{width:60px;height:45px;font-size:26px;margin:0 -1px 0 0;text-align:center;padding:10px 0;border-top-left-radius:4px!important;border-top-right-radius:4px!important;border:1px solid var(--app-main-color);border-bottom:0;text-shadow:0 1px 2px var(--app-lighten-background-color);color:var(--app-main-color)!important;position:relative;bottom:-1px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button.active{background-color:var(--app-darken-background-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button:hover:not(.active){background-color:var(--app-darken-background-color);border-bottom:1px solid var(--app-main-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button-notification{width:11px;height:11px;border-radius:10px;top:5px;right:11px;background-color:var(--app-main-color)!important;border:1px solid var(--app-background-color)}.kcv-dir-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.klab-close-app{position:absolute;z-index:100000}.klab-close-app.klab-close-app-on-left,.klab-close-app.klab-close-app-on-panel{height:32px;width:32px;opacity:.2}.klab-close-app.klab-close-app-on-left .q-icon,.klab-close-app.klab-close-app-on-panel .q-icon{font-size:16px}.klab-close-app.klab-close-app-on-left:hover,.klab-close-app.klab-close-app-on-panel:hover{height:50px;width:50px;opacity:1}.klab-close-app.klab-close-app-on-left:hover .q-icon,.klab-close-app.klab-close-app-on-panel:hover .q-icon{font-size:22px}.klab-close-app.klab-close-app-on-left:hover{-webkit-transform:translate(-22px);transform:translate(-22px)}.klab-close-app.klab-close-app-on-panel{background-color:var(--app-main-color);color:var(--app-background-color)}.klab-link .klab-external-link{color:var(--app-text-color);font-weight:700;display:inline;margin:0 0 0 3px}.kapp-loading{background-color:var(--app-background-color);padding:16px;text-align:center;min-width:60px;border-radius:20px}.kapp-loading div{margin-top:15px;color:var(--app-main-color)}.km-main-container .km-title{background-color:var(--app-background-color)!important;color:var(--app-main-color)!important}.km-main-container .km-title .q-toolbar-title{font-size:var(--app-modal-title-size)}.km-main-container .km-title .km-subtitle{font-size:var(--app-modal-subtitle-size)}.km-main-container .km-content{overflow:hidden;border-radius:8px;border:1px solid var(--app-main-color);margin:16px 16px 0;padding:8px;background-color:var(--app-background-color)}.km-main-container .km-content .kcv-main-container>.kcv-group{border:none}.km-main-container .km-buttons{margin:8px 16px}.km-main-container .km-buttons .klab-button{font-size:16px;background-color:var(--app-main-color);color:var(--app-background-color)!important}.ks-stack-container{position:relative;height:calc(100% - 30px);margin:30px 20px 0}.ks-stack-container .ks-layer{position:absolute;top:0;left:0;bottom:90px;right:0;opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out;overflow:hidden}.ks-stack-container .ks-layer.ks-top-layer{z-index:999!important;opacity:1}.ks-stack-container li{padding-bottom:10px}.ks-stack-container .ks-layer-caption{position:absolute;padding:12px;width:auto;height:auto;color:#616161;max-height:100%;overflow:auto}.ks-stack-container .ks-layer-caption .ks-caption-title{font-size:24px;letter-spacing:normal;margin:0;text-align:center}.ks-stack-container .ks-layer-caption .ks-caption-text{font-size:16px}.ks-stack-container .ks-layer-image{position:absolute;overflow:hidden}.ks-stack-container .ks-layer-image img{width:auto;height:auto}.ks-stack-container .ks-middle{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ks-stack-container .ks-middle.ks-center{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ks-stack-container .ks-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.ks-stack-container .ks-center:not(.ks-layer-image){width:100%}.ks-stack-container .ks-top{top:0}.ks-stack-container .ks-bottom{bottom:0}.ks-stack-container .ks-left{left:0}.ks-stack-container .ks-right{right:0}.ks-stack-container .ks-navigation{width:100%;text-align:center;position:absolute;bottom:50px;right:0;z-index:10000;vertical-align:middle;-webkit-transition:opacity .3s;transition:opacity .3s;height:40px;border-bottom:1px solid #eee}.ks-stack-container .ks-navigation.ks-navigation-transparent{opacity:.6}.ks-stack-container .ks-navigation:hover{opacity:1}@media (min-width:1600px){.ks-stack-container .ks-caption-title{font-size:32px!important;margin:0 0 1em!important}.ks-stack-container .ks-caption-text{font-size:18px!important}}.klab-modal-container .klab-modal-inner .kp-no-presentation{font-weight:700;position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .kp-refresh-btn{position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .klab-small{font-size:smaller}.klab-modal-container .kp-help-titlebar{position:absolute;width:100%;height:25px;padding:8px 0 0 20px;z-index:100000}.klab-modal-container .kp-help-titlebar .kp-link{font-size:11px;color:#616161;cursor:pointer;float:left;padding:0 10px 0 0}.klab-modal-container .kp-help-titlebar .kp-link:hover:not(.kp-link-current){text-decoration:underline;color:#1ab}.klab-modal-container .kp-help-titlebar .kp-link-current{cursor:default;text-decoration:underline}.klab-modal-container .kp-carousel .kp-slide{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.klab-modal-container .kp-carousel .kp-main-content{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.klab-modal-container .kp-carousel .kp-main-content .kp-main-image{text-align:center;background-repeat:no-repeat;background-size:contain;background-position:50%;height:calc(100% - 40px)}.klab-modal-container .kp-main-title,.klab-modal-container .kp-nav-tooltip{position:absolute;bottom:0;vertical-align:middle;font-size:20px;line-height:50px;height:50px;text-align:center;width:80%;margin-left:10%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.klab-modal-container .kp-nav-tooltip{-webkit-transition:opacity .3s;transition:opacity .3s;opacity:0}.klab-modal-container .kp-nav-tooltip.visible{opacity:1}.klab-modal-container .kp-navigation{position:absolute;bottom:0;padding:10px 10px 10px 15px;vertical-align:middle}.klab-modal-container .kp-navigation .kp-navnumber-container{padding-left:3px;position:relative;float:left}.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-current,.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-number{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .kp-navigation .kp-nav-number{height:30px;width:30px;line-height:30px;vertical-align:middle;color:#fff;text-align:center;padding:0;cursor:pointer;border-radius:20px;background-color:rgba(97,97,97,.4);opacity:.7;z-index:10000}.klab-modal-container .kp-navigation .kp-nav-number.kp-nav-current,.klab-modal-container .kp-navigation .kp-nav-number:hover{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .internal-link{cursor:pointer}.klab-modal-container .internal-link:hover{color:#ffc300}.klab-modal-container .kp-icon-close-popover,.klab-modal-container .kp-icon-refresh-size{position:absolute;top:1px;right:2px;width:22px;height:22px;z-index:200000}.klab-modal-container .kp-icon-close-popover .q-focus-helper,.klab-modal-container .kp-icon-refresh-size .q-focus-helper{opacity:0}.klab-modal-container .kp-icon-close-popover:hover .mdi-close-circle-outline:before,.klab-modal-container .kp-icon-refresh-size:hover .mdi-close-circle-outline:before{content:"\F0159"}.klab-modal-container .kp-icon-refresh-size{right:24px}.klab-modal-container .kp-icon-refresh-size:hover{color:#1ab!important}.klab-modal-container .kp-checkbox{position:absolute;right:20px;bottom:10px;font-size:10px}.kn-modal-container .modal-content{max-width:640px!important}.kn-title{font-size:var(--app-title-size);color:var(--app-title-color)}.kn-content{font-size:var(--app-text-size)}.kn-checkbox,.kn-content{color:var(--app-text-color)}.kn-checkbox{position:absolute;left:20px;bottom:16px;font-size:10px}[data-simplebar]{position:relative;z-index:0;overflow:hidden!important;max-height:inherit;-webkit-overflow-scrolling:touch}[data-simplebar=init]{display:-webkit-box;display:-ms-flexbox;display:flex}[data-simplebar] .simplebar-content,[data-simplebar] .simplebar-scroll-content{overflow:hidden}[data-simplebar=init] .simplebar-content,[data-simplebar=init] .simplebar-scroll-content{overflow:scroll}.simplebar-scroll-content{overflow-x:hidden!important;min-width:100%!important;max-height:inherit!important;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.simplebar-content{overflow-y:hidden!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;min-height:100%!important}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;width:11px;pointer-events:none}.simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:0;right:0;opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.simplebar-track .simplebar-scrollbar.visible:before{opacity:.5;-webkit-transition:opacity 0 linear;transition:opacity 0 linear}.simplebar-track.vertical{top:0}.simplebar-track.vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.horizontal{left:0;width:auto;height:11px}.simplebar-track.horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.horizontal.simplebar-track .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track{right:auto;left:0}[data-simplebar-direction=rtl] .simplebar-track.horizontal{right:0}:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.klab-wait-app{min-width:50px}.klab-wait-app .klab-wait-app-container{text-align:center;width:100%;font-weight:300;font-size:1.5em;padding:20px}.klab-wait-app .klab-wait-app-container p{margin-bottom:0}.klab-wait-app .klab-wait-app-container strong{color:#1ab}.klab-wait-app .klab-wait-app-container .q-spinner{margin-bottom:16px}.klab-wait-app .klab-wait-app-container .klab-app-error,.klab-wait-app .klab-wait-app-container .klab-app-error strong{color:#ff6464}.klab-wait-app .klab-wait-app-container a.klab-app-refresh{display:block;color:#1ab;padding:8px 0 0;text-decoration:none}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:after{content:"\F0450";display:inline-block;font-family:Material Design Icons;margin:2px 0 0 8px;vertical-align:bottom;-webkit-transition:.6s;transition:.6s}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:hover:after{-webkit-transform:rotate(1turn);transform:rotate(1turn)} \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/index.html b/klab.engine/src/main/resources/static/ui/index.html index 2af9ae27b..1252fa4e9 100644 --- a/klab.engine/src/main/resources/static/ui/index.html +++ b/klab.engine/src/main/resources/static/ui/index.html @@ -1,3 +1,3 @@ -k.Explorer
\ No newline at end of file + }
\ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/74fd8965.2e624603.js b/klab.engine/src/main/resources/static/ui/js/74fd8965.2c37b5ae.js similarity index 82% rename from klab.engine/src/main/resources/static/ui/js/74fd8965.2e624603.js rename to klab.engine/src/main/resources/static/ui/js/74fd8965.2c37b5ae.js index 6109ded9c..3d4b3d579 100644 --- a/klab.engine/src/main/resources/static/ui/js/74fd8965.2e624603.js +++ b/klab.engine/src/main/resources/static/ui/js/74fd8965.2c37b5ae.js @@ -9,7 +9,7 @@ //! license : MIT //! github.com/moment/moment-timezone (function(s,a){"use strict";e.exports?e.exports=a(n("c1df")):(o=[n("c1df")],i=a,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r))})(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n="0.5.34",i={},o={},r={},s={},a={};e&&"string"===typeof e.version||j("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=e.version.split("."),l=+c[0],u=+c[1];function d(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t,n=0,i=e.split("."),o=i[0],r=i[1]||"",s=1,a=0,c=1;for(45===e.charCodeAt(0)&&(n=1,c=-1),n;n3){var t=s[L(e)];if(t)return t;j("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,i,o,r=w(),a=r.length,c=A(r),l=[];for(i=0;i0?l[0].zone.name:void 0}function O(e){return t&&!e||(t=E()),t}function L(e){return(e||"").toLowerCase().replace(/\//g,"_")}function T(e){var t,n,o,r;for("string"===typeof e&&(e=[e]),t=0;t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),v.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;ti&&W.moveInvalidForward&&(t=i),r0&&(this._z=null),e.apply(this,arguments)}}e.tz=W,e.defaultZone=null,e.updateOffset=function(t,n){var i,o=e.defaultZone;if(void 0===t._z&&(o&&q(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-i,n),t._z=r}else t.zone(i,n)},F.tz=function(t,n){if(t){if("string"!==typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=x(t),this._z?e.updateOffset(this,n):j("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},F.zoneName=H(F.zoneName),F.zoneAbbr=H(F.zoneAbbr),F.utc=X(F.utc),F.local=X(F.local),F.utcOffset=U(F.utcOffset),e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&j("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?x(t):null,e};var V=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(V)?(V.push("_z"),V.push("_a")):V&&(V._z=null),e})},"0f4c":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("c146"),r=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementResizes=n,r.reverse=o,r}return i(t,e),t.prototype.tween=function(e){var t=this;return this.elementResizes.forEach(function(n){var i=n.element,o=t.reverse?{width:(1-e)*n.toDimension.width+e*n.fromDimension.width,height:(1-e)*n.toDimension.height+e*n.fromDimension.height}:{width:(1-e)*n.fromDimension.width+e*n.toDimension.width,height:(1-e)*n.fromDimension.height+e*n.toDimension.height};i.bounds={x:i.bounds.x,y:i.bounds.y,width:o.width,height:o.height}}),this.model},t}(o.Animation);t.ResizeAnimation=r},"0faf":function(e,t,n){"use strict";var i=n("5870"),o=n.n(i);o.a},"0fb6":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("9175"),c=n("302f"),l=n("538c"),u=n("3f0a"),d=n("c20e"),h=n("510b"),p=function(){function e(){this.postponedActions=[],this.requests=new Map}return e.prototype.initialize=function(){var e=this;return this.initialized||(this.initialized=this.actionHandlerRegistryProvider().then(function(t){e.actionHandlerRegistry=t,e.handleAction(new u.SetModelAction(c.EMPTY_ROOT))})),this.initialized},e.prototype.dispatch=function(e){var t=this;return this.initialize().then(function(){return void 0!==t.blockUntil?t.handleBlocked(e,t.blockUntil):t.diagramLocker.isAllowed(e)?t.handleAction(e):void 0})},e.prototype.dispatchAll=function(e){var t=this;return Promise.all(e.map(function(e){return t.dispatch(e)}))},e.prototype.request=function(e){if(!e.requestId)return Promise.reject(new Error("Request without requestId"));var t=new a.Deferred;return this.requests.set(e.requestId,t),this.dispatch(e),t.promise},e.prototype.handleAction=function(e){if(e.kind===d.UndoAction.KIND)return this.commandStack.undo().then(function(){});if(e.kind===d.RedoAction.KIND)return this.commandStack.redo().then(function(){});if(h.isResponseAction(e)){var t=this.requests.get(e.responseId);if(void 0!==t){if(this.requests.delete(e.responseId),e.kind===h.RejectAction.KIND){var n=e;t.reject(new Error(n.message)),this.logger.warn(this,"Request with id "+e.responseId+" failed.",n.message,n.detail)}else t.resolve(e);return Promise.resolve()}this.logger.log(this,"No matching request for response",e)}var i=this.actionHandlerRegistry.get(e.kind);if(0===i.length){this.logger.warn(this,"Missing handler for action",e);var o=new Error("Missing handler for action '"+e.kind+"'");if(h.isRequestAction(e)){t=this.requests.get(e.requestId);void 0!==t&&(this.requests.delete(e.requestId),t.reject(o))}return Promise.reject(o)}this.logger.log(this,"Handle",e);for(var r=[],s=0,a=i;s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("3a92"),l=n("e45b"),u=function(){function e(e){void 0===e&&(e=[]),this.keyListeners=e}return e.prototype.register=function(e){this.keyListeners.push(e)},e.prototype.deregister=function(e){var t=this.keyListeners.indexOf(e);t>=0&&this.keyListeners.splice(t,1)},e.prototype.handleEvent=function(e,t,n){var i=this.keyListeners.map(function(i){return i[e].apply(i,[t,n])}).reduce(function(e,t){return e.concat(t)});i.length>0&&(n.preventDefault(),this.actionDispatcher.dispatchAll(i))},e.prototype.keyDown=function(e,t){this.handleEvent("keyDown",e,t)},e.prototype.keyUp=function(e,t){this.handleEvent("keyUp",e,t)},e.prototype.focus=function(){},e.prototype.decorate=function(e,t){return t instanceof c.SModelRoot&&(l.on(e,"focus",this.focus.bind(this),t),l.on(e,"keydown",this.keyDown.bind(this),t),l.on(e,"keyup",this.keyUp.bind(this),t)),e},e.prototype.postUpdate=function(){},i([s.inject(a.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=i([s.injectable(),r(0,s.multiInject(a.TYPES.KeyListener)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();t.KeyTool=u;var d=function(){function e(){}return e.prototype.keyDown=function(e,t){return[]},e.prototype.keyUp=function(e,t){return[]},e=i([s.injectable()],e),e}();t.KeyListener=d},1468:function(e,t){var n=1e3,i=60*n,o=60*i,r=24*o,s=365.25*r;function a(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function c(e){return e>=r?Math.round(e/r)+"d":e>=o?Math.round(e/o)+"h":e>=i?Math.round(e/i)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}function l(e){return u(e,r,"day")||u(e,o,"hour")||u(e,i,"minute")||u(e,n,"second")||e+" ms"}function u(e,t,n){if(!(e0)return a(e);if("number"===n&&!1===isNaN(e))return t.long?l(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"155f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingScopeEnum=i;var o={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.BindingTypeEnum=o;var r={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};t.TargetTypeEnum=r},1590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t){this.toolIds=t,this.kind=e.KIND}return e.KIND="enable-tools",e}();t.EnableToolsAction=i;var o=function(){function e(){this.kind=e.KIND}return e.KIND="enable-default-tools",e}();t.EnableDefaultToolsAction=o},"15f6":function(e,t,n){},"160b":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("302f"),l=n("3a92"),u=n("538c"),d=n("9757"),h=function(){function e(){this.undoStack=[],this.redoStack=[],this.offStack=[]}return e.prototype.initialize=function(){this.currentPromise=Promise.resolve({main:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},hidden:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},popup:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1}})},Object.defineProperty(e.prototype,"currentModel",{get:function(){return this.currentPromise.then(function(e){return e.main.model})},enumerable:!0,configurable:!0}),e.prototype.executeAll=function(e){var t=this;return e.forEach(function(e){t.logger.log(t,"Executing",e),t.handleCommand(e,e.execute,t.mergeOrPush)}),this.thenUpdate()},e.prototype.execute=function(e){return this.logger.log(this,"Executing",e),this.handleCommand(e,e.execute,this.mergeOrPush),this.thenUpdate()},e.prototype.undo=function(){var e=this;this.undoOffStackSystemCommands(),this.undoPreceedingSystemCommands();var t=this.undoStack[this.undoStack.length-1];return void 0===t||this.isBlockUndo(t)||(this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,n){e.redoStack.push(t)})),this.thenUpdate()},e.prototype.redo=function(){var e=this;this.undoOffStackSystemCommands();var t=this.redoStack.pop();return void 0!==t&&(this.logger.log(this,"Redoing",t),this.handleCommand(t,t.redo,function(t,n){e.pushToUndoStack(t)})),this.redoFollowingSystemCommands(),this.thenUpdate()},e.prototype.handleCommand=function(e,t,n){var i=this;this.currentPromise=this.currentPromise.then(function(o){return new Promise(function(r){var s;s=e instanceof d.HiddenCommand?"hidden":e instanceof d.PopupCommand?"popup":"main";var a,c=i.createContext(o.main.model);try{a=t.call(e,c)}catch(e){i.logger.error(i,"Failed to execute command:",e),a=o[s].model}var u=p(o);a instanceof Promise?a.then(function(t){"main"===s&&n.call(i,e,c),u[s]={model:t,modelChanged:!0},r(u)}):a instanceof l.SModelRoot?("main"===s&&n.call(i,e,c),u[s]={model:a,modelChanged:!0},r(u)):("main"===s&&n.call(i,e,c),u[s]={model:a.model,modelChanged:o[s].modelChanged||a.modelChanged,cause:a.cause},r(u))})})},e.prototype.pushToUndoStack=function(e){this.undoStack.push(e),this.options.undoHistoryLimit>=0&&this.undoStack.length>this.options.undoHistoryLimit&&this.undoStack.splice(0,this.undoStack.length-this.options.undoHistoryLimit)},e.prototype.thenUpdate=function(){var e=this;return this.currentPromise=this.currentPromise.then(function(t){var n=p(t);return t.hidden.modelChanged&&(e.updateHidden(t.hidden.model,t.hidden.cause),n.hidden.modelChanged=!1,n.hidden.cause=void 0),t.main.modelChanged&&(e.update(t.main.model,t.main.cause),n.main.modelChanged=!1,n.main.cause=void 0),t.popup.modelChanged&&(e.updatePopup(t.popup.model,t.popup.cause),n.popup.modelChanged=!1,n.popup.cause=void 0),n}),this.currentModel},e.prototype.update=function(e,t){void 0===this.modelViewer&&(this.modelViewer=this.viewerProvider.modelViewer),this.modelViewer.update(e,t)},e.prototype.updateHidden=function(e,t){void 0===this.hiddenModelViewer&&(this.hiddenModelViewer=this.viewerProvider.hiddenModelViewer),this.hiddenModelViewer.update(e,t)},e.prototype.updatePopup=function(e,t){void 0===this.popupModelViewer&&(this.popupModelViewer=this.viewerProvider.popupModelViewer),this.popupModelViewer.update(e,t)},e.prototype.mergeOrPush=function(e,t){var n=this;if(this.isBlockUndo(e))return this.undoStack=[],this.redoStack=[],this.offStack=[],void this.pushToUndoStack(e);if(this.isPushToOffStack(e)&&this.redoStack.length>0){if(this.offStack.length>0){var i=this.offStack[this.offStack.length-1];if(i instanceof d.MergeableCommand&&i.merge(e,t))return}this.offStack.push(e)}else if(this.isPushToUndoStack(e)){if(this.offStack.forEach(function(e){return n.undoStack.push(e)}),this.offStack=[],this.redoStack=[],this.undoStack.length>0){i=this.undoStack[this.undoStack.length-1];if(i instanceof d.MergeableCommand&&i.merge(e,t))return}this.pushToUndoStack(e)}},e.prototype.undoOffStackSystemCommands=function(){var e=this.offStack.pop();while(void 0!==e)this.logger.log(this,"Undoing off-stack",e),this.handleCommand(e,e.undo,function(){}),e=this.offStack.pop()},e.prototype.undoPreceedingSystemCommands=function(){var e=this,t=this.undoStack[this.undoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,n){e.redoStack.push(t)}),t=this.undoStack[this.undoStack.length-1]},e.prototype.redoFollowingSystemCommands=function(){var e=this,t=this.redoStack[this.redoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.redoStack.pop(),this.logger.log(this,"Redoing ",t),this.handleCommand(t,t.redo,function(t,n){e.pushToUndoStack(t)}),t=this.redoStack[this.redoStack.length-1]},e.prototype.createContext=function(e){return{root:e,modelChanged:this,modelFactory:this.modelFactory,duration:this.options.defaultDuration,logger:this.logger,syncer:this.syncer}},e.prototype.isPushToOffStack=function(e){return e instanceof d.SystemCommand},e.prototype.isPushToUndoStack=function(e){return!(e instanceof d.HiddenCommand)},e.prototype.isBlockUndo=function(e){return e instanceof d.ResetCommand},o([s.inject(a.TYPES.IModelFactory),r("design:type",Object)],e.prototype,"modelFactory",void 0),o([s.inject(a.TYPES.IViewerProvider),r("design:type",Object)],e.prototype,"viewerProvider",void 0),o([s.inject(a.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),o([s.inject(a.TYPES.AnimationFrameSyncer),r("design:type",u.AnimationFrameSyncer)],e.prototype,"syncer",void 0),o([s.inject(a.TYPES.CommandStackOptions),r("design:type",Object)],e.prototype,"options",void 0),o([s.postConstruct(),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialize",null),e=o([s.injectable()],e),e}();function p(e){return{main:i({},e.main),hidden:i({},e.hidden),popup:i({},e.popup)}}t.CommandStack=h},"168d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3864"),c=n("d8f5"),l=n("e1c6"),u=n("6923"),d=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.kind,e)}),n}return i(t,e),Object.defineProperty(t.prototype,"defaultKind",{get:function(){return c.PolylineEdgeRouter.KIND},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t||this.defaultKind)},t=o([l.injectable(),s(0,l.multiInject(u.TYPES.IEdgeRouter)),r("design:paramtypes",[Array])],t),t}(a.InstanceRegistry);t.EdgeRouterRegistry=d},1817:function(e,t,n){"use strict";var i=n("c23f"),o=n.n(i);o.a},1848:function(e,t,n){"use strict";var i=n("98ab"),o=n.n(i);o.a},1963:function(e,t,n){},1978:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("9757"),c=n("3a92"),l=n("6923"),u=n("e1c6");function d(e){return e instanceof c.SChildElement&&e.hasFeature(t.deletableFeature)}t.deletableFeature=Symbol("deletableFeature"),t.isDeletable=d;var h=function(){function e(t){this.elementIds=t,this.kind=e.KIND}return e.KIND="delete",e}();t.DeleteElementAction=h;var p=function(){function e(){}return e}();t.ResolvedDelete=p;var f=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.resolvedDeletes=[],n}return i(t,e),t.prototype.execute=function(e){for(var t=e.root.index,n=0,i=this.action.elementIds;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("9964"),s=n("3623"),a=n("e1c6"),c=function(){function e(){}return e.prototype.render=function(e,t){var n=s.findParentByFeature(e,r.isExpandable),i=void 0!==n&&n.expanded?"M 1,5 L 8,12 L 15,5 Z":"M 1,8 L 8,15 L 8,1 Z";return o.svg("g",{"class-sprotty-button":"{true}","class-enabled":"{button.enabled}"},o.svg("rect",{x:0,y:0,width:16,height:16,opacity:0}),o.svg("path",{d:i}))},e=i([a.injectable()],e),e}();t.ExpandButtonView=c},"19f2":function(e,t,n){"use strict";var i=n("8ac3"),o=n.n(i);o.a},"19fc":function(e,t,n){"use strict";(function(e){n("7f7f"),n("6762"),n("2fdb"),n("6b54"),n("a481");var i=n("448a"),o=n.n(i),r=(n("f559"),n("7514"),n("3156")),s=n.n(r),a=(n("ac6a"),n("cadf"),n("f400"),n("e325")),c=n("1ad9"),l=n.n(c),u=(n("c862"),n("e00b")),d=n("2f62"),h=n("7cca"),p=n("b12a"),f=n("be3b"),m=n("7173");t["a"]={name:"DocumentationViewer",props:{forPrinting:{type:Boolean,default:!1}},components:{FigureTimeline:m["a"],HistogramViewer:u["a"]},data:function(){return{content:[],tables:[],images:[],loadingImages:[],figures:[],rawDocumentation:[],DOCUMENTATION_TYPES:h["l"],links:new Map,tableCounter:0,referenceCounter:0,viewport:null,needUpdates:!1,visible:!1,waitHeight:320}},computed:s()({},Object(d["c"])("data",["documentationTrees","documentationContent"]),Object(d["c"])("view",["documentationView","documentationSelected","documentationCache","tableFontSize"]),{tree:function(){var e=this;return this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree}}),methods:s()({},Object(d["b"])("view",["setDocumentation"]),{getId:function(e){return this.forPrinting?"".concat(e,"-fp"):e},getFormatter:function(e,t){var n=t.numberFormat;switch(n||(n="%f"),e){case h["I"].TEXT:case h["I"].VALUE:case h["I"].BOOLEAN:return"plaintext";case h["I"].NUMBER:return function(e){return e.getValue()&&""!==e.getValue()?l()(n,e.getValue()):""};default:return"plaintext"}},formatColumns:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.numberFormat,o=function e(n,o){var r="".concat(o||"").concat(n.id);return s()({title:n.title,field:r,headerVertical:n.headerVertical,frozen:n.frozen},n.sorter&&{sorter:n.sorter},n.hozAlign&&{hozAlign:n.hozAlign},n.formatter&&{formatter:n.formatter},!n.formatter&&n.type&&{formatter:t.getFormatter(n.type,{numberFormat:n.numberFormat||i})},n.columns&&n.columns.length>0&&{columns:n.columns.map(function(t){return e(t,r)})})};return e.map(function(e){return s()({},o(e))})},selectElement:function(e){var t;t=e.startsWith(".")?document.querySelector(e):document.getElementById(this.getId(e)),t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("dv-selected"))},getModelCode:function(e){return e?e.replaceAll("\n","
").replaceAll(" ",''):""},fontSizeChangeListener:function(e){"table"===e&&(this.tables.length>0&&this.tables.forEach(function(e){e.instance&&e.instance.redraw(!0)}),this.forPrinting&&(this.visible=!0,this.build()))},getLinkedText:function(e){var t=this;if(e){var n=[];return o()(e.matchAll(/LINK\/(?[^/]*)\/(?[^/]*)\//g)).forEach(function(e){var i,o=t.documentationContent.get(e[2]);o&&(o.type===h["l"].REFERENCE?i="[".concat(o.id,"]"):o.type===h["l"].TABLE&&(i="<".concat(o.id).concat(++t.tableCounter,">")),o.index=++t.referenceCounter,n.push({what:e[0],with:'').concat(o.index,"")}),t.links.set(e[2],o))}),n.length>0&&n.forEach(function(t){e=e.replace(t.what,t.with)}),e}return e},getImage:function(t,n){var i=this,o=document.getElementById("resimg-".concat(this.getId(t)));if(o)if(this.documentationCache.has(t)){var r=this.documentationCache.get(t);null!==r?o.src=this.documentationCache.get(t):o.style.display="none"}else f["a"].get("".concat("").concat("/modeler").concat(n),{responseType:"arraybuffer"}).then(function(n){var r=n.data;r&&r.byteLength>0?(o.src="data:image/png;base64,".concat(e.from(r,"binary").toString("base64")),i.documentationCache.set(t,o.src)):(o.style.display="none",i.documentationCache.set(t,null))})},getFigure:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.getElementById("figimg-".concat(this.documentationView,"-").concat(this.getId(e)));if(o){var r=this.documentationContent.get(e),a="".concat(t.observationId,"/").concat(n);if(r.figure.timeString=i,""!==o.src&&(this.waitHeight=o.clientHeight),this.documentationCache.has(a))o.src=this.documentationCache.get(a).src,r.figure.colormap=this.documentationCache.get(a).colormap;else if(!this.loadingImages.includes(e)){this.loadingImages.push(e),o.src="";var c=this;f["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:s()({format:h["q"].TYPE_RASTER,viewport:c.viewport},-1!==n&&{locator:"T1(1){time=".concat(n,"}")}),responseType:"blob"}).then(function(i){var l=c.loadingImages.indexOf(e);if(-1!==l&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),i){var u=new FileReader,d={src:null,colormap:null};u.readAsDataURL(i.data),u.onload=function(){o.src=u.result,d.src=u.result},f["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:s()({format:h["q"].TYPE_COLORMAP},-1!==n&&{locator:"T1(1){time=".concat(n,"}")})}).then(function(e){e&&e.data&&(r.figure.colormap=Object(p["i"])(e.data),d.colormap=r.figure.colormap),c.documentationCache.set(a,d)}).catch(function(e){console.error(e),c.documentationCache.set(a,d)})}}).catch(function(t){var n=c.loadingImages.indexOf(e);-1!==n&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),console.error(t)})}}},tableCopy:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.copyToClipboard("all"):console.warn("table not found")},tableDownload:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.download("xlsx","".concat(t.name,".xlsx")):console.warn("table not found")},updateThings:function(){var e=this;if(this.visible&&this.needUpdates){console.debug("Update things");var t=this;this.$nextTick(function(){e.tables.forEach(function(e){var n=document.querySelector("#".concat(t.getId(e.id),"-table"));n&&(e.instance=new a["a"]("#".concat(t.getId(e.id),"-table"),e.tabulator))}),e.images.forEach(function(t){e.getImage(t.id,t.url)}),e.figures.forEach(function(t){e.getFigure(t.id,t.instance,t.time,t.timeString)}),e.needUpdates=!1})}},clearCache:function(){this.documentationCache.clear(),this.needUpdates=!0},changeTime:function(e,t){var n=this.figures.find(function(e){return e.id===t});n&&(n.time=e.time,this.getFigure(n.id,n.instance,n.time,e.timeString))},build:function(){var e=this;this.rawDocumentation.splice(0,this.rawDocumentation.length),this.content.splice(0,this.content.length),this.tables.splice(0,this.tables.length),this.images.splice(0,this.images.length),this.figures.splice(0,this.figures.length),this.tree.forEach(function(t){Object(p["g"])(t,"children").forEach(function(t){e.rawDocumentation.push(t)})});var t=document.querySelectorAll(".dv-figure-".concat(this.forPrinting?"print":"display"));t.forEach(function(e){e.setAttribute("src","")}),this.needUpdates=!0;var n=this;this.rawDocumentation.forEach(function(e){var t=n.documentationContent.get(e.id);switch(t.bodyText&&(t.bodyText=n.getLinkedText(t.bodyText)),n.content.push(t),e.type){case h["l"].PARAGRAPH:break;case h["l"].RESOURCE:n.images.push({id:e.id,url:t.resource.spaceDescriptionUrl});break;case h["l"].SECTION:break;case h["l"].TABLE:n.tables.push({id:t.id,name:t.bodyText.replaceAll(" ","_").toLowerCase(),tabulator:{clipboard:"copy",printAsHtml:!0,data:t.table.rows,columns:n.formatColumns(t.table.columns,s()({},t.table.numberFormat&&{numberFormat:t.table.numberFormat})),clipboardCopied:function(){n.$q.notify({message:n.$t("messages.tableCopied"),type:"info",icon:"mdi-information",timeout:1e3})}}});break;case h["l"].FIGURE:n.$set(t.figure,"colormap",null),n.$set(t.figure,"timeString",""),n.figures.push({id:t.id,instance:t.figure,time:-1,timeString:""});break;default:break}}),this.updateThings()}}),watch:{tree:function(){this.build()},documentationSelected:function(e){Array.prototype.forEach.call(document.getElementsByClassName("dv-selected"),function(e){e.classList.remove("dv-selected")}),null!==e&&this.selectElement(e)}},mounted:function(){this.viewport=Math.min(document.body.clientWidth,640),this.$eventBus.$on(h["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener),this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.$eventBus.$on(h["h"].REFRESH_DOCUMENTATION,this.clearCache))},activated:function(){this.visible=!0,this.updateThings()},deactivated:function(){this.visible=!1},updated:function(){var e=this;this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.links.size>0&&(this.links.forEach(function(t,n){document.querySelectorAll(".link-".concat(n)).forEach(function(n){n.onclick=function(){e.setDocumentation({id:t.id,view:h["m"][t.type]})}})}),this.links.clear(),this.tableCounter=0,this.referenceCounter=0))},beforeDestroy:function(){this.forPrinting||this.$eventBus.$off(h["h"].REFRESH_DOCUMENTATION,this.clearCache),this.$eventBus.$off(h["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener)}}}).call(this,n("b639").Buffer)},"1ad9":function(e,t,n){var i=n("3022"),o=function(e,t,n,i){var o,r,s=[],a=0;while(o=t.exec(e)){if(r=e.slice(a,t.lastIndex-o[0].length),r.length&&s.push(r),n){var c=n.apply(i,o.slice(1).concat(s.length));"undefined"!=typeof c&&("%"===c.specifier?s.push("%"):s.push(c))}a=t.lastIndex}return r=e.slice(a),r.length&&s.push(r),s},r=function(e){this._mapped=!1,this._format=e,this._tokens=o(e,this._re,this._parseDelim,this)};r.prototype._re=/\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([\%bscdeEfFgGioOuxX])/g,r.prototype._parseDelim=function(e,t,n,i,o,r,s){return e&&(this._mapped=!0),{mapping:e,intmapping:t,flags:n,_minWidth:i,period:o,_precision:r,specifier:s}},r.prototype._specifiers={b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(e){if(!isNaN(e.arg)){var t=parseInt(e.arg);if(t<0||t>127)throw new Error("invalid character code passed to %c in printf");e.arg=isNaN(t)?""+t:String.fromCharCode(t)}}},s:{setMaxWidth:function(e){e.maxWidth="."==e.period?e.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},G:{extend:["g"],toUpper:!0},O:{isObject:!0}},r.prototype.format=function(e){if(this._mapped&&"object"!=typeof e)throw new Error("format requires a mapping");for(var t,n="",i=0,o=0;o=arguments.length)throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");t.arg=arguments[i++]}if(!t.compiled){t.compiled=!0,t.sign="",t.zeroPad=!1,t.rightJustify=!1,t.alternative=!1;for(var l={},u=t.flags.length;u--;){var d=t.flags.charAt(u);switch(l[d]=!0,d){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"0":t.zeroPad=!l["-"];break;case"-":t.rightJustify=!0,t.zeroPad=!1;break;case"#":t.alternative=!0;break;default:throw Error("bad formatting flag '"+t.flags.charAt(u)+"'")}}t.minWidth=t._minWidth?parseInt(t._minWidth):0,t.maxWidth=-1,t.toUpper=!1,t.isUnsigned=!1,t.isInt=!1,t.isDouble=!1,t.isObject=!1,t.precision=1,"."==t.period&&(t._precision?t.precision=parseInt(t._precision):t.precision=0);var h=this._specifiers[t.specifier];if("undefined"==typeof h)throw new Error("unexpected specifier '"+t.specifier+"'");if(h.extend){var p=this._specifiers[h.extend];for(var f in p)h[f]=p[f];delete h.extend}for(var m in h)t[m]=h[m]}if("function"==typeof t.setArg&&t.setArg(t),"function"==typeof t.setMaxWidth&&t.setMaxWidth(t),"*"==t._minWidth){if(this._mapped)throw new Error("* width not supported in mapped formats");if(t.minWidth=parseInt(arguments[i++]),isNaN(t.minWidth))throw new Error("the argument for * width at position "+i+" is not a number in "+this._format);t.minWidth<0&&(t.rightJustify=!0,t.minWidth=-t.minWidth)}if("*"==t._precision&&"."==t.period){if(this._mapped)throw new Error("* precision not supported in mapped formats");if(t.precision=parseInt(arguments[i++]),isNaN(t.precision))throw Error("the argument for * precision at position "+i+" is not a number in "+this._format);t.precision<0&&(t.precision=1,t.period="")}t.isInt?("."==t.period&&(t.zeroPad=!1),this.formatInt(t)):t.isDouble?("."!=t.period&&(t.precision=6),this.formatDouble(t)):t.isObject&&this.formatObject(t),this.fitField(t),n+=""+t.arg}return n},r.prototype._zeros10="0000000000",r.prototype._spaces10=" ",r.prototype.formatInt=function(e){var t=parseInt(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not an integer; parseInt returned "+t);t=0}t<0&&(e.isUnsigned||10!=e.base)&&(t=4294967295+t+1),t<0?(e.arg=(-t).toString(e.base),this.zeroPad(e),e.arg="-"+e.arg):(e.arg=t.toString(e.base),t||e.precision?this.zeroPad(e):e.arg="",e.sign&&(e.arg=e.sign+e.arg)),16==e.base&&(e.alternative&&(e.arg="0x"+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()),8==e.base&&e.alternative&&"0"!=e.arg.charAt(0)&&(e.arg="0"+e.arg)},r.prototype.formatDouble=function(e){var t=parseFloat(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not a float; parseFloat returned "+t);t=0}switch(e.doubleNotation){case"e":e.arg=t.toExponential(e.precision);break;case"f":e.arg=t.toFixed(e.precision);break;case"g":Math.abs(t)<1e-4?e.arg=t.toExponential(e.precision>0?e.precision-1:e.precision):e.arg=t.toPrecision(e.precision),e.alternative||(e.arg=e.arg.replace(/(\..*[^0])0*e/,"$1e"),e.arg=e.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw new Error("unexpected double notation '"+e.doubleNotation+"'")}e.arg=e.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1"),e.alternative&&(e.arg=e.arg.replace(/^(\d+)$/,"$1."),e.arg=e.arg.replace(/^(\d+)e/,"$1.e")),t>=0&&e.sign&&(e.arg=e.sign+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()},r.prototype.formatObject=function(e){var t="."===e.period?e.precision:null;e.arg=i.inspect(e.arg,{showHidden:!e.alternative,depth:t,colors:e.sign,compact:!0})},r.prototype.zeroPad=function(e,t){t=2==arguments.length?t:e.precision;var n=!1;"string"!=typeof e.arg&&(e.arg=""+e.arg),"-"===e.arg.substr(0,1)&&(n=!0,e.arg=e.arg.substr(1));var i=t-10;while(e.arg.length=0&&e.arg.length>e.maxWidth&&(e.arg=e.arg.substring(0,e.maxWidth)),e.zeroPad?this.zeroPad(e,e.minWidth):this.spacePad(e)},r.prototype.spacePad=function(e,t){t=2==arguments.length?t:e.minWidth,"string"!=typeof e.arg&&(e.arg=""+e.arg);var n=t-10;while(e.arg.length1?arguments[1]:void 0,g=void 0!==m,v=0,b=u(h);if(g&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==b||p==Array&&a(b))for(t=c(h.length),n=new p(t);t>v;v++)l(n,v,g?m(h[v],v):h[v]);else for(d=b.call(h),n=new p;!(o=d.next()).done;v++)l(n,v,g?s(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},"1cc1":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("1978"),l=n("4c18"),u=function(){function e(e){void 0===e&&(e=[]),this.menuProviders=e}return e.prototype.getItems=function(e,t){var n=this.menuProviders.map(function(n){return n.getItems(e,t)});return Promise.all(n).then(this.flattenAndRestructure)},e.prototype.flattenAndRestructure=function(e){for(var t=e.reduce(function(e,t){return void 0!==t?e.concat(t):e},[]),n=t.filter(function(e){return e.parentId}),i=function(e){if(e.parentId){for(var n=e.parentId.split("."),i=void 0,o=t,r=function(e){i=o.find(function(t){return e===t.id}),i&&i.children&&(o=i.children)},s=0,a=n;s0}}])},e=i([s.injectable()],e),e}();t.DeleteContextMenuItemProvider=d},"1cd9":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("4c18"),u=n("510b"),d=n("3a92"),h=n("1417"),p=n("b669"),f=n("7faf"),m=n("5d19"),g=n("5eb6"),v=n("e4f0"),b=n("6923"),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return p.matchesKeystroke(t,"KeyE","ctrlCmd","shift")?[new _]:[]},t=o([a.injectable()],t),t}(h.KeyListener);t.ExportSvgKeyListener=y;var _=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(u.generateRequestId())},e.KIND="requestExportSvg",e}();t.RequestExportSvgAction=_;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){if(f.isExportable(e.root)){var t=e.modelFactory.createRoot(e.root);if(f.isExportable(t))return g.isViewport(t)&&(t.zoom=1,t.scroll={x:0,y:0}),t.index.all().forEach(function(e){l.isSelectable(e)&&e.selected&&(e.selected=!1),v.isHoverable(e)&&e.hoverFeedback&&(e.hoverFeedback=!1)}),{model:t,modelChanged:!0,cause:this.action}}return{model:e.root,modelChanged:!1}},t.KIND=_.KIND,t=o([s(0,a.inject(b.TYPES.Action)),r("design:paramtypes",[_])],t),t}(c.HiddenCommand);t.ExportSvgCommand=M;var w=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof d.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){this.root&&void 0!==e&&e.kind===_.KIND&&this.svgExporter.export(this.root,e)},o([a.inject(b.TYPES.SvgExporter),r("design:type",m.SvgExporter)],e.prototype,"svgExporter",void 0),e=o([a.injectable()],e),e}();t.ExportSvgPostprocessor=w},"1d39":function(e,t,n){"use strict";var i=n("1963"),o=n.n(i);o.a},"1e19":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("ed4f"),s=n("c444"),a=n("cf98"),c=n("fe37"),l=n("842c"),u=new i.ContainerModule(function(e,t,n){l.configureCommand({bind:e,isBound:n},r.CenterCommand),l.configureCommand({bind:e,isBound:n},r.FitToScreenCommand),l.configureCommand({bind:e,isBound:n},s.SetViewportCommand),l.configureCommand({bind:e,isBound:n},s.GetViewportCommand),e(o.TYPES.KeyListener).to(r.CenterKeyboardListener),e(o.TYPES.MouseListener).to(a.ScrollMouseListener),e(o.TYPES.MouseListener).to(c.ZoomMouseListener)});t.default=u},"1e31":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("9d6c"),s=new i.ContainerModule(function(e){e(r.EdgeLayoutPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.EdgeLayoutPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(r.EdgeLayoutPostprocessor)});t.default=s},"1e94":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.of=function(t,n){var i=new e;return i.bindings=t,i.middleware=n,i},e}();t.ContainerSnapshot=i},"1f0f":function(e,t,n){},"1f66":function(e,t,n){},"1f89":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.openFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.openFeature=Symbol("openFeature"),t.isOpenable=i},"1fac":function(e,t,n){"use strict";var i=n("e5a7"),o=n.n(i);o.a},2:function(e,t){},"218d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("393a"),s=n("47b7"),a=n("8e97"),c=n("dd02"),l=n("e1c6"),u=function(){function e(){}return e.prototype.render=function(e,t){var n="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return r.svg("svg",null,r.svg("g",{transform:n},t.renderChildren(e)))},e=o([l.injectable()],e),e}();t.SvgViewportView=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var n=this.getRadius(e);return r.svg("g",null,r.svg("circle",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,r:n,cx:n,cy:n}),t.renderChildren(e))}},t.prototype.getRadius=function(e){var t=Math.min(e.size.width,e.size.height);return t>0?t/2:0},t=o([l.injectable()],t),t}(a.ShapeView);t.CircularNodeView=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t))return r.svg("g",null,r.svg("rect",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:Math.max(e.size.width,0),height:Math.max(e.size.height,0)}),t.renderChildren(e))},t=o([l.injectable()],t),t}(a.ShapeView);t.RectangularNodeView=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var n=new c.Diamond({height:Math.max(e.size.height,0),width:Math.max(e.size.width,0),x:0,y:0}),i=f(n.topPoint)+" "+f(n.rightPoint)+" "+f(n.bottomPoint)+" "+f(n.leftPoint);return r.svg("g",null,r.svg("polygon",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,points:i}),t.renderChildren(e))}},t=o([l.injectable()],t),t}(a.ShapeView);function f(e){return e.x+","+e.y}t.DiamondNodeView=p;var m=function(){function e(){}return e.prototype.render=function(e,t){return r.svg("g",null)},e=o([l.injectable()],e),e}();t.EmptyGroupView=m},2196:function(e,t,n){},"21a6":function(e,t,n){(function(n){var i,o,r;(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r)})(0,function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var a=s.URL||s.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?r(c):o(c.href)?i(e,t,n):r(c,c.target="_blank")):(c.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){r(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,s){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),n);else if(o(e))i(e,n,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){r(a)})}}:function(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var r="application/octet-stream"===e.type,a=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&a)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,d=u.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});s.saveAs=a.saveAs=a,e.exports=a})}).call(this,n("c8ba"))},"232d":function(e,t,n){},"23a0":function(e,t,n){"use strict";var i=n("79d7"),o=n.n(i);o.a},2590:function(e,t,n){"use strict";var i=n("1288"),o=n.n(i);o.a},"26ad":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("3f0a"),c=n("6923"),l=n("5d19"),u=n("3a92"),d=function(){function e(){}return e.prototype.initialize=function(e){e.register(a.RequestModelAction.KIND,this),e.register(l.ExportSvgAction.KIND,this)},o([s.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),o([s.inject(c.TYPES.ViewerOptions),r("design:type",Object)],e.prototype,"viewerOptions",void 0),e=o([s.injectable()],e),e}();t.ModelSource=d;var h=function(){function e(){}return e.prototype.apply=function(e,t){var n=new u.SModelIndex;n.add(e);for(var i=0,o=t.bounds;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("393a"),a=n("dd7b"),c=n("6af2"),l=n("ff70"),u=n("9016"),d=n("6907"),h=n("f923"),p=n("e1c6"),f=n("6923"),m=n("fba3"),g=n("33b2"),v=n("e45b"),b=n("8d53"),y=n("302f"),_=function(){function e(e,t,n){this.viewRegistry=e,this.targetKind=t,this.postprocessors=n}return e.prototype.decorate=function(e,t){return b.isThunk(e)?e:this.postprocessors.reduce(function(e,n){return n.decorate(e,t)},e)},e.prototype.renderElement=function(e,t){var n=this.viewRegistry.get(e.type),i=n.render(e,this,t);return i?this.decorate(i,e):void 0},e.prototype.renderChildren=function(e,t){var n=this;return e.children.map(function(e){return n.renderElement(e,t)}).filter(function(e){return void 0!==e})},e.prototype.postUpdate=function(e){this.postprocessors.forEach(function(t){return t.postUpdate(e)})},e}();t.ModelRenderer=_;var M=function(){function e(){this.patcher=a.init(this.createModules())}return e.prototype.createModules=function(){return[c.propsModule,l.attributesModule,h.classModule,u.styleModule,d.eventListenersModule]},e=i([p.injectable(),o("design:paramtypes",[])],e),e}();t.PatcherProvider=M;var w=function(){function e(e,t,n){var i=this;this.onWindowResize=function(e){var t=document.getElementById(i.options.baseDiv);if(null!==t){var n=i.getBoundsInPage(t);i.actiondispatcher.dispatch(new g.InitializeCanvasBoundsAction(n))}},this.renderer=e("main",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){var n=this;this.logger.log(this,"rendering",e);var i=s.html("div",{id:this.options.baseDiv},this.renderer.renderElement(e));if(void 0!==this.lastVDOM){var o=this.hasFocus();v.copyClassesFromVNode(this.lastVDOM,i),this.lastVDOM=this.patcher.call(this,this.lastVDOM,i),this.restoreFocus(o)}else if("undefined"!==typeof document){var r=document.getElementById(this.options.baseDiv);null!==r?("undefined"!==typeof window&&window.addEventListener("resize",function(){n.onWindowResize(i)}),v.copyClassesFromElement(r,i),v.setClass(i,this.options.baseClass,!0),this.lastVDOM=this.patcher.call(this,r,i)):this.logger.error(this,"element not in DOM:",this.options.baseDiv)}this.renderer.postUpdate(t)},e.prototype.hasFocus=function(){if("undefined"!==typeof document&&document.activeElement&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var e=this.lastVDOM.children[0];if("object"===typeof e){var t=e.elm;return document.activeElement===t}}return!1},e.prototype.restoreFocus=function(e){if(e&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var t=this.lastVDOM.children[0];if("object"===typeof t){var n=t.elm;n&&"function"===typeof n.focus&&n.focus()}}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),n=m.getWindowScroll();return{x:t.left+n.x,y:t.top+n.y,width:t.width,height:t.height}},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([p.inject(f.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actiondispatcher",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.IVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.ModelViewer=w;var C=function(){function e(e,t,n){this.hiddenRenderer=e("hidden",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){var n;if(this.logger.log(this,"rendering hidden"),e.type===y.EMPTY_ROOT.type)n=s.html("div",{id:this.options.hiddenDiv});else{var i=this.hiddenRenderer.renderElement(e);i&&v.setAttr(i,"opacity",0),n=s.html("div",{id:this.options.hiddenDiv},i)}if(void 0!==this.lastHiddenVDOM)v.copyClassesFromVNode(this.lastHiddenVDOM,n),this.lastHiddenVDOM=this.patcher.call(this,this.lastHiddenVDOM,n);else{var o=document.getElementById(this.options.hiddenDiv);null===o?(o=document.createElement("div"),document.body.appendChild(o)):v.copyClassesFromElement(o,n),v.setClass(n,this.options.baseClass,!0),v.setClass(n,this.options.hiddenClass,!0),this.lastHiddenVDOM=this.patcher.call(this,o,n)}this.hiddenRenderer.postUpdate(t)},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.HiddenVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.HiddenModelViewer=C;var S=function(){function e(e,t,n){this.modelRendererFactory=e,this.popupRenderer=this.modelRendererFactory("popup",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){this.logger.log(this,"rendering popup",e);var n,i=e.type===y.EMPTY_ROOT.type;if(i)n=s.html("div",{id:this.options.popupDiv});else{var o=e.canvasBounds,r={top:o.y+"px",left:o.x+"px"};n=s.html("div",{id:this.options.popupDiv,style:r},this.popupRenderer.renderElement(e))}if(void 0!==this.lastPopupVDOM)v.copyClassesFromVNode(this.lastPopupVDOM,n),v.setClass(n,this.options.popupClosedClass,i),this.lastPopupVDOM=this.patcher.call(this,this.lastPopupVDOM,n);else if("undefined"!==typeof document){var a=document.getElementById(this.options.popupDiv);null===a?(a=document.createElement("div"),document.body.appendChild(a)):v.copyClassesFromElement(a,n),v.setClass(n,this.options.popupClass,!0),v.setClass(n,this.options.popupClosedClass,i),this.lastPopupVDOM=this.patcher.call(this,a,n)}this.popupRenderer.postUpdate(t)},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.PopupVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.PopupModelViewer=S},"2b54":function(e,t,n){"use strict";var i=n("e7ed"),o=n.n(i);o.a},"2c63":function(e,t,n){e.exports=n("dc14")},"2cac":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e34e"),o=n("cf81"),r=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=r},"2cee":function(e,t,n){"use strict";n("6762"),n("2fdb");t["a"]={data:function(){return{ellipsed:[]}},methods:{tooltipIt:function(e,t){e.target.offsetWidth=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("9757"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.execute=function(e){var t=this.retrieveResult(e);return this.actionDispatcher.dispatch(t),{model:e.root,modelChanged:!1}},t.prototype.undo=function(e){return{model:e.root,modelChanged:!1}},t.prototype.redo=function(e){return{model:e.root,modelChanged:!1}},o([s.inject(a.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),t=o([s.injectable()],t),t}(c.SystemCommand);t.ModelRequestCommand=l},3:function(e,t){},3022:function(e,t,n){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),c=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(n)?i.showHidden=n:n&&t._extend(i,n),S(i.showHidden)&&(i.showHidden=!1),S(i.depth)&&(i.depth=2),S(i.colors)&&(i.colors=!1),S(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),d(i,e,i.depth)}function c(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function u(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function d(e,n,i){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,e);return w(o)||(o=d(e,o,i)),o}var r=h(e,n);if(r)return r;var s=Object.keys(n),a=u(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),L(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(T(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(A(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(L(n))return p(n)}var l,b="",y=!1,_=["{","}"];if(v(n)&&(y=!0,_=["[","]"]),T(n)){var M=n.name?": "+n.name:"";b=" [Function"+M+"]"}return A(n)&&(b=" "+RegExp.prototype.toString.call(n)),O(n)&&(b=" "+Date.prototype.toUTCString.call(n)),L(n)&&(b=" "+p(n)),0!==s.length||y&&0!=n.length?i<0?A(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=y?f(e,n,i,a,s):s.map(function(t){return m(e,n,i,a,t,y)}),e.seen.pop(),g(l,b,_)):_[0]+b+_[1]}function h(e,t){if(S(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return M(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,i,o){for(var r=[],s=0,a=t.length;s-1&&(a=r?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),S(s)){if(r&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function g(e,t,n){var i=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function b(e){return"boolean"===typeof e}function y(e){return null===e}function _(e){return null==e}function M(e){return"number"===typeof e}function w(e){return"string"===typeof e}function C(e){return"symbol"===typeof e}function S(e){return void 0===e}function A(e){return E(e)&&"[object RegExp]"===R(e)}function E(e){return"object"===typeof e&&null!==e}function O(e){return E(e)&&"[object Date]"===R(e)}function L(e){return E(e)&&("[object Error]"===R(e)||e instanceof Error)}function T(e){return"function"===typeof e}function x(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function R(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(r)&&(r=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(r)){var i=e.pid;s[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else s[n]=function(){};return s[n]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=b,t.isNull=y,t.isNullOrUndefined=_,t.isNumber=M,t.isString=w,t.isSymbol=C,t.isUndefined=S,t.isRegExp=A,t.isObject=E,t.isDate=O,t.isError=L,t.isFunction=T,t.isPrimitive=x,t.isBuffer=n("d60a");var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),z[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!E(t))return e;var n=Object.keys(t),i=n.length;while(i--)e[n[i]]=t[n[i]];return e};var I="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function B(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864"),u=n("3a92"),d=function(){function e(){}return e.prototype.createElement=function(e,t){var n;if(this.registry.hasKey(e.type)){var i=this.registry.get(e.type,void 0);if(!(i instanceof u.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");n=i}else n=new u.SChildElement;return this.initializeChild(n,e,t)},e.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof u.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=n}else t=new u.SModelRoot;return this.initializeRoot(t,e)},e.prototype.createSchema=function(e){var t=this,n={};for(var i in e)if(!this.isReserved(e,i)){var o=e[i];"function"!==typeof o&&(n[i]=o)}return e instanceof u.SParentElement&&(n["children"]=e.children.map(function(e){return t.createSchema(e)})),n},e.prototype.initializeElement=function(e,t){for(var n in t)if(!this.isReserved(e,n)){var i=t[n];"function"!==typeof i&&(e[n]=i)}return e},e.prototype.isReserved=function(e,t){if(["children","parent","index"].indexOf(t)>=0)return!0;var n=e;do{var i=Object.getOwnPropertyDescriptor(n,t);if(void 0!==i)return void 0!==i.get;n=Object.getPrototypeOf(n)}while(n);return!1},e.prototype.initializeParent=function(e,t){var n=this;return this.initializeElement(e,t),u.isParent(t)&&(e.children=t.children.map(function(t){return n.createElement(t,e)})),e},e.prototype.initializeChild=function(e,t,n){return this.initializeParent(e,t),void 0!==n&&(e.parent=n),e},e.prototype.initializeRoot=function(e,t){return this.initializeParent(e,t),e.index.add(e),e},o([a.inject(c.TYPES.SModelRegistry),r("design:type",h)],e.prototype,"registry",void 0),e=o([a.injectable()],e),e}();t.SModelFactory=d,t.EMPTY_ROOT=Object.freeze({type:"NONE",id:"EMPTY"});var h=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){var t=n.getDefaultFeatures(e.constr);if(!t&&e.features&&e.features.enable&&(t=[]),t){var i=p(t,e.features);n.register(e.type,function(){var t=new e.constr;return t.features=i,t})}else n.register(e.type,function(){return new e.constr})}),n}return i(t,e),t.prototype.getDefaultFeatures=function(e){var t=e;do{var n=t.DEFAULT_FEATURES;if(n)return n;t=Object.getPrototypeOf(t)}while(t)},t=o([a.injectable(),s(0,a.multiInject(c.TYPES.SModelElementRegistration)),s(0,a.optional()),r("design:paramtypes",[Array])],t),t}(l.FactoryRegistry);function p(e,t){var n=new Set(e);if(t&&t.enable)for(var i=0,o=t.enable;i= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("3864"),l=n("dd02"),u=n("66f9"),d=n("da84"),h=n("4b75"),p=n("ac2a"),f=function(e){function t(){var t=e.call(this)||this;return t.register(d.VBoxLayouter.KIND,new d.VBoxLayouter),t.register(h.HBoxLayouter.KIND,new h.HBoxLayouter),t.register(p.StackLayouter.KIND,new p.StackLayouter),t}return i(t,e),t}(c.InstanceRegistry);t.LayoutRegistry=f;var m=function(){function e(){}return e.prototype.layout=function(e){new g(e,this.layoutRegistry,this.logger).layout()},o([s.inject(a.TYPES.LayoutRegistry),r("design:type",f)],e.prototype,"layoutRegistry",void 0),o([s.inject(a.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),e=o([s.injectable()],e),e}();t.Layouter=m;var g=function(){function e(e,t,n){var i=this;this.element2boundsData=e,this.layoutRegistry=t,this.log=n,this.toBeLayouted=[],e.forEach(function(e,t){u.isLayoutContainer(t)&&i.toBeLayouted.push(t)})}return e.prototype.getBoundsData=function(e){var t=this.element2boundsData.get(e),n=e.bounds;return u.isLayoutContainer(e)&&this.toBeLayouted.indexOf(e)>=0&&(n=this.doLayout(e)),t||(t={bounds:n,boundsChanged:!1,alignmentChanged:!1},this.element2boundsData.set(e,t)),t},e.prototype.layout=function(){while(this.toBeLayouted.length>0){var e=this.toBeLayouted[0];this.doLayout(e)}},e.prototype.doLayout=function(e){var t=this.toBeLayouted.indexOf(e);t>=0&&this.toBeLayouted.splice(t,1);var n=this.layoutRegistry.get(e.layout);n&&n.layout(e,this);var i=this.element2boundsData.get(e);return void 0!==i&&void 0!==i.bounds?i.bounds:(this.log.error(e,"Layout failed"),l.EMPTY_BOUNDS)},e}();t.StatefulLayouter=g},"33b2":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("dd02"),u=n("3a92"),d=n("9757"),h=n("fba3"),p=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof u.SModelRoot&&!l.isValidDimension(t.canvasBounds)&&(this.rootAndVnode=[t,e]),e},e.prototype.postUpdate=function(){if(void 0!==this.rootAndVnode){var e=this.rootAndVnode[1].elm,t=this.rootAndVnode[0].canvasBounds;if(void 0!==e){var n=this.getBoundsInPage(e);l.almostEquals(n.x,t.x)&&l.almostEquals(n.y,t.y)&&l.almostEquals(n.width,t.width)&&l.almostEquals(n.height,t.width)||this.actionDispatcher.dispatch(new f(n))}this.rootAndVnode=void 0}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),n=h.getWindowScroll();return{x:t.left+n.x,y:t.top+n.y,width:t.width,height:t.height}},o([a.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=o([a.injectable()],e),e}();t.CanvasBoundsInitializer=p;var f=function(){function e(t){this.newCanvasBounds=t,this.kind=e.KIND}return e.KIND="initializeCanvasBounds",e}();t.InitializeCanvasBoundsAction=f;var m=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.newCanvasBounds=this.action.newCanvasBounds,e.root.canvasBounds=this.newCanvasBounds,e.root},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=f.KIND,t=o([a.injectable(),s(0,a.inject(c.TYPES.Action)),r("design:paramtypes",[f])],t),t}(d.SystemCommand);t.InitializeCanvasBoundsCommand=m},"34eb":function(e,t,n){(function(i){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function r(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var o=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(r=o))}),e.splice(r,0,i)}}function s(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof i&&"env"in i&&(e=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).DEBUG),e}function l(){try{return window.localStorage}catch(e){}}t=e.exports=n("96fe"),t.log=s,t.formatArgs=r,t.save=a,t.load=c,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(this,n("4362"))},3585:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("dd02"),s=n("66f9"),a=n("1978"),c=n("4c18"),l=n("e4f0"),u=n("a0af"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.routingPoints=[],t}return i(t,e),Object.defineProperty(t.prototype,"source",{get:function(){return this.index.getById(this.sourceId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this.index.getById(this.targetId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.routingPoints.reduce(function(e,t){return r.combine(e,{x:t.x,y:t.y,width:0,height:0})},r.EMPTY_BOUNDS)},enumerable:!0,configurable:!0}),t}(o.SChildElement);function h(e){return e.hasFeature(t.connectableFeature)&&e.canConnect}function p(e,t){void 0===t&&(t=e.routingPoints);var n=f(t),i=e;while(i instanceof o.SChildElement){var r=i.parent;n=r.localToParent(n),i=r}return n}function f(e){for(var t={x:NaN,y:NaN,width:0,height:0},n=0,i=e;nt.x+t.width&&(t.width=o.x-t.x),o.yt.y+t.height&&(t.height=o.y-t.y))}return t}t.SRoutableElement=d,t.connectableFeature=Symbol("connectableFeature"),t.isConnectable=h,t.getAbsoluteRouteBounds=p,t.getRouteBounds=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.strokeWidth=0,t}return i(t,e),Object.defineProperty(t.prototype,"incomingEdges",{get:function(){return this.index.getIncomingEdges(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outgoingEdges",{get:function(){return this.index.getOutgoingEdges(this)},enumerable:!0,configurable:!0}),t.prototype.canConnect=function(e,t){return!0},t}(s.SShapeElement);t.SConnectableElement=m;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.editMode=!1,t.hoverFeedback=!1,t.selected=!1,t}return i(t,e),t.prototype.hasFeature=function(e){return-1!==t.DEFAULT_FEATURES.indexOf(e)},t.DEFAULT_FEATURES=[c.selectFeature,u.moveFeature,l.hoverFeedbackFeature],t}(o.SChildElement);t.SRoutingHandle=g;var v=function(e){function t(){var t=e.call(this)||this;return t.type="dangling-anchor",t.size={width:0,height:0},t}return i(t,e),t.DEFAULT_FEATURES=[a.deletableFeature],t}(m);t.SDanglingAnchor=v,t.edgeInProgressID="edge-in-progress",t.edgeInProgressTargetHandleID=t.edgeInProgressID+"-target-anchor"},"359b":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("e45b"),s=n("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){for(var n=o.html("div",null,t.renderChildren(e)),i=0,s=e.classes;i=0?e.type.substring(0,t):e.type}function a(e){if(!e.type)return"";var t=e.type.indexOf(":");return t>=0?e.type.substring(t+1):e.type}function c(e,t){if(e.id===t)return e;if(void 0!==e.children)for(var n=0,i=e.children;n=0;r--)e=i[r].parentToLocal(e)}return e}function h(e,t,n){var i=d(e,t,n),o=d({x:e.x+e.width,y:e.y+e.height},t,n);return{x:i.x,y:i.y,width:o.x-i.x,height:o.y-i.y}}t.registerModelElement=r,t.getBasicType=s,t.getSubType=a,t.findElement=c,t.findParent=l,t.findParentByFeature=u,t.translatePoint=d,t.translateBounds=h},3672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("842c"),s=n("be02"),a=n("064a"),c=n("3585"),l=n("218d"),u=n("1978"),d=n("cd26"),h=n("1254"),p=n("a5f4"),f=n("61d8");t.edgeEditModule=new i.ContainerModule(function(e,t,n){var i={bind:e,isBound:n};r.configureCommand(i,p.SwitchEditModeCommand),r.configureCommand(i,f.ReconnectCommand),r.configureCommand(i,u.DeleteElementCommand),a.configureModelElement(i,"dangling-anchor",c.SDanglingAnchor,l.EmptyGroupView)}),t.labelEditModule=new i.ContainerModule(function(e,t,n){e(o.TYPES.MouseListener).to(d.EditLabelMouseListener),e(o.TYPES.KeyListener).to(d.EditLabelKeyListener),r.configureCommand({bind:e,isBound:n},d.ApplyLabelEditCommand)}),t.labelEditUiModule=new i.ContainerModule(function(e,t,n){var i={bind:e,isBound:n};s.configureActionHandler(i,d.EditLabelAction.KIND,h.EditLabelActionHandler),e(h.EditLabelUI).toSelf().inSingletonScope(),e(o.TYPES.IUIExtension).toService(h.EditLabelUI)})},"36e4":function(e,t,n){},"37a9":function(e,t,n){"use strict";var i=n("ddfc"),o=n.n(i);o.a},3864:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var n=this.elements.get(e);return n?new n(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.ProviderRegistry=r;var s=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var n=this.elements.get(e);return n?n(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.FactoryRegistry=s;var a=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e){var t=this.elements.get(e);return t||this.missing(e)},e.prototype.missing=function(e){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.InstanceRegistry=a;var c=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");var n=this.elements.get(e);void 0!==n?n.push(t):this.elements.set(e,[t])},e.prototype.deregisterAll=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.get=function(e){var t=this.elements.get(e);return void 0!==t?t:[]},e=i([o.injectable()],e),e}();t.MultiInstanceRegistry=c},"38e8":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("66f9"),r=n("7d36"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t}return i(t,e),t.DEFAULT_FEATURES=[o.boundsFeature,o.layoutableChildFeature,r.fadeFeature],t}(o.SShapeElement);t.SButton=s},"393a":function(e,t,n){"use strict";var i="http://www.w3.org/2000/svg",o=["hook","on","style","class","props","attrs","dataset"],r=Array.prototype.slice;function s(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||null===e||void 0===e}function a(e,t,n,i){for(var o={ns:t},r=0,s=i.length;r0?u(c.slice(0,l),c.slice(l+1),e[c]):o[c]||u(n,c,e[c])}return o;function u(e,t,n){var i=o[e]||(o[e]={});i[t]=n}}function c(e,t,n,i,o,r){if(o.selector&&(i+=o.selector),o.classNames){var c=o.classNames;i=i+"."+(Array.isArray(c)?c.join("."):c.replace(/\s+/g,"."))}return{sel:i,data:a(o,e,t,n),children:r.map(function(e){return s(e)?{text:e}:e}),key:o.key}}function l(e,t,n,i,o,r){var s;if("function"===typeof i)s=i(o,r);else if(i&&"function"===typeof i.view)s=i.view(o,r);else{if(!i||"function"!==typeof i.render)throw"JSX tag must be either a string, a function or an object with 'view' or 'render' methods";s=i.render(o,r)}return s.key=o.key,s}function u(e,t,n){for(var i=t,o=e.length;i3||!Array.isArray(a))&&(a=r.call(arguments,2)),h(e,t||"props",n||o,i,s,a)}}e.exports={html:p(void 0),svg:p(i,"attrs"),JSX:p}},"3a7c":function(e,t,n){(function(e){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function r(e){return null==e}function s(e){return"number"===typeof e}function a(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function l(e){return void 0===e}function u(e){return"[object RegExp]"===g(e)}function d(e){return"object"===typeof e&&null!==e}function h(e){return"[object Date]"===g(e)}function p(e){return"[object Error]"===g(e)||e instanceof Error}function f(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=r,t.isNumber=s,t.isString=a,t.isSymbol=c,t.isUndefined=l,t.isRegExp=u,t.isObject=d,t.isDate=h,t.isError=p,t.isFunction=f,t.isPrimitive=m,t.isBuffer=e.isBuffer}).call(this,n("b639").Buffer)},"3a92":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd02"),r=n("e629"),s=function(){function e(){}return Object.defineProperty(e.prototype,"root",{get:function(){var e=this;while(e){if(e instanceof u)return e;e=e instanceof l?e.parent:void 0}throw new Error("Element has no root")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.root.index},enumerable:!0,configurable:!0}),e.prototype.hasFeature=function(e){return void 0!==this.features&&this.features.has(e)},e}();function a(e){var t=e.children;return void 0!==t&&t.constructor===Array}t.SModelElement=s,t.isParent=a;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return i(t,e),t.prototype.add=function(e,t){var n=this.children;if(void 0===t)n.push(e);else{if(t<0||t>this.children.length)throw new Error("Child index "+t+" out of bounds (0.."+n.length+")");n.splice(t,0,e)}e.parent=this,this.index.add(e)},t.prototype.remove=function(e){var t=this.children,n=t.indexOf(e);if(n<0)throw new Error("No such child "+e.id);t.splice(n,1),delete e.parent,this.index.remove(e)},t.prototype.removeAll=function(e){var t=this,n=this.children;if(void 0!==e){for(var i=n.length-1;i>=0;i--)if(e(n[i])){var o=n.splice(i,1)[0];delete o.parent,this.index.remove(o)}}else n.forEach(function(e){delete e.parent,t.index.remove(e)}),n.splice(0,n.length)},t.prototype.move=function(e,t){var n=this.children,i=n.indexOf(e);if(-1===i)throw new Error("No such child "+e.id);if(t<0||t>n.length-1)throw new Error("Child index "+t+" out of bounds (0.."+n.length+")");n.splice(i,1),n.splice(t,0,e)},t.prototype.localToParent=function(e){return o.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t.prototype.parentToLocal=function(e){return o.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t}(s);t.SParentElement=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(c);t.SChildElement=l;var u=function(e){function t(t){void 0===t&&(t=new p);var n=e.call(this)||this;return n.canvasBounds=o.EMPTY_BOUNDS,Object.defineProperty(n,"index",{value:t,writable:!1}),n}return i(t,e),t}(c);t.SModelRoot=u;var d="0123456789abcdefghijklmnopqrstuvwxyz";function h(e){void 0===e&&(e=8);for(var t="",n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3a92"),u=n("9757"),d=n("3585"),h=function(){function e(t){this.elementIDs=t,this.kind=e.KIND}return e.KIND="bringToFront",e}();t.BringToFrontAction=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.selected=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root;return this.action.elementIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SRoutableElement&&(i.source&&t.addToSelection(i.source),i.target&&t.addToSelection(i.target)),i instanceof l.SChildElement&&t.addToSelection(i),t.includeConnectedEdges(i)}),this.redo(e)},t.prototype.includeConnectedEdges=function(e){var t=this;if(e instanceof d.SConnectableElement&&(e.incomingEdges.forEach(function(e){return t.addToSelection(e)}),e.outgoingEdges.forEach(function(e){return t.addToSelection(e)})),e instanceof l.SParentElement)for(var n=0,i=e.children;n=0;t--){var n=this.selected[t],i=n.element;i.parent.move(i,n.index)}return e.root},t.prototype.redo=function(e){for(var t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("3a92"),u=n("6923"),d=n("0d7a"),h=n("e45b"),p=function(){function e(e){void 0===e&&(e=[]),this.mouseListeners=e}return e.prototype.register=function(e){this.mouseListeners.push(e)},e.prototype.deregister=function(e){var t=this.mouseListeners.indexOf(e);t>=0&&this.mouseListeners.splice(t,1)},e.prototype.getTargetElement=function(e,t){var n=t.target,i=e.index;while(n){if(n.id){var o=i.getById(this.domHelper.findSModelIdByDOMElement(n));if(void 0!==o)return o}n=n.parentNode}},e.prototype.handleEvent=function(e,t,n){var i=this;this.focusOnMouseEvent(e,t);var o=this.getTargetElement(t,n);if(o){var r=this.mouseListeners.map(function(t){return t[e].apply(t,[o,n])}).reduce(function(e,t){return e.concat(t)});if(r.length>0){n.preventDefault();for(var s=0,a=r;s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("9757"),u=n("6923"),d=n("33b2"),h=function(){function e(t,n){void 0===n&&(n=""),this.options=t,this.requestId=n,this.kind=e.KIND}return e.create=function(t){return new e(t,c.generateRequestId())},e.KIND="requestModel",e}();t.RequestModelAction=h;var p=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.responseId=n,this.kind=e.KIND}return e.KIND="setModel",e}();t.SetModelAction=p;var f=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.oldRoot=e.modelFactory.createRoot(e.root),this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===d.InitializeCanvasBoundsCommand.KIND}},enumerable:!0,configurable:!0}),t.KIND=p.KIND,t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[p])],t),t}(l.ResetCommand);t.SetModelCommand=f},4047:function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},"42be":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("6923"),u=n("26ad"),d=function(){function e(){this.kind=h.KIND}return e}();t.CommitModelAction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.newModel=e.modelFactory.createSchema(e.root),this.doCommit(this.newModel,e.root,!0)},t.prototype.doCommit=function(e,t,n){var i=this,o=this.modelSource.commitModel(e);return o instanceof Promise?o.then(function(e){return n&&(i.originalModel=e),t}):(n&&(this.originalModel=o),t)},t.prototype.undo=function(e){return this.doCommit(this.originalModel,e.root,!1)},t.prototype.redo=function(e){return this.doCommit(this.newModel,e.root,!1)},t.KIND="commitModel",o([a.inject(l.TYPES.ModelSource),r("design:type",u.ModelSource)],t.prototype,"modelSource",void 0),t=o([a.injectable(),s(0,a.inject(l.TYPES.Action)),r("design:paramtypes",[d])],t),t}(c.SystemCommand);t.CommitModelCommand=h},"42d6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("510b")),i(n("0fb6")),i(n("be02")),i(n("c661")),i(n("538c")),i(n("c146")),i(n("987d")),i(n("9757")),i(n("842c")),i(n("5e9c")),i(n("160b")),i(n("33b2")),i(n("3f0a")),i(n("302f")),i(n("3623")),i(n("3a92")),i(n("ddee")),i(n("1590")),i(n("6176")),i(n("4c95c")),i(n("1417")),i(n("3b4c")),i(n("8d53")),i(n("064a")),i(n("8794")),i(n("65d1")),i(n("29fa")),i(n("a190")),i(n("e45b")),i(n("6923"));var o=n("8122");t.defaultModule=o.default,i(n("42f7")),i(n("61bf")),i(n("320b")),i(n("66f9")),i(n("da84")),i(n("4b75")),i(n("ac2a")),i(n("8e97")),i(n("70d9")),i(n("38e8")),i(n("a406")),i(n("0a28")),i(n("80b5")),i(n("1cc1")),i(n("3c83")),i(n("1e31")),i(n("9d6c")),i(n("779b")),i(n("ac57")),i(n("ea38")),i(n("3672")),i(n("1978")),i(n("cd26")),i(n("1254")),i(n("a5f4")),i(n("cc26")),i(n("61d8")),i(n("4741")),i(n("9964")),i(n("19b5")),i(n("1cd9")),i(n("7faf")),i(n("5d19")),i(n("e7fa")),i(n("7d36")),i(n("f4cb")),i(n("e4f0")),i(n("7f73")),i(n("755f")),i(n("e576")),i(n("a0af")),i(n("559d")),i(n("af44")),i(n("e1cb")),i(n("b485")),i(n("1f89")),i(n("869e")),i(n("b7b8")),i(n("9a1f")),i(n("46cc")),i(n("3585")),i(n("ab71")),i(n("d8f5")),i(n("168d")),i(n("8d9d")),i(n("4c18")),i(n("bcbd")),i(n("c20e")),i(n("d084")),i(n("cf61")),i(n("ed4f")),i(n("5eb6")),i(n("cf98")),i(n("3b62")),i(n("c444")),i(n("fe37")),i(n("3ada"));var r=n("5530");t.graphModule=r.default;var s=n("72dd");t.boundsModule=s.default;var a=n("54f8");t.buttonModule=a.default;var c=n("d14a");t.commandPaletteModule=c.default;var l=n("5884");t.contextMenuModule=l.default;var u=n("7bae3");t.decorationModule=u.default;var d=n("1e31");t.edgeLayoutModule=d.default;var h=n("04c2");t.expandModule=h.default;var p=n("9f8d");t.exportModule=p.default;var f=n("9811");t.fadeModule=f.default;var m=n("c95e");t.hoverModule=m.default;var g=n("520d");t.moveModule=g.default;var v=n("0483");t.openModule=v.default;var b=n("b7ca");t.routingModule=b.default;var y=n("c4e6");t.selectModule=y.default;var _=n("3b74");t.undoRedoModule=_.default;var M=n("cc3e");t.updateModule=M.default;var w=n("1e19");t.viewportModule=w.default;var C=n("6f35");t.zorderModule=C.default,i(n("dfc0")),i(n("47b7")),i(n("6bb9")),i(n("44c1")),i(n("9ad4")),i(n("359b")),i(n("87fa")),i(n("218d")),i(n("42be")),i(n("945d")),i(n("cb6e")),i(n("85ed")),i(n("26ad")),i(n("484b"));var S=n("8e65");t.modelSourceModule=S.default,i(n("fba3")),i(n("0be1")),i(n("dd02")),i(n("7b39")),i(n("9e2e")),i(n("3864"))},"42f7":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n("e1c6"),l=n("510b"),u=n("9757"),d=n("6923"),h=n("66f9"),p=function(){function e(t){this.bounds=t,this.kind=e.KIND}return e.KIND="setBounds",e}();t.SetBoundsAction=p;var f=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.requestId=n,this.kind=e.KIND}return e.create=function(t){return new e(t,l.generateRequestId())},e.KIND="requestBounds",e}();t.RequestBoundsAction=f;var m=function(){function e(t,n,i,o){void 0===o&&(o=""),this.bounds=t,this.revision=n,this.alignments=i,this.responseId=o,this.kind=e.KIND}return e.KIND="computedBounds",e}();t.ComputedBoundsAction=m;var g=function(){function e(){this.kind=e.KIND}return e.KIND="layout",e}();t.LayoutAction=g;var v=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.bounds=[],n}return i(t,e),t.prototype.execute=function(e){var t=this;return this.action.bounds.forEach(function(n){var i=e.root.index.getById(n.elementId);i&&h.isBoundsAware(i)&&t.bounds.push({element:i,oldBounds:i.bounds,newPosition:n.newPosition,newSize:n.newSize})}),this.redo(e)},t.prototype.undo=function(e){return this.bounds.forEach(function(e){return e.element.bounds=e.oldBounds}),e.root},t.prototype.redo=function(e){return this.bounds.forEach(function(e){e.newPosition?e.element.bounds=o(o({},e.newPosition),e.newSize):e.element.bounds=o({x:e.element.bounds.x,y:e.element.bounds.y},e.newSize)}),e.root},t.KIND=p.KIND,t=r([c.injectable(),a(0,c.inject(d.TYPES.Action)),s("design:paramtypes",[p])],t),t}(u.SystemCommand);t.SetBoundsCommand=v;var b=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return{model:e.modelFactory.createRoot(this.action.newRoot),modelChanged:!0,cause:this.action}},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===m.KIND}},enumerable:!0,configurable:!0}),t.KIND=f.KIND,t=r([c.injectable(),a(0,c.inject(d.TYPES.Action)),s("design:paramtypes",[f])],t),t}(u.HiddenCommand);t.RequestBoundsCommand=b},"44c1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8122"),o=n("8e65"),r=n("72dd"),s=n("54f8"),a=n("d14a"),c=n("5884"),l=n("7bae3"),u=n("1e31"),d=n("3672"),h=n("04c2"),p=n("9f8d"),f=n("9811"),m=n("c95e"),g=n("520d"),v=n("0483"),b=n("b7ca"),y=n("c4e6"),_=n("3b74"),M=n("cc3e"),w=n("1e19"),C=n("6f35");function S(e,t){var n=[i.default,o.default,r.default,s.default,a.default,c.default,l.default,d.edgeEditModule,u.default,h.default,p.default,f.default,m.default,d.labelEditModule,d.labelEditUiModule,g.default,v.default,b.default,y.default,_.default,M.default,w.default,C.default];if(t&&t.exclude)for(var S=0,A=t.exclude;S=0&&n.splice(O,1)}e.load.apply(e,n)}t.loadDefaultModules=S},"451f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4"),o=n("1979"),r=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||r(n,t))};t.traverseAncerstors=r;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new o.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(i.NAMED_TAG);t.namedConstraint=a;var c=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"===typeof e){var i=n.serviceIdentifier;return i===e}var o=t.bindings[0].implementationType;return e===o}return!1}};t.typeConstraint=c},4681:function(e,t,n){"use strict";var i=n("966d");function o(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(s,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i.nextTick(s,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}e.exports={destroy:o,undestroy:r}},"46cc":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0){var i=e.routingPoints.slice();if(this.cleanupRoutingPoints(e,i,!1,!0),i.length>0)return i.map(function(e,t){return o({kind:"linear",pointIndex:t},e)})}var r=this.getOptions(e),s=this.calculateDefaultCorners(e,t,n,r);return s.map(function(e){return o({kind:"linear"},e)})},t.prototype.createRoutingHandles=function(e){var t=this.route(e);if(this.commitRoute(e,t),t.length>0){this.addHandle(e,"source","routing-point",-2);for(var n=0;n0&&Math.abs(n-e[t-1].x)=0&&t0&&Math.abs(n-e[t-1].y)=0&&t=0;--c){if(!s.includes(r.bounds,t[c]))break;t.splice(c,1),n&&this.removeHandle(e,c)}if(t.length>=2){var l=this.getOptions(e);for(c=t.length-2;c>=0;--c)s.manhattanDistance(t[c],t[c+1])t?--e.pointIndex:e.pointIndex===t&&n.push(e))}),n.forEach(function(t){return e.remove(t)})},t.prototype.addAdditionalCorner=function(e,t,n,i,o){if(0!==t.length){var r,l="source"===n.kind?t[0]:t[t.length-1],u="source"===n.kind?0:t.length,d=u-("source"===n.kind?1:0);if(t.length>1)r=0===u?s.almostEquals(t[0].x,t[1].x):s.almostEquals(t[t.length-1].x,t[t.length-2].x);else{var h=i.getNearestSide(l);r=h===a.Side.TOP||h===a.Side.BOTTOM}if(r){if(l.yn.get(a.Side.BOTTOM).y){var p={x:n.get(a.Side.TOP).x,y:l.y};t.splice(u,0,p),o&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=d&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",d))}}else if(l.xn.get(a.Side.RIGHT).x){p={x:l.x,y:n.get(a.Side.LEFT).y};t.splice(u,0,p),o&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=d&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",d))}}},t.prototype.manhattanify=function(e,t){for(var n=1;n0)return r;var s=this.getBestConnectionAnchors(t,n,i,o),c=s.source,l=s.target,u=[],d=n.get(c),h=i.get(l);switch(c){case a.Side.RIGHT:switch(l){case a.Side.BOTTOM:u.push({x:h.x,y:d.y});break;case a.Side.TOP:u.push({x:h.x,y:d.y});break;case a.Side.RIGHT:u.push({x:Math.max(d.x,h.x)+1.5*o.standardDistance,y:d.y}),u.push({x:Math.max(d.x,h.x)+1.5*o.standardDistance,y:h.y});break;case a.Side.LEFT:h.y!==d.y&&(u.push({x:(d.x+h.x)/2,y:d.y}),u.push({x:(d.x+h.x)/2,y:h.y}));break}break;case a.Side.LEFT:switch(l){case a.Side.BOTTOM:u.push({x:h.x,y:d.y});break;case a.Side.TOP:u.push({x:h.x,y:d.y});break;default:h=i.get(a.Side.RIGHT),h.y!==d.y&&(u.push({x:(d.x+h.x)/2,y:d.y}),u.push({x:(d.x+h.x)/2,y:h.y}));break}break;case a.Side.TOP:switch(l){case a.Side.RIGHT:h.x-d.x>0?(u.push({x:d.x,y:d.y-o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:d.y-o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.LEFT:h.x-d.x<0?(u.push({x:d.x,y:d.y-o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:d.y-o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.TOP:u.push({x:d.x,y:Math.min(d.y,h.y)-1.5*o.standardDistance}),u.push({x:h.x,y:Math.min(d.y,h.y)-1.5*o.standardDistance});break;case a.Side.BOTTOM:h.x!==d.x&&(u.push({x:d.x,y:(d.y+h.y)/2}),u.push({x:h.x,y:(d.y+h.y)/2}));break}break;case a.Side.BOTTOM:switch(l){case a.Side.RIGHT:h.x-d.x>0?(u.push({x:d.x,y:d.y+o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:d.y+o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.LEFT:h.x-d.x<0?(u.push({x:d.x,y:d.y+o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:d.y+o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;default:h=i.get(a.Side.TOP),h.x!==d.x&&(u.push({x:d.x,y:(d.y+h.y)/2}),u.push({x:h.x,y:(d.y+h.y)/2}));break}break}return u},t.prototype.getBestConnectionAnchors=function(e,t,n,i){var o=t.get(a.Side.RIGHT),r=n.get(a.Side.LEFT);if(r.x-o.x>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.LEFT};if(o=t.get(a.Side.LEFT),r=n.get(a.Side.RIGHT),o.x-r.x>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.RIGHT};if(o=t.get(a.Side.TOP),r=n.get(a.Side.BOTTOM),o.y-r.y>i.standardDistance)return{source:a.Side.TOP,target:a.Side.BOTTOM};if(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.TOP),r.y-o.y>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.TOP};if(o=t.get(a.Side.RIGHT),r=n.get(a.Side.TOP),r.x-o.x>.5*i.standardDistance&&r.y-o.y>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.TOP};if(r=n.get(a.Side.BOTTOM),r.x-o.x>.5*i.standardDistance&&o.y-r.y>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.BOTTOM};if(o=t.get(a.Side.LEFT),r=n.get(a.Side.BOTTOM),o.x-r.x>.5*i.standardDistance&&o.y-r.y>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.BOTTOM};if(r=n.get(a.Side.TOP),o.x-r.x>.5*i.standardDistance&&r.y-o.y>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.TOP};if(o=t.get(a.Side.TOP),r=n.get(a.Side.RIGHT),o.y-r.y>.5*i.standardDistance&&o.x-r.x>i.standardDistance)return{source:a.Side.TOP,target:a.Side.RIGHT};if(r=n.get(a.Side.LEFT),o.y-r.y>.5*i.standardDistance&&r.x-o.x>i.standardDistance)return{source:a.Side.TOP,target:a.Side.LEFT};if(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.RIGHT),r.y-o.y>.5*i.standardDistance&&o.x-r.x>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.RIGHT};if(r=n.get(a.Side.LEFT),r.y-o.y>.5*i.standardDistance&&r.x-o.x>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.LEFT};if(o=t.get(a.Side.TOP),r=n.get(a.Side.TOP),!s.includes(n.bounds,o)&&!s.includes(t.bounds,r))if(o.y-r.y<0){if(Math.abs(o.x-r.x)>(t.bounds.width+i.standardDistance)/2)return{source:a.Side.TOP,target:a.Side.TOP}}else if(Math.abs(o.x-r.x)>n.bounds.width/2)return{source:a.Side.TOP,target:a.Side.TOP};if(o=t.get(a.Side.RIGHT),r=n.get(a.Side.RIGHT),!s.includes(n.bounds,o)&&!s.includes(t.bounds,r))if(o.x-r.x>0){if(Math.abs(o.y-r.y)>(t.bounds.height+i.standardDistance)/2)return{source:a.Side.RIGHT,target:a.Side.RIGHT}}else if(Math.abs(o.y-r.y)>n.bounds.height/2)return{source:a.Side.RIGHT,target:a.Side.RIGHT};return o=t.get(a.Side.TOP),r=n.get(a.Side.RIGHT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(r=n.get(a.Side.LEFT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.RIGHT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(r=n.get(a.Side.LEFT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?{source:a.Side.RIGHT,target:a.Side.BOTTOM}:{source:a.Side.BOTTOM,target:a.Side.LEFT}):{source:a.Side.BOTTOM,target:a.Side.RIGHT}):{source:a.Side.TOP,target:a.Side.LEFT}):{source:a.Side.TOP,target:a.Side.RIGHT}},t.KIND="manhattan",t}(a.LinearEdgeRouter);t.ManhattanEdgeRouter=l},4741:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("3623"),r=n("9964"),s=n("e1c6"),a=function(){function e(t,n){this.expandIds=t,this.collapseIds=n,this.kind=e.KIND}return e.KIND="collapseExpand",e}();t.CollapseExpandAction=a;var c=function(){function e(t){void 0===t&&(t=!0),this.expand=t,this.kind=e.KIND}return e.KIND="collapseExpandAll",e}();t.CollapseExpandAllAction=c;var l=function(){function e(){}return e.prototype.buttonPressed=function(e){var t=o.findParentByFeature(e,r.isExpandable);return void 0!==t?[new a(t.expanded?[]:[t.id],t.expanded?[t.id]:[])]:[]},e.TYPE="button:expand",e=i([s.injectable()],e),e}();t.ExpandButtonHandler=l},"47b7":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("66f9"),s=n("779b"),a=n("1978"),c=n("cc26"),l=n("7d36"),u=n("e4f0"),d=n("a0af"),h=n("3585"),p=n("4c18"),f=n("3b62"),m=n("dd02"),g=n("e629"),v=function(e){function t(t){return void 0===t&&(t=new C),e.call(this,t)||this}return i(t,e),t}(f.ViewportRootElement);t.SGraph=v;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.prototype.canConnect=function(e,t){return void 0===this.children.find(function(e){return e instanceof y})},t.DEFAULT_FEATURES=[h.connectableFeature,a.deletableFeature,p.selectFeature,r.boundsFeature,d.moveFeature,r.layoutContainerFeature,l.fadeFeature,u.hoverFeedbackFeature,u.popupFeature],t}(h.SConnectableElement);t.SNode=b;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[h.connectableFeature,p.selectFeature,r.boundsFeature,l.fadeFeature,u.hoverFeedbackFeature],t}(h.SConnectableElement);t.SPort=y;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[c.editFeature,a.deletableFeature,p.selectFeature,l.fadeFeature,u.hoverFeedbackFeature],t}(h.SRoutableElement);t.SEdge=_;var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.alignment=m.ORIGIN_POINT,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.alignFeature,r.layoutableChildFeature,s.edgeLayoutFeature,l.fadeFeature],t}(r.SShapeElement);t.SLabel=M;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.layoutContainerFeature,r.layoutableChildFeature,l.fadeFeature],t}(r.SShapeElement);t.SCompartment=w;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.outgoing=new Map,t.incoming=new Map,t}return i(t,e),t.prototype.add=function(t){if(e.prototype.add.call(this,t),t instanceof _){if(t.sourceId){var n=this.outgoing.get(t.sourceId);void 0===n?this.outgoing.set(t.sourceId,[t]):n.push(t)}if(t.targetId){var i=this.incoming.get(t.targetId);void 0===i?this.incoming.set(t.targetId,[t]):i.push(t)}}},t.prototype.remove=function(t){if(e.prototype.remove.call(this,t),t instanceof _){var n=this.outgoing.get(t.sourceId);if(void 0!==n){var i=n.indexOf(t);i>=0&&(1===n.length?this.outgoing.delete(t.sourceId):n.splice(i,1))}var o=this.incoming.get(t.targetId);if(void 0!==o){i=o.indexOf(t);i>=0&&(1===o.length?this.incoming.delete(t.targetId):o.splice(i,1))}}},t.prototype.getAttachedElements=function(e){var t=this;return new g.FluentIterableImpl(function(){return{outgoing:t.outgoing.get(e.id),incoming:t.incoming.get(e.id),nextOutgoingIndex:0,nextIncomingIndex:0}},function(e){var t=e.nextOutgoingIndex;if(void 0!==e.outgoing&&t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("945d"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.listen=function(e){var t=this;e.addEventListener("message",function(e){t.messageReceived(e.data)}),e.addEventListener("error",function(e){t.logger.error(t,"error event received",e)}),this.webSocket=e},t.prototype.disconnect=function(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0)},t.prototype.sendMessage=function(e){if(!this.webSocket)throw new Error("WebSocket is not connected");this.webSocket.send(JSON.stringify(e))},t=o([r.injectable()],t),t}(s.DiagramServer);t.WebSocketDiagramServer=a},"48f9":function(e,t,n){},"4a4f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4"),r=n("1979");function s(){return function(e,t,n){var s=new r.Metadata(o.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(o.POST_CONSTRUCT,e.constructor))throw new Error(i.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(o.POST_CONSTRUCT,s,e.constructor)}}t.postConstruct=s},"4b0d":function(e,t,n){"use strict";var i=n("2196"),o=n.n(i);o.a},"4b75":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){this.tasks=[],this.endTasks=[],this.triggered=!1}return e.prototype.isAvailable=function(){return"function"===typeof requestAnimationFrame},e.prototype.onNextFrame=function(e){this.tasks.push(e),this.trigger()},e.prototype.onEndOfNextFrame=function(e){this.endTasks.push(e),this.trigger()},e.prototype.trigger=function(){var e=this;this.triggered||(this.triggered=!0,this.isAvailable()?requestAnimationFrame(function(t){return e.run(t)}):setTimeout(function(t){return e.run(t)}))},e.prototype.run=function(e){var t=this.tasks,n=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),n.forEach(function(t){return t.call(void 0,e)})},e=i([o.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("70d9"),r=new i.ContainerModule(function(e){e(o.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("dfc0"),s=new i.ContainerModule(function(e,t,n,i){i(o.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=s},"559d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n("e1c6"),l=n("c146"),u=n("9757"),d=n("3a92"),h=n("3623"),p=n("6923"),f=n("3b4c"),m=n("e45b"),g=n("47b7"),v=n("42be"),b=n("dd02"),y=n("66f9"),_=n("ea38"),M=n("1978"),w=n("a5f4"),C=n("61d8"),S=n("3585"),A=n("168d"),E=n("779b"),O=n("4c18"),L=n("bcbd"),T=n("5eb6"),x=n("a0af"),R=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.moves=e,this.animate=t,this.finished=n,this.kind=k.KIND}return e}();t.MoveAction=R;var k=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.resolvedMoves=new Map,n.edgeMementi=[],n}var n;return i(t,e),n=t,t.prototype.execute=function(e){var t=this,n=e.root.index,i=new Map,o=new Map;return this.action.moves.forEach(function(e){var r=n.getById(e.elementId);if(r instanceof S.SRoutingHandle&&t.edgeRouterRegistry){var s=r.parent;if(s instanceof S.SRoutableElement){var a=t.resolveHandleMove(r,s,e);if(a){var c=i.get(s);c||(c=[],i.set(s,c)),c.push(a)}}}else if(r&&x.isLocateable(r)){var l=t.resolveElementMove(r,e);l&&(t.resolvedMoves.set(l.element.id,l),t.edgeRouterRegistry&&n.getAttachedElements(r).forEach(function(e){if(e instanceof S.SRoutableElement){var t=o.get(e),n=b.subtract(l.toPosition,l.fromPosition),i=t?b.linear(t,n,.5):n;o.set(e,i)}}))}}),this.doMove(i,o),this.action.animate?(this.undoMove(),new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,n){var i=n.fromPosition;if(!i){var o=this.edgeRouterRegistry.get(t.routerKind);i=o.getHandlePosition(t,o.route(t),e)}if(i)return{handle:e,fromPosition:i,toPosition:n.toPosition}},t.prototype.resolveElementMove=function(e,t){var n=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:n,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var n=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var i=n.edgeRouterRegistry.get(t.routerKind),o=i.takeSnapshot(t);i.applyHandleMoves(t,e);var r=i.takeSnapshot(t);n.edgeMementi.push({edge:t,before:o,after:r})}),t.forEach(function(t,i){if(!e.get(i)){var o=n.edgeRouterRegistry.get(i.routerKind),r=o.takeSnapshot(i);if(i.source&&i.target&&n.resolvedMoves.get(i.source.id)&&n.resolvedMoves.get(i.target.id))i.routingPoints=i.routingPoints.map(function(e){return b.add(e,t)});else{var s=O.isSelectable(i)&&i.selected;o.cleanupRoutingPoints(i,i.routingPoints,s,n.action.finished)}var a=o.takeSnapshot(i);n.edgeMementi.push({edge:i,before:r,after:a})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var n=e.edgeRouterRegistry.get(t.edge.routerKind);n.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!0),new P(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var i=this;if(!this.action.animate&&e instanceof n)return e.resolvedMoves.forEach(function(e,t){var n=i.resolvedMoves.get(t);n?n.toPosition=e.toPosition:i.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=i.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:i.edgeMementi.push(e)}),!0;if(e instanceof C.ReconnectCommand){var o=e.memento;if(o){var r=this.edgeMementi.find(function(e){return e.edge.id===o.edge.id});r?r.after=o.after:this.edgeMementi.push(o)}return!0}return!1},t.KIND="move",r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=n=r([c.injectable(),a(0,c.inject(p.TYPES.Action)),s("design:paramtypes",[R])],t),t}(u.MergeableCommand);t.MoveCommand=k;var z=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementMoves=n,r.reverse=o,r}return i(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(n){t.reverse?n.element.position={x:(1-e)*n.toPosition.x+e*n.fromPosition.x,y:(1-e)*n.toPosition.y+e*n.fromPosition.y}:n.element.position={x:(1-e)*n.fromPosition.x+e*n.toPosition.x,y:(1-e)*n.fromPosition.y+e*n.toPosition.y}}),this.model},t}(l.Animation);t.MoveAnimation=z;var P=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.reverse=o,r.expanded=[],n.forEach(function(e){var t=r.reverse?e.after:e.before,n=r.reverse?e.before:e.after,i=t.routedPoints,o=n.routedPoints,s=Math.max(i.length,o.length);r.expanded.push({startExpandedRoute:r.growToSize(i,s),endExpandedRoute:r.growToSize(o,s),memento:e})}),r}return i(t,e),t.prototype.midPoint=function(e){var t=e.edge,n=e.edge.source,i=e.edge.target;return b.linear(h.translatePoint(b.center(n.bounds),n.parent,t.parent),h.translatePoint(b.center(i.bounds),i.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof S.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var n=e.memento;t.reverse?n.before.router.applySnapshot(n.edge,n.before):n.after.router.applySnapshot(n.edge,n.after)}):this.expanded.forEach(function(t){for(var n=[],i=1;i(s+l)*o)++l;s+=l;for(var u=0;u0?new R(o,!1,n):void 0}},t.prototype.snap=function(e,t,n){return n&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof S.SRoutableElement))return;var n=this.edgeRouterRegistry.get(t.routerKind),i=n.route(t);return n.getHandlePosition(t,i,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof d.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var n=this,i=[],o=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&i.push(r),e.root.index.all().forEach(function(t){if(t instanceof S.SRoutingHandle){var r=t.parent;if(r instanceof S.SRoutableElement&&t.danglingAnchor){var s=n.getHandlePosition(t);if(s){var a=h.translatePoint(s,t.parent,t.root),c=y.findChildrenAtPosition(e.root,a).find(function(e){return S.isConnectable(e)&&e.canConnect(r,t.kind)});c&&n.hasDragged&&(i.push(new C.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),o=!0)}}t.editMode&&i.push(new w.SwitchEditModeAction([],[t.id]))}})}if(!o){var s=e.root.index.getById(S.edgeInProgressID);if(s instanceof d.SChildElement){var a=[];a.push(S.edgeInProgressID),s.children.forEach(function(e){e instanceof S.SRoutingHandle&&e.danglingAnchor&&a.push(e.danglingAnchor.id)}),i.push(new M.DeleteElementAction(a))}}return this.hasDragged&&i.push(new v.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),i},t.prototype.decorate=function(e,t){return e},r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(p.TYPES.ISnapper),c.optional(),s("design:type",Object)],t.prototype,"snapper",void 0),t}(f.MouseListener);t.MoveMouseListener=N;var I=function(){function e(){}return e.prototype.decorate=function(e,t){if(E.isEdgeLayoutable(t)&&t.parent instanceof g.SEdge)return e;var n="";if(x.isLocateable(t)&&t instanceof d.SChildElement&&void 0!==t.parent){var i=t.position;0===i.x&&0===i.y||(n="translate("+i.x+", "+i.y+")")}if(y.isAlignable(t)){var o=t.alignment;0===o.x&&0===o.y||(n.length>0&&(n+=" "),n+="translate("+o.x+", "+o.y+")")}return n.length>0&&m.setAttr(e,"transform",n),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=I},5823:function(e,t,n){"use strict";var i=n("e8de"),o=n.n(i);o.a},5870:function(e,t,n){},5884:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("1cc1"),r=n("3c83"),s=n("6923"),a=new i.ContainerModule(function(e){e(s.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,n){e.container.isBound(s.TYPES.IContextMenuService)?t(e.container.get(s.TYPES.IContextMenuService)):n()})}}),e(s.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(s.TYPES.IContextMenuProviderRegistry).to(o.ContextMenuProviderRegistry)});t.default=a},"5b35":function(e,t,n){"use strict";var i=n("b878"),o=n.n(i);o.a},"5bc0":function(e,t,n){},"5bcd":function(e,t,n){},"5d08":function(e,t,n){"use strict";var i=n("d675"),o=n.n(i);o.a},"5d19":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("66f9"),s=n("0fb6"),a=n("6923"),c=n("dd02"),l=n("e1c6"),u=function(){function e(t,n){void 0===n&&(n=""),this.svg=t,this.responseId=n,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=u;var d=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var n=document.getElementById(this.options.hiddenDiv);if(null!==n&&n.firstElementChild&&"svg"===n.firstElementChild.tagName){var i=n.firstElementChild,o=this.createSvg(i,e);this.actionDispatcher.dispatch(new u(o,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var n=new XMLSerializer,i=n.serializeToString(e),o=document.createElement("iframe");if(document.body.appendChild(o),!o.contentWindow)throw new Error("IFrame has no contentWindow");var r=o.contentWindow.document;r.open(),r.write(i),r.close();var s=r.getElementById(e.id);s.removeAttribute("opacity"),this.copyStyles(e,s,["width","height","opacity"]),s.setAttribute("version","1.1");var a=this.getBounds(t);s.setAttribute("viewBox",a.x+" "+a.y+" "+a.width+" "+a.height);var c=n.serializeToString(s);return document.body.removeChild(o),c},e.prototype.copyStyles=function(e,t,n){for(var i=getComputedStyle(e),o=getComputedStyle(t),r="",s=0;s=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n("a8f0").Buffer,r=n(3);function s(e,t,n){e.copy(t,n)}e.exports=function(){function e(){i(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;var t=o.allocUnsafe(e>>>0),n=this.head,i=0;while(n)s(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},"5e9c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("6923");function o(e,t){var n=e.get(i.TYPES.CommandStackOptions);for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}t.overrideCommandStackOptions=o},"5eb6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a92");function o(e){return e instanceof i.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=o},6176:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("dd02"),a=n("3a92"),c=n("6923"),l=n("42f7"),u=n("320b"),d=n("66f9"),h=function(){function e(){}return e}();t.BoundsData=h;var p=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(d.isSizeable(t)||d.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof a.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===l.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var n=[],i=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var o={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof a.SChildElement&&d.isLayoutContainer(t.parent)&&(o.newPosition={x:e.bounds.x,y:e.bounds.y}),n.push(o)}e.alignmentChanged&&void 0!==e.alignment&&i.push({elementId:t.id,newAlignment:e.alignment})});var o=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new l.ComputedBoundsAction(n,o,i,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,n){if(t.bounds&&d.isSizeable(n)){var i=t.vnode;if(i&&i.elm){var o=e.getBounds(i.elm,n);!d.isAlignable(n)||s.almostEquals(o.x,0)&&s.almostEquals(o.y,0)||(t.alignment={x:-o.x,y:-o.y},t.alignmentChanged=!0);var r={x:n.bounds.x,y:n.bounds.y,width:o.width,height:o.height};s.almostEquals(r.x,n.bounds.x)&&s.almostEquals(r.y,n.bounds.y)&&s.almostEquals(r.width,n.bounds.width)&&s.almostEquals(r.height,n.bounds.height)||(t.bounds=r,t.boundsChanged=!0)}}})},e.prototype.getBounds=function(e,t){if("function"!==typeof e.getBBox)return this.logger.error(this,"Not an SVG element:",e),s.EMPTY_BOUNDS;var n=e.getBBox();return{x:n.x,y:n.y,width:n.width,height:n.height}},i([r.inject(c.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([r.inject(c.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([r.inject(c.TYPES.Layouter),o("design:type",u.Layouter)],e.prototype,"layouter",void 0),e=i([r.injectable()],e),e}();t.HiddenBoundsUpdater=p},"61d8":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("6923"),u=n("3585"),d=n("168d"),h=function(){function e(t,n,i){this.routableId=t,this.newSourceId=n,this.newTargetId=i,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,n=t.getById(this.action.routableId);if(n instanceof u.SRoutableElement){var i=this.edgeRouterRegistry.get(n.routerKind),o=i.takeSnapshot(n);i.applyReconnect(n,this.action.newSourceId,this.action.newTargetId);var r=i.takeSnapshot(n);this.memento={edge:n,before:o,after:r}}},t.prototype.undo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.before)}return e.root},t.prototype.redo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.after)}return e.root},t.KIND=h.KIND,o([a.inject(d.EdgeRouterRegistry),r("design:type",d.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(l.TYPES.Action)),r("design:paramtypes",[h])],t),t}(c.Command);t.ReconnectCommand=p},6208:function(e,t,n){"use strict";var i=n("6cea"),o=n.n(i);o.a},"624f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4"),r=n("1979"),s=n("66d7"),a=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,n,a){if(void 0===e)throw new Error(i.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(o.INJECT_TAG,e);"number"===typeof a?s.tagParameter(t,n,a,c):s.tagProperty(t,n,c)}}t.LazyServiceIdentifer=a,t.inject=c},6283:function(e,t,n){"use strict";var i=n("5bcd"),o=n.n(i);o.a},6420:function(e,t,n){"use strict";var i=n("1f0f"),o=n.n(i);o.a},6592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=s,t.transformName=a,t.unescapeEntities=u;var i=n("81aa"),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return(0,o.default)(void 0,void 0,void 0,u(e,t))}function a(e){e=e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var t=e.charAt(0).toLowerCase();return""+t+e.substring(1)}var c=new RegExp("&[a-z0-9#]+;","gi"),l=null;function u(e,t){return l||(l=t.createElement("div")),e.replace(c,function(e){return l.innerHTML=e,l.textContent})}},"65d1":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("393a"),c=n("3623"),l=n("e45b"),u=n("8e97"),d=n("779b"),h=n("3585"),p=n("168d"),f=n("8d9d"),m=function(){function e(){}return e.prototype.render=function(e,t){var n="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return a.svg("svg",{"class-sprotty-graph":!0},a.svg("g",{transform:n},t.renderChildren(e)))},e=o([s.injectable()],e),e}();t.SGraphView=m;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){var n=this.edgeRouterRegistry.get(e.routerKind),i=n.route(e);if(0===i.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,i,t)){if(0===e.children.length)return;return a.svg("g",null,t.renderChildren(e,{route:i}))}return a.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,i,t),this.renderAdditionals(e,i,t),t.renderChildren(e,{route:i}))},t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=l.some(function(e){return!!~n.indexOf(e)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),L="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new O(t,n,this);L.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){T.prototype[e]=function(){var t;return(t=L.get(this))[e].apply(t,arguments)}});var x=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:T}();t["a"]=x}).call(this,n("c8ba"))},"6f35":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("3ada"),s=new i.ContainerModule(function(e,t,n){o.configureCommand({bind:e,isBound:n},r.BringToFrontCommand)});t.default=s},"70d9":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3864"),c=n("e1c6"),l=n("6923"),u=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.TYPE,new e)}),n}return i(t,e),t=o([c.injectable(),s(0,c.multiInject(l.TYPES.IButtonHandler)),s(0,c.optional()),r("design:paramtypes",[Array])],t),t}(a.InstanceRegistry);t.ButtonHandlerRegistry=u},7122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("c5f4");function s(e,t,n){var i=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ClassProperty}),r=i.map(n);return i.forEach(function(t,n){var i="";i=t.target.name.value();var o=r[n];e[i]=o}),e}function a(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(i.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function l(e,t,n){var i=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ConstructorArgument}),l=r.map(n);i=a(e,l),i=s(i,t,n)}else i=new e;return c(e,i),i}t.resolveInstance=l},"715d":function(e,t,n){"use strict";var i=n("1f66"),o=n.n(i);o.a},7173:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[n("div",{staticClass:"ft-container"},[n("div",{staticClass:"ft-time row"},[n("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[n("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.slices.length>0?e.slices[0][1]:e.$t("label.timeOrigin"))}}):e._e()],1),n("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ft-timeline",staticClass:"ft-timeline",class:{"ft-with-slices":0!==e.slices.length},on:{mousemove:e.moveOnTimeline,click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?n("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,i){return-1!==t[0]?n("div",{key:i,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),n("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?n("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[n("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?n("q-tooltip",{staticClass:"ft-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)])])]),n("q-resize-observable",{on:{resize:e.updateWidth}})],1)},o=[];i._withStripped=!0;n("ac6a");var r=n("278c"),s=n.n(r),a=(n("28a5"),n("c5f6"),n("c1df")),c=n.n(a),l=n("b8c1"),u={name:"FigureTimeline",mixins:[l["a"]],props:{observationId:{type:String,required:!0},start:{type:Number,required:!0},end:{type:Number,required:!0},rawSlices:{type:Array,default:function(){return[]}},startingTime:{type:Number,default:-1}},computed:{slices:function(){return this.rawSlices.map(function(e){var t=e.split(",");return[+t[0],t[1]]})}},data:function(){return{timestamp:this.startingTime,timelineDate:null,timelineWidth:0,timelineLeft:0}},methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?"":(t||(e=c()(e).format("L")),'
'.concat(e,"
"))},updateWidth:function(){var e=this.$refs["ft-timeline-".concat(this.observationId)];e?(this.timelineWidth=e.clientWidth,this.timelineLeft=e.getBoundingClientRect().left):(this.timelineWidth=0,this.timelineLeft=0)},calculatePosition:function(e){if(0===this.timelineWidth)return 0;if(-1===e)return 0;var t=Math.floor((e-this.start)*this.timelineWidth/(this.end-this.start));return t},moveOnTimeline:function(e){var t=this.getSlice(this.getDateFromPosition(e)),n=s()(t,2);this.timelineDate=n[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,n=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return n>this.end?n=this.end:nthis.end)return[this.end,this.formatDate(this.end)];var t=[this.start,this.formatDate(this.start)];return this.slices.length>0&&this.slices.forEach(function(n){n[0]<=e&&(t=n)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),n=s()(t,2);this.timelineDate=n[1],this.$emit("timestampchange",{time:t[0],timeString:-1===e?t[1]:c()(e).format("L")})}},getLabel:function(e){return c()(e).format("L")}},mounted:function(){this.updateWidth()}},d=u,h=(n("0faf"),n("2877")),p=Object(h["a"])(d,i,o,!1,null,null,null);p.options.__file="FigureTimeline.vue";t["a"]=p.exports},"719e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(o.PARAM_TYPES,e))throw new Error(i.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(o.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(o.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,n){},"72dd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("42f7"),s=n("61bf"),a=n("320b"),c=n("842c"),l=new i.ContainerModule(function(e,t,n){c.configureCommand({bind:e,isBound:n},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:n},r.RequestBoundsCommand),e(s.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(o.TYPES.HiddenVNodePostprocessor).toService(s.HiddenBoundsUpdater),e(o.TYPES.Layouter).to(a.Layouter).inSingletonScope(),e(o.TYPES.LayoutRegistry).to(a.LayoutRegistry).inSingletonScope()});t.default=l},7364:function(e,t,n){},7521:function(e,t,n){"use strict";var i=n("48f9"),o=n.n(i);o.a},"755f":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("e45b"),s=n("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var n=16/1792,i="scale("+n+", "+n+")",s=this.getMaxSeverity(e),a=o.svg("g",{"class-sprotty-issue":!0},o.svg("g",{transform:i},o.svg("path",{d:this.getPath(s)})));return r.setClass(a,"sprotty-"+s,!0),a},e.prototype.getMaxSeverity=function(e){for(var t="info",n=0,i=e.issues.map(function(e){return e.severity});n1?n("div",{staticClass:"kal-locales row reverse"},[n("q-select",{staticClass:"kal-lang-selector",attrs:{options:t.localeOptions,color:"app-main-color","hide-underline":""},model:{value:t.selectedLocale,callback:function(n){e.$set(t,"selectedLocale",n)},expression:"app.selectedLocale"}})],1):e._e()])})],2)])],1)],1)],1)])},O=[];E._withStripped=!0;n("a481"),n("7514"),n("20d6"),n("ac6a"),n("cadf"),n("456d"),n("7f7f");var L=n("be3b"),T=n("d247"),x={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan; Valencian",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiCheŵa"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén)"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands"},en:{name:"English",nativeName:"English",flag:"gb"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi"},fr:{name:"French",nativeName:"français"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian; Haitian Creole",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa"},he:{name:"Hebrew (modern)",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語)"},ku:{name:"Kurdish",nativeName:"Kurdî"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi (Marāṭhī)",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский"},sa:{name:"Sanskrit (Saṁskṛta)",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"español"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan Standard",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur",nativeName:"Uyƣurqə"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"}},R={name:"KlabSettings",data:function(){return{models:{userDetails:!1,appsList:!1},popupsOver:{userDetails:!1,appsList:!1},fabVisible:!1,closeTimeout:null,modalTimeout:null,appsList:[],localeOptions:[],test:"es",TERMINAL_TYPES:c["K"],ISO_LOCALE:x}},computed:s()({},Object(a["c"])("data",["sessionReference","isLocal"]),Object(a["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["M"].DATAFLOW_VIEWER.name},modalsAreFocused:function(){var e=this;return Object.keys(this.popupsOver).some(function(t){return e.popupsOver[t]})||this.selectOpen},owner:function(){return this.sessionReference&&this.sessionReference.owner?this.sessionReference.owner:{unknown:this.$t("label.unknownUser")}},isDeveloper:function(){return this.owner&&this.owner.groups&&-1!==this.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})}}),methods:s()({},Object(a["b"])("data",["loadSessionReference","addTerminal"]),Object(a["b"])("view",["setLayout","setShowSettings"]),{getLocalizedString:function(e,t){if(e.selectedLocale){var n=e.localizations.find(function(t){return t.isoCode===e.selectedLocale});if(n)return"label"===t?n.localizedLabel:n.localizedDescription;if("description"===t)return this.$t("label.noLayoutDescription");if(e.name)return e.name;this.$t("label.noLayoutLabel")}return""},loadApplications:function(){var e=this;if(this.appsList.splice(0),this.sessionReference&&this.sessionReference.publicApps){var t=this.sessionReference.publicApps.filter(function(e){return"WEB"===e.platform||"ANY"===e.platform});t.forEach(function(t){t.logo?(t.logoSrc="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(t.projectId,"/").concat(t.logo.replace("/",":")),e.appsList.push(t)):(t.logoSrc=c["b"].DEFAULT_LOGO,e.appsList.push(t)),e.$set(t,"selectedLocale",t.localizations[0].isoCode),t.localeOptions=t.localizations.map(function(e){return{label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}})})}},runApp:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selectedLocale,i="".concat(e.name,".").concat(n);this.layout&&this.layout.name===i||(e.selectedLocale=n,this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:i},this.$store.state.data.session).body),this.$nextTick(function(){t.models.appsList=!1,t.fabVisible=!1}))},exitApp:function(){this.layout&&this.setLayout(null)},logout:function(){var e=this,t="".concat("").concat("/modeler").concat(this.isApp?"?app=".concat(this.klabApp):"");null!==this.token?L["a"].post("".concat("").concat(T["c"].REST_API_LOGOUT),{}).then(function(n){var i=n.status;205===i?window.location=t:(e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error("Strange status: ".concat(i)))}).catch(function(t){e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),t.response&&403===t.response.status&&console.error("Probably bad token"),console.error("Error logging out: ".concat(t))}):window.location=t},mouseActionEnter:function(e){var t=this;clearTimeout(this.modalTimeout),this.modalTimeout=null,this.$nextTick(function(){t.models[e]=!0,Object.keys(t.models).forEach(function(n){n!==e&&(t.models[n]=!1)})})},mouseFabClick:function(e){var t=this;this.fabVisible?(e.stopPropagation(),e.preventDefault(),setTimeout(function(){window.addEventListener("click",t.closeAll)},300)):(this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.modalsAreFocused||this.closeAll(e,500))},closeAll:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.closeTimeout=setTimeout(function(){Object.keys(e.models).forEach(function(t){e.models[t]=!1}),e.$refs["klab-settings"].hide(),window.removeEventListener("click",e.closeAll)},t)},openTerminal:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.closeAll(),setTimeout(function(){e.addTerminal(s()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},k=R,z=(n("e2d7"),Object(y["a"])(k,E,O,!1,null,null,null));z.options.__file="KlabSettings.vue";var P=z.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.draggableConfig,expression:"draggableConfig"}],staticClass:"kterm-container",class:{"kterm-minimized":!e.terminal.active,"kterm-focused":e.hasFocus},attrs:{id:"kterm-container-"+e.terminal.id}},[n("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[n("q-btn",{staticClass:"kterm-button kterm-delete-history",attrs:{icon:"mdi-delete-clock-outline",disable:0===e.terminalCommands.length,flat:"",color:"white",dense:""},on:{click:e.deleteHistory}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalDeleteHistory")))])],1),n("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalResizeWindow")))])],1),e.terminal.active?n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMinimize")))])],1):n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMaxmize")))])],1),n("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalClose")))])],1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),n("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.sizeSelected(t.ok,!1)}}}),n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(n){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),n("div",{attrs:{slot:"body"},slot:"body"},[n("q-option-group",{attrs:{type:"radio",color:"mc-main",options:e.TERMINAL_SIZE_OPTIONS.map(function(e){return{label:e.label,value:e.value}})},model:{value:e.selectedSize,callback:function(t){e.selectedSize=t},expression:"selectedSize"}})],1)])],1)},I=[];N._withStripped=!0;var D,B=n("448a"),q=n.n(B),j=(n("96cf"),n("c973")),W=n.n(j),F=n("fcf3");n("f751");function H(e){return e&&(e.$el||e)}function X(e,t,n,i,o){void 0===o&&(o={});var r={left:n,top:i},s=e.height,a=e.width,c=i,l=i+s,u=n,d=n+a,h=o.top||0,p=o.bottom||0,f=o.left||0,m=o.right||0,g=t.top+h,v=t.bottom-p,b=t.left+f,y=t.right-m;return cv&&(r.top=v-s),uy&&(r.left=y-a),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(D||(D={}));var U={bind:function(e,t,n,i){U.update(e,t,n,i)},update:function(e,t,n,i){if(!t.value||!t.value.stopDragging){var o=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(p(),g()),o.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),o.addEventListener("mousedown",c),o.addEventListener("touchstart",c,{passive:!1}),o.setAttribute("draggable","true"),e.listener=c,p(),g())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function s(){if(!f()){var t=v();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function a(e){return e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY,e}function c(e){if(window.TouchEvent&&e instanceof TouchEvent){if(e.targetTouches.length1||(t.value.fingers=2),m({initialPosition:a,startDragPosition:a,currentDragPosition:a,initialPos:d(e)}),s()}function f(){return t&&t.value&&t.value.noMove}function m(e){var t=v(),n=Object.assign({},t,e);o.setAttribute("draggable-state",JSON.stringify(n))}function g(e,n){var i=v(),o={x:0,y:0};i.currentDragPosition&&i.startDragPosition&&(o.x=i.currentDragPosition.left-i.startDragPosition.left,o.y=i.currentDragPosition.top-i.startDragPosition.top);var r=i.currentDragPosition&&Object.assign({},i.currentDragPosition);n===D.End?t.value&&t.value.onDragEnd&&i&&t.value.onDragEnd(o,r,e):n===D.Start?t.value&&t.value.onDragStart&&i&&t.value.onDragStart(o,r,e):t.value&&t.value.onPositionChange&&i&&t.value.onPositionChange(o,r,e)}function v(){return JSON.parse(o.getAttribute("draggable-state"))||{}}}},V=n("741d"),G=n("abcf"),K=(n("abb2"),G["b"].height),$={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["J"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:U},data:function(){var e=this;return{instance:void 0,zIndex:1e3,draggableConfig:{handle:void 0,onDragEnd:function(){e.instance.focus()}},draggableElement:void 0,commandCounter:0,command:[],hasFocus:!1,selectedSize:null,selectSize:!1,commandsIndex:-1,TERMINAL_SIZE_OPTIONS:c["J"]}},computed:s()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["K"].DEBUGGER?"#002f74":"#2e0047"}},Object(a["c"])("data",["terminalCommands"])),methods:s()({},Object(a["b"])("data",["removeTerminal","addTerminalCommand","clearTerminalCommands"]),{minimize:function(){this.terminal.active=!1,this.changeDraggablePosition({top:window.innerHeight-55,left:25})},maximize:function(){var e=this;this.changeDraggablePosition(this.draggableConfig.initialPosition),this.terminal.active=!0,this.$nextTick(function(){e.instance.focus()})},closeTerminal:function(){this.sendStompMessage(l["a"].CONSOLE_CLOSED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body),this.instance=null,this.removeTerminal(this.terminal.id)},changeDraggablePosition:function(e){this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var t=JSON.parse(this.draggableConfig.handle.getAttribute("draggable-state"));t.startDragPosition=e,t.currentDragPosition=e,this.draggableConfig.handle.setAttribute("draggable-state",JSON.stringify(t))},commandResponseListener:function(e){e&&e.payload&&e.consoleId===this.terminal.id&&(this.instance.write("\b \b\b \b".concat(e.payload.replaceAll("\n","\r\n"))),this.instance.prompt())},onFocusListener:function(e){this.hasFocus=this.terminal.id===e},sizeSelected:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:i=c["J"].find(function(e){return e.value===o.selectedSize}),this.instance.resize(i.cols,i.rows),n&&V["a"].set(c["P"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(l["a"].CONSOLE_CREATED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body)},mounted:function(){var e,t=this;e=this.size?this.size:V["a"].has(c["P"].COOKIE_TERMINAL_SIZE)?V["a"].get(c["P"].COOKIE_TERMINAL_SIZE):c["J"][0].value;var n=c["J"].find(function(t){return t.value===e});this.selectedSize=n.value,this.instance=new F["Terminal"]({cols:n.cols,rows:n.rows,cursorBlink:!0,bellStyle:"both",theme:{background:this.background}}),this.instance.prompt=function(){t.instance.write("\r\n$ ")},this.instance.open(document.getElementById("kterm-".concat(this.terminal.id))),this.instance.writeln("".concat(this.$t("messages.terminalHello",{type:this.terminal.type})," / ").concat(this.terminal.id)),this.instance.prompt(),this.instance.onData(function(e){var n=function(){for(var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=0;i0){var o=t.command.join("");t.sendStompMessage(l["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:o},t.$store.state.data.session).body),t.addTerminalCommand(o)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":i>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?n(t.terminalCommands[--t.commandsIndex]):(n(),t.commandsIndex=-1);break;case"":break;case"":break;default:t.command.push(e),t.instance.write(e)}}),this.instance.textarea.addEventListener("focus",function(){t.$eventBus.$emit(c["h"].TERMINAL_FOCUSED,t.terminal.id)}),this.draggableConfig.handle=document.getElementById("kterm-handle-".concat(this.terminal.id)),this.draggableElement=document.getElementById("kterm-container-".concat(this.terminal.id)),this.draggableConfig.initialPosition={top:window.innerHeight-K(this.draggableElement)-25,left:25},this.instance.focus(),this.$eventBus.$on(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$on(c["h"].COMMAND_RESPONSE,this.commandResponseListener)},beforeDestroy:function(){null!==this.instance&&this.closeTerminal(),this.$eventBus.$off(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$off(c["h"].COMMAND_RESPONSE,this.commandResponseListener)}},Y=$,J=(n("23a0"),Object(y["a"])(Y,N,I,!1,null,null,null));J.options.__file="KlabTerminal.vue";var Q=J.exports,Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.activeDialog?n("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[n("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),n("div",{staticClass:"kaa-button"},[n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appOK")},on:{click:function(t){e.dialogAction(e.activeDialog,!0)}}}),e.activeDialog.type===e.APPS_COMPONENTS.CONFIRM?n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appCancel")},on:{click:function(t){e.dialogAction(e.activeDialog,!1)}}}):e._e()],1)]):e._e()},ee=[];Z._withStripped=!0;var te={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:s()({},Object(a["c"])("view",["layout","activeDialogs"]),{hasActiveDialogs:{get:function(){return this.activeDialogs.length>0},set:function(){}}}),methods:{setActiveDialog:function(){var e=this;this.activeDialogs.length>0?this.activeDialog=this.activeDialogs[this.activeDialogs.length-1]:this.$nextTick(function(){e.activeDialog=null})},dialogAction:function(e,t){this.activeDialog.dismiss=!0,e.type===c["a"].CONFIRM&&this.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=te,ie=(n("715d"),Object(y["a"])(ne,Z,ee,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var oe=ie.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kapp-layout-container",class:{"kapp-main":e.isRootLayout},style:e.modalDimensions,attrs:{view:"hhh lpr fFf",id:"kapp-"+e.idSuffix}},[!e.isModal&&e.hasHeader?n("q-layout-header",{staticClass:"kapp-header-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{id:"kapp-"+e.idSuffix+"-header"}},[e.layout.header?n("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):n("div",{staticClass:"kapp-header row"},[n("div",{staticClass:"kapp-logo-container"},[n("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),n("div",{staticClass:"kapp-title-container"},[e.layout.label?n("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?n("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?n("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?n("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return n("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(n){e.clickOnMenu(t.id)}}},[e._v(e._s(t.text))])})):e._e(),n("div",{staticClass:"kapp-actions-container row items-end justify-end"},[n("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?n("q-layout-drawer",{staticClass:"kapp-left-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"left","content-class":"kapp-left-inner-container",width:e.leftPanelWidth},model:{value:e.showLeftPanel,callback:function(t){e.showLeftPanel=t},expression:"showLeftPanel"}},[e.leftPanel?[n("klab-app-viewer",{staticClass:"kapp-left-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-left-0",component:e.layout.leftPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),e.showRightPanel?n("q-layout-drawer",{staticClass:"kapp-right-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"right","content-class":"kapp-right-inner-container",width:e.rightPanelWidth},model:{value:e.showRightPanel,callback:function(t){e.showRightPanel=t},expression:"showRightPanel"}},[e.rightPanel?[n("klab-app-viewer",{staticClass:"kapp-right-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-right-0",component:e.layout.rightPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),n("q-page-container",[e.layout&&0!==e.layout.panels.length?[n("klab-app-viewer",{staticClass:"kapp-main-container kapp-container print-hide",attrs:{id:"kapp-"+e.idSuffix+"-main-0",mainPanelStyle:e.mainPanelStyle,component:e.layout.panels[0]}})]:n("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),n("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),n("q-modal",{staticClass:"kapp-modal",attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["absolute-center","kapp-loading"]},model:{value:e.blockApp,callback:function(t){e.blockApp=t},expression:"blockApp"}},[n("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];re._withStripped=!0;n("6762"),n("2fdb"),n("4917"),n("5df3"),n("1c4c");var ae=n("50fb"),ce=n.n(ae),le=n("84a2"),ue=n.n(le),de=n("6dd8"),he=n("0312"),pe=n.n(he);function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[i]||this.options.forceVisible){"x"===i?(e=this.scrollbarX,t=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,n=this.trackYSize);var o=n/t;this.handleSize[i]=Math.max(~~(o*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[i]=Math.min(this.handleSize[i],this.options.scrollbarMaxSize)),"x"===i?e.style.width="".concat(this.handleSize[i],"px"):e.style.height="".concat(this.handleSize[i],"px")}}},{key:"positionScrollbar",value:function(){var e,t,n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===o?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[o]],n=this.contentSizeX,i=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[o]],n=this.contentSizeY,i=this.trackYSize);var r=t/(n-i),s=~~((i-this.handleSize[o])*r);(this.isEnabled[o]||this.options.forceVisible)&&(e.style.transform="x"===o?"translate3d(".concat(s,"px, 0, 0)"):"translate3d(0, ".concat(s,"px, 0)"))}},{key:"toggleTrackVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t="y"===e?this.trackY:this.trackX,n="y"===e?this.scrollbarY:this.scrollbarX;this.isEnabled[e]||this.options.forceVisible?t.style.visibility="visible":t.style.visibility="hidden",this.options.forceVisible&&(this.isEnabled[e]?n.style.visibility="visible":n.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=ce()(),this.scrollContentEl.style[this.isRtl?"paddingLeft":"paddingRight"]="".concat(this.scrollbarWidth||this.offsetSize,"px"),this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px"),this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px"),0!==this.scrollbarWidth&&(this.contentEl.style[this.isRtl?"marginLeft":"marginRight"]="-".concat(this.scrollbarWidth,"px"))}},{key:"showScrollbar",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[t]||(e="x"===t?this.scrollbarX:this.scrollbarY,this.isEnabled[t]&&(e.classList.add("visible"),this.isVisible[t]=!0),this.options.autoHide&&(window.clearInterval(this.flashTimeout),this.flashTimeout=window.setInterval(this.hideScrollbars,this.options.timeout)))}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";e.preventDefault();var n="y"===t?this.scrollbarY:this.scrollbarX,i="y"===t?e.pageY:e.pageX;this.dragOffset[t]=i-n.getBoundingClientRect()[this.offsetAttr[t]],this.currentAxis=t,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";return"y"===e?this.scrollContentEl:this.contentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),this.scrollContentEl.removeEventListener("scroll",this.onScrollY),this.contentEl.removeEventListener("scroll",this.onScrollX),this.mutationObserver.disconnect(),this.resizeObserver.disconnect()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(e){return null!==e&&(e===this.el||this.isChildNode(e.parentNode))}},{key:"isWithinBounds",value:function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new e(t,e.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){!t.SimpleBar&&new e(t,e.getElOptions(t))}))}),Array.from(t.removedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?e.SimpleBar&&e.SimpleBar.unMount():Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar&&e.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(e){var t=Array.from(e.attributes).reduce(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var i=n[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[i]=!0;break;case"false":e[i]=!1;break;case void 0:e[i]=!0;break;default:e[i]=t.value}}return e},{});return t}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new e(t,e.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25,scrollbarMaxSize:0,direction:"ltr",timeout:1e3}}}]),e}();pe.a&&ve.initHtmlApi();var be=ve,ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kexplorer-main-container print-hide",style:{width:e.mainPanelStyle.width+"px",height:e.mainPanelStyle.height+"px"},attrs:{view:"hHh lpr fFf",container:""}},[n("q-layout-drawer",{attrs:{side:"left",overlay:!1,breakpoint:0,width:e.leftMenuState===e.LEFTMENU_CONSTANTS.LEFTMENU_MAXIMIZED?e.LEFTMENU_CONSTANTS.LEFTMENU_MAXSIZE:e.LEFTMENU_CONSTANTS.LEFTMENU_MINSIZE,"content-class":["klab-left","no-scroll",e.largeMode?"klab-large-mode":""]},model:{value:e.leftMenuVisible,callback:function(t){e.leftMenuVisible=t},expression:"leftMenuVisible"}},[n("klab-left-menu")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[n("keep-alive",[n(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),n("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),n("div",{staticClass:"col-1 row"},[e.logVisible?n("klab-log"):e._e()],1),n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?n("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?n("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():n("observation-time"),n("input-request-modal"),n("scale-change-dialog")],1)],1)],1)},_e=[];ye._withStripped=!0;var Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isHidden,expression:"isHidden"}],staticClass:"spinner-lonely-div klab-spinner-div",style:{left:e.defaultLeft+"px",top:e.defaultTop+"px","border-color":e.hasTasks()?e.spinnerColor.color:"rgba(0,0,0,0)"}},[n("klab-spinner",{staticClass:"spinner-lonely",attrs:{"store-controlled":!0,size:40,ball:22,wrapperId:"spinner-lonely-div"},nativeOn:{dblclick:function(t){return e.show(t)},touchstart:function(t){e.handleTouch(t,null,e.show)}}})],1)]),n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("q-card",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"},{name:"show",rawName:"v-show",value:!e.isHidden,expression:"!isHidden"}],staticClass:"mc-q-card no-box-shadow absolute lot-of-flow",class:[e.hasContext?"with-context":"bg-transparent without-context","mc-large-mode-"+e.largeMode],style:e.qCardStyle,attrs:{draggable:"false",flat:!0},nativeOn:{contextmenu:function(e){e.preventDefault()}}},[n("q-card-title",{ref:"mc-draggable",staticClass:"mc-q-card-title q-pa-xs",class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":".2")},attrs:{ondragstart:"return false;"},nativeOn:{mousedown:function(t){e.moved=!1},mousemove:function(t){e.moved=!0},mouseup:function(t){return e.focusSearch(t)}}},[n("klab-search-bar",{ref:"klab-search-bar"}),n("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden&&!e.hasHeader&&null===e.layout,expression:"hasContext && !isHidden && !hasHeader && layout === null"}],staticClass:"context-actions no-margin"},[n("div",{staticClass:"mc-tabs"},[n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),n("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),n("scale-buttons",{attrs:{docked:!1}}),n("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),n("stop-actions-buttons")],1),n("q-card-main",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"no-margin relative-position",attrs:{draggable:"false"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.selectedTab,{tag:"component"})],1)],1)],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-terrain"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-human-male-female"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?n("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?n("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},we=[];Me._withStripped=!0;var Ce=n("1fe0"),Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-actions",class:e.orientation},[n("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATA_VIEWER.name}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATA_VIEWER.name&&e.click(e.isMainControlDocked?e.VIEWERS.DOCKED_DATA_VIEWER:e.VIEWERS.DATA_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.dataViewer")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DOCUMENTATION_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&(!e.hasContext||!e.hasObservations)}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&e.hasContext&&e.hasObservations&&e.click(e.VIEWERS.DOCUMENTATION_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.hasObservations?e.$t("tooltips.documentationViewer"):e.$t("tooltips.noDocumentation")))])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATAFLOW_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&!e.hasContext}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.click(e.VIEWERS.DATAFLOW_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.flowchartsUpdatable?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.flowchartsUpdatable?e.$t("tooltips.dataflowViewer"):e.$t("tooltips.noDataflow")))])],1)],1)])])},Ae=[];Se._withStripped=!0;var Ee={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasObservations","flowchartsUpdatable","hasContext"]),Object(a["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:s()({},Object(a["b"])("view",["setMainViewer"]),{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},click:function(e){var t=this;this.setMainViewer(e),this.$nextTick(function(){t.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout"})})}}),created:function(){this.VIEWERS=c["M"]}},Oe=Ee,Le=(n("6208"),Object(y["a"])(Oe,Se,Ae,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Te=Le.exports,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[n("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.resetContext")))])],1)],1):e._e(),e.hasContext&&e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[n("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.interruptTask",{taskDescription:e.lastActiveTaskText})))])],1)],1):e._e()])},Re=[];xe._withStripped=!0;var ke={computed:s()({},Object(a["c"])("data",["hasContext","contextId","session"])),methods:s()({},Object(a["b"])("data",["loadContext","setWaitinForReset"]),Object(a["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},ze={name:"StopActionsButtons",mixins:[ke],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext","contextId","previousContext"]),Object(a["c"])("stomp",["hasTasks","lastActiveTask"]),{lastActiveTaskText:function(){var e=null===this.lastActiveTask(this.contextId)?"":this.lastActiveTask(this.contextId).description;return e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)?e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation")):e}}),methods:{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},resetContext:function(){this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(l["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Pe=ze,Ne=(n("c31b"),Object(y["a"])(Pe,xe,Re,!1,null,null,null));Ne.options.__file="StopActionsButtons.vue";var Ie=Ne.exports,De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.hasContext?"with-context":"without-context",e.isDocked?"ksb-docked":""],style:{width:e.isDocked&&e.searchIsFocused&&e.largeMode?e.getLargeModeWidth():"100%"},attrs:{id:"ksb-container"}},[e.isDocked?e._e():n("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[n("klab-spinner",{style:{"box-shadow":e.searchIsFocused?"0px 0px 3px "+e.getBGColor(".4"):"none"},attrs:{"store-controlled":!0,color:e.spinnerColor.hex,size:40,ball:22,wrapperId:"ksb-spinner",id:"spinner-searchbar"},nativeOn:{dblclick:function(t){return e.emitSpinnerDoubleclick(t)},touchstart:function(t){t.stopPropagation(),e.handleTouch(t,e.showSuggestions,e.emitSpinnerDoubleclick)}}})],1),n("div",{class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.isDocked?e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":e.isDocked?"1.0":".2"):"rgba(0,0,0,0)"},attrs:{id:"ksb-search-container"}},[e.searchIsActive?n("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):n("div",{staticClass:"ksb-context-text text-white"},[n("scrolling-text",{ref:"st-context-text",attrs:{"with-edge":!0,"hover-active":!0,"initial-text":null===e.mainContextLabel?e.$t("label.noContextPlaceholder"):e.mainContextLabel,"placeholder-style":!e.hasContext}})],1),n("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[n("scrolling-text",{ref:"st-status-text",attrs:{"with-edge":!0,edgeOpacity:e.hasContext?1:e.searchIsFocused?.8:.2,hoverActive:!1,initialText:e.statusTextsString,accentuate:!0}})],1),e.isScaleLocked["space"]&&!e.hasContext?n("q-icon",{attrs:{name:"mdi-lock-outline"}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[10,5],delay:500}},[e._v(e._s(e.$t("label.scaleLocked",{type:e.$t("label.spaceScale")})))])],1):e._e(),n("main-control-menu")],1)])},Be=[];De._withStripped=!0;var qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"ks-container",attrs:{id:"ks-container"}},[n("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,i){return n("div",{key:t.index,ref:"token-"+t.index,refInFor:!0,class:["ks-tokens-accepted","ks-tokens","bg-semantic-elements",t.selected?"selected":"","text-"+t.leftColor],style:{"border-color":t.selected?t.rgb:"transparent"},attrs:{tabindex:i},on:{focus:function(n){e.onTokenFocus(t,n)},blur:function(n){e.onTokenFocus(t,n)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),n("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?n("span",[e._v(e._s(t.sublabel))]):n("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),n("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[n("q-input",{ref:"ks-search-input",class:[e.fuzzyMode?"ks-fuzzy":"",e.searchIsFocused?"ks-search-focused":""],attrs:{autofocus:!0,placeholder:e.fuzzyMode?e.$t("label.fuzzySearchPlaceholder"):e.$t("label.searchPlaceholder"),size:"20",id:"ks-search-input",tabindex:e.acceptedTokens.length,"hide-underline":!0},on:{focus:function(t){e.onInputFocus(!0)},blur:function(t){e.onInputFocus(!1)},keydown:e.onKeyPressedOnSearchInput,keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,"Escape"))return null;e.searchEnd({})}},nativeOn:{contextmenu:function(e){e.preventDefault()},touchstart:function(t){e.handleTouch(t,null,e.searchInKLab)}},model:{value:e.actualToken,callback:function(t){e.actualToken=t},expression:"actualToken"}},[n("klab-autocomplete",{ref:"ks-autocomplete",class:[e.notChrome()?"not-chrome":""],attrs:{debounce:400,"min-characters":e.minimumCharForAutocomplete,"max-results":50,id:"ks-autocomplete"},on:{search:e.autocompleteSearch,selected:e.selected,show:e.onAutocompleteShow,hide:e.onAutocompleteHide}})],1)],1)],2)])},je=[];qe._withStripped=!0;n("386d");var We=n("278c"),Fe=n.n(We),He=n("2b0e"),Xe=n("b0b2"),Ue=n("b12a"),Ve=n("7ea0"),Ge=n("b5b8"),Ke=n("1180"),$e=n("68c2"),Ye=n("506f"),Je=n("b8d9"),Qe=n("52b5"),Ze=n("03d8"),et={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(e){return 1===e.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String,tooltip:{type:Object,default:null}},computed:{type:function(){var e=this;return["icon","image","avatar","letter","stamp"].find(function(t){return e[t]})},classes:function(){var e=["q-item-side-".concat(this.right?"right":"left")];return!this.color||this.icon||this.letter||e.push("text-".concat(this.color)),e},typeClasses:function(){var e=["q-item-".concat(this.type)];return this.color&&(this.inverted&&(this.icon||this.letter)?e.push("bg-".concat(this.color)):this.textColor||e.push("text-".concat(this.color))),this.textColor&&e.push("text-".concat(this.textColor)),this.inverted&&(this.icon||this.letter)&&(e.push("q-item-inverted"),e.push("flex"),e.push("flex-center")),e},imagePath:function(){return this.image||this.avatar}},render:function(e){var t;return this.type&&(this.icon?(t=e(Qe["a"],{class:this.inverted?null:this.typeClasses,props:{name:this.icon,tooltip:this.tooltip}}),this.inverted&&(t=e("div",{class:this.typeClasses},[t]))):t=this.imagePath?e("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):e("div",{class:this.typeClasses},[this.stamp||this.letter])),e("div",{staticClass:"q-item-side q-item-section",class:this.classes},[null!==this.tooltip?e(Ze["a"],{ref:"tooltip",class:"kl-model-desc-container",props:{offset:[25,0],anchor:"top right",self:"top left"}},[e("div",{class:["kl-model-desc","kl-model-desc-title"]},this.tooltip.title),e("div",{class:["kl-model-desc","kl-model-desc-state","bg-state-".concat(this.tooltip.state)]},this.tooltip.state),e("div",{class:["kl-model-desc","kl-model-desc-content"]},this.tooltip.content)]):null,t,this.$slots.default])}};function tt(e,t,n,i,o,r){var s={props:{right:r.right}};if(i&&o)e.push(t(n,s,i));else{var a=!1;for(var c in r)if(r.hasOwnProperty(c)&&(a=r[c],void 0!==a&&!0!==a)){e.push(t(n,{props:r}));break}i&&e.push(t(n,s,i))}}var nt={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,n=this.slotReplace,i=[];return tt(i,e,et,this.$slots.left,n,{icon:t.icon,color:t.leftColor,avatar:t.avatar,letter:t.letter,image:t.image,inverted:t.leftInverted,textColor:t.leftTextColor,tooltip:t.leftTooltip}),tt(i,e,Je["a"],this.$slots.main,n,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(i,e,et,this.$slots.right,n,{right:!0,icon:t.rightIcon,color:t.rightColor,avatar:t.rightAvatar,letter:t.rightLetter,image:t.rightImage,stamp:t.stamp,inverted:t.rightInverted,textColor:t.rightTextColor,tooltip:t.rightTooltip}),i.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},i)}},it=G["b"].width,ot={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var n=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),i=n.length,o=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=o,i0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=it(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(n,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",n,function(e){if(t.isWorking()&&t.searchId===o){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,n=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:n?"bg-dark":null,props:{fit:!0,keepOnScreen:!0,anchorClick:!1,maxHeight:this.maxHeight,noFocus:!0,noRefocus:!0},on:{show:function(){t.__input.selectionOpen=!0,t.$emit("show")},hide:function(){t.__input.selectionOpen=!1,t.$emit("hide")}},nativeOn:{mousedown:function(e){e.preventDefault()}}},[e(Ke["a"],{props:{dark:n,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(n,i){return e(nt,{key:n.id||i,class:{"q-select-highlight":t.keyboardIndex===i,"cursor-pointer":!n.disable,"text-faded":n.disable,"ka-separator":n.separator},props:{cfg:n},nativeOn:{mousedown:function(e){!n.disable&&(t.keyboardIndex=i),e.preventDefault()},click:function(){!n.disable&&t.setValue(n)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:300;window.TouchEvent&&e instanceof TouchEvent&&(1===e.targetTouches.length?null===this.doubleTouchTimeout?this.doubleTouchTimeout=setTimeout(function(){t.doubleTouchTimeout=null,null!==n&&n(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==i&&i()):null!==o&&o(e))}}},st="=(<)>",at={name:"KlabSearch",components:{KlabAutocomplete:ot},mixins:[rt],props:{maxResults:{type:Number,default:-1}},data:function(){return{searchContextId:null,searchRequestId:0,doneFunc:null,result:null,acceptedTokens:[],actualToken:"",actualSearchString:"",noSearch:!1,searchDiv:null,searchDivInitialSize:void 0,searchDivInternal:void 0,searchInput:null,autocompleteEl:null,scrolled:0,suggestionShowed:!1,searchTimeout:null,searchHistoryIndex:-1,autocompleteSB:null,freeText:!1,parenthesisDepth:0,last:!1,minimumCharForAutocomplete:2}},computed:s()({},Object(a["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(a["c"])("view",["spinner","searchIsFocused","searchLostChar","searchInApp","searchHistory","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{inputSearchColor:{get:function(){return this.searchInput?this.searchInput.$refs.input.style.color:"black"},set:function(e){this.searchInput.$refs.input&&(this.searchInput.$refs.input.style.color=e)}}}),methods:s()({},Object(a["b"])("data",["setContextCustomLabel"]),Object(a["b"])("view",["searchStop","setSpinner","searchFocus","resetSearchLostChar","storePreviousSearch","setFuzzyMode","setLargeMode"]),{notChrome:function(){return-1===navigator.userAgent.indexOf("Chrome")},onTokenFocus:function(e,t){e.selected="focus"===t.type},onInputFocus:function(e){this.searchFocus({focused:e}),this.actualToken=this.actualSearchString},onAutocompleteShow:function(){this.suggestionShowed=!0},onAutocompleteHide:function(){this.suggestionShowed=!1,this.actualToken!==this.actualSearchString&&(this.noSearch=!0,this.resetSearchInput())},onKeyPressedOnToken:function(e){var t=this;if(37===e.keyCode||39===e.keyCode){e.preventDefault();var n=this.acceptedTokens.findIndex(function(e){return e.selected}),i=null,o=!1;if(37===e.keyCode&&n>0?i="token-".concat(this.acceptedTokens[n-1].index):39===e.keyCode&&n=s&&(n=s)}else{var a=o?r.$el:r,c=(o?a.offsetLeft:r.offsetLeft)+i+a.offsetWidth,l=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;l<=c&&(n=t.searchDiv.scrollLeft+(c-l)-i)}null!==n&&He["a"].nextTick(function(){t.searchDiv.scrollLeft=n})})}}},onKeyPressedOnSearchInput:function(e){var t=this;if(this.noSearch=!1,this.last)return e.preventDefault(),void this.$q.notify({message:this.$t("messages.lastTermAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});switch(e.keyCode){case 8:if(""===this.actualToken&&0!==this.acceptedTokens.length){var n=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:n.matchIndex,matchId:n.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["v"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){t.checkLargeMode(!1)})}else""!==this.actualSearchString?(e.preventDefault(),this.actualSearchString=this.actualSearchString.slice(0,-1),""===this.actualSearchString&&this.setFuzzyMode(!1)):""===this.actualSearchString&&""!==this.actualToken&&(this.actualToken="",e.preventDefault());break;case 9:this.suggestionShowed&&-1!==this.autocompleteEl.keyboardIndex?(this.autocompleteEl.setValue(this.autocompleteEl.results[this.autocompleteEl.keyboardIndex]),this.searchHistoryIndex=-1):this.freeText&&this.acceptText(),e.preventDefault();break;case 13:this.freeText||this.fuzzyMode?this.acceptText():this.searchInKLab(e);break;case 27:this.suggestionShowed?this.autocompleteEl.hide():this.searchEnd({noStore:!0}),e.preventDefault();break;case 32:if(e.preventDefault(),this.fuzzyMode)this.searchHistoryIndex=-1,this.actualSearchString+=e.key;else if(this.freeText)this.acceptFreeText();else if(this.suggestionShowed){var i=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,o=this.autocompleteEl.results[i];o.separator||(this.autocompleteEl.setValue(o),this.searchHistoryIndex=-1)}else this.askForSuggestion()||this.$q.notify({message:this.$t("messages.noSpaceAllowedInSearch"),type:"warning",icon:"mdi-alert",timeout:1500});break;case 37:if(!this.suggestionShowed&&0===this.searchInput.$refs.input.selectionStart&&this.acceptedTokens.length>0){var r=this.acceptedTokens[this.acceptedTokens.length-1];He["a"].nextTick(function(){t.$refs["token-".concat(r.index)][0].focus()}),e.preventDefault()}break;case 38:this.suggestionShowed||this.searchHistoryEvent(1,e);break;case 40:this.suggestionShowed||this.searchHistoryEvent(-1,e);break;default:this.isAcceptedKey(e.key)?")"===e.key&&0===this.parenthesisDepth?e.preventDefault():(e.preventDefault(),0===this.acceptedTokens.length&&0===this.searchInput.$refs.input.selectionStart&&Object(Xe["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==st.indexOf(e.key)&&this.askForSuggestion(e.key.trim())):39!==e.keyCode&&e.preventDefault();break}},acceptText:function(){var e=this,t=this.actualToken.trim();""===t?this.$q.notify({message:this.$t("messages.emptyFreeTextSearch"),type:"warning",icon:"mdi-alert",timeout:1e3}):this.search(this.actualToken,function(t){t&&t.length>0?e.selected(t[0],!1):e.$q.notify({message:e.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3})})},selected:function(e,t){var n=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!0},this.$store.state.data.session).body),this.fuzzyMode)return void this.$nextTick(function(){n.searchEnd({})});this.freeText=e.nextTokenClass!==c["v"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){n.checkLargeMode(!0)})}},checkLargeMode:function(){var e=this;this.$nextTick(function(){var t;if(e.isDocked)t=e.searchDivInitialSize-e.searchDivInternal.clientWidth,t<0&&0===e.largeMode?e.setLargeMode(1):t>=0&&e.largeMode>0&&e.setLargeMode(0);else if(t=e.searchDiv.clientWidth-e.searchDivInternal.clientWidth,t>=0){var n=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);n>0&&e.largeMode>0&&(n>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-n))}else{var i=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+i)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var n=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["E"].FREETEXT:c["E"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.setSpinner(s()({},c["H"].SPINNER_ERROR,{owner:n.$options.name,errorMessage:n.$t("errors.searchTimeout"),time:n.fuzzyMode?5:2,then:s()({},c["H"].SPINNER_STOPPED)})),n.doneFunc([])},"4000")},searchInKLab:function(){if(!this.suggestionShowed&&!this.fuzzyMode)if(this.parenthesisDepth>0)this.$q.notify({message:this.$t("messages.parenthesisAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});else if(this.isCrossingIDL)this.$q.dialog({title:this.$t("label.IDLAlertTitle"),message:this.$t("messages.IDLAlertText"),color:"mc-red"}).catch(function(){});else{if(this.acceptedTokens.length>0){if(this.engineEventsCount>0)return this.$emit("busy-search"),void this.$q.notify({message:this.$t("messages.resourcesValidating"),type:"warning",icon:"mdi-alert",timeout:2e3});var e=this.acceptedTokens.map(function(e){return e.id}).join(" ");this.sendStompMessage(l["a"].OBSERVATION_REQUEST({urn:e,contextId:this.contextId,searchContextId:null},this.$store.state.data.session).body);var t=this.acceptedTokens.map(function(e){return e.label}).join(" ");this.setContextCustomLabel(this.$t("messages.waitingObservationInit",{observation:t})),this.$q.notify({message:this.$t("label.askForObservation",{urn:t}),type:"info",icon:"mdi-information",timeout:2e3})}else console.info("Nothing to search for");this.searchEnd({})}},searchEnd:function(e){var t=e.noStore,n=void 0!==t&&t,i=e.noDelete,o=void 0!==i&&i;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(o)return;n||this.storePreviousSearch({acceptedTokens:this.acceptedTokens.slice(0),searchContextId:this.searchContextId,searchRequestId:this.searchRequestId})}this.searchContextId=null,this.searchRequestId=0,this.doneFunc=null,this.result=null,this.acceptedTokens=[],this.searchHistoryIndex=-1,this.actualSearchString="",this.scrolled=0,this.noSearch=!1,this.freeText=!1,this.setFuzzyMode(!1),this.setLargeMode(0),this.parenthesisDepth=0,this.last=!1,this.searchStop()}},resetSearchInput:function(){var e=this;this.$nextTick(function(){e.actualToken=e.actualSearchString,e.inputSearchColor="black"})},searchHistoryEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(""===this.actualToken&&this.searchHistory.length>0&&(0===this.acceptedTokens.length||this.searchHistoryIndex>=0)&&this.searchHistory.length>0&&(e>0||this.searchHistoryIndex>0)&&this.searchHistoryIndex+e0&&void 0!==arguments[0]?arguments[0]:"";return(""!==t||0===this.acceptedTokens.length)&&0===this.searchInput.$refs.input.selectionStart&&(this.search(t,function(n){e.autocompleteEl.__clearSearch(),Array.isArray(n)&&n.length>0?(e.autocompleteEl.results=n,He["a"].nextTick(function(){e.autocompleteEl.__showResults(),""!==t&&(e.autocompleteEl.keyboardIndex=0)})):e.autocompleteEl.hide()}),!0)},deleteLastToken:function(){if(0!==this.acceptedTokens.length){var e=this.acceptedTokens.pop();this.searchHistoryIndex=-1,this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!1},this.$store.state.data.session).body)}},charReceived:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"ArrowUp"===e?this.searchHistoryEvent(1):"ArrowDown"===e?this.searchHistoryEvent(-1):" "===e?this.askForSuggestion():(Object(Xe["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==st.indexOf(e)&&this.askForSuggestion(e))}}),watch:{actualSearchString:function(){this.resetSearchInput()},searchResult:function(e){var t=this;if(!this.searchInApp){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(i));if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,l=r.error,u=r.errorMessage,d=r.parenthesisDepth,h=r.last;if(this.parenthesisDepth=d,this.last=h,l)this.setSpinner(s()({},c["H"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:u}));else{var p=[];a.forEach(function(e){var n=c["v"][e.matchType];if("undefined"!==typeof n){var i=n;if(null!==e.mainSemanticType){var o=c["F"][e.mainSemanticType];"undefined"!==typeof o&&(i=o)}if("SEPARATOR"===e.matchType)p.push({value:e.name,label:e.name,labelLines:1,rgb:i.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,a=null!==r?Object(Ue["m"])(e.state):null;p.push(s()({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:i.symbol,leftInverted:!0,leftColor:i.color,rgb:i.rgb,id:e.id,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==a&&{rightIcon:a.icon,rightTextColor:"state-".concat(a.tooltip),rightTooltip:{state:a.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==p.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:this.$options.name})),He["a"].nextTick(function(){t.doneFunc(p),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}},acceptedTokens:function(){var e=this;He["a"].nextTick(function(){var t=e.searchDiv.scrollWidth;e.scrolled!==t&&(e.searchDiv.scrollLeft=t,e.scrolled=t)})},searchIsFocused:function(e){e?(this.searchInput.focus(),this.acceptedTokens.forEach(function(e){e.selected=!1})):this.searchInput.blur()},searchLostChar:function(e){null!==e&&""!==e&&(this.charReceived(e,!0),this.resetSearchLostChar())}},beforeMount:function(){this.setFuzzyMode(!1)},mounted:function(){var e=this;this.searchDiv=this.$refs["ks-container"],this.searchDivInternal=document.getElementById("ks-internal-container"),this.searchInput=this.$refs["ks-search-input"],this.autocompleteEl=this.$refs["ks-autocomplete"],null!==this.searchLostChar&&""!==this.searchLostChar?this.charReceived(this.searchLostChar,!1):this.actualSearchString="",this.inputSearchColor="black",this.setLargeMode(0),this.$nextTick(function(){e.searchDivInitialSize=e.searchDiv.clientWidth})},updated:function(){var e=document.querySelectorAll("#ks-autocomplete .q-item-side-right");e.forEach(function(e){e.setAttribute("title","lalala")})},beforeDestroy:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null)}},ct=at,lt=(n("aff7"),Object(y["a"])(ct,qe,je,!1,null,null,null));lt.options.__file="KlabSearch.vue";var ut=lt.exports,dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[n("div",{ref:"st-text",staticClass:"st-text",class:{"st-accentuate":e.accentuate,"st-placeholder":e.placeholderStyle},style:{left:(e.needMarquee<0?e.needMarquee:0)+"px","animation-duration":e.animationDuration+"s"}},[e._v("\n "+e._s(e.text)+"\n ")]),e.withEdge?n("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},ht=[];dt._withStripped=!0;var pt={name:"ScrollingText",props:{hoverActive:{type:Boolean,default:!1},initialText:{type:String,default:""},duration:{type:Number,default:10},accentuate:{type:Boolean,default:!1},edgeOpacity:{type:Number,default:1},withEdge:{type:Boolean,default:!0},placeholderStyle:{type:Boolean,default:!1}},data:function(){return{needMarquee:0,animationDuration:this.duration,text:this.initialText,edgeBgGradient:""}},computed:s()({},Object(a["c"])("view",["spinnerColor"])),methods:{isNeededMarquee:function(){var e=this.$refs["st-text"];return"undefined"===typeof e?0:e.offsetWidth-e.scrollWidth},changeText:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.needMarquee=0,e!==this.text&&(this.text=null===e?"":e,this.$nextTick(function(){null!==n&&(t.animationDuration=n),t.needMarquee=t.isNeededMarquee(t.ref)}))},getBGColor:function(e,t){return"rgba(".concat(e.rgb.r,",").concat(e.rgb.g,",").concat(e.rgb.b,", ").concat(t,")")},getEdgeGradient:function(){return"linear-gradient(to right,\n ".concat(this.getBGColor(this.spinnerColor,1)," 0,\n ").concat(this.getBGColor(this.spinnerColor,0)," 5%,\n ").concat(this.getBGColor(this.spinnerColor,0)," 95%,\n ").concat(this.getBGColor(this.spinnerColor,1)," 100%)")}},watch:{spinnerColor:function(){this.edgeBgGradient=this.getEdgeGradient()}},mounted:function(){var e=this;this.$nextTick(function(){e.needMarquee=e.isNeededMarquee(e.ref)}),this.edgeBgGradient=this.getEdgeGradient()}},ft=pt,mt=(n("2590"),Object(y["a"])(ft,dt,ht,!1,null,null,null));mt.options.__file="ScrollingText.vue";var gt=mt.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-btn",{staticClass:"mcm-menubutton absolute-top-right",attrs:{icon:e.interactiveMode?"mdi-play":"mdi-chevron-right",color:e.interactiveMode?"mc-main-light":"black",size:"sm",round:"",flat:""}},[e.isVisible?n("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[n("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),n("q-list",{attrs:{dense:""}},[n("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?n("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1):e._e()],1),n("q-item-separator"),e.hasContext?n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[n("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[n("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),n("div",[n("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),n("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[n("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return n("q-item",{key:t.id},[n("q-item-main",[n("div",{staticClass:"mcm-container mcm-context-label"},[n("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(n){e.closeAndCall(t.id)}}},[n("div",{staticClass:"klab-item klab-large-text",class:{"mcm-actual-context":t.id===e.contextId},style:{"font-style":e.contextTaskIsAlive(t.id)?"italic":"normal"},on:{mouseover:function(n){e.tooltipIt(n,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),n("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.needTooltip(t.id),expression:"needTooltip(context.id)"}],attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(t.label)+"\n ")])],1)]),n("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(n){e.copyContextES(n,t.spatialProjection+" "+t.encodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1)],1)])],1)}))],1)],1)])])]),e.hasContext?e._e():[n("q-item",[n("q-item-main",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[n("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),n("q-item-separator"),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[n("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"klab-version"},[e._v("Version: "+e._s(e.$store.state.data.packageVersion)+"/ Build "+e._s(e.$store.state.data.packageBuild))])])],2)],1):e._e()],1)},bt=[];vt._withStripped=!0;var yt=n("c1df"),_t=n.n(yt),Mt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sr-container",class:[e.light?"sr-light":"sr-dark","vertical"===e.orientation?"sr-vertical":""],style:{width:e.width},on:{click:function(t){e.scaleEditing=e.editable}}},[e.hasScale?n("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?n("div",{staticClass:"sr-locked klab-item mdi sr-icon",class:[e.isScaleLocked[e.scaleType]?"mdi-lock-outline":"mdi-lock-open-outline"],on:{click:function(t){t.preventDefault(),e.lockScale(t)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.isScaleLocked[e.scaleType]?e.$t("label.clickToUnlock"):e.$t("label.clickToLock")))])],1):e._e(),n("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[n("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),n("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),n("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?n("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),n("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):n("div",{staticClass:"sr-no-scalereference"},[n("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},wt=[];Mt._withStripped=!0;var Ct={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["B"].ST_SPACE,c["B"].ST_TIME].indexOf(e)},default:c["B"].ST_SPACE},useNext:{type:Boolean,default:!1},width:{type:String,default:"150px"},light:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},full:{type:Boolean,default:!1},orientation:{type:String,default:"horizontal"}},data:function(){return{SCALE_TYPE:c["B"]}},computed:s()({},Object(a["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["B"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["C"].find(function(t){return t.value===e.unit}).index:this.scaleObj.timeScale},hasScale:function(){return this.useNext?null!==this.nextScale:null!==this.scaleReference},timeLimits:function(){return 0===this.scaleObj.start&&0===this.scaleObj.end?"":"".concat(_t()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(_t()(this.scaleObj.end).format("L HH:mm:ss"))},scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleType})}}}),methods:s()({},Object(a["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["B"].ST_SPACE?c["G"].LOCK_SPACE:c["G"].LOCK_TIME,value:t},this.$store.state.data.session).body),this.setScaleLocked({scaleType:this.scaleType,scaleLocked:t}),t||this.$eventBus.$emit(c["h"].SEND_REGION_OF_INTEREST)}})},St=Ct,At=(n("cf611"),Object(y["a"])(St,Mt,wt,!1,null,null,null));At.options.__file="ScaleReference.vue";var Et=At.exports,Ot=n("2cee"),Lt=n("1442"),Tt={name:"MainControlMenu",mixins:[Ot["a"],ke],components:{ScaleReference:Et},data:function(){return{}},computed:s()({},Object(a["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(a["d"])("stomp",["subscriptions"]),Object(a["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(a["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(a["d"])("view",["saveLocation","saveDockedStatus"]),{saveLocationVar:{get:function(){return this.saveLocation},set:function(e){this.changeSaveLocation(e)}},saveDockedStatusVar:{get:function(){return this.saveDockedStatus},set:function(e){this.changeSaveDockedStatus(e)}},interactiveModeModel:{get:function(){return this.interactiveMode},set:function(e){this.setInteractiveMode(e)}},coordinates:{get:function(){return this.viewCoordinates},set:function(e){this.setViewCoordinates(e)}},isVisible:function(){return!this.isDrawMode&&!this.isScaleEditing}}),methods:s()({},Object(a["b"])("data",["setInteractiveMode"]),Object(a["b"])("view",["setDrawMode","setViewCoordinates"]),{startDraw:function(){this.setDrawMode(!this.isDrawMode)},toggleContextsHistory:function(){this.contextsHistory.length>0&&this.$refs["mcm-contexts-popover"].toggle()},closeAndCall:function(){var e=W()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.contextId!==t){e.next=2;break}return e.abrupt("return");case 2:this.closeMenuPopups(),this.clearTooltip(),this.loadOrReloadContext(t,this.closeMenuPopups());case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),formatContextTime:function(e){var t=e.lastUpdate;if(0===t&&(t=e.creationTime),t&&null!==t){var n=_t()(t),i=0===_t()().diff(n,"days");return i?n.format("HH:mm:ss"):n.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),V["a"].set(c["P"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(V["a"].set(c["P"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),V["a"].set(c["P"].COOKIE_MAPDEFAULT,{center:Lt["b"].center,zoom:Lt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?V["a"].set(c["P"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):V["a"].remove(c["P"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(Xe["b"])(t),this.$q.notify({message:Object(Xe["a"])(this.$t("messages.customCopyToClipboard",{what:this.$t("label.context")})),type:"info",icon:"mdi-information",timeout:500})},closeMenuPopups:function(){this.$refs["mcm-main-popover"]&&this.$refs["mcm-main-popover"].hide(),this.$refs["mcm-contexts-popover"]&&this.$refs["mcm-contexts-popover"].hide()},sendInteractiveModeState:function(e){this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].INTERACTIVE_MODE,value:e},this.session).body)},viewerClickListener:function(){this.isDrawMode||this.closeMenuPopups()},askTutorial:function(){this.$eventBus.$emit(c["h"].NEED_HELP),this.closeMenuPopups()}}),watch:{hasContext:function(){this.closeMenuPopups()},searchIsActive:function(e){e&&this.closeMenuPopups()},interactiveModeModel:function(e){this.sendInteractiveModeState(e)}},mounted:function(){this.$eventBus.$on(c["h"].VIEWER_CLICK,this.viewerClickListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLICK,this.viewerClickListener)}},xt=Tt,Rt=(n("6774"),Object(y["a"])(xt,vt,bt,!1,null,null,null));Rt.options.__file="MainControlMenu.vue";var kt=Rt.exports,zt={name:"KlabSearchBar",components:{KlabSpinner:M,KlabSearch:ut,ScrollingText:gt,MainControlMenu:kt},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:s()({},Object(a["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(a["c"])("view",["spinnerColor","searchIsActive","searchIsFocused","hasMainControl","statusTextsString","statusTextsLength","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{isDocked:function(){return!this.hasMainControl},mainContextLabel:function(){return this.contextLabel?this.contextLabel:this.contextCustomLabel}}),methods:s()({},Object(a["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["u"].LEFTMENU_MINSIZE,"px")},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},showSuggestions:function(e){1===e.targetTouches.length&&(e.preventDefault(),this.searchIsActive?this.searchIsFocused?this.$refs["klab-search"].searchEnd({noDelete:!1}):this.searchFocus({char:" ",focused:!0}):this.searchStart(" "))},emitSpinnerDoubleclick:function(){this.$eventBus.$emit(c["h"].SPINNER_DOUBLE_CLICK)},askForSuggestionsListener:function(e){this.showSuggestions(e)},busySearch:function(){this.searchAsked=!0,this.updateBusy()},updateBusy:function(){var e=this;null!==this.searchAskedInterval&&(clearTimeout(this.searchAskedInterval),this.searchAskedInterval=null),this.searchAsked&&(0===this.engineEventsCount?this.searchAskedInterval=setTimeout(function(){e.searchAsked=!1,e.busyInformed=!1,e.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:"BusySearch"})),this.busyInformed=!0))}}),watch:{statusTextsString:function(e){e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)&&(e=e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation"))),this.$refs["st-status-text"].changeText(e,5*this.statusTextsLength)},mainContextLabel:function(e){this.$refs["st-context-text"]&&this.$refs["st-context-text"].changeText(e)},hasContext:function(e){e&&this.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"KlabSearch"}))},engineEventsCount:function(){this.updateBusy()}},mounted:function(){this.$eventBus.$on(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener),this.updateBusy()},beforeDestroy:function(){this.$eventBus.$off(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener)}},Pt=zt,Nt=(n("19f2"),Object(y["a"])(Pt,De,Be,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var It=Nt.exports,Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.contextsCount>1?n("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,i){return n("span",{key:t.id,on:{click:function(n){e.load(t.contextId,i)}}},[e._v(e._s(t.label))])})):e._e()},Bt=[];Dt._withStripped=!0;var qt={name:"KlabBreadcrumbs",mixins:[ke],computed:s()({},Object(a["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:s()({},Object(a["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var n,i=this.$store.state.data.observations.find(function(t){return t.id===e});n=i||this.contextById(e),this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST(s()({contextId:n.id},n.contextId&&{parentContext:n.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},jt=qt,Wt=(n("6c8f"),Object(y["a"])(jt,Dt,Bt,!1,null,null,null));Wt.options.__file="KlabBreadcrumbs.vue";var Ft=Wt.exports,Ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"klab-tree-pane"}},[n("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[n("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?n("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[n("q-resize-observable",{on:{resize:e.outContainerResized}}),[n("klab-tree",{ref:"kt-user-tree",style:{"max-height":!!e.userTreeMaxHeight&&e.userTreeMaxHeight+"px"},attrs:{id:"kt-user-tree",tree:e.userTree,"is-user":!0},on:{resized:e.recalculateTreeHeight}})],n("details",{directives:[{name:"show",rawName:"v-show",value:e.mainTreeHasNodes(),expression:"mainTreeHasNodes()"}],attrs:{id:"kt-tree-details",open:e.taskOfContextIsAlive||e.mainTreeHasNodes(!0)||e.detailsOpen}},[n("summary",[n("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[n("q-tooltip",{attrs:{offset:[0,0],self:"top left",anchor:"bottom right"}},[e._v(e._s(e.detailsOpen?e.$t("tooltips.displayMainTree"):e.$t("tooltips.hideMainTree")))])],1)],1),n("klab-tree",{ref:"kt-tree",style:{"max-height":!!e.treeHeight&&e.treeHeight+"px"},attrs:{id:"kt-tree",tree:e.tree,"is-user":!1},on:{resized:e.recalculateTreeHeight}})],1)],2):e.hasContext?n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),n("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?n("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Xt=[];Ht._withStripped=!0;n("5df2");var Ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?n("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-left",icon:"mdi-arrow-left"},nativeOn:{click:function(t){e.percent=0}}}),n("q-btn",{staticClass:"no-padding splitter-actions rotate-90",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-middle",icon:"mdi-format-align-middle"},nativeOn:{click:function(t){e.percent=50}}}),n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-right",icon:"mdi-arrow-right"},nativeOn:{click:function(t){e.percent=100}}})],n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-close",icon:"mdi-close"},nativeOn:{click:function(t){e.$emit("close-info")}}})],2):e._e(),n("div",e._g({staticClass:"vue-splitter",style:{cursor:e.cursor,flexDirection:e.flexDirection}},e.onlyOpenClose?{}:{mouseup:e.onUp,mousemove:e.onMouseMove,touchmove:e.onMove,touchend:e.onUp}),[n("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():n("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),n("div",{staticClass:"right-pane splitter-pane",style:e.rightPaneStyle},[e._t("right-pane")],2)]],2)])},Vt=[];Ut._withStripped=!0;var Gt={props:{margin:{type:Number,default:10},horizontal:{type:Boolean,default:!1},hidden:{type:String,default:""},splitterColor:{type:String,default:"rgba(0, 0, 0, 0.2)"},controlsColor:{type:String,default:"rgba(192, 192, 192)"},splitterSize:{type:Number,default:3},controllers:{type:Boolean,default:!0},onlyOpenClose:{type:Boolean,default:!0}},data:function(){return{active:!1,percent:"left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50,hasMoved:!1}},computed:{flexDirection:function(){return this.horizontal?"column":"row"},splitterStyle:function(){return this.horizontal?{height:"".concat(this.splitterSize,"px"),cursor:"ns-resize","background-color":this.splitterColor}:{width:"".concat(this.splitterSize,"px"),cursor:"ew-resize","background-color":this.splitterColor}},leftPaneStyle:function(){return this.horizontal?{height:"".concat(this.percent,"%")}:{width:"".concat(this.percent,"%")}},rightPaneStyle:function(){return this.horizontal?{height:"".concat(100-this.percent,"%")}:{width:"".concat(100-this.percent,"%")}},cursor:function(){return this.active?this.horizontal?"ns-resize":"ew-resize":""}},methods:{onDown:function(){this.active=!0,this.hasMoved=!1},onUp:function(){this.active=!1},onMove:function(e){var t=0,n=e.currentTarget,i=0;if(this.active){if(this.horizontal){while(n)t+=n.offsetTop,n=n.offsetParent;i=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(n)t+=n.offsetLeft,n=n.offsetParent;i=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}i>this.margin&&i<100-this.margin&&(this.percent=i),this.$emit("splitterresize"),this.hasMoved=!0}},onMouseMove:function(e){0!==e.buttons&&0!==e.which||(this.active=!1),this.onMove(e)}},watch:{hidden:function(){this.percent="left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50}}},Kt=Gt,$t=(n("1848"),Object(y["a"])(Kt,Ut,Vt,!1,null,null,null));$t.options.__file="KlabSplitter.vue";var Yt=$t.exports,Jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kt-container relative-position klab-menu-component",class:{"kt-drag-enter":e.dragEnter>0&&!e.dragStart},on:{dragenter:e.onDragEnter,dragover:e.onDragOver,dragleave:e.onDragLeave,drop:e.onDrop}},[n("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[n("klab-q-tree",{ref:"klab-tree",attrs:{nodes:e.tree,"node-key":"id",ticked:e.ticked,selected:e.selected,expanded:e.expanded,"tick-strategy":"strict","text-color":"white","control-color":"white",color:"white",dark:!0,noNodesLabel:e.$t("label.noNodes"),"double-click-function":e.doubleClick,filter:e.isUser?"user":"tree",filterMethod:e.filterUser,noFilteredResultLabel:e.isUser?e.taskOfContextIsAlive?e.$t("messages.treeNoResultUserWaiting"):e.$t("messages.treeNoResultUser"):e.$t("messages.treeNoResultNoUser")},on:{"update:ticked":function(t){e.ticked=t},"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},click:function(t){e.$refs["observations-context"].close()}},scopedSlots:e._u([{key:"header-default",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":"",e.hasObservationInfo&&e.observationInfo.id===t.node.id?"node-selected":"",null!==e.cleanTopLayerId&&e.cleanTopLayerId===t.node.id?"node-on-top":"",e.checkObservationsOnTop(t.node.id)?"node-on-top":"",e.isUser?"node-user-element":"node-tree-element",t.node.needUpdate?"node-updatable":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?n("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?n("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):n("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.clearObservable(t.node.observable)))])],1),t.node.childrenCount>0||t.node.children.length>0?[n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])]:e._e(),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.$t("tooltips.uploadData")))])],1),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e()],2)}},{key:"header-folder",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e(),n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])],2)}},{key:"header-stub",fn:function(t){return n("div",{staticClass:"node-stub"},[n("span",{staticClass:"node-element node-stub"},[n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-checkbox-blank-circle"}}),e._v(e._s(e.$t("messages.loadingChildren"))+"\n ")],1)])}}])},[e._v("\n >\n ")])],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;n("f559"),n("6b54"),n("b54a");var Zt=n("e4f9"),en=n("bffd"),tn=n("b70a"),nn=n("525b"),on={name:"KlabQTree",extends:Zt["a"],props:{doubleClickTimeout:{type:Number,default:300},doubleClickFunction:{type:Function,default:null},noFilteredResultLabel:{type:String,default:null},checkClick:{type:Boolean,default:!0}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[],timeouts:[]}},methods:{__blur:function(){document.activeElement&&document.activeElement.blur()},__getNode:function(e,t){var n=this,i=t[this.nodeKey],o=this.meta[i],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],s=o.isParent?this.__getChildren(e,t.children):[],a=s.length>0||o.lazy&&"loaded"!==o.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],l=r||c?this.__getSlotScope(t,o,i):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(l)])])),e("div",{key:i,staticClass:"q-tree-node",class:{"q-tree-node-parent":a,"q-tree-node-child":!a}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":o.link,"q-tree-node-selected":o.selected,disabled:o.disabled},on:{click:function(e){n.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&n.__onClick(t,o):n.__onClick(t,o)}}},["loading"===o.lazy?e(tn["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):a?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":o.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){n.__onExpandClick(t,o,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[o.hasTicking&&!o.noTick?e(nn["a"],{staticClass:"q-mr-xs",props:{value:o.indeterminate?null:o.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!o.tickable},on:{input:function(e){n.__onTickedClick(t,o,e)}}}):null,r?r(l):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),a?e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:o.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:o.disabled}},s)])]):c])},__onClick:function(e,t){var n=this;null===this.doubleClickFunction?this.__onClickDefault(e,t):"undefined"===typeof this.timeouts["id".concat(e.id)]||null===this.timeouts["id".concat(e.id)]?this.timeouts["id".concat(e.id)]=setTimeout(function(){n.timeouts["id".concat(e.id)]=null,n.__onClickDefault(e,t)},this.doubleClickTimeout):(clearTimeout(this.timeouts["id".concat(e.id)]),this.timeouts["id".concat(e.id)]=null,this.doubleClickFunction(e,t))},__onClickDefault:function(e,t){this.__blur(),this.hasSelection?t.selectable&&this.$emit("update:selected",t.key!==this.selected?t.key:null):this.__onExpandClick(e,t),"function"===typeof e.handler&&e.handler(e)}},render:function(e){var t=this.__getChildren(e,this.nodes),n=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===n?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==n&&this.classes.splice(n,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},rn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[n("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,i){return t.enabled?[t.separator&&0!==i?n("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?n("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(n){e.askForAction(t.actionId)}}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():n("q-item",{key:t.actionId,attrs:{disabled:""}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},sn=[];rn._withStripped=!0;var an={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:s()({},Object(a["b"])("data",["setContext","loadContext","setContextMenuObservationId"]),{initContextMenu:function(){var e=this,t=this.$store.state.data.observations.find(function(t){return t.id===e.observationId});t?(this.resetContextMenu(!1),t&&t.actions&&t.actions.length>1?(this.itemActions=t.actions.slice(),this.itemObservation=t):this.resetContextMenu(),t.observationType!==c["y"].TYPE_STATE&&t.observationType!==c["y"].TYPE_GROUP&&(this.itemActions.push(c["z"].SEPARATOR_ITEM),this.itemActions.push(c["z"].RECONTEXTUALIZATION_ITEM),this.itemObservation=t),this.itemActions&&this.itemActions.length>0?this.enableContextMenu=this.itemActions&&this.itemActions.length>0:this.enableContextMenu=!1):this.resetContextMenu()},resetContextMenu:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.itemActions=[],this.itemObservation=null,e&&(this.enableContextMenu=!1)},hide:function(e){this.resetContextMenu(),this.$emit("hide",e)},askForAction:function(e){if(null!==this.itemObservation)switch(console.debug("Will ask for ".concat(e," of observation ").concat(this.itemObservation.id)),e){case"Recontextualization":this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST({contextId:this.itemObservation.id,parentContext:this.itemObservation.contextId},this.$store.state.data.session).body),this.loadContext(this.itemObservation.id);break;case"AddToCache":console.log("Ask for Add to cache, no action for now");break;default:break}this.enableContextMenu=!1}}),watch:{observationId:function(){null!==this.observationId?this.initContextMenu():this.resetContextMenu()}},mounted:function(){null!==this.observationId&&this.initContextMenu()}},cn=an,ln=(n("ad0b"),Object(y["a"])(cn,rn,sn,!1,null,null,null));ln.options.__file="ObservationContextMenu.vue";var un=ln.exports,dn=null,hn={name:"klabTree",components:{KlabQTree:on,ObservationContextMenu:un},props:{isUser:{type:Boolean,required:!0},tree:{type:Array,required:!0}},data:function(){return{ticked:[],selected:null,expanded:[],itemObservationId:null,askingForChildren:!1,scrollElement:null,showPopover:null,dragStart:!1,dragEnter:0,watchedObservation:[],contextMenuObservationId:null,OBSERVATION_CONSTANTS:c["y"]}},computed:s()({},Object(a["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(a["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(a["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(a["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:s()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:Xe["b"]},Object(a["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(a["b"])("view",["setSpinner","setMainDataViewer"]),{filterUser:function(e,t){return e.userNode?"user"===t:"tree"===t},rightClickHandler:function(e){e.preventDefault();var t=null;if(e.target.className.includes("node-element"))t=e.target;else{var n=e.target.getElementsByClassName("node-element");if(1===n.length){var i=Fe()(n,1);t=i[0]}}this.contextMenuObservationId=null!==t?t.id.substring(5):null},clearObservable:function(e){return 0===e.indexOf("(")&&e.lastIndexOf(")")===e.length-1?e.substring(1,e.length-1):e},askForOutputFormat:function(e,t,n){var i=this;null!==n&&n.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:n[0].value,items:n},cancel:!0,preventClose:!1,color:"info"}).then(function(e){i.askDownload(t,e,n)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,n,i){if("undefined"===typeof i){var o="";if(-1!==this.timestamp){var r=new Date(this.timestamp);o="_".concat(r.getFullYear()).concat(r.getMonth()<9?"0":"").concat(r.getMonth()+1).concat(r.getDate()<10?"0":"").concat(r.getDate(),"_").concat(r.getHours()<10?"0":"").concat(r.getHours()).concat(r.getMinutes()<10?"0":"").concat(r.getMinutes()).concat(r.getSeconds()<10?"0":"").concat(r.getSeconds())}i="".concat(e).concat(o)}var s=n.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",i,s,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,n=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],n)},doubleClick:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isContainer){e.next=4;break}null!==t.viewerIdx&&this.setMainDataViewer({viewerIdx:t.viewerIdx,visible:t.visible}),e.next=14;break;case 4:if(t.observationType!==c["y"].TYPE_STATE){e.next=8;break}this.fitMap(t,n),e.next=14;break;case 8:if(i=this.observations.find(function(e){return e.id===t.id}),!i||null===i){e.next=14;break}return e.next=12,Object(Ue["j"])(i);case 12:o=e.sent,this.fitMap(t,n,o);case 14:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),fitMap:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:n}),e&&t&&t.ticked&&this.setVisibility({node:e,visible:!0})},updateFolderListener:function(e){if(e&&e.folderId){var t=Object(Ue["f"])(this.tree,e.folderId);t&&null!==t&&(e.visible?this.$refs["klab-tree"].setTicked(t.children.map(function(e){return e.id}),!0):this.$refs["klab-tree"].setTicked(this.ticked.filter(function(e){return-1===t.children.findIndex(function(t){return t.id===e})}),!1))}},selectElementListener:function(e){var t=this,n=e.id,i=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,n);e&&(t.setVisibility({node:e,visible:i}),i?t.ticked.push(n):t.ticked.splice(t.ticked.findIndex(function(e){return e===n}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=dn&&(clearTimeout(this.scrollToTimeout),dn=null),this.$nextTick(function(){dn=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.reduce(function(e,t){return e+t.toString().length},0),i=""!==t?" + ".concat(t):"";return"calc(".concat(n,"ch").concat(i,")")},onDragStart:function(e,t){e.dataTransfer.setData("id",t),this.dragStart=!0},onDragEnd:function(){this.dragStart=!1},onDragEnter:function(e){e.preventDefault(),this.dragStart||(this.dragEnter+=1)},onDragLeave:function(e){e.preventDefault(),this.dragStart||(this.dragEnter-=1)},onDragOver:function(e){e.preventDefault()},onDrop:function(e){if(e.preventDefault(),this.dragEnter>0){var t=e.dataTransfer.getData("id");t&&""!==t?this.changeTreeOfNode({id:t,isUserTree:this.isUser}):console.warn("Strange dropped node ".concat(e.dataTransfer.getData("id")))}else console.debug("Self dropped");this.dragStart=!1,this.dragEnter=0}}),watch:{tree:function(){this.treeSizeChangeListener()},treeSelected:function(e){e!==this.selected&&(this.selected=e)},expanded:function(e,t){if(this.$store.state.view.treeExpanded=e,t.length!==e.length){if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0],i=Object(Ue["f"])(this.tree,n);return this.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:n,rootContextId:i.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===n}),1),void console.info("Stop watching observation ".concat(n," with rootContextId ").concat(i.rootContextId))}var o=e[e.length-1],r=Object(Ue["f"])(this.tree,o);r&&(this.sendStompMessage(l["a"].WATCH_REQUEST({active:!0,observationId:o,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:o,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(o," with rootContextId ").concat(r.rootContextId)),r.children.length>0&&r.children[0].id.startsWith("STUB")&&(r.children.splice(0,1),r.children.length0?(this.addChildrenToTree({parent:r}),this.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:r.id,visible:"undefined"!==typeof r.ticked&&r.ticked})):0===r.children.length&&this.askForChildren({parentId:r.id,offset:0,count:this.childrenToAskFor,total:r.childrenCount,visible:"undefined"!==typeof r.ticked&&(!!r.isContainer&&r.ticked)})))}},selected:function(e){null!==e?0===e.indexOf("ff_")?this.selected=null:this.selectNode(e):this.selectNode(null)},ticked:function(e,t){var n=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var i=t.filter(function(t){return e.indexOf(t)<0})[0];if(i.startsWith("STUB"))return;var o=Object(Ue["f"])(this.tree,i);o&&(this.setVisibility({node:o,visible:!1}),o.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===o.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var s=Object(Ue["f"])(this.tree,r);if(null!==s)if(s.isContainer){var a=function(){var e;n.setVisibility({node:s,visible:!0}),(e=n.ticked).push.apply(e,q()(s.children.filter(function(e){return e.parentArtifactId===s.id}).map(function(e){return e.id})))};this.askingForChildren||(s.childrenLoaded We are asking for tree now, this call is not need so exit");if(0===e.lasts.length)return t.preventDefault(),void console.debug("KlabTree -> There aren't incompleted folders, exit");var n=e.scrollElement.getBoundingClientRect(),i=n.bottom;e.lasts.forEach(function(t){var n=document.getElementById("node-".concat(t.observationId));if(null!==n){var o=n.getBoundingClientRect();if(0!==o.bottom&&o.bottom Asked for them"),e.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:t.folderId,visible:"undefined"!==typeof r.ticked&&r.ticked})})}}})}),this.$eventBus.$on(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$on(c["h"].SELECT_ELEMENT,this.selectElementListener),this.selected=this.treeSelected,this.ticked=this.treeTicked,this.expanded=this.treeExpanded},beforeDestroy:function(){var e=this;this.$eventBus.$off(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$off(c["h"].SELECT_ELEMENT,this.selectElementListener),this.watchedObservation.length>0&&this.watchedObservation.forEach(function(t){e.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:t.observationId,rootContextId:t.rootContextId},e.$store.state.data.session).body),console.info("Stop watching observation ".concat(t.observationId," with rootContextId ").concat(t.rootContextId))})}},pn=hn,fn=(n("5b35"),Object(y["a"])(pn,Jt,Qt,!1,null,null,null));fn.options.__file="KlabTree.vue";var mn=fn.exports,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[n("div",{attrs:{id:"oi-controls"}},[n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[n("q-checkbox",{attrs:{"keep-color":!0,color:"mc-yellow",readonly:1===e.observationInfo.valueCount||e.observationInfo.empty,disabled:1===e.observationInfo.valueCount||e.observationInfo.empty},nativeOn:{click:function(t){return e.showNode(t)}},model:{value:e.layerShow,callback:function(t){e.layerShow=t},expression:"layerShow"}})],1),n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[n("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?n("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[n("q-slider",{attrs:{min:0,max:1,step:.1,decimals:1,color:"mc-yellow",label:!1},model:{value:e.observationInfo.layerOpacity,callback:function(t){e.$set(e.observationInfo,"layerOpacity",t)},expression:"observationInfo.layerOpacity"}})],1):e._e()]),n("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[n("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[n("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,i){return n("div",{key:i,attrs:{id:"oi-metadata"}},[n("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(i))]),n("div",{staticClass:"oi-metadata-value",on:{dblclick:function(n){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasMapInfo,expression:"hasMapInfo"}],attrs:{id:"oi-mapinfo-container"},on:{mouseenter:function(t){e.setInfoShowed({index:0,categories:[],values:[e.mapSelection.value]})},mouseleave:function(t){e.setInfoShowed(null)}}},[n("div",{attrs:{id:"oi-mapinfo-map"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),n("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},vn=[];gn._withStripped=!0;var bn=n("e00b"),yn=n("5eee"),_n=n("a2c7"),Mn={name:"ObservationInfo",components:{HistogramViewer:bn["a"]},mixins:[Ot["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:s()({},Object(a["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["N"].VIEW_MAP.component},hasMapInfo:function(){return this.exploreMode&&null!==this.mapSelection.pixelSelected&&this.mapSelection.layerSelected.get("id").startsWith("cl_".concat(this.observationInfo.id))}}),methods:{copyToClipboard:function(e){Object(Xe["b"])(e),this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})},getContainerClasses:function(){var e=[];return null!==this.observationInfo.dataSummary&&e.push("k-with-histogram"),e},showNode:function(){this.$emit(c["h"].SHOW_NODE,{nodeId:this.observationInfo.id,state:this.layerShow})},viewerClosedListener:function(e){var t=e.idx;t===this.observationInfo.viewerIdx&&(this.layerShow=!1)},setInfoShowed:function(e){this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,e)}},watch:{mapSelection:function(){var e=this;if(null!==this.mapSelection.layerSelected){var t=this.infoMap.getLayers().getArray();null!==this.mapSelection.pixelSelected?(t.length>1&&this.infoMap.removeLayer(t[1]),this.infoMap.addLayer(this.mapSelection.layerSelected),this.infoMap.getView().setCenter(this.mapSelection.pixelSelected),this.infoMap.getView().setZoom(14),this.$nextTick(function(){e.infoMap.updateSize()}),this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,{index:0,categories:[],values:[this.mapSelection.value]})):t.length>1&&this.infoMap.removeLayer(t[1])}}},mounted:function(){this.scrollBar=new be(document.getElementById("oi-scroll-container")),this.infoMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[Lt["c"].EMPTY_LAYER],controls:[],interactions:[]}),this.layerShow=this.observationInfo.visible,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},wn=Mn,Cn=(n("db0a"),Object(y["a"])(wn,gn,vn,!1,null,null,null));Cn.options.__file="ObservationInfo.vue";var Sn=Cn.exports,An=G["b"].height,En={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:mn,ObservationInfo:Sn},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:s()({},Object(a["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(a["c"])("stomp",["taskOfContextIsAlive"]),Object(a["c"])("view",["hasObservationInfo","isDocked"])),methods:s()({},Object(a["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,n=e.state,i=this.treeNode(t);i&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:n}),i.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:n}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=An(document.getElementById("dmc-tree"))+24:this.$refs["kt-out-container"]&&(this.outContainerHeight=Number.parseFloat(window.getComputedStyle(this.$refs["kt-out-container"],null).getPropertyValue("max-height"))),this.recalculateTreeHeight()},recalculateTreeHeight:function(){var e=this;this.$nextTick(function(){e.userTreeMaxHeight=e.mainTreeHasNodes()?e.outContainerHeight/2:e.outContainerHeight;var t=document.getElementById("kt-user-tree");t&&e.outContainerHeight&&(e.userTreeHeight=An(t),e.treeHeight=e.outContainerHeight-e.userTreeHeight)})},initTree:function(){var e=this;this.hasTree&&this.$nextTick(function(){e.outContainerResized(),document.getElementById("kt-tree-details").addEventListener("toggle",function(t){e.detailsOpen=t.srcElement.open,e.recalculateTreeHeight()})})}}),watch:{userTree:function(){this.recalculateTreeHeight()},tree:function(){this.recalculateTreeHeight()},hasTree:function(){this.initTree()},taskOfContextIsAlive:function(){this.detailsOpen=this.taskOfContextIsAlive}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_NODE,this.showNodeListener),window.addEventListener("resize",this.outContainerResized),this.initTree()},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NODE,this.showNodeListener),window.removeEventListener("resize",this.outContainerResized)}},On=En,Ln=(n("a663"),Object(y["a"])(On,Ht,Xt,!1,null,null,null));Ln.options.__file="KlabTreePane.vue";var Tn=Ln.exports,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[n("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[n("q-icon",{class:{"cursor-pointer":e.timestamp0},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.onClick(t,function(){e.changeTimestamp(e.scaleReference.start)})},dblclick:function(t){e.onDblClick(t,function(){e.changeTimestamp(-1)})}}},[-1===e.timestamp?n("q-icon",{staticClass:"ot-time-origin",class:{"ot-time-origin-loaded":e.timeEvents.length},attrs:{name:"mdi-circle-medium",color:"mc-main"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),n("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ot-timeline",staticClass:"ot-timeline",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible},on:{mousemove:e.moveOnTimeline,mouseenter:function(t){e.timelineActivated=!0},mouseleave:function(t){e.timelineActivated=!1},click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return n("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[n("div",{staticClass:"ot-modification"})])}),n("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?n("div",{staticClass:"ot-actual-time",style:{left:"calc("+e.calculatePosition(e.visibleTimestamp)+"px + "+(e.timestamp===e.scaleReference.end?"0":"1")+"px)"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{staticClass:"ot-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)]),n("div",{staticClass:"ot-date-container"},[n("div",{staticClass:"ot-date ot-date-end col",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible,"ot-date-loaded":e.engineTimestamp===e.scaleReference.end},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.changeTimestamp(e.scaleReference.end)}}},[0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?n("observation-time"):e._e()],1)},Rn=[];xn._withStripped=!0;var kn=n("b8c1"),zn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.timeEvents.length>0?n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"otv-now",class:{"otv-novisible":-1===e.timestamp,"otv-docked":e.isMainControlDocked,"otv-running":e.isTimeRunning},domProps:{innerHTML:e._s(e.formattedTimestamp)}})]):e._e()},Pn=[];zn._withStripped=!0;var Nn={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:s()({},Object(a["c"])("data",["timestamp","timeEvents"]),Object(a["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=_t()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},In=Nn,Dn=(n("8622"),Object(y["a"])(In,zn,Pn,!1,null,null,null));Dn.options.__file="ObservationTime.vue";var Bn=Dn.exports,qn={name:"ObservationsTimeline",components:{ObservationTime:Bn},mixins:[kn["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(Ce["a"])(function(t){e.timelineActivated&&(e.timelineDate=e.formatDate(e.getDateFromPosition(t)))},300),timelineDate:null,timelineContainer:void 0,timelineLeft:void 0,visibleTimestamp:-1,playTimer:null,interval:void 0,speedMultiplier:1,selectSpeed:!1,pressTimer:null,longPress:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(a["c"])("stomp",["tasks"]),Object(a["c"])("view",["isMainControlDocked"]),{startDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.start,!0):""},endDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.end,!0):""},isVisible:function(){return this.visibleEvents.length>0}}),methods:s()({},Object(a["b"])("data",["setTimestamp","setModificationsTask"]),Object(a["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var i=_t()(e);return t?i.format("DD MMM YYYY"):'
'.concat(i.format("L")).concat(n?" - ":"
").concat(i.format("HH:mm:ss:SSS"),"
")},calculatePosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=Math.floor((e-this.scaleReference.start)*this.timelineContainer.clientWidth/(this.scaleReference.end-this.scaleReference.start));return t},moveOnTimeline:function(e){this.moveOnTimelineFunction(e)},getDateFromPosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=this.timelineContainer.clientWidth,n=e.clientX-this.timelineContainer.getBoundingClientRect().left,i=this.scaleReference.start+n*(this.scaleReference.end-this.scaleReference.start)/t;return i>this.scaleReference.end?i=this.scaleReference.end:ithis.scaleReference.end?(this.visibleTimestamp=this.scaleReference.end,this.setTimestamp(this.scaleReference.end)):(this.visibleTimestamp=e,this.setTimestamp(e)))},stop:function(){clearInterval(this.playTimer),this.playTimer=null},run:function(){var e=this;if(null!==this.playTimer)this.stop();else{this.interval||this.calculateInterval(),-1===this.timestamp&&this.changeTimestamp(this.scaleReference.start);var t={start:this.timestamp,stop:this.timestamp+this.interval.buffer};this.playTimer=setInterval(function(){e.changeTimestamp(Math.floor(e.timestamp+e.interval.step)),e.$nextTick(function(){e.timestamp>=e.scaleReference.end?e.stop():e.timestamp>t.stop-e.interval.step&&e.timestamp<=e.scaleReference.end&&(t={start:e.timestamp,stop:e.timestamp+e.interval.buffer},e.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t))})},this.interval.interval),this.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t)}},calculateInterval:function(){if(this.scaleReference&&this.schedulingResolution){var e=1,t=this.calculatePosition(this.scaleReference.start+this.schedulingResolution);t>1&&(e=t);var n=(this.schedulingResolution||c["L"].DEFAULT_STEP)/e,i=(this.scaleReference.end-this.scaleReference.start)/n,o=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,s=o/e;s*ic["L"].MAX_PLAY_TIME&&(s=c["L"].MAX_PLAY_TIME/i),s/=this.speedMultiplier,this.interval={step:n,steps:i,interval:s,buffer:r,multiplier:this.speedMultiplier},console.info("Step: ".concat(this.interval.step,"; Steps: ").concat(this.interval.steps,"; Interval: ").concat(this.interval.interval,"; Buffer: ").concat(this.interval.buffer))}},startPress:function(){var e=this;this.longPress=!1,this.pressTimer?(clearInterval(this.pressTimer),this.pressTimer=null):this.pressTimer=setTimeout(function(){e.selectSpeed=!0,e.longPress=!0},600)},stopPress:function(){clearInterval(this.pressTimer),this.pressTimer=null,!this.longPress&&this.timestamp0&&this.modificationsTask){var n=e.find(function(e){return e.id===t.modificationsTask.id});n&&!n.alive&&this.setModificationsTask(null)}},visibleEvents:function(){0===this.visibleEvents.length&&null!==this.playTimer&&this.stop()},timestamp:function(e,t){!this.isMainControlDocked||-1!==e&&-1!==t||(this.timelineContainer=void 0)},playTimer:function(){this.setTimeRunning(null!==this.playTimer)}},mounted:function(){this.timelineDate=this.startTime,this.visibleTimestamp=this.timestamp,_t.a.locale(window.navigator.userLanguage||window.navigator.language),this.$eventBus.$on(c["h"].NEW_SCHEDULING,this.calculateInterval)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEW_SCHEDULING,this.calculateInterval)},destroyed:function(){this.stop()}},jn=qn,Wn=(n("31da"),Object(y["a"])(jn,xn,Rn,!1,null,null,null));Wn.options.__file="ObservationsTimeline.vue";var Fn,Hn=Wn.exports,Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[n("div",{staticClass:"klp-level-selector"},[n("ul",e._l(e.LOG_ICONS,function(t,i,o){return n("li",{key:o,class:{"klp-selected":e.hasLevel(i)}},[n("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(i)}}},[n("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),n("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,i){return n("q-item",{key:i,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[n("q-item-main",{staticClass:"klp-separator"},[n("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[n("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Un=[];Xn._withStripped=!0;var Vn=(Fn={},p()(Fn,T["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),p()(Fn,T["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),p()(Fn,T["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),p()(Fn,T["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),p()(Fn,T["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),Fn),Gn={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vn}},computed:s()({},Object(a["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:s()({},Object(a["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===T["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=_t()(e.payload.timestamp)),"".concat(t.format("HH:mm:ss"),": ").concat(this.$t("engineEventLabels.evt".concat(e.payload.type))," ").concat(e.payload.started?"started":"stopped")}return"".concat(e.time?e.time.format("HH:mm:ss"):this.$t("messages.noTime"),": ").concat(e.payload)}return this.$t("label.klabNoMessage")},logColorAndIcon:function(e){var t=Vn[e.type];return t?Vn[e.type]:(console.warn("Log type: ".concat(e.type),e),Vn.Error)},isSeparator:function(e){return e&&e.payload&&e.payload.separator},hasLevel:function(e){return-1!==this.levels.indexOf(e)}}),mounted:function(){this.scrollBar=new be(document.getElementById("klab-log-pane"))}},Kn=Gn,$n=(n("f58f"),Object(y["a"])(Kn,Xn,Un,!1,null,null,null));$n.options.__file="KlabLogPane.vue";var Yn=$n.exports,Jn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sb-scales"},[e.hasNextScale()?n("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[n("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[n("q-tooltip",{attrs:{delay:600,anchor:e.anchorType,self:e.selfType,offset:e.offsets}},[e._v(e._s(e.$t("tooltips.refreshScale")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showSpaceScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("space",!0)},mouseleave:function(t){e.toggleScalePopup("space",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_SPACE}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showSpaceScalePopup,callback:function(t){e.showSpaceScalePopup=t},expression:"showSpaceScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[n("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space","use-next":!0,light:!0,editable:!1}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showTimeScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("time",!0)},mouseleave:function(t){e.toggleScalePopup("time",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_TIME}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showTimeScalePopup,callback:function(t){e.showTimeScalePopup=t},expression:"showTimeScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[n("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qn=[];Jn._withStripped=!0;var Zn={name:"ScaleButtons",components:{ScaleReference:Et},props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:8},scaleWidth:{type:String,default:"140px"},timeWidth:{type:String,default:void 0},spaceWidth:{type:String,default:void 0}},data:function(){return{showSpaceScalePopup:!1,showTimeScalePopup:!1,anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],SCALE_TYPE:c["B"]}},computed:s()({},Object(a["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,n=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:n})}}}),methods:{toggleScalePopup:function(e,t){"space"===e?(this.showSpaceScalePopup=t,this.showTimeScalePopup=!1):"time"===e&&(this.showSpaceScalePopup=!1,this.showTimeScalePopup=t)},rescaleContext:function(){this.hasNextScale()&&this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["B"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["B"].ST_TIME)&&{timeResolutionMultiplier:this.nextScale.timeResolutionMultiplier,timeUnit:this.nextScale.timeUnit,start:this.nextScale.start,end:this.nextScale.end}),this.$store.state.data.session).body)},noTimeScaleChange:function(){this.$q.notify({message:this.$t("messages.availableInFuture"),type:"info",icon:"mdi-information",timeout:1e3})}}},ei=Zn,ti=(n("1817"),Object(y["a"])(ei,Jn,Qn,!1,null,null,null));ti.options.__file="ScaleButtons.vue";var ni=ti.exports,ii=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kvs-container"},[n("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[n("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():n("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?n("span",{staticClass:"klab-button-notification"}):e._e()]),n("q-tooltip",{attrs:{offset:[8,0],self:e.selfTooltipType,anchor:e.anchorTooltipType,delay:600}},[e._v(e._s(0===e.knowledgeViews.length?e.$t("tooltips.noKnowledgeViews"):e.$t("tooltips.knowledgeViews")))])],1),n("q-popover",{staticClass:"kvs-popover",attrs:{disable:0===e.knowledgeViews.length,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.kvListOpen,callback:function(t){e.kvListOpen=t},expression:"kvListOpen"}},[n("div",{staticClass:"kvs-popover-container"},[n("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return n("q-item",{key:t.viewId,nativeOn:{click:function(n){e.selectKnowledgeView(t.viewId)}}},[n("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),n("q-item-main",[n("div",[e._v(e._s(t.label))])]),n("q-tooltip",{ref:"kv-tooltip-"+t.viewId,refInFor:!0,attrs:{offset:[8,0],self:"center left",anchor:"center right"}},[e._v(e._s(t.title))])],1)}))],1)])],1)},oi=[];ii._withStripped=!0;var ri={name:"KnoledgeViewsSelector",props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:0}},data:function(){return{anchorTooltipType:this.docked?"bottom left":"center right",selfTooltipType:this.docked?"top left":"center left",offsetTooltip:this.docked?[0,this.offset]:[this.offset,0],anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],kvListOpen:!1,hasNew:!1,KNOWLEDGE_VIEWS:c["t"]}},computed:s()({},Object(a["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:s()({},Object(a["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var n=t.$refs["kv-tooltip-".concat(e)];n&&n.length>0&&n[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},si=ri,ai=(n("0e44"),Object(y["a"])(si,ii,oi,!1,null,null,null));ai.options.__file="KnowledgeViewsSelector.vue";var ci=ai.exports,li=G["b"].width,ui=G["b"].height,di={top:25,left:15},hi={name:"klabMainControl",components:{KlabSpinner:M,KlabSearchBar:It,KlabBreadcrumbs:Ft,KlabTreePane:Tn,KlabLogPane:Yn,ScrollingText:gt,ScaleButtons:ni,MainActionsButtons:Te,StopActionsButtons:Ie,ObservationsTimeline:Hn,KnowledgeViewsSelector:ci},directives:{Draggable:U},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(Ce["a"])(function(t,n,i){e.onDebouncedPositionChanged(i)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:di.left,defaultTop:di.top,centeredLeft:di.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["u"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["t"]}},computed:s()({},Object(a["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","searchIsFocused","searchIsActive","isDrawMode","fuzzyMode","largeMode","windowSide","layout","hasHeader"]),{qCardStyle:function(){return{top:"".concat(this.defaultTop+this.correctedPosition.top,"px"),left:"".concat(this.centeredLeft+this.correctedPosition.left,"px"),"margin-top":"-".concat(this.correctedPosition.top,"px"),"margin-left":"-".concat(this.correctedPosition.left,"px")}}}),methods:s()({},Object(a["b"])("view",["setMainViewer","setLargeMode","searchStart","searchFocus","setWindowSide","setObservationInfo"]),{callStartType:function(e){this.searchIsFocused?e.evt.stopPropagation():this.$refs["klab-search-bar"].startType(e)},onDebouncedPositionChanged:function(e){this.askForDocking=!!(this.hasContext&&this.dragging&&null===this.layout&&e&&e.x<=30+this.correctedPosition.left)},hide:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!0},show:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!1},getRightLeft:function(){var e=li(this.boundingElement);return e-this.draggableElement.offsetWidth-di.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,n=li(this.boundingElement);e=(n-t)/2}return e+this.correctedPosition.left},changeDraggablePosition:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(e.top+=this.correctedPosition.top,e.left+=this.correctedPosition.left),this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var n=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));n.startDragPosition=e,n.currentDragPosition=e;var i=document.querySelector(".mc-q-card-title");i?i.setAttribute("draggable-state",JSON.stringify(n)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(n))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["M"].DOCKED_DATA_VIEWER),void this.setObservationInfo(null);this.draggableElement.offsetTop<0&&this.changeDraggablePosition({top:0,left:Math.max(this.draggableElement.offsetLeft,0)}),this.draggableElement.offsetLeft+this.draggableElement.offsetWidth<=0&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:0}),this.draggableElement.offsetLeft>=li(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(li(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=ui(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(ui(this.boundingElement)-this.draggableElement.offsetHeight,0),left:Math.max(this.draggableElement.offsetLeft,0)})},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},mapSizeChangedListener:function(e){var t=this;if(e&&"changelayout"===e.type)return e.align&&this.setWindowSide(e.align),this.updateCorrectedPosition(),void this.$nextTick(function(){t.changeDraggablePosition({left:t.hasContext?"left"===t.windowSide?t.defaultLeft:t.getRightLeft():t.getCenteredLeft(),top:t.defaultTop},!1)});this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop},this.checkWhereWasDragged()},spinnerDoubleClickListener:function(){this.hide()},updateCorrectedPosition:function(){var e=document.querySelector(".kapp-header-container"),t=document.querySelector(".kapp-left-container aside"),n=e?ui(e):0,i=t?li(t):0;this.correctedPosition={top:n,left:i},this.defaultTop=di.top+n,this.defaultLeft=di.left+i,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=li(this.draggableElement),this.dragMCConfig.handle=document.querySelector(".kexplorer-main-container .mc-q-card-title"),this.boundingElement=document.querySelector(".kexplorer-container"),this.centeredLeft=this.getCenteredLeft(),this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop}},focusSearch:function(e){this.moved||e&&e.target.classList&&(e.target.classList.contains("mcm-button")||e.target.classList.contains("q-icon")||e.target.classList.contains("q-btn")||e.target.classList.contains("q-btn-inner"))||(this.searchIsActive?this.searchIsFocused||this.searchFocus({focused:!0}):this.searchStart(""))}}),watch:{hasContext:function(){var e=this;this.setLargeMode(0),this.$nextTick(function(){e.changeDraggablePosition({top:e.defaultTop,left:e.hasContext?"left"===e.windowSide?e.defaultLeft:e.getRightLeft():e.getCenteredLeft()},!1)})},largeMode:function(){var e=this;this.hasContext||this.$nextTick(function(){var t=c["g"].SEARCHBAR_INCREMENT*e.largeMode/2;if(t>=0){var n=parseFloat(e.draggableElement.style.left),i=n-e.getCenteredLeft();i%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=di.top,this.defaultLeft=di.left,this.VIEWERS=c["M"]},mounted:function(){this.updateDraggable(),this.$eventBus.$on(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$on(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$off(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)}},pi=hi,fi=(n("96fa"),Object(y["a"])(pi,Me,we,!1,null,null,null));fi.options.__file="KlabMainControl.vue";var mi=fi.exports,gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return n("div",{key:t.idx,class:["no-padding",t.main?"absolute-top full-height full-width":"absolute thumb-view"],style:e.viewerStyle(t),attrs:{id:"dv-viewer-"+t.idx}},[t.main?e._e():n("div",{staticClass:"thumb-viewer-title absolute-top"},[n("div",{staticClass:"relative-position"},[n("div",{staticClass:"thumb-viewer-label float-left q-ma-sm",class:[t.type.hideable?"thumb-closable":""]},[e._v("\n "+e._s(e.capitalize(t.label))+"\n ")]),n("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[n("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(n){e.setMain(t.idx)}}}),t.type.hideable?n("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(n){e.closeViewer(t)}}}):e._e()],1)])]),n(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},vi=[];gi._withStripped=!0;var bi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[n("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),n("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),n("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?n("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),n("q-modal",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["gl-msg-content"]},model:{value:e.waitingGeolocation,callback:function(t){e.waitingGeolocation=t},expression:"waitingGeolocation"}},[n("div",{staticClass:"bg-opaque-white"},[n("div",{staticClass:"q-pa-xs"},[n("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),n("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),n("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),n("div",{staticClass:"gl-btn-container"},[n("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],attrs:{label:e.$t("label.appRetry"),color:"primary"},on:{click:e.retryGeolocation}}),n("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),n("q-modal",{attrs:{"no-route-dismiss":!0,"no-esc-dismiss":!0,"no-backdrop-dismiss":!0},model:{value:e.progressBarVisible,callback:function(t){e.progressBarVisible=t},expression:"progressBarVisible"}},[n("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),n("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[n("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),n("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():n("q-btn",{staticClass:"mv-remove-proposed-context",style:null!==e.proposedContextCenter?e.proposedContextCenter:{},attrs:{icon:"mdi-close",size:"lg",round:""},nativeOn:{click:function(t){e.sendSpatialLocation(null)}}})],1)},yi=[];bi._withStripped=!0;var _i="".concat("").concat(T["c"].REST_UPLOAD),Mi="1024MB",wi=Mi.substr(Mi.length-2),Ci="KB"===wi?1:"MB"===wi?2:"GB"===wi?3:"PB"===wi?4:0,Si=parseInt(Mi.substring(0,Mi.length-2),10)*Math.pow(1024,Ci);function Ai(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Ei=He["a"].directive("upload",{inserted:function(e,t){if(Ai()){var n=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},i=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},o=t.value&&t.value.onUploadError&&"function"===typeof t.value.onUploadError?t.value.onUploadError:function(e){console.error(JSON.stringify(e,null,4))};["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.addEventListener(t,function(e){e.preventDefault(),e.stopPropagation()},!1)}),e.addEventListener("drop",function(e){var r=e.dataTransfer.files;if(null!==r&&0!==r.length){for(var s=new FormData,a=[],c=0;cSi?o("File is too large, max sixe is ".concat(Mi)):(s.append("files[]",r[c]),a.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&s.append("refId",t.value.refId||null),L["a"].post(_i,s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){n(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){i(null!==r&&a.length>0?a.join(", "):null)}).catch(function(e){o(e,null!==r&&a.length>0?a.join(", "):null)})}})}}}),Oi=n("256f"),Li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[n("div",{staticClass:"md-title"},[e._v("Draw mode")]),n("div",{staticClass:"md-controls"},[n("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),n("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),n("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[n("q-btn-toggle",{attrs:{"toggle-color":"mc-main",size:"md",options:[{tabindex:1,icon:"mdi-vector-point",value:"Point",disable:!0},{tabindex:2,icon:"mdi-vector-line",value:"LineString",disable:!0},{tabindex:3,icon:"mdi-vector-polygon",value:"Polygon"},{tabindex:4,icon:"mdi-vector-circle-variant",value:"Circle"}]},model:{value:e.drawType,callback:function(t){e.drawType=t},expression:"drawType"}})],1)])},Ti=[];Li._withStripped=!0;var xi=n("a27f"),Ri=n("3e6b"),ki=n("5831"),zi=n("6c77"),Pi=n("83a6"),Ni=n("8682"),Ii=n("ce2c"),Di=n("ac29"),Bi=n("c807"),qi=n("4cdf"),ji=n("f822"),Wi=n("5bc3"),Fi={name:"MapDrawer",props:{map:{type:Object,required:!0},selectors:{type:Boolean,required:!1,default:!0},fillColor:{type:String,required:!1,default:"rgba(17, 170, 187, 0.3)"},strokeColor:{type:String,required:!1,default:"rgb(17, 170, 187)"},strokeWidth:{type:Number,required:!1,default:2},pointRadius:{type:Number,required:!1,default:5}},data:function(){return{drawerLayer:void 0,drawer:void 0,drawerModify:void 0,dragDCConfig:{resetInitialPos:!0},drawType:"Polygon"}},computed:{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0}},methods:s()({},Object(a["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,n=[];if(0!==t){for(var i=null,o=0;o0&&e.pop(),this.drawerLayer.getSource().clear(!0),this.drawerLayer.getSource().addFeatures(e)},drawCancel:function(){this.$emit("drawcancel"),this.drawerLayer.getSource().clear(),this.setDrawMode(!1)},setDrawer:function(){var e=this;this.drawer=new Di["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var n=Object(Xe["j"])(t.feature.getGeometry());Object(Xe["i"])(n)||(e.$q.notify({message:e.$t("messages.invalidGeometry"),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),t.feature.setGeometry(null))}),this.map.addInteraction(this.drawer)}}),watch:{drawType:function(){this.map.removeInteraction(this.drawer),this.setDrawer()}},directives:{Draggable:xi["Draggable"]},mounted:function(){var e=new ki["a"];this.drawerModify=new Bi["a"]({source:e}),this.drawerLayer=new Ri["a"]({id:"DrawerLayer",source:e,visible:!0,style:new zi["c"]({fill:new Pi["a"]({color:this.fillColor}),stroke:new Ni["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new Ii["a"]({radius:this.pointRadius,fill:new Pi["a"]({color:this.strokeColor})})})}),this.dragDCConfig.boundingElement=document.getElementById(this.map.get("target")),this.map.addLayer(this.drawerLayer),this.map.addInteraction(this.drawerModify),this.setDrawer()},beforeDestroy:function(){this.map.removeInteraction(this.drawer),this.map.removeInteraction(this.drawerModify),this.drawerLayer.getSource().clear(!0)}},Hi=Fi,Xi=(n("37a9"),Object(y["a"])(Hi,Li,Ti,!1,null,null,null));Xi.options.__file="MapDrawer.vue";var Ui=Xi.exports,Vi=n("e300"),Gi=n("9c78"),Ki=n("c810"),$i=n("592d"),Yi=n("e269"),Ji={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},Qi=n("cd7e"),Zi=n("0999"),eo=n("1e8d"),to=n("0af5"),no={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},io=function(e){function t(t){e.call(this),this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+Qi["d"],this.element.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.autoPanAnimation=t.autoPanAnimation||{},this.autoPanMargin=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,Object(eo["a"])(this,Object(Yi["b"])(no.ELEMENT),this.handleElementChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.MAP),this.handleMapChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.OFFSET),this.handleOffsetChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITION),this.handlePositionChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITIONING),this.handlePositioningChanged,this),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(void 0!==t.positioning?t.positioning:Ji.TOP_LEFT),void 0!==t.position&&this.setPosition(t.position)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getElement=function(){return this.get(no.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(no.MAP)},t.prototype.getOffset=function(){return this.get(no.OFFSET)},t.prototype.getPosition=function(){return this.get(no.POSITION)},t.prototype.getPositioning=function(){return this.get(no.POSITIONING)},t.prototype.handleElementChanged=function(){Object(Zi["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(Zi["e"])(this.element),Object(eo["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(eo["a"])(e,$i["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element)}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(no.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(no.ELEMENT,e)},t.prototype.setMap=function(e){this.set(no.MAP,e)},t.prototype.setOffset=function(e){this.set(no.OFFSET,e)},t.prototype.setPosition=function(e){this.set(no.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),i=this.getRect(n,[Object(Zi["c"])(n),Object(Zi["b"])(n)]),o=this.autoPanMargin;if(!Object(to["g"])(t,i)){var r=i[0]-t[0],s=t[2]-i[2],a=i[1]-t[1],c=t[3]-i[3],l=[0,0];if(r<0?l[0]=r-o:s<0&&(l[0]=Math.abs(s)+o),a<0?l[1]=a-o:c<0&&(l[1]=Math.abs(c)+o),0!==l[0]||0!==l[1]){var u=e.getView().getCenter(),d=e.getPixelFromCoordinate(u),h=[d[0]+l[0],d[1]+l[1]];e.getView().animate({center:e.getCoordinateFromPixel(h),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var n=e.getBoundingClientRect(),i=n.left+window.pageXOffset,o=n.top+window.pageYOffset;return[i,o,i+t[0],o+t[1]]},t.prototype.setPositioning=function(e){this.set(no.POSITIONING,e)},t.prototype.setVisible=function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)},t.prototype.updatePixelPosition=function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var n=e.getPixelFromCoordinate(t),i=e.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var n=this.element.style,i=this.getOffset(),o=this.getPositioning();this.setVisible(!0);var r=i[0],s=i[1];if(o==Ji.BOTTOM_RIGHT||o==Ji.CENTER_RIGHT||o==Ji.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=n.left="");var a=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=a&&(this.rendered.right_=n.right=a)}else{""!==this.rendered.right_&&(this.rendered.right_=n.right=""),o!=Ji.BOTTOM_CENTER&&o!=Ji.CENTER_CENTER&&o!=Ji.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=n.left=c)}if(o==Ji.BOTTOM_LEFT||o==Ji.BOTTOM_CENTER||o==Ji.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=n.top="");var l=Math.round(t[1]-e[1]-s)+"px";this.rendered.bottom_!=l&&(this.rendered.bottom_=n.bottom=l)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=n.bottom=""),o!=Ji.CENTER_LEFT&&o!=Ji.CENTER_CENTER&&o!=Ji.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var u=Math.round(e[1]+s)+"px";this.rendered.top_!=u&&(this.rendered.top_=n.top=u)}},t.prototype.getOptions=function(){return this.options},t}(Yi["a"]),oo=io,ro=n("b2da"),so=n.n(ro),ao=n("64d9"),co=n("f403"),lo=n("01d4"),uo=n("3900"),ho="projection",po="coordinateFormat",fo=function(e){function t(t){var n=t||{},i=document.createElement("div");i.className=void 0!==n.className?n.className:"ol-mouse-position",e.call(this,{element:i,render:n.render||mo,target:n.target}),Object(eo["a"])(this,Object(Yi["b"])(ho),this.handleProjectionChanged_,this),n.coordinateFormat&&this.setCoordinateFormat(n.coordinateFormat),n.projection&&this.setProjection(n.projection),this.undefinedHTML_=void 0!==n.undefinedHTML?n.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=i.innerHTML,this.mapProjection_=null,this.transform_=null,this.lastMouseMovePixel_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get(po)},t.prototype.getProjection=function(){return this.get(ho)},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.lastMouseMovePixel_=t.getEventPixel(e),this.updateHTML_(this.lastMouseMovePixel_)},t.prototype.handleMouseOut=function(e){this.updateHTML_(null),this.lastMouseMovePixel_=null},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var n=t.getViewport();this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEMOVE,this.handleMouseMove,this),Object(eo["a"])(n,lo["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEOUT,this.handleMouseOut,this),Object(eo["a"])(n,lo["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(po,e)},t.prototype.setProjection=function(e){this.set(ho,Object(Oi["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(Oi["j"])(this.mapProjection_,n):Oi["k"]}var i=this.getMap(),o=i.getCoordinateFromPixel(e);if(o){this.transform_(o,o);var r=this.getCoordinateFormat();t=r?r(o):o.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(uo["default"]);function mo(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var go=fo,vo=n("a568"),bo=(n("c58e"),{name:"MapViewer",components:{MapDrawer:Ui,ObservationContextMenu:un},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Ei},data:function(){var e=this;return{center:this.$mapDefaults.center,zoom:this.$mapDefaults.zoom,map:null,extentMap:null,hasExtentMap:!1,view:null,movedWithContext:!1,noNewRegion:!1,layers:new Vi["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ao["a"],geolocationId:null,geolocationIncidence:null,popupContent:"",popupOverlay:void 0,contextLayer:null,proposedContextLayer:null,proposedContextCenter:null,uploadConfig:{refId:null,onUploadProgress:function(t){e.uploadProgress=t},onUploadEnd:function(t){e.$q.notify({message:e.$t("messages.uploadComplete",{fileName:t}),type:"info",icon:"mdi-information",timeout:1e3}),e.uploadProgress=null},onUploadError:function(t,n){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:n}),"\n").concat(t.response.data.message),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),e.uploadProgress=null}},uploadProgress:null,storedZoom:null,clicksOnMap:0,bufferingLayers:!1,lastModificationLoaded:null,previousTopLayer:null,lockedObservations:[],contextMenuObservationId:null,coordinatesControl:void 0}},computed:s()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(a["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(a["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(a["d"])("view",["saveLocation"]),{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0},progressBarVisible:function(){return null!==this.uploadProgress},waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}}}),methods:s()({},Object(a["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(a["b"])("view",["addToKexplorerLog","setSpinner","setMapSelection","setDrawMode","setTopLayer","setShowSettings"]),{handleResize:function(){null!==this.map&&(this.map.updateSize(),this.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED))},onMoveEnd:function(){this.hasContext?this.movedWithContext=!0:this.isDrawMode||this.noNewRegion?this.noNewRegion=!1:this.sendRegionOfInterest()},sendRegionOfInterest:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.waitingGeolocation){var e=null,t=Object(Oi["l"])(this.view.getCenter(),Lt["d"].PROJ_EPSG_3857,Lt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(Oi["l"])(t,Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),duration:500}));try{var n=Object(Oi["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(n[0]<-180||n[1]<-90||n[2]>180||n[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=l["a"].REGION_OF_INTEREST(n,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["w"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&V["a"].set(c["P"].COOKIE_MAPDEFAULT,{center:this.view.getCenter(),zoom:this.view.getZoom()},{expires:30,path:"/",secure:!0}))}},findExistingLayerById:function(e){if(this.layers&&null!==this.layers){var t=this.layers.getArray();return t.filter(function(t){return null===t.get("id")?null===e:t.get("id").startsWith(e)})}return[]},findModificationTimestamp:function(e,t){if(-1!==t){var n=null===e?this.timeEvents:this.timeEventsOfObservation(e);return n.length>0?n.reduce(function(e,n){var i=t-n.timestamp;return i<=0?e:-1===e||i0)){e.next=7;break}if(c="".concat(n.id,"T").concat(o),l=a.find(function(e){return e.get("id")===c}),!l){e.next=7;break}return e.abrupt("return",{founds:a,layer:l});case 7:return e.prev=7,console.debug("Creating layer: ".concat(n.label," with timestamp ").concat(o)),e.next=11,Object(Ue["k"])(n,{projection:this.proj,timestamp:o,realTimestamp:s?o:this.timestamp});case 11:return u=e.sent,a&&a.length>0?u.setZIndex(n.zIndex):(this.zIndexCounter+=2,n.zIndex=this.zIndexCounter+n.zIndexOffset,u.setZIndex(n.zIndex)),this.layers.push(u),a.push(u),e.abrupt("return",{founds:a,layer:u});case 18:return e.prev=18,e.t0=e["catch"](7),console.error(e.t0.message),this.$q.notify({message:e.t0.message,type:"negative",icon:"mdi-alert-circle",timeout:3e3}),e.abrupt("return",null);case 23:case"end":return e.stop()}},e,this,[[7,18]])}));return function(t){return e.apply(this,arguments)}}(),bufferLayerImages:function(e){var t=this;e.stop>=this.scaleReference.end&&(e.stop=this.scaleReference.end-1),console.debug("Ask preload from ".concat(e.start," to ").concat(e.stop));var n=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),i=n.length;if(i>0){var o=function e(o){var r=t.observations.find(function(e){return e.id===n[o].id});r&&t.findLayerById({observation:r,timestamp:n[o].timestamp,isBuffer:!0}).then(function(t){var n=t.layer,r=n.getSource().image_;r&&0===r.state?(r.load(),n.getSource().on("imageloadend",function(t){t.image;++o125&&(this.hasExtentMap=!0,this.$nextTick(function(){e.extentMap.addLayer(e.proposedContextLayer),e.extentMap.getView().fit(e.proposedContext,{padding:[10,10,10,10],constrainResolution:!1})}))}},drawContext:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&(this.layers.clear(),this.lockedObservations=[],this.previousTopLayer=null,null!==this.contextLayer?(this.map.removeLayer(this.contextLayer),this.contextLayer=null):this.baseLayers.removeMask()),null===this.contextGeometry)return console.debug("No context, send region of interest"),void this.sendRegionOfInterest();this.contextGeometry instanceof Array?(this.contextLayer=new Ri["a"]({id:this.contextId,source:new ki["a"]({features:[new qi["a"]({geometry:new co["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(Xe["d"])(Lt["e"].POINT_CONTEXT_SVG_PARAM,this.contextLabel)}),this.map.addLayer(this.contextLayer),this.view.setCenter(this.contextGeometry)):(this.baseLayers.setMask(this.contextGeometry),this.view.fit(this.contextGeometry,{padding:[10,10,10,10],constrainResolution:!1}))},drawObservations:function(){var e=W()(regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.observations&&this.observations.length>0&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.visible}),t=this.observations.find(function(e){return e.top&&Object(Ue["n"])(e)}),t&&(this.previousTopLayer&&this.previousTopLayer.visible?t.id!==this.previousTopLayer.id&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.id!==t.id}),this.lockedObservations.push(this.previousTopLayer),this.previousTopLayer=t):this.previousTopLayer=t),n="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=i.findModificationTimestamp(e.id,i.timestamp);i.findLayerById({observation:e,timestamp:t}).then(function(o){if(null!==o){var r=o.founds,s=o.layer;s.setOpacity(e.layerOpacity),s.setVisible(e.visible);var a=e.zIndex;if(e.top?a=e.zIndexOffset+Lt["d"].ZINDEX_TOP:i.lockedObservationsIds.length>0&&i.lockedObservationsIds.includes(e.id)&&(a=Math.max(s.get("zIndex")-10,1)),n||(s.setZIndex(a),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t))?i.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t)||i.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(n,i){n.get("id")==="".concat(e.id,"T").concat(t)?n.setVisible(!0):n.getVisible()&&c.push(i)}),c.length>0&&c.forEach(function(e){i.$nextTick(function(){r[e].setVisible(!1)})})}}else r.forEach(function(e){e.setVisible(!1)});else console.debug("No multiple layer for observation ".concat(e.id,", refreshing")),s.setVisible(e.visible)}})}}),null===this.topLayer&&this.closePopup());case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),sendSpatialLocation:function(e){if(e){var t=this.wktInstance.writeFeaturesText(e,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:""},this.session).body)},doGeolocation:function(){var e=this;null!==this.geolocationId&&navigator.geolocation.clearWatch(this.geolocationId),this.geolocationId=navigator.geolocation.watchPosition(function(t){e.center=Object(Oi["l"])([t.coords.longitude,t.coords.latitude],Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),e.stopGeolocation()},function(t){switch(t.code){case t.PERMISSION_DENIED:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.POSITION_UNAVAILABLE:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.TIMEOUT:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;default:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break}},{enableHighAccuracy:!0,maximumAge:3e4,timeout:6e4})},retryGeolocation:function(){this.geolocationIncidence=null,this.doGeolocation()},stopGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];navigator.geolocation.clearWatch(this.geolocationId),this.$nextTick(function(){e.waitingGeolocation=!1,t&&e.sendRegionOfInterest()})},closePopup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&this.mapSelection.locked||(this.setMapSelection(c["g"].EMPTY_MAP_SELECTION),this.popupOverlay.setPosition(void 0))},setMapInfoPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=void 0===t?null:t,i=e.locked,o=void 0!==i&&i,r=e.layer,a=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var l,u;if(null!==n?(l=n.coordinate,o&&(n.preventDefault(),n.stopPropagation())):(o=this.mapSelection.locked,l=this.mapSelection.pixelSelected),null===a){u=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var d=this.findExistingLayerById(u),h=Fe()(d,1);a=h[0]}else u=a.get("id");var p=new Ki["a"]({id:"cl_".concat(u),source:a.getSource()});this.setMapSelection(s()({pixelSelected:l,timestamp:this.timestamp,layerSelected:p},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(u)},{locked:o}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,n)},needFitMapListener:function(e){var t=this,n=e.mainIdx,i=void 0===n?null:n,o=e.geometry,r=void 0===o?null:o,s=e.withPadding,a=void 0===s||s;null===r&&this.mainViewer.name===c["M"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==i&&this.idx===i||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:a?[10,10,10,10]:[0,0,0,0],constrainResolution:!1,callback:function(){t.movedWithContext=!1}})},200)):null!==this.storedZoom&&(this.view.setZoom(this.storedZoom),this.storedZoom=null)},observationInfoClosedListener:function(){this.mapSelection.locked||this.closePopup()},sendRegionOfInterestListener:function(){this.sendRegionOfInterest()},findTopLayerFromClick:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[],i=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){i[e.getType()]&&i[e.getType()]>e.get("zIndex")||(i[e.getType()]=e.get("zIndex"),n.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),n},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,n=document.createElement("textarea");n.value=t,n.style.top="0",n.style.left="0",n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy");this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})}catch(e){console.error("Oops, unable to copy",e)}document.body.removeChild(n)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),V["a"].set(c["P"].COOKIE_VIEW_COORDINATES,this.viewCoordinates,{expires:365,path:"/",secure:!0})}}),watch:{contextGeometry:function(e,t){this.drawContext(e,t),null!==e||this.movedWithContext||this.needFitMapListener({geometry:t,withPadding:!1}),this.movedWithContext=!1},observations:{handler:function(){var e=this;this.$nextTick(function(){return e.drawObservations()})},deep:!0},timestamp:function(e){var t=this.findModificationTimestamp(null,e);t!==this.lastModificationLoaded&&(this.lastModificationLoaded=t,this.drawObservations())},center:function(){this.view.setCenter(this.center)},mapSelection:function(e){if("undefined"!==typeof e&&null!==e&&null!==e.pixelSelected){if(this.mapSelectionMarker.setPosition(e.pixelSelected),null!==this.topLayer){var t=Object(Oi["l"])(e.pixelSelected,"EPSG:3857","EPSG:4326");this.popupContent="

".concat(this.topLayer.desc,'

\n
\n

').concat(e.value,'

\n
\n

').concat(t[1].toFixed(6),", ").concat(t[0].toFixed(6),"

"),this.popupOverlay.setPosition(e.pixelSelected)}}else this.closePopup(),this.mapSelectionMarker.setPosition(void 0)},hasContext:function(e){this.uploadConfig.refId=this.contextId,e?this.setDrawMode(!1):(this.sendRegionOfInterest(),this.popupOverlay.setPosition(void 0))},proposedContext:function(e){var t=this;this.drawProposedContext(),this.$nextTick(function(){t.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"KlabSearch"}))})},topLayer:function(e){null!==e&&this.mapSelection.locked?this.setMapInfoPoint():this.closePopup()},hasExtentMap:function(){var e=this;this.hasExtentMap&&this.$nextTick(function(){e.extentMap.updateSize()}),this.setShowSettings(!this.hasExtentMap)},viewCoordinates:function(){this.setCoordinatesControl()}},created:function(){this.waitingGeolocation="geolocation"in navigator&&!V["a"].has(c["P"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=Lt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var n=t;n.on("propertychange",function(t){e.visibleBaseLayer=n,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&V["a"].set(c["P"].COOKIE_BASELAYER,n.get("name"),{expires:30,path:"/",secure:!0})})});var t=Lt["c"].MAPBOX_GOT;t.setVisible(!0);var n=new Gi["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new yn["a"]({view:new _n["a"]({center:this.center,zoom:this.zoom}),layers:n,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(i){if(e.viewCoordinates&&i.originalEvent.ctrlKey&&!i.originalEvent.altKey)e.copyCoordinates(i);else{if(e.isDrawMode)return i.preventDefault(),void i.stopPropagation();if(i.originalEvent.ctrlKey&&i.originalEvent.altKey&&i.originalEvent.shiftKey){var o=n.getLayersArray().slice(-1)[0];o&&"mapbox_got"===o.get("name")?(n.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(n.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(W()(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(n=e.findTopLayerFromClick(i,!1),n.length>0&&n.forEach(function(t){var o=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),1===n.length&&e.closePopup()):e.topLayer&&o===e.topLayer.id?e.setMapInfoPoint({event:i}):(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),e.setMapInfoPoint({event:i,layer:t.layer}))}),e.clicksOnMap=0);case 1:case"end":return t.stop()}},t)})),300)}}),this.map.on("dblclick",function(t){if(e.isDrawMode)return t.preventDefault(),void t.stopPropagation();var n=e.findTopLayerFromClick(t);if(1===n.length){var i=n[0].layer.get("id");e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:t,locked:!0,layer:n[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var n=e.findTopLayerFromClick(t,!1);n.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(n[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Gi["default"]({layers:this.layers})),this.layerSwitcher=new so.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new oo({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new oo({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[Lt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new go({coordinateFormat:Object(vo["c"])(6),projection:Lt["d"].PROJ_EPSG_4326,undefinedHTML:"..."}),this.setCoordinatesControl(),this.drawContext(),this.drawObservations(),this.drawProposedContext(),this.waitingGeolocation&&this.doGeolocation(),this.setShowSettings(!this.hasExtentMap),this.$eventBus.$on(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$on(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$on(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$on(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$off(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$off(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$off(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)}}),yo=bo,_o=(n("c612"),Object(y["a"])(yo,bi,yi,!1,null,null,null));_o.options.__file="MapViewer.vue";var Mo=_o.exports,wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?n("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),n("q-resize-observable",{on:{resize:e.resize}}),n("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},Co=[];wo._withStripped=!0;var So=n("a5b7"),Ao=n.n(So),Eo={name:"GraphViewer",components:{D3Network:Ao.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["Q"]);return e},computed:{observation:function(){var e=this.$store.getters["data/observationsOfViewer"](this.idx);return e.length>0?e[0]:null}},methods:{loadGraph:function(){var e=this,t="".concat("").concat(T["c"].REST_SESSION_VIEW,"data/").concat(this.observation.id);Object(Ue["h"])("gr_".concat(this.observation.id),t,{params:{format:"NETWORK",outputFormat:"json"}},function(t,n){if(t&&"undefined"!==typeof t.data){var i=t.data,o=i.nodes,r=i.edges;e.nodes=o.map(function(e){return{id:e.id,name:e.label,nodeSym:"~assets/klab-spinner.svg"}}),e.links=r.map(function(e){return{id:e.id,name:e.label,sid:e.source,tid:e.target}}),e.resize()}n()})},resize:function(){var e={w:this.$el.clientWidth,h:this.$el.clientHeight};this.updateOptions("size",e)},changeForce:function(e){if(e.preventDefault(),e&&e.deltaY){var t=this.options.force;if(e.deltaY<0&&t<5e3)t+=50;else{if(!(e.deltaY>0&&t>50))return;t-=50}this.updateOptions("force",t)}},updateOptions:function(e,t){this.options=s()({},this.options,p()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["Q"].options)},viewerClosedListener:function(e){var t=e.idx;t===this.idx&&this.$eventBus.$emit(c["h"].SHOW_NODE,{nodeId:this.observation.id,state:!1})}},watch:{observation:function(e){null!==e&&0===this.nodes.length?this.loadGraph():null===e&&this.reset()}},mounted:function(){this.options.size.w=this.$el.clientWidth,this.options.size.h=this.$el.clientHeight,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},Oo=Eo,Lo=(n("6420"),n("9198"),Object(y["a"])(Oo,wo,Co,!1,null,null,null));Lo.options.__file="GraphViewer.vue";var To=Lo.exports,xo=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Ro=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit uv-container"},[n("h4",[e._v("Under construction")])])}];xo._withStripped=!0;var ko={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},zo=ko,Po=(n("1fac"),Object(y["a"])(zo,xo,Ro,!1,null,null,null));Po.options.__file="UnknownViewer.vue";var No=Po.exports,Io=[],Do={components:{MapViewer:Mo,GraphViewer:To,UnknownViewer:No},computed:s()({},Object(a["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:s()({},Object(a["b"])("view",["setMainDataViewer"]),{setMain:function(e){this.setMainDataViewer({viewerIdx:e}),this.$eventBus.$emit(c["h"].VIEWER_SELECTED,{idx:e})},closeViewer:function(e){this.setMainDataViewer({viewerIdx:e.idx,viewerType:e.type,visible:!1}),this.$eventBus.$emit(c["h"].VIEWER_CLOSED,{idx:e.idx})},viewerStyle:function(e){return e.main?"":e.type.hideable&&!e.visible?"display: none":(Io.push(e),0===Io.length?"left: 0":"left: ".concat(200*(Io.length-1)+10*(Io.length-1),"px"))},capitalize:function(e){return Object(Xe["a"])(e)}}),watch:{mainDataViewerIdx:function(){Io=[]},dataViewers:{handler:function(e){var t=this,n=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,s()({},null!==n&&"undefined"!==typeof n&&{idx:n.idx}))})},deep:!0}},beforeUpdate:function(){Io=[]},mounted:function(){Io=[]}},Bo=Do,qo=(n("f164"),Object(y["a"])(Bo,gi,vi,!1,null,"216658d8",null));qo.options.__file="DataViewer.vue";var jo=qo.exports,Wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kd-main-container print-hide",style:{width:e.containerStyle.width+"px",height:e.containerStyle.height+"px"},attrs:{view:"hHh Lpr fFf",container:""}},[n("q-layout-header",[n("documentation-header")],1),n("q-layout-drawer",{attrs:{side:"left",breakpoint:0,"content-class":["klab-left","no-scroll"],width:e.LEFTMENU_CONSTANTS.LEFTMENU_DOCUMENTATION_SIZE,overlay:!1},model:{value:e.leftMenu,callback:function(t){e.leftMenu=t},expression:"leftMenu"}},[n("documentation-tree")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kd-container"},[n("documentation-viewer")],1)])],1),n("q-modal",{staticClass:"kd-modal",attrs:{"no-backdrop-dismiss":"","no-esc-dismiss":""},on:{show:e.launchPrint},model:{value:e.print,callback:function(t){e.print=t},expression:"print"}},[n("documentation-viewer",{attrs:{"for-printing":!0}}),n("q-btn",{staticClass:"dv-print-hide print-hide",attrs:{icon:"mdi-close",round:"",flat:"",size:"sm",color:"mc-main"},on:{click:function(t){e.print=!1}}})],1)],1)},Fo=[];Wo._withStripped=!0;var Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dh-container full-width row items-center"},[n("div",{staticClass:"dh-tabs col justify-start"},[n("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.REPORT,icon:"mdi-text-box-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.REPORT)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.TABLES,icon:"mdi-table",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.TABLES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.FIGURES,icon:"mdi-image",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.FIGURES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.RESOURCES,icon:"mdi-database-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.RESOURCES)},slot:"title"})],1)],1),n("div",{staticClass:"dh-actions justify-end"},[n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appPrint")))])],1),e.selectedTab===e.DOCUMENTATION_VIEWS.TABLES?[n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize-1<8,flat:"",icon:"mdi-format-font-size-decrease",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(-1)}}}),n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize+1>50,flat:"",icon:"mdi-format-font-size-increase",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(1)}}})]:e._e()],2),e.hasSpinner?n("div",{staticClass:"dh-spinner col-1 justify-end"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[n("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[n("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Xo=[];Ho._withStripped=!0;var Uo={name:"DocumentationHeader",components:{KlabSpinner:M},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["u"].LEFTMENU_HIDDEN&&!this.hasHeader)},selectedTab:{get:function(){return this.$store.getters["view/documentationView"]},set:function(e){this.$store.dispatch("view/setDocumentationView",e,{root:!0}),this.setDocumentationSelected(null)}}}),methods:s()({},Object(a["b"])("view",["setTableFontSize","setDocumentationSelected"]),{tableFontSizeChange:function(e){this.setTableFontSize(this.tableFontSize+e),this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table")},forceReload:function(){this.$eventBus.$emit(c["h"].REFRESH_DOCUMENTATION,{force:!0})},print:function(){this.$eventBus.$emit(c["h"].PRINT_DOCUMENTATION)}})},Vo=Uo,Go=(n("d18c"),Object(y["a"])(Vo,Ho,Xo,!1,null,null,null));Go.options.__file="DocumentationHeader.vue";var Ko=Go.exports,$o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dt-container relative-position klab-menu-component"},[n("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.tree.length,expression:"tree.length === 0"}],staticClass:"dt-tree-empty"},[e._v(e._s(e.$t("label.noDocumentation")))]),n("klab-q-tree",{attrs:{nodes:e.tree,"node-key":"id","check-click":!1,selected:e.selected,expanded:e.expanded,ticked:e.ticked,"text-color":"white","control-color":"white",color:"white",dark:!0,"no-nodes-label":e.$t("label.noNodes"),"no-results-label":e.$t("label.noNodes"),filter:e.documentationView,"filter-method":e.filter},on:{"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},"update:ticked":function(t){e.ticked=t}}})],1),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yo=[];$o._withStripped=!0;var Jo={name:"DocumentationTree",components:{KlabQTree:on},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("data",["documentationTrees"]),Object(a["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:s()({},Object(a["b"])("view",["setDocumentationSelected"]),{filter:function(e,t){return t!==c["n"].REPORT||e.type!==c["l"].PARAGRAPH&&e.type!==c["l"].CITATION}}),watch:{selected:function(e){this.setDocumentationSelected(e)},documentationSelected:function(){this.selected=this.documentationSelected}},mounted:function(){this.selected=this.documentationSelected}},Qo=Jo,Zo=(n("5823"),Object(y["a"])(Qo,$o,Yo,!1,null,null,null));Zo.options.__file="DocumentationTree.vue";var er=Zo.exports,tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-documentation"},[n("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[n("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[n("div",{staticClass:"dv-content"},e._l(e.content,function(t){return n("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[n("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?n("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?n("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?n("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(n){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?n("span",{staticClass:"dv-citation"},[n("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?n("div",{staticClass:"dv-table-container"},[n("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),n("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),n("div",{staticClass:"dv-table-bottom text-right print-hide"},[n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(n){e.tableCopy(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(n){e.tableDownload(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableDownloadAsXSLX")))])],1)],1)]):t.type===e.DOCUMENTATION_TYPES.FIGURE?n("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-figure-wrapper col"},[n("div",{staticClass:"content-center row"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[n("div",{staticClass:"dv-figure-caption col"},[e._v(e._s(e.$t("label.reportFigure")+" "+t.idx+(""!==t.figure.caption?". "+t.figure.caption:"")))]),t.figure.timeString&&""!==t.figure.timeString?n("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),n("div",{staticClass:"dv-col-fill col"})]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingImages.includes(t.id),expression:"loadingImages.includes(doc.id)"}],staticClass:"dv-figure-wait row items-center",style:{height:e.waitHeight+"px"}},[n("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),n("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[n("img",{staticClass:"dv-figure-img",class:[e.forPrinting?"dv-figure-print":"dv-figure-display"],attrs:{src:"",id:"figimg-"+e.documentationView+"-"+e.getId(t.id),alt:t.figure.caption}})])]),n("div",{staticClass:"dv-figure-legend col"},[n("histogram-viewer",{staticClass:"dv-figure-colormap",attrs:{dataSummary:t.figure.dataSummary,colormap:t.figure.colormap,id:e.getId(t.observationId),direction:"vertical",tooltips:!1,legend:!0}})],1)]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-time col"},[n("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(n){e.changeTime(n,t.id)}}})],1)]),n("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?n("div",{staticClass:"dv-model-container"},[n("div",{staticClass:"dv-model-code",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(e.getModelCode(t.bodyText))}})]):t.type===e.DOCUMENTATION_TYPES.RESOURCE?n("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-resource-title-container"},[n("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),n("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?n("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(i,o){return n("div",{key:o,staticClass:"dv-resource-keyword"},[n("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(i))]),o0?n("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(i,o){return n("div",{key:o,staticClass:"dv-resource-author-wrapper"},[n("span",{staticClass:"dv-resource-author"},[e._v(e._s(i))]),o0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,n=void 0===t?null:t,i=e.force,o=void 0!==i&&i;null===n&&(n=this.documentationView),(-1!==this.reloadViews.indexOf(n)||o)&&this.loadDocumentation(n)},printDocumentation:function(){this.print=!0},closePrint:function(){this.print=!1},launchPrint:function(){this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table"),setTimeout(function(){window.print()},600)}}),watch:{documentationView:function(){var e=this;this.$nextTick(function(){e.load()})},reloadViews:function(){var e=this;this.$nextTick(function(){e.load()})}},activated:function(){this.load()},mounted:function(){this.$eventBus.$on(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$on(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.addEventListener("afterprint",this.closePrint)},beforeDestroy:function(){this.$eventBus.$off(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$off(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.removeEventListener("afterprint",this.closePrint)}},cr=ar,lr=(n("7bbc"),Object(y["a"])(cr,Wo,Fo,!1,null,null,null));lr.options.__file="KlabDocumentation.vue";var ur=lr.exports,dr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dfv-wrapper",class:"dfv-"+e.flowchartSelected},[n("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[n("div",{staticClass:"dfv-graph-info"},[n("div",{staticClass:"dfv-graph-type"},[n("span",[e._v(e._s(e.flowchart(e.flowchartSelected)?e.flowchart(e.flowchartSelected).label:"Nothing"))])]),n("div",{staticClass:"dfv-graph-selector"},[n("q-btn",{staticClass:"dfv-button",class:e.flowchartSelected===e.CONSTANTS.GRAPH_DATAFLOW?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).flowchart||e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).updatable),icon:"mdi-sitemap",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_DATAFLOW&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_DATAFLOW)}}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).label))])],1),n("q-btn",{class:e.flowchartSelected===e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).flowchart||e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).updatable),icon:"mdi-graph-outline",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED)}}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).label))])],1)],1)]),n("div",[n("div",{attrs:{id:"sprotty"}}),n("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1)]),e.dataflowInfoOpen?n("div",{staticClass:"dfv-info-container"},[n("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},hr=[];dr._withStripped=!0;n("98db");var pr=n("970b"),fr=n.n(pr),mr=n("5bc30"),gr=n.n(mr),vr=n("8449"),br=n("42d6"),yr=n("e1c6"),_r=0,Mr=200,wr=!1,Cr=function(){function e(){fr()(this,e)}return gr()(e,[{key:"handle",value:function(e){switch(e.kind){case br["SelectCommand"].KIND:wr=!1,_r=setTimeout(function(){wr||vr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),wr=!1},Mr);break;case br["SetViewportCommand"].KIND:clearTimeout(_r),wr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(br["SelectCommand"].KIND,this),e.register(br["SetViewportCommand"].KIND,this)}}]),e}();function Sr(e){return void 0!==e.source&&void 0!==e.target}function Ar(e){return void 0!==e.sources&&void 0!==e.targets}yr.decorate(yr.injectable(),Cr);var Er=function(){function e(){this.nodeIds=new Set,this.edgeIds=new Set,this.portIds=new Set,this.labelIds=new Set,this.sectionIds=new Set,this.isRestored=!1}return e.prototype.transform=function(e){var t,n,i=this,o={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return i.transformElkNode(e)});(t=o.children).push.apply(t,r)}if(e.edges){var s=e.edges.map(function(e){return i.transformElkEdge(e)});(n=o.children).push.apply(n,s)}return o},e.prototype.transformElkNode=function(e){var t,n,i,o,r=this;this.checkAndRememberId(e,this.nodeIds);var s={type:"node",id:e.id,nodeType:e.id.split(".")[0],position:this.pos(e),size:this.size(e),status:this.isRestored?"processed":"waiting",children:[]};if(e.children){var a=e.children.map(function(e){return r.transformElkNode(e)});(t=s.children).push.apply(t,a)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(n=s.children).push.apply(n,c)}if(e.labels){var l=e.labels.map(function(e){return r.transformElkLabel(e)});(i=s.children).push.apply(i,l)}if(e.edges){var u=e.edges.map(function(e){return r.transformElkEdge(e)});(o=s.children).push.apply(o,u)}return s},e.prototype.transformElkPort=function(e){this.checkAndRememberId(e,this.portIds);var t={type:"port",id:e.id,position:this.pos(e),size:this.size(e),children:[]};return t},e.prototype.transformElkLabel=function(e){return this.checkAndRememberId(e,this.labelIds),{type:"label",id:e.id,text:e.text,position:this.pos(e),size:this.size(e)}},e.prototype.transformElkEdge=function(e){var t,n,i=this;this.checkAndRememberId(e,this.edgeIds);var o={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(Sr(e)?(o.sourceId=e.source,o.targetId=e.target,e.sourcePoint&&o.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&o.routingPoints.push(e.targetPoint)):Ar(e)&&(o.sourceId=e.sources[0],o.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;i.checkAndRememberId(e,i.sectionIds),o.routingPoints.push(e.startPoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),o.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,n){var i={type:"junction",id:e.id+"_j"+n,position:t};o.children.push(i)}),e.labels){var r=e.labels.map(function(e){return i.transformElkLabel(e)});(n=o.children).push.apply(n,r)}return o},e.prototype.pos=function(e){return{x:e.x||0,y:e.y||0}},e.prototype.size=function(e){return{width:e.width||0,height:e.height||0}},e.prototype.checkAndRememberId=function(e,t){if(void 0===e.id||null===e.id)throw Error("An element is missing an id: "+e);if(t.has(e.id))throw Error("Duplicate id: "+e.id+".");t.add(e.id)},e}(),Or=n("e1c6"),Lr=n("393a"),Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xr=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Rr={createElement:Lr["svg"]},kr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){var n="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Rr.createElement("g",null,Rr.createElement("rect",{classNames:n,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){return Rr.createElement("g",null,Rr.createElement("rect",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r=o||t.mouseModel&&t.mouseModel>=o,exselected:t.mouseModel&&t.model>=o&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(l["a"].DATAFLOW_NODE_RATING({nodeId:this.dataflowInfo.elementId,contextId:this.contextId,rating:this.dataflowInfo.rating,comment:e},this.session).body)},commentOk:function(){this.changeDataflowRating(this.commentContent),this.$q.notify({message:this.$t("messages.thankComment"),type:"info",icon:"mdi-information",timeout:1e3})},closePanel:function(){this.setDataflowInfoOpen(!1)}}),watch:{commentOpen:function(e){this.setModalMode(e)}}},Qr=Jr,Zr=(n("75c1"),Object(y["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var es=Zr.exports,ts={name:"DataflowViewer",components:{DataflowInfo:es},data:function(){return{modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0,CONSTANTS:c["g"]}},computed:s()({},Object(a["c"])("data",["flowchart","flowcharts","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(a["c"])("view",["leftMenuState","flowchartSelected","dataflowInfoOpen"])),methods:s()({},Object(a["b"])("data",["loadFlowchart"]),Object(a["b"])("view",["setFlowchartSelected","setDataflowInfoOpen"]),{doGraph:function(){var e=this,t=this.flowchart(this.flowchartSelected);if(t){if(this.processing)return void setTimeout(this.doGraph(),100);t.updatable?this.loadFlowchart(this.flowchartSelected).then(function(){var n=JSON.parse(JSON.stringify(t.flowchart));e.processing=!0,t.graph=(new Er).transform(n),e.setModel(t),e.centerGraph(),e.processing=!1}).catch(function(e){console.error(e)}):null===t.graph||t.visible||(this.setModel(t),this.centerGraph())}},setModel:function(e){this.modelSource.setModel(e.graph),this.flowcharts.forEach(function(e){e.visible=!1}),e.visible=!0},centerGraph:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW?this.actionDispatcher.dispatch(new br["FitToScreenAction"]([],40)):this.actionDispatcher.dispatch(new br["CenterAction"]([],40))},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length){for(var e=this.dataflowStatuses.length,t=0;t=0;n-=1)this.sendStompMessage(l["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[n],contextId:this.context.id},this.session).body)}},closePanel:function(){this.setDataflowInfoOpen(!1)},resize:function(){var e=this;this.$nextTick(function(){var t=document.getElementById("sprotty");if(null!==t){var n=t.getBoundingClientRect();e.actionDispatcher.dispatch(new br["InitializeCanvasBoundsAction"]({x:n.left,y:n.top,width:n.width,height:n.height})),e.centerGraph()}})}}),watch:{flowchartSelected:function(){this.visible&&this.doGraph()},flowcharts:{handler:function(){this.visible&&this.doGraph()},deep:!0},dataflowStatuses:{handler:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&null!==this.flowchart(this.flowchartSelected)&&this.updateStatuses()},deep:!0},dataflowInfo:function(e,t){null===e?this.setDataflowInfoOpen(!1):null===t?this.setDataflowInfoOpen(!0):e.elementId===t.elementId&&this.dataflowInfoOpen?this.setDataflowInfoOpen(!1):this.setDataflowInfoOpen(!0)},dataflowInfoOpen:function(){this.resize()}},mounted:function(){var e=Xr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(br["TYPES"].IActionHandlerInitializer).to(Cr),this.modelSource=e.get(br["TYPES"].ModelSource),this.actionDispatcher=e.get(br["TYPES"].IActionDispatcher),this.$eventBus.$on(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)},activated:function(){this.visible=!0,this.doGraph(),this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&this.needsUpdate&&(this.updateStatuses(),this.needsUpdate=!1)},deactivated:function(){this.visible=!1},beforeDestroy:function(){this.$eventBus.$off(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)}},ns=ts,is=(n("7890"),Object(y["a"])(ns,dr,hr,!1,null,null,null));is.options.__file="DataflowViewer.vue";var os=is.exports,rs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{ref:"irm-modal-container",attrs:{"no-esc-dismiss":!0,"no-backdrop-dismiss":!0,"content-classes":["irm-container"]},on:{hide:e.cleanInputRequest},model:{value:e.opened,callback:function(t){e.opened=t},expression:"opened"}},[n("q-tabs",{class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{swipeable:"",animated:"",color:"white"},model:{value:e.selectedRequest,callback:function(t){e.selectedRequest=t},expression:"selectedRequest"}},[e._l(e.inputRequests,function(t){return n("q-tab",{key:t.messageId,class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{slot:"title",name:"request-"+t.messageId},slot:"title"})}),e._l(e.inputRequests,function(t){return n("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[n("div",{staticClass:"irm-group"},[n("div",{staticClass:"irm-global-description"},[n("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),n("p",[e._v(e._s(t.description))])]),n("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[n("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(i){return n("div",{key:e.getFieldId(i,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(i.sectionTitle)?n("div",{staticClass:"irm-section-description"},[n("h5",[e._v(e._s(i.sectionTitle))]),n("p",[e._v(e._s(i.sectionDescription))])]):e._e(),n("q-field",{attrs:{label:null!==i.label?i.label:i.id,helper:i.description}},[n(e.capitalizeFirstLetter(i.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(i,t.messageId),initialValue:i.initialValue,values:i.values,range:i.range,numericPrecision:i.numericPrecision,regexp:i.regexp},on:{change:function(n){e.updateForm(e.getFieldId(i,t.messageId),n)}}})],1)],1)}))]),n("div",{staticClass:"irm-buttons"},[n("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(n){e.cancelRequest(t)}}}),n("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(n){e.send(t.messageId,!0)}}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(n){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},ss=[];rs._withStripped=!0;var as=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"text",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},cs=[];as._withStripped=!0;var ls={name:"TextField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{value:""}},computed:{hasError:function(){return this.value,!1}},methods:{emitInput:function(e){this.$emit("change",e)}}},us=ls,ds=(n("9d14"),Object(y["a"])(us,as,cs,!1,null,null,null));ds.options.__file="TextField.vue";var hs=ds.exports,ps=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"number",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},fs=[];ps._withStripped=!0;var ms={name:"NumberField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0},numericPrecision:{type:Number,default:5},range:{type:String}},data:function(){return{value:""}},computed:{hasError:function(){return this.range,!1}},methods:{emitInput:function(e){var t=this;this.fitValue(),this.$nextTick(function(){t.$emit("change",e)})},fitValue:function(){0!==this.numericPrecision&&(this.value=this.value.toFixed(this.numericPrecision))}}},gs=ms,vs=(n("d6e2"),Object(y["a"])(gs,ps,fs,!1,null,null,null));vs.options.__file="NumberField.vue";var bs=vs.exports,ys=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-checkbox",{attrs:{color:"mc-main",name:e.name},on:{input:e.emitInput},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})},_s=[];ys._withStripped=!0;var Ms={name:"BooleanField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{checked:"true"===this.initialValue}},methods:{emitInput:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})}}},ws=Ms,Cs=(n("bb33"),Object(y["a"])(ws,ys,_s,!1,null,null,null));Cs.options.__file="BooleanField.vue";var Ss=Cs.exports,As={name:"InputRequestModal",components:{TextInputRequest:hs,NumberInputRequest:bs,BooleanInputRequest:Ss},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:s()({},Object(a["c"])("data",["session"]),Object(a["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:s()({},Object(a["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof i){var o=i.fields.reduce(function(e,o){if(n)e[t.getFieldId(o)]=o.initialValue;else{var r=t.formData[t.getFieldId(o,i.messageId)];e[t.getFieldId(o)]="undefined"===typeof r||null===r||""===r?o.initialValue:r.toString()}return e},{});this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:i.messageId,requestId:i.requestId,values:o},this.session).body),this.removeInputRequest(i.messageId)}},cancelRequest:function(e){this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:e.messageId,requestId:e.requestId,cancelRun:!0,values:{}},this.session).body),this.removeInputRequest(e.messageId)},updateForm:function(e,t){null===t?this.$delete(this.formData,e):this.$set(this.formData,e,t)},capitalizeFirstLetter:function(e){return Object(Xe["a"])(e)},getFieldId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===t?"".concat(e.functionId,"/").concat(e.id):"".concat(t,"-").concat(e.functionId,"/").concat(e.id)},checkSectionTitle:function(e){return this.$options.sectionTitle!==e&&(this.$options.sectionTitle=e,!0)},cleanInputRequest:function(){this.formData={},this.removeInputRequest(null)}}),watch:{inputRequests:function(){this.inputRequests.length>0&&(this.selectedRequest="request-".concat(this.inputRequests[0].messageId))}}},Es=As,Os=(n("2b54"),Object(y["a"])(Es,rs,ss,!1,null,null,null));Os.options.__file="InputRequestModal.vue";var Ls=Os.exports,Ts=function(){var e=this,t=e.$createElement,n=e._self._c||t;return null!==e.scaleReference?n("q-dialog",{attrs:{title:e.$t("label.titleChangeScale",{type:e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?e.$t("label.labelSpatial"):e.$t("label.labelTemporal")}),color:"info",cancel:!0,ok:!1},on:{show:e.initValues},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[n("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[n("q-input",{attrs:{type:"number",min:"0",color:"info",autofocus:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"stack-label":e.resolutionError?e.$t("messages.changeScaleResolutionError"):e.$t("label.resolutionLabel")},model:{value:e.resolution,callback:function(t){e.resolution=t},expression:"resolution"}})]:e._e(),n("q-select",{attrs:{"float-label":e.$t("label.unitLabel"),color:"info",options:e.typedUnits(e.scaleEditingType)},on:{input:function(t){e.scaleEditingType===e.SCALE_TYPE.ST_TIME&&e.setStartDate()}},model:{value:e.unit,callback:function(t){e.unit=t},expression:"unit"}}),e.scaleEditingType===e.SCALE_TYPE.ST_TIME?[n("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitDecade"),type:"number",min:"0",max:"90",step:10,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.decade,callback:function(t){e.$set(e.unitInputs,"decade",t)},expression:"unitInputs.decade"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE?n("q-input",{class:["col",e.unit===e.SCALE_VALUES.CENTURY?"col-8":"col-4"],attrs:{"float-label":e.$t("label.unitCentury"),type:"number",min:"1",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.century,callback:function(t){e.$set(e.unitInputs,"century",t)},expression:"unitInputs.century"}}):e._e(),e.unit===e.SCALE_VALUES.MONTH?n("q-select",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitMonth"),type:"number",min:"0",color:"mc-main",options:e.monthOptions,autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.month,callback:function(t){e.$set(e.unitInputs,"month",t)},expression:"unitInputs.month"}}):e._e(),e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitWeek"),type:"number",min:"1",max:"53",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate(t)}},model:{value:e.unitInputs.week,callback:function(t){e.$set(e.unitInputs,"week",t)},expression:"unitInputs.week"}}):e._e(),e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{class:{col:e.unit===e.SCALE_VALUES.YEAR,"col-8":e.unit===e.SCALE_VALUES.YEAR,"col-4":e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK},attrs:{"float-label":e.$t("label.unitYear"),type:"number",min:"0",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.year,callback:function(t){e.$set(e.unitInputs,"year",t)},expression:"unitInputs.year"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",class:{"scd-inactive-multiplier":e.timeEndModified},attrs:{"float-label":e.$t("label.timeResolutionMultiplier"),type:"number",min:"1",step:1,color:"mc-main"},model:{value:e.timeResolutionMultiplier,callback:function(t){e.timeResolutionMultiplier=t},expression:"timeResolutionMultiplier"}},[e.timeEndModified?n("q-tooltip",{attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("messages.timeEndModified")))]):e._e()],1):e._e()],1),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeStart"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"","default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{focus:function(t){e.manualInputChange=!0},blur:function(t){e.manualInputChange=!1},input:function(t){e.manualInputChange&&e.initUnitInputs()&&e.calculateEnd()}},model:{value:e.timeStart,callback:function(t){e.timeStart=t},expression:"timeStart"}}),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeEnd"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{input:e.checkEnd},model:{value:e.timeEnd,callback:function(t){e.timeEnd=t},expression:"timeEnd"}})]:e._e()],2)]):e._e()},xs=[];Ts._withStripped=!0;var Rs=n("7f45"),ks=n.n(Rs),zs={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["C"],resolutionError:!1,SCALE_TYPE:c["B"],SCALE_VALUES:c["D"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","nextScale","hasContext"]),Object(a["c"])("view",["scaleEditingType"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleEditingType})}},typedUnits:function(){var e=this;return function(t){return e.units.filter(function(e){return e.type===t&&e.selectable}).map(function(t){return s()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:s()({},Object(a["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["B"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["B"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["B"].ST_SPACE&&(null===this.nextScale&&this.resolution===this.scaleReference.spaceResolutionConverted&&this.unit===this.scaleReference.spaceUnit||null!==this.nextScale&&this.resolution===this.nextScale.spaceResolutionConverted&&this.unit===this.nextScale.spaceUnit)||this.scaleEditingType===c["B"].ST_TIME&&(null===this.nextScale&&this.timeResolutionMultiplier===this.scaleReference.timeResolutionMultiplier&&this.unit===this.scaleReference.timeUnit&&this.timeStart===this.scaleReference.start&&this.timeEnd===this.scaleReference.end||null!==this.nextScale&&this.timeResolutionMultiplier===this.nextScale.timeResolutionMultiplier&&this.unit===this.nextScale.timeUnit&&this.timeStart===this.nextScale.start&&this.timeEnd===this.nextScale.end))return;var t=new Date(this.timeStart.getTime()),n=new Date(this.timeEnd.getTime());[c["D"].MILLENNIUM,c["D"].CENTURY,c["D"].DECADE,c["D"].YEAR,c["D"].MONTH,c["D"].WEEK,c["D"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),n.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference},this.scaleEditingType===c["B"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["B"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:n.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(s()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["B"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["B"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:n.getTime()},{next:this.hasContext})),this.$q.notify({message:this.$t(this.hasContext?"messages.updateNextScale":"messages.updateScale",{type:this.scaleEditingType.charAt(0).toUpperCase()+this.scaleEditingType.slice(1)}),type:"info",icon:"mdi-information",timeout:2e3})}else this.resolutionError=!0},setStartDate:function(e){var t=new Date;switch(this.unit){case c["D"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["D"].DECADE:this.unitInputs.decade=this.unitInputs.decade-this.unitInputs.decade%10,t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1)+this.unitInputs.decade);break;case c["D"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["D"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["D"].WEEK:if(e>53)return void(this.unitInputs.week=ks()(this.timeStart).week());t.setUTCMonth(0),t.setUTCDate(1+7*(this.unitInputs.week-1)),t.setUTCFullYear(this.unitInputs.year);break;default:return}this.timeStart=t,this.initUnitInputs(),this.calculateEnd()},calculateEnd:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=c["C"].find(function(t){return t.value===e.unit});this.timeEnd=ks()(this.timeStart).add(this.timeResolutionMultiplier*n.momentMultiplier-(1!==n.momentMultiplier?1:0),n.momentShorthand).toDate(),this.$nextTick(function(){e.timeEndModified=t})},checkEnd:function(){this.timeEnd<=this.timeStart?this.$q.notify({message:this.$t("messages.timeEndBeforeTimeStart"),type:"info",icon:"mdi-information",timeout:2e3}):this.calculateEnd(!0)},getFormat:function(){switch(this.unit){case c["D"].MILLENNIUM:case c["D"].CENTURY:case c["D"].DECADE:case c["D"].YEAR:case c["D"].MONTH:case c["D"].WEEK:case c["D"].DAY:return"DD/MM/YYYY";case c["D"].HOUR:return"DD/MM/YYYY HH:mm";case c["D"].MINUTE:case c["D"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["D"].MILLISECOND:return"DD/MM/YYYY HH:mm:ss:SSS";default:return"DD/MM/YYYY HH:mm:ss"}},formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dddd, MMMM Do YYYY, h:mm:ss a";return e&&null!==e?ks()(e).format(t):""},initValues:function(){var e=null!==this.nextScale?this.nextScale:null!==this.scaleReference?this.scaleReference:null;null!==e&&(this.resolution=e.spaceResolutionConverted,this.unit=this.scaleEditingType===c["B"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["D"].YEAR,this.timeResolutionMultiplier=0!==e.timeResolutionMultiplier?e.timeResolutionMultiplier:1,this.timeStart=0!==e.start?new Date(e.start):new Date,this.calculateEnd()),this.initUnitInputs()},initUnitInputs:function(){var e=this.timeStart?ks()(this.timeStart):ks()();this.unitInputs.century=Math.floor(e.year()/100)+1,this.unitInputs.decade=10*Math.floor(e.year()/10)-100*Math.floor(e.year()/100),this.unitInputs.year=e.year(),this.unitInputs.month=e.month(),this.unitInputs.week=e.week()}}),watch:{timeResolutionMultiplier:function(e,t){e<1?this.timeResolutionMultiplier=t:this.calculateEnd()}},created:function(){for(var e=0;e<12;e++)this.monthOptions.push({label:this.$t("label.months.m".concat(e)),value:e})}},Ps=zs,Ns=(n("c998"),Object(y["a"])(Ps,Ts,xs,!1,null,null,null));Ns.options.__file="ScaleChangeDialog.vue";var Is=Ns.exports,Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[n("div",{attrs:{id:"spinner-leftmenu-container"}},[n("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[n("klab-spinner",{attrs:{id:"spinner-leftmenu","store-controlled":!0,size:40,ball:22,wrapperId:"spinner-leftmenu-div"},nativeOn:{touchstart:function(t){e.handleTouch(t,e.askForSuggestion)}}})],1)]),e.hasContext?[n("div",{staticClass:"lm-separator"}),n("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),n("div",{staticClass:"lm-separator"})]:e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:"top left",anchor:"bottom left"}},[e._v(e._s(e.logShowed?e.$t("tooltips.hideLogPane"):e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"lm-separator"}),n("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[n("div",{staticClass:"lm-separator"}),n("scale-buttons",{attrs:{docked:!0}}),n("div",{staticClass:"lm-separator"}),n("div",{staticClass:"lm-bottom-buttons"},[n("stop-actions-buttons")],1)],1)],2),e.maximized?n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[n("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Bs=[];Ds._withStripped=!0;var qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[n("klab-breadcrumbs"),n("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?n("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[n("klab-tree-pane")],1):e._e(),e.contextHasTime?n("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},js=[];qs._withStripped=!0;var Ws=G["b"].width,Fs={name:"KlabDockedMainControl",components:{KlabSearchBar:It,KlabBreadcrumbs:Ft,ObservationsTimeline:Hn,KlabTreePane:Tn},directives:{Draggable:U},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(Ce["a"])(function(t,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:s()({},Object(a["c"])("data",["contextHasTime"]),Object(a["c"])("view",["largeMode","isTreeVisible"]),Object(a["c"])("stomp",["taskOfContextIsAlive"])),methods:s()({},Object(a["b"])("view",["searchIsFocused","setMainViewer"]),{onDebouncedPositionChanged:function(e){this.dragging&&(e&&e.left>this.undockLimit?this.askForUndocking=!0:this.askForUndocking=!1,this.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,this.askForUndocking))},checkUndock:function(){var e=this;this.$nextTick(function(){e.askForUndocking&&(e.askForUndocking=!1,e.setMainViewer(c["M"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Ws(document.getElementById("dmc-container"))/3}},Hs=Fs,Xs=(n("c7c3"),Object(y["a"])(Hs,qs,js,!1,null,null,null));Xs.options.__file="KlabDockedMainControl.vue";var Us=Xs.exports,Vs={name:"KlabLeftMenu",components:{KlabSpinner:M,MainActionsButtons:Te,StopActionsButtons:Ie,DockedMainControl:Us,DocumentationTree:er,KlabLogPane:Yn,ScaleButtons:ni,KnowledgeViewsSelector:ci},mixins:[rt],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["u"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["u"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:s()({},Object(a["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["u"].LOG_COMPONENT),this.setLeftMenuState(c["u"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["u"]}},Gs=Vs,Ks=(n("6283"),Object(y["a"])(Gs,Ds,Bs,!1,null,null,null));Ks.options.__file="KlabLeftMenu.vue";var $s=Ks.exports,Ys=(n("5bc0"),{name:"KExplorer",components:{KlabMainControl:mi,DataViewer:jo,KlabDocumentation:ur,DataflowViewer:os,InputRequestModal:Ls,ScaleChangeDialog:Is,ObservationTime:Bn,KlabLeftMenu:$s},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["u"]}},computed:s()({},Object(a["c"])("data",["session","hasActiveTerminal"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["searchIsActive","searchIsFocused","searchInApp","mainViewerName","mainViewer","isTreeVisible","isInModalMode","spinnerErrorMessage","isMainControlDocked","admitSearch","isHelpShown","mainViewer","leftMenuState","largeMode","hasHeader","layout"]),{waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}},logVisible:function(){return this.$logVisibility===c["P"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["u"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["u"].LEFTMENU_MAXIMIZED?c["u"].LEFTMENU_MAXSIZE:this.leftMenuState===c["u"].LEFTMENU_MINIMIZED?c["u"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["u"].LEFTMENU_MINSIZE:0)}}),methods:s()({},Object(a["b"])("view",["searchStart","searchStop","searchFocus","setMainViewer","setLeftMenuState"]),{setChildrenToAskFor:function(){var e=Math.floor(window.innerHeight*parseInt(getComputedStyle(document.documentElement).getPropertyValue("--main-control-max-height"),10)/100),t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--q-tree-no-child-min-height"),10),n=Math.floor(e/t);console.info("Set max children to ".concat(n)),this.$store.state.data.childrenToAskFor=n},askForUndockListener:function(e){this.askForUndocking=e},keydownListener:function(e){if(!(this.connectionDown||this.isInModalMode||!this.admitSearch||this.isHelpShown||this.searchInApp||this.hasActiveTerminal))return 27===e.keyCode&&this.searchIsActive?(this.searchStop(),void e.preventDefault()):void((38===e.keyCode||40===e.keyCode||32===e.keyCode||this.isAcceptedKey(e.key))&&(this.searchIsActive?this.searchIsFocused||(this.searchFocus({char:e.key,focused:!0}),e.preventDefault()):(this.searchStart(e.key),e.preventDefault())))},showDocumentation:function(){this.setMainViewer(c["M"].DOCUMENTATION_VIEWER)}}),watch:{spinnerErrorMessage:function(e,t){null!==e&&e!==t&&(console.error(this.spinnerErrorMessage),this.$q.notify({message:this.spinnerErrorMessage,type:"negative",icon:"mdi-alert-circle",timeout:1e3}))},leftMenuVisible:function(){var e=this;this.$nextTick(function(){e.$eventBus.$emit(c["h"].NEED_FIT_MAP,{})})}},created:function(){"undefined"===typeof this.mainViewer&&this.setMainViewer(c["M"].DATA_VIEWER)},mounted:function(){window.addEventListener("keydown",this.keydownListener),this.setChildrenToAskFor(),this.$eventBus.$on(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$on(c["h"].SHOW_DOCUMENTATION,this.showDocumentation),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].LOCK_TIME,value:!1},this.session).body)},beforeDestroy:function(){window.removeEventListener("keydown",this.keydownListener),this.$eventBus.$off(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$off(c["h"].SHOW_DOCUMENTATION,this.showDocumentation)}}),Js=Ys,Qs=(n("f913"),Object(y["a"])(Js,ye,_e,!1,null,null,null));Qs.options.__file="KExplorer.vue";var Zs=Qs.exports,ea=n("0388"),ta=n("7d43"),na=n("9541"),ia=n("768b"),oa=n("fb40"),ra=n("bd60"),sa="q:collapsible:close",aa={name:"QCollapsible",mixins:[oa["a"],ra["a"],{props:ra["b"]}],modelToggle:{history:!1},props:{disable:Boolean,popup:Boolean,indent:Boolean,group:String,iconToggle:Boolean,collapseIcon:String,opened:Boolean,duration:Number,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},computed:{classes:function(){return{"q-collapsible-opened":this.showing,"q-collapsible-closed":!this.showing,"q-collapsible-popup-opened":this.popup&&this.showing,"q-collapsible-popup-closed":this.popup&&!this.showing,"q-collapsible-cursor-pointer":!this.separateToggle,"q-item-dark":this.dark,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,disabled:this.disable}},separateToggle:function(){return this.iconToggle||void 0!==this.to}},watch:{showing:function(e){e&&this.group&&this.$root.$emit(sa,this)}},methods:{__toggleItem:function(){this.separateToggle||this.toggle()},__toggleIcon:function(e){this.separateToggle&&(e&&Object(Gr["g"])(e),this.toggle())},__eventHandler:function(e){this.group&&this!==e&&e.group===this.group&&this.hide()},__getToggleSide:function(e,t){return[e(na["a"],{slot:t?"right":void 0,staticClass:"cursor-pointer transition-generic relative-position q-collapsible-toggle-icon",class:{"rotate-180":this.showing,invisible:this.disable},nativeOn:{click:this.__toggleIcon},props:{icon:this.collapseIcon||this.$q.icon.collapsible.icon}})]},__getItemProps:function(e){return{props:e?{cfg:this.$props}:this.$props,style:this.headerStyle,class:this.headerClass,nativeOn:{click:this.__toggleItem}}}},created:function(){this.$root.$on(sa,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(sa,this.__eventHandler)},render:function(e){return e(this.tag,{staticClass:"q-collapsible q-item-division relative-position",class:this.classes},[e("div",{staticClass:"q-collapsible-inner"},[this.$slots.header?e(Ye["a"],this.__getItemProps(),[this.$slots.header,e(ta["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(ia["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:this.showing}]},[e("div",{staticClass:"q-collapsible-sub-item relative-position",class:{indent:this.indent}},this.$slots.default)])])])])}},ca=n("dd1f"),la=n("5d8b"),ua=n("5931"),da=n("482e"),ha={LAYOUT:function(e){return He["a"].component("KAppLayout",{render:function(t){return t(La,{props:{layout:e}})}})},ALERT:function(e){return He["a"].component("KAppAlert",{render:function(t){return t(ea["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return He["a"].component("KAppMain",{render:function(t){return t("div",s()({class:["kcv-main-container","kcv-dir-".concat(e.direction),"kcv-style-".concat(this.$store.getters["view/appStyle"])],attrs:{id:"".concat(e.applicationId,"-").concat(e.id),ref:"main-container"},style:s()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return He["a"].component("KAppPanel",{render:function(t){return t("div",s()({class:["kcv-panel-container","kcv-dir-".concat(e.direction)],attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.name&&{ref:e.name}),this.$slots.default)}})},GROUP:function(e){return He["a"].component("KAppGroup",{data:function(){return{}},render:function(t){return t("div",{staticClass:"kcv-group",class:{"text-app-alt-color":e.attributes.altfg,"bg-app-alt-background":e.attributes.altbg,"kcv-wrapper":1===e.components.length,"kcv-group-bottom":e.attributes.bottom},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:e.attributes.hfill?{width:"100%"}:{}},e.attributes.shelf||e.attributes.parentId?[t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)]:[t("div",{staticClass:"kcv-group-container",class:{"kcv-group-no-label":!e.name}},[e.name?t("div",{class:"kcv-group-legend"},e.name):null,t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)])])}})},SHELF:function(e){return e.attributes.opened||(e.attributes.opened=!1),He["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var n=this;return t(aa,{class:"kcv-collapsible",props:s()({opened:n.opened,headerClass:"kcv-collapsible-header",collapseIcon:"mdi-dots-vertical",separator:!1},!e.attributes.parentAttributes.multiple&&{group:e.attributes.parentId},{label:e.name},e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)}),on:{hide:function(){e.attributes.opened=!1},show:function(){e.attributes.opened=!0}}},this.$slots.default)}})},SEPARATOR:function(e){return He["a"].component("KAppSeparator",{render:function(t){var n=this;return e.attributes.empty?t("hr",{class:"kcv-hr-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)}}):t("div",{class:"kcv-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},[e.attributes.iconname?t(Qe["a"],{class:"kcv-separator-icon",props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.title?t("div",{class:"kcv-separator-title"},e.title):null,e.attributes.iconbutton?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-".concat(e.attributes.iconbutton),color:"app-main-color"},nativeOn:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})}}}):null,e.attributes.info?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-information-outline",color:"app-main-color"},nativeOn:{mouseover:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var n=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var i=function i(o){var r=n.values[o],s=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(o));if(!s){s={id:"".concat(e.id,"-").concat(r.id,"-").concat(o),label:r.label,type:r.type,observable:r.id,children:[]};var a=n.links.find(function(e){return e.first===o}).second;if(a===n.rootId)t.push(s);else{var c=i(a);c.children.push(s)}}return s};n.links.forEach(function(e){i(e.first)})}return He["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(n){var i=this;return n("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?n("div",{class:"kcv-tree-legend"},e.name):null,n(Zt["a"],{class:"kcv-tree",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{nodes:t,nodeKey:"id",tickStrategy:e.attributes.check?"leaf":"none",ticked:i.ticked,selected:i.selected,expanded:i.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){i.ticked=t,e.tree.status.ticked=t,i.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),listValue:t})},"update:selected":function(t){i.selected=t,e.tree.status.selected=t},"update:expanded":function(t){i.expanded=t,e.tree.status.expanded=t}}})])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),He["a"].component("KAppText",{data:function(){return{editable:!1,doneFunc:null,result:null,value:null,searchRequestId:0,searchContextId:null,searchTimeout:null,selected:null}},computed:{searchResult:function(){return this.$store.getters["data/searchResult"]},isSearch:function(){return"search"===e.attributes.tag&&this.editable}},methods:{search:function(e,t){var n=this;this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["E"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.$q.notify({message:n.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),n.doneFunc&&n.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:this.selected.matchIndex,matchId:this.selected.id,added:!0},this.$store.state.data.session).body)},init:function(){this.doneFunc=null,this.result=null,this.value=null,this.searchRequestId=0,this.searchContextId=null,this.searchTimeout=null,this.selected=null}},watch:{searchResult:function(e){var t=this;if(this.isSearch){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return;if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,a=r.error,l=r.errorMessage;if(a)this.$q.notify({message:l,type:"error",icon:"mdi-alert",timeout:2e3});else{var u=[];s.forEach(function(e){var t=c["v"][e.matchType];if("undefined"!==typeof t){var n=t;if(null!==e.mainSemanticType){var i=c["F"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}u.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:n.symbol,leftInverted:!0,leftColor:n.color,rgb:n.rgb,id:e.id,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1})}else console.warn("Unknown type: ".concat(e.matchType))}),0===u.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),He["a"].nextTick(function(){t.doneFunc(u)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}}},render:function(t){var n=this,i=this;return this.isSearch?t(la["a"],{class:["kcv-text-input","kcv-form-element","kcv-search"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:i.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:i.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(n.editable=!1,n.doneFunc&&(n.doneFunc(),n.doneFunc=null),n.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),i.init()),13===e.keyCode&&n.selected&&(n.$store.dispatch("view/searchInApp",!1),n.editable=!1,i.sendSelected(),i.init())},input:function(e){i.value=e},blur:function(){n.$store.dispatch("view/searchInApp",!1),n.editable=!1},focus:function(){n.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){i.search(e,t)},selected:function(e,t){i.autocompleteSelected(e,t)}}},"Cacca")]):t("div",s()({staticClass:"kcv-label",class:{"kcv-title":e.attributes.tag&&("title"===e.attributes.tag||"search"===e.attributes.tag),"kcv-clickable":"true"!==e.attributes.disabled&&"search"===e.attributes.tag,"kcv-ellipsis":e.attributes.ellipsis,"kcv-with-icon":e.attributes.iconname},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){n.editable=!0,n.$store.dispatch("view/searchInApp",!0)}}}),[e.attributes.iconname?t(Qe["a"],{class:["kcv-label-icon",e.attributes.toggle?"kcv-label-toggle":""],props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.content,e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return He["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:"number"}},render:function(t){var n=this;return t(la["a"],{class:["kcv-text-input","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){n.value=t,e.content=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return He["a"].component("KAppCombo",{data:function(){return{component:e,value:e.attributes.selected?e.choices.find(function(t){return t.first===e.attributes.selected}).first:e.choices[0].first}},render:function(t){var n=this;return t(ua["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,options:e.choices.map(function(e){return{label:e.first,value:e.second,className:"kcv-combo-option"}}),color:"app-text-color",popupCover:!1,dense:!0,disable:"true"===e.attributes.disabled,dark:"dark"===this.$store.getters["view/appStyle"]},on:{change:function(t){n.value=t,e.attributes.selected=n.value,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return He["a"].component("KAppPushButton",{data:function(){return{state:null}},watch:{state:function(){var t=this;e.attributes.timeout&&setTimeout(function(){delete e.attributes.error,delete e.attributes.waiting,delete e.attributes.done,t.state=null},e.attributes.timeout)}},render:function(t){var n=this,i=e.attributes.iconname&&!e.name;this.state=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null;var o=e.attributes.waiting?"app-background-color":e.attributes.computing?"app-alt-color":e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-background-color";return t("div",{},[t(da["a"],{class:[i?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:s()({},Object(c["k"])(e),e.attributes.timeout&&{"--button-icon-color":"app-background-color","--flash-color":e.attributes.error?"var(--app-negative-color)":e.attributes.done?"var(--app-positive-color)":"var(--app-main-color)",animation:"flash-button ".concat(e.attributes.timeout,"ms")}||{"--button-icon-color":"var(--".concat(o,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:s()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},i&&{round:!0,dense:!0,flat:!0},{noCaps:!0,disable:"true"===e.attributes.disabled},"error"===this.state&&{icon:"mdi-alert-circle"}||"done"===this.state&&{icon:"mdi-check-circle"}||e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)},"waiting"===this.state&&{loading:!0}),on:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]})})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0],delay:600}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},CHECK_BUTTON:function(e){return He["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var n=this,i=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,o=e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-main-color";return t("div",{class:["kcv-checkbutton","kcv-form-element","text-".concat(o),"kcv-check-".concat(i),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(nn["a"],{props:s()({value:n.value,color:o,keepColor:!0,label:e.name,disable:"true"===e.attributes.disabled},e.attributes.waiting&&{"checked-icon":"mdi-loading","unchecked-icon":"mdi-loading",readonly:!0},e.attributes.computing&&{"checked-icon":"mdi-cog-outline","unchecked-icon":"mdi-cog-outline",readonly:!0}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,e.attributes.checked=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.error&&"true"!==e.attributes.error?t(Ze["a"],{class:"kcv-error-tooltip",props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},e.attributes.error):null])}})},RADIO_BUTTON:function(e){return He["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var n=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ca["a"],{props:{val:!1,value:!1,color:"app-main-color",label:e.name},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return He["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var n=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":n.collapsed},attrs:{"data-simplebar":"data-simplebar"},style:Object(c["k"])(e)},[t("div",{staticClass:"kcv-internal-text",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},domProps:{innerHTML:e.content}}),e.attributes.collapse?t("div",{staticClass:"kcv-collapse-button",on:{click:function(){n.collapsed=!n.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:n.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return He["a"].component("KBrowswer",{mounted:function(){},render:function(t){var n=e.content.startsWith("http")?e.content:"".concat("").concat("/modeler").concat(e.content);return t("iframe",{class:"kcv-browser",attrs:{id:"".concat(e.applicationId,"-").concat(e.id),width:e.attributes.width||"100%",height:e.attributes.height||"100%",frameBorder:"0",src:n},style:s()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return He["a"].component("KAppUnknown",{render:function(t){return t("div",{class:"kcv-unknown",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.type)}})}};function pa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(ha.LAYOUT);var i,o=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(o=ha.SHELF(e)),e.type){case null:var r=n.mainPanelStyle,a=void 0===r?{}:r,l=n.direction,u=void 0===l?"vertical":l;i=ha.MAIN(s()({},e,{mainPanelStyle:a,direction:u}));break;case c["a"].PANEL:i=ha.PANEL(e);break;case c["a"].SEPARATOR:i=ha.SEPARATOR(e);break;case c["a"].LABEL:i=ha.LABEL(e);break;case c["a"].TEXT_INPUT:i=ha.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:i=ha.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:i=ha.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:i=ha.RADIO_BUTTON(e);break;case c["a"].TREE:i=ha.TREE(e);break;case c["a"].GROUP:i=ha.GROUP(e),e.components&&e.components.length>0&&e.components.forEach(function(t){t.attributes.parentId=e.id,t.attributes.parentAttributes=e.attributes});break;case c["a"].TEXT:i=ha.TEXT(e);break;case c["a"].COMBO:i=ha.COMBO(e);break;case c["a"].BROWSER:i=ha.BROWSER(e);break;default:i=ha.UNKNOWN(e)}var d=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){d.push(pa(e,t))}),o?t(o,{},[t(i,{},d)]):t(i,{},d)}var fa,ma,ga=G["b"].height,va={name:"KlabAppViewer",props:{component:{type:Object,required:!0},props:{type:Object,default:null},direction:{type:String,validator:function(e){return["horizontal","vertical"].includes(e)},default:"vertical"},mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{mainContainerHeight:void 0}},computed:{},methods:{calculateMinHeight:function(){this.$nextTick(function(){for(var e=document.querySelectorAll(".kcv-group-bottom"),t=0,n=0;n0},set:function(){}},showRightPanel:{get:function(){return this.layout&&this.layout.rightPanels.length>0},set:function(){}},leftPanelWidth:function(){return this.layout&&this.layout.leftPanels&&this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):512},rightPanelWidth:function(){return this.layout&&this.layout.rightPanels&&this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):512},mainPanelStyle:function(){return{width:this.header.width-this.leftPanel.width-this.rightPanel.width,height:this.leftPanel.height}},idSuffix:function(){return null!==this.layout?this.layout.applicationId:"default"},modalDimensions:function(){return this.isModal?{width:this.modalWidth,height:this.modalHeight,"min-height":this.modalHeight}:{}}}),methods:{setLogoImage:function(){this.layout&&this.layout.logo?this.logoImage="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(this.layout.projectId,"/").concat(this.layout.logo.replace("/",":")):this.logoImage=c["b"].DEFAULT_LOGO},setStyle:function(){var e=this,t=null;if(null===this.layout)t=c["j"].default;else{if(t=s()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var n=JSON.parse(this.layout.styleSpecs);t=s()({},t,n)}catch(e){console.error("Error parsing style specs",e)}var i=(this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):0)+(this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):0);0!==i&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(i,"px)"))}null!==t&&Object.keys(t).forEach(function(n){var i=t[n];if("density"===n)switch(n="line-height",t.density){case"default":i=1;break;case"confortable":i=1.5;break;case"compact":i=.5;break;default:i=1}if(document.documentElement.style.setProperty("--app-".concat(n),i),n.includes("color"))try{var o=Object(Xe["e"])(i);if(o&&o.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(n),"".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),20*r)),document.documentElement.style.setProperty("--app-lighten90-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),90*r)),document.documentElement.style.setProperty("--app-lighten75-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),75*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(n,": ").concat(i))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new be(e);var t=document.querySelector(".kapp-right-inner-container");t&&new be(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var n=document.querySelector(".kapp-main.kapp-header-container");this.header.height=n?Ca(n):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=i?wa(i):0,this.rightPanel.height=window.innerHeight-this.header.height;var o=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=o?wa(o):0,this.$nextTick(function(){e.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout",align:e.layout&&e.layout.leftPanels.length>0?"right":"left"})}),this.setStyle(),t&&this.$eventBus.$emit(c["h"].SHOW_NOTIFICATIONS,{apps:null!==this.layout?[this.layout.name]:[],groups:this.sessionReference&&this.sessionReference.owner&&this.sessionReference.owner.groups?this.sessionReference.owner.groups.map(function(e){return e.id}):[]})},downloadListener:function(e){var t=e.url,n=e.parameters;this.$axios.get("".concat("").concat("/modeler").concat(t),{params:{format:"RAW"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.href=URL.createObjectURL(e.data),t.setAttribute("download",n.filename||"output_".concat((new Date).getTime())),document.body.appendChild(t),t.click(),t.remove(),setTimeout(function(){return URL.revokeObjectURL(t.href)},5e3)}).catch(function(e){console.error(e)})},clickOnMenu:function(e){if(this.layout){var t=this.layout,n=t.applicationId,i=t.identity;this.sendStompMessage(l["a"].MENU_ACTION({identity:i,applicationId:n,menuId:e},this.$store.state.data.session).body)}},resetContextListener:function(){var e=this;null!==this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.blockApp=!0,this.resetTimeout=setTimeout(function(){e.blockApp=!1,e.resetTimeout=null},1e3)},viewActionListener:function(){null!==this.resetTimeout&&this.resetContextListener()},updateListeners:function(){null!==this.layout?this.isRootLayout&&(this.$eventBus.$on(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$on(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$on(c["h"].COMPONENT_ACTION,this.componentClickedListener)):(this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$off(c["h"].COMPONENT_ACTION,this.componentClickedListener))},componentClickedListener:function(e){delete e.component.attributes.parentAttributes,delete e.component.attributes.parentId,this.sendStompMessage(l["a"].VIEW_ACTION(s()({},Sa,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var n=this,i=null!==e&&(null===t||e.applicationId!==t.applicationId);if((null===e||!this.isApp&&i)&&(this.$nextTick(function(){n.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var o=localStorage.getItem(c["P"].LOCAL_STORAGE_APP_ID);o&&o===t.name&&localStorage.removeItem(c["P"].LOCAL_STORAGE_APP_ID)}null===t&&this.updateListeners()}},created:function(){},mounted:function(){this.updateLayout(!0),this.updateListeners(),this.$eventBus.$on(c["h"].DOWNLOAD_URL,this.downloadListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].DOWNLOAD_URL,this.downloadListener),this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener)}},Ea=Aa,Oa=(n("4b0d"),Object(y["a"])(Ea,re,se,!1,null,null,null));Oa.options.__file="KlabLayout.vue";var La=Oa.exports,Ta=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{attrs:{"content-classes":"km-main-container","no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[n("q-modal-layout",[e.modal.label?n("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[n("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?n("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),n("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),n("div",{staticClass:"km-buttons justify-end row"},[n("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},xa=[];Ta._withStripped=!0;var Ra={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:La},data:function(){return{instance:void 0}},computed:{open:{get:function(){return null!==this.modal},set:function(e){e||this.close()}},width:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.width,"px")||!1)},height:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.height,"px")||!1)}},methods:s()({},Object(a["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},ka=Ra,za=(n("a4c5"),Object(y["a"])(ka,Ta,xa,!1,null,null,null));za.options.__file="KlabModalWindow.vue";var Pa=za.exports,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[n("div",{staticClass:"modal-backdrop absolute-full"}),n("div",{ref:"kp-help-container",staticClass:"klab-modal-container",style:{width:e.modalSize.width+"px",height:e.modalSize.height+"px",transform:"translate(-50%, -50%) scale("+e.scale+", "+e.scale+") !important"}},[n("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[n("div",{staticClass:"klab-modal-content full-height"},[n("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,i){return n("div",{key:"kp-pres-"+i,staticClass:"kp-link",class:{"kp-link-current":i===e.activeSectionIndex},attrs:{id:"kp-pres-"+i},on:{click:function(t){i!==e.activeSectionIndex&&e.loadPresentation(i)}}},[n("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():n("q-carousel",{ref:"kp-carousel",staticClass:"kp-carousel full-height",attrs:{color:"white","no-swipe":""},on:{"slide-trigger":e.initStack}},e._l(e.activePresentation,function(t,i){return n("q-carousel-slide",{key:"kp-slide-"+i,staticClass:"kp-slide full-height"},[n("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?n("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":i,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===i},on:{stackend:e.stackEnd}}):n("div",[e._v("No slides")]),t.title?n("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),n("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),n("div",{staticClass:"kp-navigation"},[n("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,i){return n("div",{key:"kp-nav-"+i,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(i,0)},mouseover:function(n){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[n("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===i}},[e._v(e._s(i+1))])])}))]),n("div",{staticClass:"kp-btn-container"},[n("q-checkbox",{staticClass:"kp-checkbox",attrs:{"keep-color":!0,color:"grey-8",label:e.$t("label.rememberDecision"),"left-label":!0},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}})],1),n("q-btn",{directives:[{name:"show",rawName:"v-show",value:1!==e.scale,expression:"scale !== 1"}],staticClass:"kp-icon-refresh-size",attrs:{icon:"mdi-refresh",color:"mc-main",size:"md",title:e.$t("label.refreshSize"),round:"",flat:""},on:{click:e.refreshSize}}),n("q-btn",{staticClass:"kp-icon-close-popover",attrs:{icon:"mdi-close-circle-outline",color:"grey-8",size:"md",title:e.$t("label.appClose"),round:"",flat:""},on:{click:e.hideHelp}})],1),e.waitForPresentation||e.presentationBlocked?n("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?n("div",{staticClass:" kp-no-presentation"},[n("div",{staticClass:"fixed-center text-center"},[n("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),n("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?n("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ia=[];Na._withStripped=!0;n("55dd"),n("28a5");var Da=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.layers.length>0?n("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,i){return n("div",{key:"ks-layer-"+i,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===i,"ks-hide-layer":e.selectedLayer!==i},style:{"z-index":e.selectedLayer===i?9999:e.layers.length-i},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+i}},[t.image?n("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[n("img",{style:{width:t.image.width||"auto",height:t.image.height||"auto","max-width":e.imgMaxSize.width,"max-height":e.imgMaxSize.height},attrs:{src:e.getImage(t),alt:t.image.alt||t.title||t.text,title:t.image.alt||t.title||t.text,id:"ks-image-"+e.ownerIndex+"-"+i}})]):e._e(),t.title||t.text?n("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?n("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?n("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),n("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[n("q-btn",{attrs:{id:"ks-prev",disable:!e.hasPrevious,"text-color":"grey-8",icon:"mdi-chevron-left",round:"",flat:"",dense:"",title:e.$t("label.appPrevious")},on:{click:e.previous}}),n("q-btn",{attrs:{id:"ks-play-stop",disable:!e.hasNext,"text-color":"grey-8",icon:null===e.animation?"mdi-play":"mdi-pause",round:"",flat:"",dense:"",title:null===e.animation?e.$t("label.appPlay"):e.$t("label.appPause")},on:{click:function(t){null===e.animation?e.playStack():e.stopStack()}}}),n("q-btn",{attrs:{id:"ks-replay",disable:!e.isGif,"text-color":"grey-8",icon:"mdi-reload",round:"",flat:"",dense:"",title:e.$t("label.appReplay")},on:{click:function(t){e.refreshLayer(e.layers[e.selectedLayer])}}}),n("q-btn",{attrs:{id:"ks-next",disable:!e.hasNext,"text-color":"grey-8",icon:"mdi-chevron-right",round:"",flat:"",dense:"",title:e.$t("label.appNext")},on:{click:e.next}})],1)],2):e._e()},Ba=[];Da._withStripped=!0;n("aef6");var qa={name:"KlabStack",props:{presentation:{type:Object,required:!0},ownerIndex:{type:Number,required:!0},maxOwnerIndex:{type:Number,required:!0},stack:{type:Object,required:!0},onTop:{type:Boolean,default:!1}},data:function(){return{selectedLayer:0,animation:null,layers:this.stack.layers,animated:"undefined"!==typeof this.stack.animated&&this.stack.animated,autostart:"undefined"!==typeof this.stack.autostart?this.stack.autostart:0===this.ownerIndex,duration:this.stack.duration||5e3,infinite:"undefined"!==typeof this.stack.infinite&&this.stack.infinite,initialSize:{},scale:1,imgMaxSize:{width:"auto",height:"auto"}}},computed:{hasPrevious:function(){return this.selectedLayer>0||this.ownerIndex>0||this.infinite},hasNext:function(){return this.selectedLayer0?this.goTo(this.selectedLayer-1):this.infinite?this.goTo(this.layers.length-1):this.$emit("stackend",{index:this.ownerIndex,direction:-1})},reloadGif:function(e){var t=document.getElementById("ks-image-".concat(this.ownerIndex,"-").concat(this.selectedLayer));t&&(t.src=this.getImage(e))},setAnimation:function(e){if(this.hasNext){var t=this;null!==this.animation&&(clearTimeout(this.animation),this.animation=null),this.animation=setTimeout(function(){t.next()},e)}},getImage:function(e){return e.image?"".concat(this.baseUrl,"/").concat(e.image.url,"?t=").concat(Math.random()):""},rewriteImageUrl:function(e){return e&&e.length>0&&-1!==e.indexOf("0?t0&&this.goTo(t-1,"last")},refreshSize:function(){this.initialSize=void 0,this.onResize()},onResize:function(){var e=this;setTimeout(function(){if("undefined"===typeof e.initialSize){var t=window.innerWidth,n=window.innerHeight;e.initialSize={width:t,height:n}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var i=window.innerWidth*c["r"].DEFAULT_WIDTH_PERCENTAGE/100,o=i/c["r"].DEFAULT_PROPORTIONS.width*c["r"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["r"].DEFAULT_HEIGHT_PERCENTAGE/100,s=r/c["r"].DEFAULT_PROPORTIONS.height*c["r"].DEFAULT_PROPORTIONS.width;i0){var r=0;o.forEach(function(n,i){r+=1,Xa()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(n.id),{param:"callback"},function(o,s){o?console.error(o.message):t.presentations.push({id:n.id,baseFolder:n.baseFolder,linkTitle:n.name,linkDescription:n.description,slides:s,index:i}),r-=1,0===r&&(e.presentationsLoading=!1,e.presentations.sort(function(e,t){return e.index-t.index}))})})}}})}catch(e){console.error("Error loading presentation: ".concat(e.message)),this.presentationsLoading=!1,this.presentationBlocked=e}}}),watch:{showHelp:function(e){this.$store.state.view.helpShown=e,e&&!this.presentationsLoading&&this.loadPresentation(0)},presentationsLoading:function(e){!e&&this.showHelp&&this.loadPresentation(0)},remember:function(e){e?V["a"].set(c["P"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):V["a"].remove(c["P"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=this.isLocal&&!V["a"].has(c["P"].COOKIE_HELP_ON_START),this.remember=!this.needHelp,this.$eventBus.$on(c["h"].NEED_HELP,this.helpNeededEvent),window.addEventListener("resize",this.onResize)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_HELP,this.helpNeededEvent),window.removeEventListener("resize",this.onResize)}},Va=Ua,Ga=(n("edad"),Object(y["a"])(Va,Na,Ia,!1,null,null,null));Ga.options.__file="KlabPresentation.vue";var Ka=Ga.exports,$a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-checkbox",{staticClass:"kn-checkbox",attrs:{"keep-color":!0,color:"app-main-color",label:e.$t("label.rememberDecision")},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}}),n("q-btn",{attrs:{color:"app-main-color",label:e.$t("label.appAccept")},on:{click:e.onOk}})]}}]),model:{value:e.showNotifications,callback:function(t){e.showNotifications=t},expression:"showNotifications"}},[n("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),n("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Ya=[];$a._withStripped=!0;var Ja={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:s()({},Object(a["c"])("stomp",["connectionUp"]),Object(a["c"])("view",["isInModalMode"]),{showNotifications:{get:function(){return-1!==this.actualNotificationIndex&&!this.actualNotificationIndex.read},set:function(){}},actualNotification:function(){return-1===this.actualNotificationIndex?{id:-1,title:"",content:""}:this.notifications[this.actualNotificationIndex]}}),methods:s()({},Object(a["b"])("view",["setModalMode"]),{onOk:function(){var e=this,t=this.notifications[this.actualNotificationIndex];t.read=!0,this.remember&&(this.cooked.findIndex(function(e){return e===t.id})&&this.cooked.push(t.id),V["a"].set(c["P"].COOKIE_NOTIFICATIONS,this.cooked,{expires:365,path:"/",secure:!0}),this.remember=!1),this.$nextTick(function(){do{e.actualNotificationIndex+=1}while(e.actualNotificationIndex0&&void 0!==arguments[0]?arguments[0]:{};this.notificationsLoading=!0,V["a"].has(c["P"].COOKIE_NOTIFICATIONS)&&(this.cooked=V["a"].get(c["P"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var n="";if(t){var i=t.groups,o=t.apps;n=q()(i.map(function(e){return"groups[]=".concat(e)})).concat(q()(o.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Xa()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==n?"?".concat(n):""),{param:"callback",timeout:5e3},function(t,n){t?console.error("Error loading notifications: ".concat(t.message)):n.length>0?n.forEach(function(e,t){var n=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(s()({},e,{read:n})),-1!==r.actualNotificationIndex||n||(r.actualNotificationIndex=t)}):console.debug("No notification"),e.presentationsLoading=!1})}catch(e){console.error("Error loading notifications: ".concat(e.message)),this.presentationsLoading=!1}}}),mounted:function(){this.$eventBus.$on(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)}},Qa=Ja,Za=(n("e0d9"),Object(y["a"])(Qa,$a,Ya,!1,null,null,null));Za.options.__file="KlabNotifications.vue";var ec=Za.exports,tc=(n("8195"),{name:"LayoutDefault",components:{KlabLayout:La,KlabModalWindow:Pa,ConnectionStatus:A,KlabSettings:P,KlabTerminal:Q,AppDialogs:oe,KlabPresentation:Ka,KlabNotifications:ec},data:function(){return{errorLoading:!1,waitApp:!1}},computed:s()({},Object(a["c"])("data",["hasContext","terminals","isDeveloper"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["layout","isApp","klabApp","modalWindow"]),{wait:{get:function(){return this.waitApp||this.errorLoading},set:function(){}}}),methods:{reload:function(){document.location.reload()}},created:function(){},mounted:function(){var e=this;this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["P"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["P"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:this.$store.state.view.klabApp},this.$store.state.data.session).body),this.isApp&&null===this.layout&&(this.waitApp=!0,setTimeout(function(){e.isApp&&null===e.layout&&(e.errorLoading=!0)},7e3)),window.addEventListener("beforeunload",function(t){e.hasContext&&!e.isDeveloper&&(t.preventDefault(),t.returnValue=e.$t("messages.confirmExitPage"))})},watch:{layout:function(e){this.waitApp&&e&&(this.waitApp=!1),this.errorLoading&&e&&(this.errorLoading=!1)}}}),nc=tc,ic=(n("7521"),Object(y["a"])(nc,i,o,!1,null,null,null));ic.options.__file="default.vue";t["default"]=ic.exports},"7bae":function(e,t,n){},"7bae3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("064a"),o=n("e1c6"),r=n("7f73"),s=n("755f"),a=n("6923"),c=n("e576"),l=new o.ContainerModule(function(e,t,n){i.configureModelElement({bind:e,isBound:n},"marker",r.SIssueMarker,s.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(a.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=l},"7bbc":function(e,t,n){"use strict";var i=n("fcf8"),o=n.n(i);o.a},"7d36":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=i},"7d72":function(e,t,n){"use strict";var i=n("8707").Buffer,o=i.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=r(e);if("string"!==typeof t&&(i.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function l(e,t,n){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0,d=u?l.length:n.length,f=h(i,t,s,c,d),m=p(e,n),g=f.concat(m);return g}function d(e,t,n,s,a){var l=a[e.toString()]||[],u=m(l),d=!0!==u.unmanaged,h=s[e],p=u.inject||u.multiInject;if(h=p||h,h instanceof i.LazyServiceIdentifer&&(h=h.unwrap()),d){var f=h===Object,g=h===Function,v=void 0===h,b=f||g||v;if(!t&&b){var y=o.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+n+".";throw new Error(y)}var _=new c.Target(r.TargetTypeEnum.ConstructorArgument,u.targetName,h);return _.metadata=l,_}return null}function h(e,t,n,i,o){for(var r=[],s=0;s0?l:f(e,n)}return 0}function m(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[s.INJECT_TAG],multiInject:t[s.MULTI_INJECT_TAG],targetName:t[s.NAME_TAG],unmanaged:t[s.UNMANAGED_TAG]}}t.getDependencies=l,t.getBaseClassDependencyCount=f},"7f45":function(e,t,n){var i=e.exports=n("0efb");i.tz.load(n("6cd2"))},"7f73":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("e4f0"),r=n("66f9");function s(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=s;var a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,o.hoverFeedbackFeature,o.popupFeature],n}(r.SShapeElement);t.SDecoration=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(a);t.SIssueMarker=c;var l=function(){function e(){}return e}();t.SIssue=l},"7faf":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=i},"80b5":function(e,t,n){"use strict";function i(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=i},8122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("33b2"),s=n("9e2e"),a=n("0fb6"),c=n("be02"),l=n("160b"),u=n("302f"),d=n("538c"),h=n("29fa"),p=n("65d1"),f=n("3b4c"),m=n("1417"),g=n("a190"),v=n("064a"),b=n("8794"),y=n("0d7a"),_=n("b093"),M=n("842c"),w=n("cd10"),C=n("ddee"),S=n("1590"),A=n("3f0a"),E=n("6176"),O=n("c661"),L=new i.ContainerModule(function(e,t,n){e(o.TYPES.ILogger).to(s.NullLogger).inSingletonScope(),e(o.TYPES.LogLevel).toConstantValue(s.LogLevel.warn),e(o.TYPES.SModelRegistry).to(u.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(o.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(o.TYPES.ViewRegistry).to(v.ViewRegistry).inSingletonScope(),e(o.TYPES.IModelFactory).to(u.SModelFactory).inSingletonScope(),e(o.TYPES.IActionDispatcher).to(a.ActionDispatcher).inSingletonScope(),e(o.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.IActionDispatcher))})}}),e(o.TYPES.IDiagramLocker).to(O.DefaultDiagramLocker).inSingletonScope(),e(o.TYPES.IActionHandlerInitializer).to(M.CommandActionHandlerInitializer),e(o.TYPES.ICommandStack).to(l.CommandStack).inSingletonScope(),e(o.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.ICommandStack))})}}),e(o.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(h.ModelViewer).toSelf().inSingletonScope(),e(h.HiddenModelViewer).toSelf().inSingletonScope(),e(h.PopupModelViewer).toSelf().inSingletonScope(),e(o.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.ModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.PopupModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.HiddenModelViewer).toService(h.HiddenModelViewer),e(o.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(o.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(o.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(o.TYPES.PopupModelViewer)}}}),e(o.TYPES.ViewerOptions).toConstantValue(p.defaultViewerOptions()),e(o.TYPES.PatcherProvider).to(h.PatcherProvider).inSingletonScope(),e(o.TYPES.DOMHelper).to(y.DOMHelper).inSingletonScope(),e(o.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,n){var i=e.container.get(o.TYPES.ViewRegistry);return new h.ModelRenderer(i,t,n)}}),e(_.IdPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(_.IdPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(_.IdPostprocessor),e(w.CssClassPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(w.CssClassPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(w.CssClassPostprocessor),e(f.MouseTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(f.MouseTool),e(m.KeyTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(m.KeyTool),e(g.FocusFixPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(g.FocusFixPostprocessor),e(o.TYPES.PopupVNodePostprocessor).toService(_.IdPostprocessor),e(f.PopupMouseTool).toSelf().inSingletonScope(),e(o.TYPES.PopupVNodePostprocessor).toService(f.PopupMouseTool),e(o.TYPES.AnimationFrameSyncer).to(d.AnimationFrameSyncer).inSingletonScope();var i={bind:e,isBound:n};M.configureCommand(i,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),M.configureCommand(i,A.SetModelCommand),e(o.TYPES.IToolManager).to(C.ToolManager).inSingletonScope(),e(o.TYPES.KeyListener).to(C.DefaultToolsEnablingKeyListener),e(C.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(i,S.EnableDefaultToolsAction.KIND,C.ToolManagerActionHandler),c.configureActionHandler(i,S.EnableToolsAction.KIND,C.ToolManagerActionHandler),e(o.TYPES.UIExtensionRegistry).to(E.UIExtensionRegistry).inSingletonScope(),M.configureCommand(i,E.SetUIExtensionVisibilityCommand),e(f.MousePositionTracker).toSelf().inSingletonScope(),e(o.TYPES.MouseListener).toService(f.MousePositionTracker)});t.default=L},8195:function(e,t,n){},"81aa":function(e,t,n){"use strict";function i(e,t,n,i,o){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:i,elm:o,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=i,t.default=i},8336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("0fd9"),s=n("2cac"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+i.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(i.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=o.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){var n=function(){return t.container.get(e)};return n},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=a},"842c":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("7b39"),c=n("6923"),l=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=l;var u=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new l(t))})},e=i([s.injectable(),r(0,s.multiInject(c.TYPES.CommandRegistration)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();function d(e,t){if(!a.isInjectable(t))throw new Error("Commands should be @injectable: "+t.name);e.isBound(t)||e.bind(t).toSelf(),e.bind(c.TYPES.CommandRegistration).toDynamicValue(function(e){return{kind:t.KIND,factory:function(n){var i=new s.Container;return i.parent=e.container,i.bind(c.TYPES.Action).toConstantValue(n),i.get(t)}}})}t.CommandActionHandlerInitializer=u,t.configureCommand=d},"84a2":function(e,t,n){(function(t){var n="Expected a function",i=NaN,o="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=Object.prototype,f=p.toString,m=Math.max,g=Math.min,v=function(){return h.Date.now()};function b(e,t,i){var o,r,s,a,c,l,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function f(t){var n=o,i=r;return o=r=void 0,u=t,a=e.apply(i,n),a}function b(e){return u=e,c=setTimeout(w,t),d?f(e):a}function y(e){var n=e-l,i=e-u,o=t-n;return h?g(o,s-i):o}function M(e){var n=e-l,i=e-u;return void 0===l||n>=t||n<0||h&&i>=s}function w(){var e=v();if(M(e))return S(e);c=setTimeout(w,y(e))}function S(e){return c=void 0,p&&o?f(e):(o=r=void 0,a)}function A(){void 0!==c&&clearTimeout(c),u=0,o=l=r=c=void 0}function E(){return void 0===c?a:S(v())}function O(){var e=v(),n=M(e);if(o=arguments,r=this,l=e,n){if(void 0===c)return b(l);if(h)return c=setTimeout(w,t),f(l)}return void 0===c&&(c=setTimeout(w,t)),a}return t=C(t)||0,_(i)&&(d=!!i.leading,h="maxWait"in i,s=h?m(C(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),O.cancel=A,O.flush=E,O}function y(e,t,i){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError(n);return _(i)&&(o="leading"in i?!!i.leading:o,r="trailing"in i?!!i.trailing:r),b(e,t,{leading:o,maxWait:t,trailing:r})}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return!!e&&"object"==typeof e}function w(e){return"symbol"==typeof e||M(e)&&f.call(e)==o}function C(e){if("number"==typeof e)return e;if(w(e))return i;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=y}).call(this,n("c8ba"))},"84b1":function(e,t,n){(function(t,n){e.exports=n()})(0,function(){"use strict";function e(e){var t,n,i=document,o=i.createElement("div"),r=o.style,s=navigator.userAgent,a=-1!==s.indexOf("Firefox")&&-1!==s.indexOf("Mobile"),c=e.debounceWaitMs||0,l=e.preventSubmit||!1,u=a?"input":"keyup",d=[],h="",p=2,f=e.showOnFocus,m=0;if(void 0!==e.minLength&&(p=e.minLength),!e.input)throw new Error("input undefined");var g=e.input;function v(){var e=o.parentNode;e&&e.removeChild(o)}function b(){n&&window.clearTimeout(n)}function y(){o.parentNode||i.body.appendChild(o)}function _(){return!!o.parentNode}function M(){m++,d=[],h="",t=void 0,v()}function w(){if(_()){r.height="auto",r.width=g.offsetWidth+"px";var t=g.getBoundingClientRect(),n=t.top+g.offsetHeight,i=window.innerHeight-n;i<0&&(i=0),r.top=n+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=i+"px",e.customize&&e.customize(g,t,o,i)}}function C(){while(o.firstChild)o.removeChild(o.firstChild);var n=function(e,t){var n=i.createElement("div");return n.textContent=e.label||"",n};e.render&&(n=e.render);var r=function(e,t){var n=i.createElement("div");return n.textContent=e,n};e.renderGroup&&(r=e.renderGroup);var s=i.createDocumentFragment(),a="#9?$";if(d.forEach(function(i){if(i.group&&i.group!==a){a=i.group;var o=r(i.group,h);o&&(o.className+=" group",s.appendChild(o))}var c=n(i,h);c&&(c.addEventListener("click",function(t){e.onSelect(i,g),M(),t.preventDefault(),t.stopPropagation()}),i===t&&(c.className+=" selected"),s.appendChild(c))}),o.appendChild(s),d.length<1){if(!e.emptyMsg)return void M();var c=i.createElement("div");c.className="empty",c.textContent=e.emptyMsg,o.appendChild(c)}y(),w(),L()}function S(){_()&&C()}function A(){S()}function E(e){e.target!==o?S():e.preventDefault()}function O(e){for(var t=e.which||e.keyCode||0,n=[38,13,27,39,37,16,17,18,20,91,9],i=0,o=n;i0){var t=e[0],n=t.previousElementSibling;if(n&&-1!==n.className.indexOf("group")&&!n.previousElementSibling&&(t=n),t.offsetTopr&&(o.scrollTop+=i-r)}}}function T(){if(d.length<1)t=void 0;else if(t===d[0])t=d[d.length-1];else for(var e=d.length-1;e>0;e--)if(t===d[e]||1===e){t=d[e-1];break}}function x(){if(d.length<1&&(t=void 0),t&&t!==d[d.length-1]){for(var e=0;e=p||1===i?(b(),n=window.setTimeout(function(){e.fetch(r,function(e){m===o&&e&&(d=e,h=r,t=d.length>0?d[0]:void 0,C())},0)},0===i?c:0)):M()}function P(){setTimeout(function(){i.activeElement!==g&&M()},200)}function N(){g.removeEventListener("focus",k),g.removeEventListener("keydown",R),g.removeEventListener(u,O),g.removeEventListener("blur",P),window.removeEventListener("resize",A),i.removeEventListener("scroll",E,!0),b(),M(),m++}return o.className="autocomplete "+(e.className||""),r.position="fixed",o.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),g.addEventListener("keydown",R),g.addEventListener(u,O),g.addEventListener("blur",P),g.addEventListener("focus",k),window.addEventListener("resize",A),i.addEventListener("scroll",E,!0),{destroy:N}}return e})},"84fd":function(e,t,n){},"85ed":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=a.LogLevel.error&&this.forward(e,t,a.LogLevel.error,n)},e.prototype.warn=function(e,t){for(var n=[],i=2;i=a.LogLevel.warn&&this.forward(e,t,a.LogLevel.warn,n)},e.prototype.info=function(e,t){for(var n=[],i=2;i=a.LogLevel.info&&this.forward(e,t,a.LogLevel.info,n)},e.prototype.log=function(e,t){for(var n=[],i=2;i=a.LogLevel.log)try{var o="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([o+": "+t],n))}catch(e){}},e.prototype.forward=function(e,t,n,i){var o=new Date,r=new l(a.LogLevel[n],o.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,i.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(n){try{n.handle(r)}catch(n){try{console.log.apply(e,[t,r,n])}catch(e){}}})},i([s.inject(c.TYPES.ModelSourceProvider),o("design:type",Function)],e.prototype,"modelSourceProvider",void 0),i([s.inject(c.TYPES.LogLevel),o("design:type",Number)],e.prototype,"logLevel",void 0),e=i([s.injectable()],e),e}();t.ForwardingLogger=u},"861d":function(e,t,n){var i=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,o=n("c4ec"),r=Object.create?Object.create(null):{};function s(e,t,n,i,o){var r=t.indexOf("<",i),s=t.slice(i,-1===r?void 0:r);/^\s*$/.test(s)&&(s=" "),(!o&&r>-1&&n+e.length>=0||" "!==s)&&e.push({type:"text",content:s})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var n,a=[],c=-1,l=[],u={},d=!1;return e.replace(i,function(i,r){if(d){if(i!=="")return;d=!1}var h,p="/"!==i.charAt(1),f=0===i.indexOf("\x3c!--"),m=r+i.length,g=e.charAt(m);p&&!f&&(c++,n=o(i),"tag"===n.type&&t.components[n.name]&&(n.type="component",d=!0),n.voidElement||d||!g||"<"===g||s(n.children,e,c,m,t.ignoreWhitespace),u[n.tagName]=n,0===c&&a.push(n),h=l[c-1],h&&h.children.push(n),l[c]=n),(f||!p||n.voidElement)&&(f||c--,!d&&"<"!==g&&g&&(h=-1===c?a:l[c].children,s(h,e,c,m,t.ignoreWhitespace)))}),!a.length&&e.length&&s(a,e,0,0,t.ignoreWhitespace),a}},8622:function(e,t,n){"use strict";var i=n("bc63"),o=n.n(i);o.a},"869e":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var u=function(e){function n(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.kind,e)}),n}return i(n,e),Object.defineProperty(n.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),n.prototype.get=function(t,n){return e.prototype.get.call(this,t+":"+(n||this.defaultAnchorKind))},n=o([a.injectable(),s(0,a.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],n),n}(l.InstanceRegistry);t.AnchorComputerRegistry=u},8707:function(e,t,n){var i=n("b639"),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=s),s.prototype=Object.create(o.prototype),r(o,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},8794:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("538c"),c=function(){function e(){}return e.prototype.update=function(e,t){if(void 0!==t)this.delegate.update(e,t),this.cachedModel=void 0;else{var n=void 0===this.cachedModel;this.cachedModel=e,n&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},i([r.inject(s.TYPES.IViewer),o("design:type",Object)],e.prototype,"delegate",void 0),i([r.inject(s.TYPES.AnimationFrameSyncer),o("design:type",a.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=i([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("7685"),o=n("30e3"),r=n("155f"),s=n("c5f4"),a=n("a8af"),c=n("ba33"),l=n("a32f"),u=n("1979"),d=n("c8c0"),h=n("7dba"),p=n("c622"),f=n("757d");function m(e){return e._bindingDictionary}function g(e,t,n,i,o,r){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new u.Metadata(a,n),l=new f.Target(t,i,n,c);if(void 0!==o){var d=new u.Metadata(o,r);l.metadata.push(d)}return l}function v(e,t,n,o,r){var s=_(n.container,r.serviceIdentifier),a=[];return s.length===i.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(r.serviceIdentifier).toSelf(),s=_(n.container,r.serviceIdentifier)),a=t?s:s.filter(function(e){var t=new p.Request(e.serviceIdentifier,n,o,e,r);return e.constraint(t)}),b(r.serviceIdentifier,a,r,n.container),a}function b(e,t,n,r){switch(t.length){case i.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=o.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a);case i.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case i.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;s=c.getServiceIdentifierAsString(e),a=o.AMBIGUOUS_MATCH+" "+s;throw a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a)}}function y(e,t,n,i,s,a){var c,l;if(null===s){c=v(e,t,i,null,a),l=new p.Request(n,i,null,c,a);var u=new d.Plan(i,l);i.addPlan(u)}else c=v(e,t,i,s,a),l=s.addChildRequest(a.serviceIdentifier,c,a);c.forEach(function(t){var n=null;if(a.isArray())n=l.addChildRequest(t.serviceIdentifier,t,a);else{if(t.cache)return;n=l}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var s=h.getDependencies(e,t.implementationType);if(!i.container.options.skipBaseClassChecks){var c=h.getBaseClassDependencyCount(e,t.implementationType);if(s.length=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd7b"),r=n("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var n=this;return o.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return n.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var n=this.doRender(e,t);return t.decorate(n,e),n},e.prototype.copyToThunk=function(e,t){t.elm=e.elm,e.data.fn=t.data.fn,e.data.args=t.data.args,t.data=e.data,t.children=e.children,t.text=e.text,t.elm=e.elm},e.prototype.init=function(e){var t=e.data,n=t.fn.apply(void 0,t.args);this.copyToThunk(n,e)},e.prototype.prepatch=function(e,t){var n=e.data,i=t.data;this.equals(n.args,i.args)?this.copyToThunk(e,t):this.copyToThunk(i.fn.apply(void 0,i.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("3585"),s=function(){function e(){}return e.prototype.isVisible=function(e,t,n){if("hidden"===n.targetKind)return!0;if(0===t.length)return!0;var i=r.getAbsoluteRouteBounds(e,t),o=e.root.canvasBounds;return i.x<=o.width&&i.x+i.width>=0&&i.y<=o.height&&i.y+i.height>=0},e=i([o.injectable()],e),e}();t.RoutableView=s},"8e08":function(e,t,n){},"8e65":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("6923"),s=n("42be"),a=n("26ad"),c=new i.ContainerModule(function(e,t,n){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),o.configureCommand({bind:e,isBound:n},s.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(a.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("dd02"),s=n("66f9"),a=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var n=s.getAbsoluteBounds(e),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=i([o.injectable()],e),e}();t.ShapeView=a},"8ef3":function(e,t,n){},9016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,o=function(e){i(function(){i(e)})},r=!1;function s(e,t,n){o(function(){e[t]=n})}function a(e,t){var n,i,o=t.elm,r=e.data.style,a=t.data.style;if((r||a)&&r!==a){r=r||{},a=a||{};var c="delayed"in r;for(i in r)a[i]||("-"===i[0]&&"-"===i[1]?o.style.removeProperty(i):o.style[i]="");for(i in a)if(n=a[i],"delayed"===i&&a.delayed)for(var l in a.delayed)n=a.delayed[l],c&&n===r.delayed[l]||s(o.style,l,n);else"remove"!==i&&n!==r[i]&&("-"===i[0]&&"-"===i[1]?o.style.setProperty(i,n):o.style[i]=n)}}function c(e){var t,n,i=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)i.style[n]=t[n]}function l(e,t){var n=e.data.style;if(n&&n.remove){r||(getComputedStyle(document.body).transform,r=!0);var i,o,s=e.elm,a=0,c=n.remove,l=0,u=[];for(i in c)u.push(i),s.style[i]=c[i];o=getComputedStyle(s);for(var d=o["transition-property"].split(", ");a=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("21a6"),c=n("e1c6"),l=n("3f0a"),u=n("6923"),d=n("42f7"),h=n("4741"),p=n("5d19"),f=n("f4cb"),m=n("b485"),g=n("cf61"),v=n("26ad");function b(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=b;var y=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=y;var _="__receivedFromServer",M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return i(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(d.ComputedBoundsAction.KIND,this),t.register(d.RequestBoundsCommand.KIND,this),t.register(f.RequestPopupModelAction.KIND,this),t.register(h.CollapseExpandAction.KIND,this),t.register(h.CollapseExpandAllAction.KIND,this),t.register(m.OpenAction.KIND,this),t.register(y.KIND,this),this.clientId||(this.clientId=this.viewerOptions.baseDiv)},t.prototype.handle=function(e){var t=this.handleLocally(e);t&&this.forwardToServer(e)},t.prototype.forwardToServer=function(e){var t={clientId:this.clientId,action:e};this.logger.log(this,"sending",t),this.sendMessage(t)},t.prototype.messageReceived=function(e){var t=this,n="string"===typeof e?JSON.parse(e):e;b(n)&&n.action?n.clientId&&n.clientId!==this.clientId||(n.action[_]=!0,this.logger.log(this,"receiving",n),this.actionDispatcher.dispatch(n.action).then(function(){t.storeNewModel(n.action)})):this.logger.error(this,"received data is not an action message",n)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case d.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case l.RequestModelAction.KIND:return this.handleRequestModel(e);case d.RequestBoundsCommand.KIND:return!1;case p.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case y.KIND:return this.handleServerStateAction(e)}return!e[_]},t.prototype.storeNewModel=function(e){if(e.kind===l.SetModelCommand.KIND||e.kind===g.UpdateModelCommand.KIND||e.kind===d.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==l.SetModelCommand.KIND&&e.kind!==g.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=o({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),n=o(o({},e),{options:t});return this.forwardToServer(n),!1},t.prototype.handleComputedBounds=function(e){if(this.viewerOptions.needsServerLayout)return!0;var t=this.currentRoot;return this.computedBoundsApplicator.apply(t,e),t.type===this.lastSubmittedModelType?this.actionDispatcher.dispatch(new g.UpdateModelAction(t)):this.actionDispatcher.dispatch(new l.SetModelAction(t)),this.lastSubmittedModelType=t.type,!1},t.prototype.handleExportSvgAction=function(e){var t=new Blob([e.svg],{type:"text/plain;charset=utf-8"});return a.saveAs(t,"diagram.svg"),!1},t.prototype.handleServerStateAction=function(e){return!1},t.prototype.commitModel=function(e){var t=this.currentRoot;return this.currentRoot=e,t},r([c.inject(u.TYPES.ILogger),s("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(v.ComputedBoundsApplicator),s("design:type",v.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(v.ModelSource);t.DiagramServer=M},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,i,o){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,i)});case 4:return t.nextTick(function(){e.call(null,n,i,o)});default:r=new Array(a-1),s=0;while(s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=function(){function e(){}return e=o([r.injectable()],e),e}();t.Command=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.merge=function(e,t){return!1},t=o([r.injectable()],t),t}(s);t.MergeableCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.undo=function(e){return e.logger.error(this,"Cannot undo a hidden command"),e.root},t.prototype.redo=function(e){return e.logger.error(this,"Cannot redo a hidden command"),e.root},t=o([r.injectable()],t),t}(s);t.HiddenCommand=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.PopupCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.SystemCommand=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.ResetCommand=d},9811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("e7fa"),s=new i.ContainerModule(function(e){e(o.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=s},"987d":function(e,t,n){"use strict";function i(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=i},"98ab":function(e,t,n){},"98db":function(e,t,n){(function(e,t){ +(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r)})(0,function(){"use strict";function e(){if("undefined"===typeof document)return 0;var e,t=document.body,n=document.createElement("div"),i=n.style;return i.position="absolute",i.top=i.left="-9999px",i.width=i.height="100px",i.overflow="scroll",t.appendChild(n),e=n.offsetWidth-n.clientWidth,t.removeChild(n),e}return e})},"510b":function(e,t,n){"use strict";function i(e){return void 0!==e&&e.hasOwnProperty("kind")&&"string"===typeof e["kind"]}function o(e){return i(e)&&e.hasOwnProperty("requestId")&&"string"===typeof e["requestId"]}Object.defineProperty(t,"__esModule",{value:!0}),t.isAction=i,t.isRequestAction=o;var r=1;function s(){return(r++).toString()}function a(e){return i(e)&&e.hasOwnProperty("responseId")&&"string"===typeof e["responseId"]&&""!==e["responseId"]}t.generateRequestId=s,t.isResponseAction=a;var c=function(){function e(t,n,i){this.message=t,this.responseId=n,this.detail=i,this.kind=e.KIND}return e.KIND="rejectRequest",e}();t.RejectAction=c;var l=function(){function e(e,t,n){this.label=e,this.actions=t,this.icon=n}return e}();function u(e){return void 0!==e&&void 0!==e.label&&void 0!==e.actions}t.LabeledAction=l,t.isLabeledAction=u},"520d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("559d"),s=n("842c"),a=new i.ContainerModule(function(e,t,n){e(o.TYPES.MouseListener).to(r.MoveMouseListener),s.configureCommand({bind:e,isBound:n},r.MoveCommand),e(r.LocationPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.LocationPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(r.LocationPostprocessor)});t.default=a},"538c":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){this.tasks=[],this.endTasks=[],this.triggered=!1}return e.prototype.isAvailable=function(){return"function"===typeof requestAnimationFrame},e.prototype.onNextFrame=function(e){this.tasks.push(e),this.trigger()},e.prototype.onEndOfNextFrame=function(e){this.endTasks.push(e),this.trigger()},e.prototype.trigger=function(){var e=this;this.triggered||(this.triggered=!0,this.isAvailable()?requestAnimationFrame(function(t){return e.run(t)}):setTimeout(function(t){return e.run(t)}))},e.prototype.run=function(e){var t=this.tasks,n=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),n.forEach(function(t){return t.call(void 0,e)})},e=i([o.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("70d9"),r=new i.ContainerModule(function(e){e(o.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("dfc0"),s=new i.ContainerModule(function(e,t,n,i){i(o.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=s},"559d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n("e1c6"),l=n("c146"),u=n("9757"),d=n("3a92"),h=n("3623"),p=n("6923"),f=n("3b4c"),m=n("e45b"),g=n("47b7"),v=n("42be"),b=n("dd02"),y=n("66f9"),_=n("ea38"),M=n("1978"),w=n("a5f4"),C=n("61d8"),S=n("3585"),A=n("168d"),E=n("779b"),O=n("4c18"),L=n("bcbd"),T=n("5eb6"),x=n("a0af"),R=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.moves=e,this.animate=t,this.finished=n,this.kind=k.KIND}return e}();t.MoveAction=R;var k=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.resolvedMoves=new Map,n.edgeMementi=[],n}var n;return i(t,e),n=t,t.prototype.execute=function(e){var t=this,n=e.root.index,i=new Map,o=new Map;return this.action.moves.forEach(function(e){var r=n.getById(e.elementId);if(r instanceof S.SRoutingHandle&&t.edgeRouterRegistry){var s=r.parent;if(s instanceof S.SRoutableElement){var a=t.resolveHandleMove(r,s,e);if(a){var c=i.get(s);c||(c=[],i.set(s,c)),c.push(a)}}}else if(r&&x.isLocateable(r)){var l=t.resolveElementMove(r,e);l&&(t.resolvedMoves.set(l.element.id,l),t.edgeRouterRegistry&&n.getAttachedElements(r).forEach(function(e){if(e instanceof S.SRoutableElement){var t=o.get(e),n=b.subtract(l.toPosition,l.fromPosition),i=t?b.linear(t,n,.5):n;o.set(e,i)}}))}}),this.doMove(i,o),this.action.animate?(this.undoMove(),new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,n){var i=n.fromPosition;if(!i){var o=this.edgeRouterRegistry.get(t.routerKind);i=o.getHandlePosition(t,o.route(t),e)}if(i)return{handle:e,fromPosition:i,toPosition:n.toPosition}},t.prototype.resolveElementMove=function(e,t){var n=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:n,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var n=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var i=n.edgeRouterRegistry.get(t.routerKind),o=i.takeSnapshot(t);i.applyHandleMoves(t,e);var r=i.takeSnapshot(t);n.edgeMementi.push({edge:t,before:o,after:r})}),t.forEach(function(t,i){if(!e.get(i)){var o=n.edgeRouterRegistry.get(i.routerKind),r=o.takeSnapshot(i);if(i.source&&i.target&&n.resolvedMoves.get(i.source.id)&&n.resolvedMoves.get(i.target.id))i.routingPoints=i.routingPoints.map(function(e){return b.add(e,t)});else{var s=O.isSelectable(i)&&i.selected;o.cleanupRoutingPoints(i,i.routingPoints,s,n.action.finished)}var a=o.takeSnapshot(i);n.edgeMementi.push({edge:i,before:r,after:a})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var n=e.edgeRouterRegistry.get(t.edge.routerKind);n.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!0),new P(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var i=this;if(!this.action.animate&&e instanceof n)return e.resolvedMoves.forEach(function(e,t){var n=i.resolvedMoves.get(t);n?n.toPosition=e.toPosition:i.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=i.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:i.edgeMementi.push(e)}),!0;if(e instanceof C.ReconnectCommand){var o=e.memento;if(o){var r=this.edgeMementi.find(function(e){return e.edge.id===o.edge.id});r?r.after=o.after:this.edgeMementi.push(o)}return!0}return!1},t.KIND="move",r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=n=r([c.injectable(),a(0,c.inject(p.TYPES.Action)),s("design:paramtypes",[R])],t),t}(u.MergeableCommand);t.MoveCommand=k;var z=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementMoves=n,r.reverse=o,r}return i(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(n){t.reverse?n.element.position={x:(1-e)*n.toPosition.x+e*n.fromPosition.x,y:(1-e)*n.toPosition.y+e*n.fromPosition.y}:n.element.position={x:(1-e)*n.fromPosition.x+e*n.toPosition.x,y:(1-e)*n.fromPosition.y+e*n.toPosition.y}}),this.model},t}(l.Animation);t.MoveAnimation=z;var P=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.reverse=o,r.expanded=[],n.forEach(function(e){var t=r.reverse?e.after:e.before,n=r.reverse?e.before:e.after,i=t.routedPoints,o=n.routedPoints,s=Math.max(i.length,o.length);r.expanded.push({startExpandedRoute:r.growToSize(i,s),endExpandedRoute:r.growToSize(o,s),memento:e})}),r}return i(t,e),t.prototype.midPoint=function(e){var t=e.edge,n=e.edge.source,i=e.edge.target;return b.linear(h.translatePoint(b.center(n.bounds),n.parent,t.parent),h.translatePoint(b.center(i.bounds),i.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof S.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var n=e.memento;t.reverse?n.before.router.applySnapshot(n.edge,n.before):n.after.router.applySnapshot(n.edge,n.after)}):this.expanded.forEach(function(t){for(var n=[],i=1;i(s+l)*o)++l;s+=l;for(var u=0;u0?new R(o,!1,n):void 0}},t.prototype.snap=function(e,t,n){return n&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof S.SRoutableElement))return;var n=this.edgeRouterRegistry.get(t.routerKind),i=n.route(t);return n.getHandlePosition(t,i,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof d.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var n=this,i=[],o=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&i.push(r),e.root.index.all().forEach(function(t){if(t instanceof S.SRoutingHandle){var r=t.parent;if(r instanceof S.SRoutableElement&&t.danglingAnchor){var s=n.getHandlePosition(t);if(s){var a=h.translatePoint(s,t.parent,t.root),c=y.findChildrenAtPosition(e.root,a).find(function(e){return S.isConnectable(e)&&e.canConnect(r,t.kind)});c&&n.hasDragged&&(i.push(new C.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),o=!0)}}t.editMode&&i.push(new w.SwitchEditModeAction([],[t.id]))}})}if(!o){var s=e.root.index.getById(S.edgeInProgressID);if(s instanceof d.SChildElement){var a=[];a.push(S.edgeInProgressID),s.children.forEach(function(e){e instanceof S.SRoutingHandle&&e.danglingAnchor&&a.push(e.danglingAnchor.id)}),i.push(new M.DeleteElementAction(a))}}return this.hasDragged&&i.push(new v.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),i},t.prototype.decorate=function(e,t){return e},r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(p.TYPES.ISnapper),c.optional(),s("design:type",Object)],t.prototype,"snapper",void 0),t}(f.MouseListener);t.MoveMouseListener=N;var I=function(){function e(){}return e.prototype.decorate=function(e,t){if(E.isEdgeLayoutable(t)&&t.parent instanceof g.SEdge)return e;var n="";if(x.isLocateable(t)&&t instanceof d.SChildElement&&void 0!==t.parent){var i=t.position;0===i.x&&0===i.y||(n="translate("+i.x+", "+i.y+")")}if(y.isAlignable(t)){var o=t.alignment;0===o.x&&0===o.y||(n.length>0&&(n+=" "),n+="translate("+o.x+", "+o.y+")")}return n.length>0&&m.setAttr(e,"transform",n),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=I},5823:function(e,t,n){"use strict";var i=n("e8de"),o=n.n(i);o.a},5870:function(e,t,n){},5884:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("1cc1"),r=n("3c83"),s=n("6923"),a=new i.ContainerModule(function(e){e(s.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,n){e.container.isBound(s.TYPES.IContextMenuService)?t(e.container.get(s.TYPES.IContextMenuService)):n()})}}),e(s.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(s.TYPES.IContextMenuProviderRegistry).to(o.ContextMenuProviderRegistry)});t.default=a},"5b35":function(e,t,n){"use strict";var i=n("b878"),o=n.n(i);o.a},"5bc0":function(e,t,n){},"5bcd":function(e,t,n){},"5d08":function(e,t,n){"use strict";var i=n("d675"),o=n.n(i);o.a},"5d19":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("66f9"),s=n("0fb6"),a=n("6923"),c=n("dd02"),l=n("e1c6"),u=function(){function e(t,n){void 0===n&&(n=""),this.svg=t,this.responseId=n,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=u;var d=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var n=document.getElementById(this.options.hiddenDiv);if(null!==n&&n.firstElementChild&&"svg"===n.firstElementChild.tagName){var i=n.firstElementChild,o=this.createSvg(i,e);this.actionDispatcher.dispatch(new u(o,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var n=new XMLSerializer,i=n.serializeToString(e),o=document.createElement("iframe");if(document.body.appendChild(o),!o.contentWindow)throw new Error("IFrame has no contentWindow");var r=o.contentWindow.document;r.open(),r.write(i),r.close();var s=r.getElementById(e.id);s.removeAttribute("opacity"),this.copyStyles(e,s,["width","height","opacity"]),s.setAttribute("version","1.1");var a=this.getBounds(t);s.setAttribute("viewBox",a.x+" "+a.y+" "+a.width+" "+a.height);var c=n.serializeToString(s);return document.body.removeChild(o),c},e.prototype.copyStyles=function(e,t,n){for(var i=getComputedStyle(e),o=getComputedStyle(t),r="",s=0;s=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n("a8f0").Buffer,r=n(3);function s(e,t,n){e.copy(t,n)}e.exports=function(){function e(){i(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;var t=o.allocUnsafe(e>>>0),n=this.head,i=0;while(n)s(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},"5e9c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("6923");function o(e,t){var n=e.get(i.TYPES.CommandStackOptions);for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}t.overrideCommandStackOptions=o},"5eb6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a92");function o(e){return e instanceof i.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=o},6176:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("dd02"),a=n("3a92"),c=n("6923"),l=n("42f7"),u=n("320b"),d=n("66f9"),h=function(){function e(){}return e}();t.BoundsData=h;var p=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(d.isSizeable(t)||d.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof a.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===l.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var n=[],i=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var o={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof a.SChildElement&&d.isLayoutContainer(t.parent)&&(o.newPosition={x:e.bounds.x,y:e.bounds.y}),n.push(o)}e.alignmentChanged&&void 0!==e.alignment&&i.push({elementId:t.id,newAlignment:e.alignment})});var o=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new l.ComputedBoundsAction(n,o,i,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,n){if(t.bounds&&d.isSizeable(n)){var i=t.vnode;if(i&&i.elm){var o=e.getBounds(i.elm,n);!d.isAlignable(n)||s.almostEquals(o.x,0)&&s.almostEquals(o.y,0)||(t.alignment={x:-o.x,y:-o.y},t.alignmentChanged=!0);var r={x:n.bounds.x,y:n.bounds.y,width:o.width,height:o.height};s.almostEquals(r.x,n.bounds.x)&&s.almostEquals(r.y,n.bounds.y)&&s.almostEquals(r.width,n.bounds.width)&&s.almostEquals(r.height,n.bounds.height)||(t.bounds=r,t.boundsChanged=!0)}}})},e.prototype.getBounds=function(e,t){if("function"!==typeof e.getBBox)return this.logger.error(this,"Not an SVG element:",e),s.EMPTY_BOUNDS;var n=e.getBBox();return{x:n.x,y:n.y,width:n.width,height:n.height}},i([r.inject(c.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([r.inject(c.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([r.inject(c.TYPES.Layouter),o("design:type",u.Layouter)],e.prototype,"layouter",void 0),e=i([r.injectable()],e),e}();t.HiddenBoundsUpdater=p},"61d8":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("6923"),u=n("3585"),d=n("168d"),h=function(){function e(t,n,i){this.routableId=t,this.newSourceId=n,this.newTargetId=i,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,n=t.getById(this.action.routableId);if(n instanceof u.SRoutableElement){var i=this.edgeRouterRegistry.get(n.routerKind),o=i.takeSnapshot(n);i.applyReconnect(n,this.action.newSourceId,this.action.newTargetId);var r=i.takeSnapshot(n);this.memento={edge:n,before:o,after:r}}},t.prototype.undo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.before)}return e.root},t.prototype.redo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.after)}return e.root},t.KIND=h.KIND,o([a.inject(d.EdgeRouterRegistry),r("design:type",d.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(l.TYPES.Action)),r("design:paramtypes",[h])],t),t}(c.Command);t.ReconnectCommand=p},6208:function(e,t,n){"use strict";var i=n("6cea"),o=n.n(i);o.a},"624f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4"),r=n("1979"),s=n("66d7"),a=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,n,a){if(void 0===e)throw new Error(i.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(o.INJECT_TAG,e);"number"===typeof a?s.tagParameter(t,n,a,c):s.tagProperty(t,n,c)}}t.LazyServiceIdentifer=a,t.inject=c},6283:function(e,t,n){"use strict";var i=n("5bcd"),o=n.n(i);o.a},6420:function(e,t,n){"use strict";var i=n("1f0f"),o=n.n(i);o.a},6592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=s,t.transformName=a,t.unescapeEntities=u;var i=n("81aa"),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return(0,o.default)(void 0,void 0,void 0,u(e,t))}function a(e){e=e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var t=e.charAt(0).toLowerCase();return""+t+e.substring(1)}var c=new RegExp("&[a-z0-9#]+;","gi"),l=null;function u(e,t){return l||(l=t.createElement("div")),e.replace(c,function(e){return l.innerHTML=e,l.textContent})}},"65d1":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("393a"),c=n("3623"),l=n("e45b"),u=n("8e97"),d=n("779b"),h=n("3585"),p=n("168d"),f=n("8d9d"),m=function(){function e(){}return e.prototype.render=function(e,t){var n="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return a.svg("svg",{"class-sprotty-graph":!0},a.svg("g",{transform:n},t.renderChildren(e)))},e=o([s.injectable()],e),e}();t.SGraphView=m;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){var n=this.edgeRouterRegistry.get(e.routerKind),i=n.route(e);if(0===i.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,i,t)){if(0===e.children.length)return;return a.svg("g",null,t.renderChildren(e,{route:i}))}return a.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,i,t),this.renderAdditionals(e,i,t),t.renderChildren(e,{route:i}))},t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=l.some(function(e){return!!~n.indexOf(e)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),L="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new O(t,n,this);L.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){T.prototype[e]=function(){var t;return(t=L.get(this))[e].apply(t,arguments)}});var x=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:T}();t["a"]=x}).call(this,n("c8ba"))},"6f35":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("3ada"),s=new i.ContainerModule(function(e,t,n){o.configureCommand({bind:e,isBound:n},r.BringToFrontCommand)});t.default=s},"70d9":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3864"),c=n("e1c6"),l=n("6923"),u=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.TYPE,new e)}),n}return i(t,e),t=o([c.injectable(),s(0,c.multiInject(l.TYPES.IButtonHandler)),s(0,c.optional()),r("design:paramtypes",[Array])],t),t}(a.InstanceRegistry);t.ButtonHandlerRegistry=u},7122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("c5f4");function s(e,t,n){var i=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ClassProperty}),r=i.map(n);return i.forEach(function(t,n){var i="";i=t.target.name.value();var o=r[n];e[i]=o}),e}function a(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(i.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function l(e,t,n){var i=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ConstructorArgument}),l=r.map(n);i=a(e,l),i=s(i,t,n)}else i=new e;return c(e,i),i}t.resolveInstance=l},"715d":function(e,t,n){"use strict";var i=n("1f66"),o=n.n(i);o.a},7173:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[n("div",{staticClass:"ft-container"},[n("div",{staticClass:"ft-time row"},[n("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[n("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.slices.length>0?e.slices[0][1]:e.$t("label.timeOrigin"))}}):e._e()],1),n("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ft-timeline",staticClass:"ft-timeline",class:{"ft-with-slices":0!==e.slices.length},on:{mousemove:e.moveOnTimeline,click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?n("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,i){return-1!==t[0]?n("div",{key:i,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),n("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?n("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[n("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?n("q-tooltip",{staticClass:"ft-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)])])]),n("q-resize-observable",{on:{resize:e.updateWidth}})],1)},o=[];i._withStripped=!0;n("ac6a");var r=n("278c"),s=n.n(r),a=(n("28a5"),n("c5f6"),n("c1df")),c=n.n(a),l=n("b8c1"),u={name:"FigureTimeline",mixins:[l["a"]],props:{observationId:{type:String,required:!0},start:{type:Number,required:!0},end:{type:Number,required:!0},rawSlices:{type:Array,default:function(){return[]}},startingTime:{type:Number,default:-1}},computed:{slices:function(){return this.rawSlices.map(function(e){var t=e.split(",");return[+t[0],t[1]]})}},data:function(){return{timestamp:this.startingTime,timelineDate:null,timelineWidth:0,timelineLeft:0}},methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?"":(t||(e=c()(e).format("L")),'
'.concat(e,"
"))},updateWidth:function(){var e=this.$refs["ft-timeline-".concat(this.observationId)];e?(this.timelineWidth=e.clientWidth,this.timelineLeft=e.getBoundingClientRect().left):(this.timelineWidth=0,this.timelineLeft=0)},calculatePosition:function(e){if(0===this.timelineWidth)return 0;if(-1===e)return 0;var t=Math.floor((e-this.start)*this.timelineWidth/(this.end-this.start));return t},moveOnTimeline:function(e){var t=this.getSlice(this.getDateFromPosition(e)),n=s()(t,2);this.timelineDate=n[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,n=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return n>this.end?n=this.end:nthis.end)return[this.end,this.formatDate(this.end)];var t=[this.start,this.formatDate(this.start)];return this.slices.length>0&&this.slices.forEach(function(n){n[0]<=e&&(t=n)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),n=s()(t,2);this.timelineDate=n[1],this.$emit("timestampchange",{time:t[0],timeString:-1===e?t[1]:c()(e).format("L")})}},getLabel:function(e){return c()(e).format("L")}},mounted:function(){this.updateWidth()}},d=u,h=(n("0faf"),n("2877")),p=Object(h["a"])(d,i,o,!1,null,null,null);p.options.__file="FigureTimeline.vue";t["a"]=p.exports},"719e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(o.PARAM_TYPES,e))throw new Error(i.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(o.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(o.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,n){},"72dd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("42f7"),s=n("61bf"),a=n("320b"),c=n("842c"),l=new i.ContainerModule(function(e,t,n){c.configureCommand({bind:e,isBound:n},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:n},r.RequestBoundsCommand),e(s.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(o.TYPES.HiddenVNodePostprocessor).toService(s.HiddenBoundsUpdater),e(o.TYPES.Layouter).to(a.Layouter).inSingletonScope(),e(o.TYPES.LayoutRegistry).to(a.LayoutRegistry).inSingletonScope()});t.default=l},7364:function(e,t,n){},7521:function(e,t,n){"use strict";var i=n("48f9"),o=n.n(i);o.a},"755f":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("e45b"),s=n("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var n=16/1792,i="scale("+n+", "+n+")",s=this.getMaxSeverity(e),a=o.svg("g",{"class-sprotty-issue":!0},o.svg("g",{transform:i},o.svg("path",{d:this.getPath(s)})));return r.setClass(a,"sprotty-"+s,!0),a},e.prototype.getMaxSeverity=function(e){for(var t="info",n=0,i=e.issues.map(function(e){return e.severity});n1?n("div",{staticClass:"kal-locales row reverse"},[n("q-select",{staticClass:"kal-lang-selector",attrs:{options:t.localeOptions,color:"app-main-color","hide-underline":""},model:{value:t.selectedLocale,callback:function(n){e.$set(t,"selectedLocale",n)},expression:"app.selectedLocale"}})],1):e._e()])})],2)])],1)],1)],1)])},O=[];E._withStripped=!0;n("a481"),n("7514"),n("20d6"),n("ac6a"),n("cadf"),n("456d"),n("7f7f");var L=n("be3b"),T=n("d247"),x={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan; Valencian",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiCheŵa"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén)"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands"},en:{name:"English",nativeName:"English",flag:"gb"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi"},fr:{name:"French",nativeName:"français"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian; Haitian Creole",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa"},he:{name:"Hebrew (modern)",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語)"},ku:{name:"Kurdish",nativeName:"Kurdî"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi (Marāṭhī)",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский"},sa:{name:"Sanskrit (Saṁskṛta)",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"español"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan Standard",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur",nativeName:"Uyƣurqə"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"}},R={name:"KlabSettings",data:function(){return{models:{userDetails:!1,appsList:!1},popupsOver:{userDetails:!1,appsList:!1},fabVisible:!1,closeTimeout:null,modalTimeout:null,appsList:[],localeOptions:[],test:"es",TERMINAL_TYPES:c["K"],ISO_LOCALE:x}},computed:s()({},Object(a["c"])("data",["sessionReference","isLocal"]),Object(a["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["M"].DATAFLOW_VIEWER.name},modalsAreFocused:function(){var e=this;return Object.keys(this.popupsOver).some(function(t){return e.popupsOver[t]})||this.selectOpen},owner:function(){return this.sessionReference&&this.sessionReference.owner?this.sessionReference.owner:{unknown:this.$t("label.unknownUser")}},isDeveloper:function(){return this.owner&&this.owner.groups&&-1!==this.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})}}),methods:s()({},Object(a["b"])("data",["loadSessionReference","addTerminal"]),Object(a["b"])("view",["setLayout","setShowSettings"]),{getLocalizedString:function(e,t){if(e.selectedLocale){var n=e.localizations.find(function(t){return t.isoCode===e.selectedLocale});if(n)return"label"===t?n.localizedLabel:n.localizedDescription;if("description"===t)return this.$t("label.noLayoutDescription");if(e.name)return e.name;this.$t("label.noLayoutLabel")}return""},loadApplications:function(){var e=this;if(this.appsList.splice(0),this.sessionReference&&this.sessionReference.publicApps){var t=this.sessionReference.publicApps.filter(function(e){return"WEB"===e.platform||"ANY"===e.platform});t.forEach(function(t){t.logo?(t.logoSrc="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(t.projectId,"/").concat(t.logo.replace("/",":")),e.appsList.push(t)):(t.logoSrc=c["b"].DEFAULT_LOGO,e.appsList.push(t)),e.$set(t,"selectedLocale",t.localizations[0].isoCode),t.localeOptions=t.localizations.map(function(e){return{label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}})})}},runApp:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selectedLocale,i="".concat(e.name,".").concat(n);this.layout&&this.layout.name===i||(e.selectedLocale=n,this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:i},this.$store.state.data.session).body),this.$nextTick(function(){t.models.appsList=!1,t.fabVisible=!1}))},exitApp:function(){this.layout&&this.setLayout(null)},logout:function(){var e=this,t="".concat("").concat("/modeler").concat(this.isApp?"?app=".concat(this.klabApp):"");null!==this.token?L["a"].post("".concat("").concat(T["c"].REST_API_LOGOUT),{}).then(function(n){var i=n.status;205===i?window.location=t:(e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error("Strange status: ".concat(i)))}).catch(function(t){e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),t.response&&403===t.response.status&&console.error("Probably bad token"),console.error("Error logging out: ".concat(t))}):window.location=t},mouseActionEnter:function(e){var t=this;clearTimeout(this.modalTimeout),this.modalTimeout=null,this.$nextTick(function(){t.models[e]=!0,Object.keys(t.models).forEach(function(n){n!==e&&(t.models[n]=!1)})})},mouseFabClick:function(e){var t=this;this.fabVisible?(e.stopPropagation(),e.preventDefault(),setTimeout(function(){window.addEventListener("click",t.closeAll)},300)):(this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.modalsAreFocused||this.closeAll(e,500))},closeAll:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.closeTimeout=setTimeout(function(){Object.keys(e.models).forEach(function(t){e.models[t]=!1}),e.$refs["klab-settings"].hide(),window.removeEventListener("click",e.closeAll)},t)},openTerminal:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.closeAll(),setTimeout(function(){e.addTerminal(s()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},k=R,z=(n("e2d7"),Object(y["a"])(k,E,O,!1,null,null,null));z.options.__file="KlabSettings.vue";var P=z.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.draggableConfig,expression:"draggableConfig"}],staticClass:"kterm-container",class:{"kterm-minimized":!e.terminal.active,"kterm-focused":e.hasFocus},attrs:{id:"kterm-container-"+e.terminal.id}},[n("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[n("q-btn",{staticClass:"kterm-button kterm-delete-history",attrs:{icon:"mdi-delete-clock-outline",disable:0===e.terminalCommands.length,flat:"",color:"white",dense:""},on:{click:e.deleteHistory}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalDeleteHistory")))])],1),n("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalResizeWindow")))])],1),e.terminal.active?n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMinimize")))])],1):n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMaxmize")))])],1),n("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalClose")))])],1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),n("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.sizeSelected(t.ok,!1)}}}),n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(n){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),n("div",{attrs:{slot:"body"},slot:"body"},[n("q-option-group",{attrs:{type:"radio",color:"mc-main",options:e.TERMINAL_SIZE_OPTIONS.map(function(e){return{label:e.label,value:e.value}})},model:{value:e.selectedSize,callback:function(t){e.selectedSize=t},expression:"selectedSize"}})],1)])],1)},I=[];N._withStripped=!0;var D,B=n("448a"),q=n.n(B),j=(n("96cf"),n("c973")),W=n.n(j),F=n("fcf3");n("f751");function H(e){return e&&(e.$el||e)}function X(e,t,n,i,o){void 0===o&&(o={});var r={left:n,top:i},s=e.height,a=e.width,c=i,l=i+s,u=n,d=n+a,h=o.top||0,p=o.bottom||0,f=o.left||0,m=o.right||0,g=t.top+h,v=t.bottom-p,b=t.left+f,y=t.right-m;return cv&&(r.top=v-s),uy&&(r.left=y-a),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(D||(D={}));var U={bind:function(e,t,n,i){U.update(e,t,n,i)},update:function(e,t,n,i){if(!t.value||!t.value.stopDragging){var o=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(p(),g()),o.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),o.addEventListener("mousedown",c),o.addEventListener("touchstart",c,{passive:!1}),o.setAttribute("draggable","true"),e.listener=c,p(),g())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function s(){if(!f()){var t=v();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function a(e){return e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY,e}function c(e){if(window.TouchEvent&&e instanceof TouchEvent){if(e.targetTouches.length1||(t.value.fingers=2),m({initialPosition:a,startDragPosition:a,currentDragPosition:a,initialPos:d(e)}),s()}function f(){return t&&t.value&&t.value.noMove}function m(e){var t=v(),n=Object.assign({},t,e);o.setAttribute("draggable-state",JSON.stringify(n))}function g(e,n){var i=v(),o={x:0,y:0};i.currentDragPosition&&i.startDragPosition&&(o.x=i.currentDragPosition.left-i.startDragPosition.left,o.y=i.currentDragPosition.top-i.startDragPosition.top);var r=i.currentDragPosition&&Object.assign({},i.currentDragPosition);n===D.End?t.value&&t.value.onDragEnd&&i&&t.value.onDragEnd(o,r,e):n===D.Start?t.value&&t.value.onDragStart&&i&&t.value.onDragStart(o,r,e):t.value&&t.value.onPositionChange&&i&&t.value.onPositionChange(o,r,e)}function v(){return JSON.parse(o.getAttribute("draggable-state"))||{}}}},V=n("741d"),G=n("abcf"),K=(n("abb2"),G["b"].height),$={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["J"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:U},data:function(){var e=this;return{instance:void 0,zIndex:1e3,draggableConfig:{handle:void 0,onDragEnd:function(){e.instance.focus()}},draggableElement:void 0,commandCounter:0,command:[],hasFocus:!1,selectedSize:null,selectSize:!1,commandsIndex:-1,TERMINAL_SIZE_OPTIONS:c["J"]}},computed:s()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["K"].DEBUGGER?"#002f74":"#2e0047"}},Object(a["c"])("data",["terminalCommands"])),methods:s()({},Object(a["b"])("data",["removeTerminal","addTerminalCommand","clearTerminalCommands"]),{minimize:function(){this.terminal.active=!1,this.changeDraggablePosition({top:window.innerHeight-55,left:25})},maximize:function(){var e=this;this.changeDraggablePosition(this.draggableConfig.initialPosition),this.terminal.active=!0,this.$nextTick(function(){e.instance.focus()})},closeTerminal:function(){this.sendStompMessage(l["a"].CONSOLE_CLOSED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body),this.instance=null,this.removeTerminal(this.terminal.id)},changeDraggablePosition:function(e){this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var t=JSON.parse(this.draggableConfig.handle.getAttribute("draggable-state"));t.startDragPosition=e,t.currentDragPosition=e,this.draggableConfig.handle.setAttribute("draggable-state",JSON.stringify(t))},commandResponseListener:function(e){e&&e.payload&&e.consoleId===this.terminal.id&&(this.instance.write("\b \b\b \b".concat(e.payload.replaceAll("\n","\r\n"))),this.instance.prompt())},onFocusListener:function(e){this.hasFocus=this.terminal.id===e},sizeSelected:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:i=c["J"].find(function(e){return e.value===o.selectedSize}),this.instance.resize(i.cols,i.rows),n&&V["a"].set(c["P"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(l["a"].CONSOLE_CREATED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body)},mounted:function(){var e,t=this;e=this.size?this.size:V["a"].has(c["P"].COOKIE_TERMINAL_SIZE)?V["a"].get(c["P"].COOKIE_TERMINAL_SIZE):c["J"][0].value;var n=c["J"].find(function(t){return t.value===e});this.selectedSize=n.value,this.instance=new F["Terminal"]({cols:n.cols,rows:n.rows,cursorBlink:!0,bellStyle:"both",theme:{background:this.background}}),this.instance.prompt=function(){t.instance.write("\r\n$ ")},this.instance.open(document.getElementById("kterm-".concat(this.terminal.id))),this.instance.writeln("".concat(this.$t("messages.terminalHello",{type:this.terminal.type})," / ").concat(this.terminal.id)),this.instance.prompt(),this.instance.onData(function(e){var n=function(){for(var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=0;i0){var o=t.command.join("");t.sendStompMessage(l["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:o},t.$store.state.data.session).body),t.addTerminalCommand(o)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":i>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?n(t.terminalCommands[--t.commandsIndex]):(n(),t.commandsIndex=-1);break;case"":break;case"":break;default:t.command.push(e),t.instance.write(e)}}),this.instance.textarea.addEventListener("focus",function(){t.$eventBus.$emit(c["h"].TERMINAL_FOCUSED,t.terminal.id)}),this.draggableConfig.handle=document.getElementById("kterm-handle-".concat(this.terminal.id)),this.draggableElement=document.getElementById("kterm-container-".concat(this.terminal.id)),this.draggableConfig.initialPosition={top:window.innerHeight-K(this.draggableElement)-25,left:25},this.instance.focus(),this.$eventBus.$on(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$on(c["h"].COMMAND_RESPONSE,this.commandResponseListener)},beforeDestroy:function(){null!==this.instance&&this.closeTerminal(),this.$eventBus.$off(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$off(c["h"].COMMAND_RESPONSE,this.commandResponseListener)}},Y=$,J=(n("23a0"),Object(y["a"])(Y,N,I,!1,null,null,null));J.options.__file="KlabTerminal.vue";var Q=J.exports,Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.activeDialog?n("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[n("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),n("div",{staticClass:"kaa-button"},[n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appOK")},on:{click:function(t){e.dialogAction(e.activeDialog,!0)}}}),e.activeDialog.type===e.APPS_COMPONENTS.CONFIRM?n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appCancel")},on:{click:function(t){e.dialogAction(e.activeDialog,!1)}}}):e._e()],1)]):e._e()},ee=[];Z._withStripped=!0;var te={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:s()({},Object(a["c"])("view",["layout","activeDialogs"]),{hasActiveDialogs:{get:function(){return this.activeDialogs.length>0},set:function(){}}}),methods:{setActiveDialog:function(){var e=this;this.activeDialogs.length>0?this.activeDialog=this.activeDialogs[this.activeDialogs.length-1]:this.$nextTick(function(){e.activeDialog=null})},dialogAction:function(e,t){this.activeDialog.dismiss=!0,e.type===c["a"].CONFIRM&&this.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=te,ie=(n("715d"),Object(y["a"])(ne,Z,ee,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var oe=ie.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kapp-layout-container",class:{"kapp-main":e.isRootLayout},style:e.modalDimensions,attrs:{view:"hhh lpr fFf",id:"kapp-"+e.idSuffix}},[!e.isModal&&e.hasHeader?n("q-layout-header",{staticClass:"kapp-header-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{id:"kapp-"+e.idSuffix+"-header"}},[e.layout.header?n("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):n("div",{staticClass:"kapp-header row"},[n("div",{staticClass:"kapp-logo-container"},[n("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),n("div",{staticClass:"kapp-title-container"},[e.layout.label?n("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?n("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?n("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?n("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return n("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(n){e.clickOnMenu(t.id,t.url)}}},[e._v(e._s(t.text)),t.url?n("span",{staticClass:"klab-external-link"},[e._v("🡥")]):e._e()])})):e._e(),n("div",{staticClass:"kapp-actions-container row items-end justify-end"},[n("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?n("q-layout-drawer",{staticClass:"kapp-left-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"left","content-class":"kapp-left-inner-container",width:e.leftPanelWidth},model:{value:e.showLeftPanel,callback:function(t){e.showLeftPanel=t},expression:"showLeftPanel"}},[e.leftPanel?[n("klab-app-viewer",{staticClass:"kapp-left-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-left-0",component:e.layout.leftPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),e.showRightPanel?n("q-layout-drawer",{staticClass:"kapp-right-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"right","content-class":"kapp-right-inner-container",width:e.rightPanelWidth},model:{value:e.showRightPanel,callback:function(t){e.showRightPanel=t},expression:"showRightPanel"}},[e.rightPanel?[n("klab-app-viewer",{staticClass:"kapp-right-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-right-0",component:e.layout.rightPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),n("q-page-container",[e.layout&&0!==e.layout.panels.length?[n("klab-app-viewer",{staticClass:"kapp-main-container kapp-container print-hide",attrs:{id:"kapp-"+e.idSuffix+"-main-0",mainPanelStyle:e.mainPanelStyle,component:e.layout.panels[0]}})]:n("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),n("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),n("q-modal",{staticClass:"kapp-modal",attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["absolute-center","kapp-loading"]},model:{value:e.blockApp,callback:function(t){e.blockApp=t},expression:"blockApp"}},[n("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];re._withStripped=!0;n("6762"),n("2fdb"),n("4917"),n("5df3"),n("1c4c");var ae=n("50fb"),ce=n.n(ae),le=n("84a2"),ue=n.n(le),de=n("6dd8"),he=n("0312"),pe=n.n(he);function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[i]||this.options.forceVisible){"x"===i?(e=this.scrollbarX,t=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,n=this.trackYSize);var o=n/t;this.handleSize[i]=Math.max(~~(o*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[i]=Math.min(this.handleSize[i],this.options.scrollbarMaxSize)),"x"===i?e.style.width="".concat(this.handleSize[i],"px"):e.style.height="".concat(this.handleSize[i],"px")}}},{key:"positionScrollbar",value:function(){var e,t,n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===o?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[o]],n=this.contentSizeX,i=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[o]],n=this.contentSizeY,i=this.trackYSize);var r=t/(n-i),s=~~((i-this.handleSize[o])*r);(this.isEnabled[o]||this.options.forceVisible)&&(e.style.transform="x"===o?"translate3d(".concat(s,"px, 0, 0)"):"translate3d(0, ".concat(s,"px, 0)"))}},{key:"toggleTrackVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t="y"===e?this.trackY:this.trackX,n="y"===e?this.scrollbarY:this.scrollbarX;this.isEnabled[e]||this.options.forceVisible?t.style.visibility="visible":t.style.visibility="hidden",this.options.forceVisible&&(this.isEnabled[e]?n.style.visibility="visible":n.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=ce()(),this.scrollContentEl.style[this.isRtl?"paddingLeft":"paddingRight"]="".concat(this.scrollbarWidth||this.offsetSize,"px"),this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px"),this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px"),0!==this.scrollbarWidth&&(this.contentEl.style[this.isRtl?"marginLeft":"marginRight"]="-".concat(this.scrollbarWidth,"px"))}},{key:"showScrollbar",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[t]||(e="x"===t?this.scrollbarX:this.scrollbarY,this.isEnabled[t]&&(e.classList.add("visible"),this.isVisible[t]=!0),this.options.autoHide&&(window.clearInterval(this.flashTimeout),this.flashTimeout=window.setInterval(this.hideScrollbars,this.options.timeout)))}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";e.preventDefault();var n="y"===t?this.scrollbarY:this.scrollbarX,i="y"===t?e.pageY:e.pageX;this.dragOffset[t]=i-n.getBoundingClientRect()[this.offsetAttr[t]],this.currentAxis=t,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";return"y"===e?this.scrollContentEl:this.contentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),this.scrollContentEl.removeEventListener("scroll",this.onScrollY),this.contentEl.removeEventListener("scroll",this.onScrollX),this.mutationObserver.disconnect(),this.resizeObserver.disconnect()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(e){return null!==e&&(e===this.el||this.isChildNode(e.parentNode))}},{key:"isWithinBounds",value:function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new e(t,e.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){!t.SimpleBar&&new e(t,e.getElOptions(t))}))}),Array.from(t.removedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?e.SimpleBar&&e.SimpleBar.unMount():Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar&&e.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(e){var t=Array.from(e.attributes).reduce(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var i=n[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[i]=!0;break;case"false":e[i]=!1;break;case void 0:e[i]=!0;break;default:e[i]=t.value}}return e},{});return t}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new e(t,e.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25,scrollbarMaxSize:0,direction:"ltr",timeout:1e3}}}]),e}();pe.a&&ve.initHtmlApi();var be=ve,ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kexplorer-main-container print-hide",style:{width:e.mainPanelStyle.width+"px",height:e.mainPanelStyle.height+"px"},attrs:{view:"hHh lpr fFf",container:""}},[n("q-layout-drawer",{attrs:{side:"left",overlay:!1,breakpoint:0,width:e.leftMenuState===e.LEFTMENU_CONSTANTS.LEFTMENU_MAXIMIZED?e.LEFTMENU_CONSTANTS.LEFTMENU_MAXSIZE:e.LEFTMENU_CONSTANTS.LEFTMENU_MINSIZE,"content-class":["klab-left","no-scroll",e.largeMode?"klab-large-mode":""]},model:{value:e.leftMenuVisible,callback:function(t){e.leftMenuVisible=t},expression:"leftMenuVisible"}},[n("klab-left-menu")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[n("keep-alive",[n(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),n("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),n("div",{staticClass:"col-1 row"},[e.logVisible?n("klab-log"):e._e()],1),n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?n("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?n("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():n("observation-time"),n("input-request-modal"),n("scale-change-dialog")],1)],1)],1)},_e=[];ye._withStripped=!0;var Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isHidden,expression:"isHidden"}],staticClass:"spinner-lonely-div klab-spinner-div",style:{left:e.defaultLeft+"px",top:e.defaultTop+"px","border-color":e.hasTasks()?e.spinnerColor.color:"rgba(0,0,0,0)"}},[n("klab-spinner",{staticClass:"spinner-lonely",attrs:{"store-controlled":!0,size:40,ball:22,wrapperId:"spinner-lonely-div"},nativeOn:{dblclick:function(t){return e.show(t)},touchstart:function(t){e.handleTouch(t,null,e.show)}}})],1)]),n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("q-card",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"},{name:"show",rawName:"v-show",value:!e.isHidden,expression:"!isHidden"}],staticClass:"mc-q-card no-box-shadow absolute lot-of-flow",class:[e.hasContext?"with-context":"bg-transparent without-context","mc-large-mode-"+e.largeMode],style:e.qCardStyle,attrs:{draggable:"false",flat:!0},nativeOn:{contextmenu:function(e){e.preventDefault()}}},[n("q-card-title",{ref:"mc-draggable",staticClass:"mc-q-card-title q-pa-xs",class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":".2")},attrs:{ondragstart:"return false;"},nativeOn:{mousedown:function(t){e.moved=!1},mousemove:function(t){e.moved=!0},mouseup:function(t){return e.focusSearch(t)}}},[n("klab-search-bar",{ref:"klab-search-bar"}),n("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden&&!e.hasHeader&&null===e.layout,expression:"hasContext && !isHidden && !hasHeader && layout === null"}],staticClass:"context-actions no-margin"},[n("div",{staticClass:"mc-tabs"},[n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),n("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),n("scale-buttons",{attrs:{docked:!1}}),n("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),n("stop-actions-buttons")],1),n("q-card-main",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"no-margin relative-position",attrs:{draggable:"false"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.selectedTab,{tag:"component"})],1)],1)],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-terrain"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-human-male-female"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?n("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?n("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},we=[];Me._withStripped=!0;var Ce=n("1fe0"),Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-actions",class:e.orientation},[n("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATA_VIEWER.name}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATA_VIEWER.name&&e.click(e.isMainControlDocked?e.VIEWERS.DOCKED_DATA_VIEWER:e.VIEWERS.DATA_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.dataViewer")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DOCUMENTATION_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&(!e.hasContext||!e.hasObservations)}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&e.hasContext&&e.hasObservations&&e.click(e.VIEWERS.DOCUMENTATION_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.hasObservations?e.$t("tooltips.documentationViewer"):e.$t("tooltips.noDocumentation")))])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATAFLOW_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&!e.hasContext}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.click(e.VIEWERS.DATAFLOW_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.flowchartsUpdatable?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.flowchartsUpdatable?e.$t("tooltips.dataflowViewer"):e.$t("tooltips.noDataflow")))])],1)],1)])])},Ae=[];Se._withStripped=!0;var Ee={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasObservations","flowchartsUpdatable","hasContext"]),Object(a["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:s()({},Object(a["b"])("view",["setMainViewer"]),{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},click:function(e){var t=this;this.setMainViewer(e),this.$nextTick(function(){t.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout"})})}}),created:function(){this.VIEWERS=c["M"]}},Oe=Ee,Le=(n("6208"),Object(y["a"])(Oe,Se,Ae,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Te=Le.exports,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[n("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.resetContext")))])],1)],1):e._e(),e.hasContext&&e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[n("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.interruptTask",{taskDescription:e.lastActiveTaskText})))])],1)],1):e._e()])},Re=[];xe._withStripped=!0;var ke={computed:s()({},Object(a["c"])("data",["hasContext","contextId","session"])),methods:s()({},Object(a["b"])("data",["loadContext","setWaitinForReset"]),Object(a["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},ze={name:"StopActionsButtons",mixins:[ke],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext","contextId","previousContext"]),Object(a["c"])("stomp",["hasTasks","lastActiveTask"]),{lastActiveTaskText:function(){var e=null===this.lastActiveTask(this.contextId)?"":this.lastActiveTask(this.contextId).description;return e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)?e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation")):e}}),methods:{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},resetContext:function(){this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(l["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Pe=ze,Ne=(n("c31b"),Object(y["a"])(Pe,xe,Re,!1,null,null,null));Ne.options.__file="StopActionsButtons.vue";var Ie=Ne.exports,De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.hasContext?"with-context":"without-context",e.isDocked?"ksb-docked":""],style:{width:e.isDocked&&e.searchIsFocused&&e.largeMode?e.getLargeModeWidth():"100%"},attrs:{id:"ksb-container"}},[e.isDocked?e._e():n("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[n("klab-spinner",{style:{"box-shadow":e.searchIsFocused?"0px 0px 3px "+e.getBGColor(".4"):"none"},attrs:{"store-controlled":!0,color:e.spinnerColor.hex,size:40,ball:22,wrapperId:"ksb-spinner",id:"spinner-searchbar"},nativeOn:{dblclick:function(t){return e.emitSpinnerDoubleclick(t)},touchstart:function(t){t.stopPropagation(),e.handleTouch(t,e.showSuggestions,e.emitSpinnerDoubleclick)}}})],1),n("div",{class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.isDocked?e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":e.isDocked?"1.0":".2"):"rgba(0,0,0,0)"},attrs:{id:"ksb-search-container"}},[e.searchIsActive?n("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):n("div",{staticClass:"ksb-context-text text-white"},[n("scrolling-text",{ref:"st-context-text",attrs:{"with-edge":!0,"hover-active":!0,"initial-text":null===e.mainContextLabel?e.$t("label.noContextPlaceholder"):e.mainContextLabel,"placeholder-style":!e.hasContext}})],1),n("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[n("scrolling-text",{ref:"st-status-text",attrs:{"with-edge":!0,edgeOpacity:e.hasContext?1:e.searchIsFocused?.8:.2,hoverActive:!1,initialText:e.statusTextsString,accentuate:!0}})],1),e.isScaleLocked["space"]&&!e.hasContext?n("q-icon",{attrs:{name:"mdi-lock-outline"}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[10,5],delay:500}},[e._v(e._s(e.$t("label.scaleLocked",{type:e.$t("label.spaceScale")})))])],1):e._e(),n("main-control-menu")],1)])},Be=[];De._withStripped=!0;var qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"ks-container",attrs:{id:"ks-container"}},[n("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,i){return n("div",{key:t.index,ref:"token-"+t.index,refInFor:!0,class:["ks-tokens-accepted","ks-tokens","bg-semantic-elements",t.selected?"selected":"","text-"+t.leftColor],style:{"border-color":t.selected?t.rgb:"transparent"},attrs:{tabindex:i},on:{focus:function(n){e.onTokenFocus(t,n)},blur:function(n){e.onTokenFocus(t,n)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),n("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?n("span",[e._v(e._s(t.sublabel))]):n("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),n("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[n("q-input",{ref:"ks-search-input",class:[e.fuzzyMode?"ks-fuzzy":"",e.searchIsFocused?"ks-search-focused":""],attrs:{autofocus:!0,placeholder:e.fuzzyMode?e.$t("label.fuzzySearchPlaceholder"):e.$t("label.searchPlaceholder"),size:"20",id:"ks-search-input",tabindex:e.acceptedTokens.length,"hide-underline":!0},on:{focus:function(t){e.onInputFocus(!0)},blur:function(t){e.onInputFocus(!1)},keydown:e.onKeyPressedOnSearchInput,keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,"Escape"))return null;e.searchEnd({})}},nativeOn:{contextmenu:function(e){e.preventDefault()},touchstart:function(t){e.handleTouch(t,null,e.searchInKLab)}},model:{value:e.actualToken,callback:function(t){e.actualToken=t},expression:"actualToken"}},[n("klab-autocomplete",{ref:"ks-autocomplete",class:[e.notChrome()?"not-chrome":""],attrs:{debounce:400,"min-characters":e.minimumCharForAutocomplete,"max-results":50,id:"ks-autocomplete"},on:{search:e.autocompleteSearch,selected:e.selected,show:e.onAutocompleteShow,hide:e.onAutocompleteHide}})],1)],1)],2)])},je=[];qe._withStripped=!0;n("386d");var We=n("278c"),Fe=n.n(We),He=n("2b0e"),Xe=n("b0b2"),Ue=n("b12a"),Ve=n("7ea0"),Ge=n("b5b8"),Ke=n("1180"),$e=n("68c2"),Ye=n("506f"),Je=n("b8d9"),Qe=n("52b5"),Ze=n("03d8"),et={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(e){return 1===e.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String,tooltip:{type:Object,default:null}},computed:{type:function(){var e=this;return["icon","image","avatar","letter","stamp"].find(function(t){return e[t]})},classes:function(){var e=["q-item-side-".concat(this.right?"right":"left")];return!this.color||this.icon||this.letter||e.push("text-".concat(this.color)),e},typeClasses:function(){var e=["q-item-".concat(this.type)];return this.color&&(this.inverted&&(this.icon||this.letter)?e.push("bg-".concat(this.color)):this.textColor||e.push("text-".concat(this.color))),this.textColor&&e.push("text-".concat(this.textColor)),this.inverted&&(this.icon||this.letter)&&(e.push("q-item-inverted"),e.push("flex"),e.push("flex-center")),e},imagePath:function(){return this.image||this.avatar}},render:function(e){var t;return this.type&&(this.icon?(t=e(Qe["a"],{class:this.inverted?null:this.typeClasses,props:{name:this.icon,tooltip:this.tooltip}}),this.inverted&&(t=e("div",{class:this.typeClasses},[t]))):t=this.imagePath?e("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):e("div",{class:this.typeClasses},[this.stamp||this.letter])),e("div",{staticClass:"q-item-side q-item-section",class:this.classes},[null!==this.tooltip?e(Ze["a"],{ref:"tooltip",class:"kl-model-desc-container",props:{offset:[25,0],anchor:"top right",self:"top left"}},[e("div",{class:["kl-model-desc","kl-model-desc-title"]},this.tooltip.title),e("div",{class:["kl-model-desc","kl-model-desc-state","bg-state-".concat(this.tooltip.state)]},this.tooltip.state),e("div",{class:["kl-model-desc","kl-model-desc-content"]},this.tooltip.content)]):null,t,this.$slots.default])}};function tt(e,t,n,i,o,r){var s={props:{right:r.right}};if(i&&o)e.push(t(n,s,i));else{var a=!1;for(var c in r)if(r.hasOwnProperty(c)&&(a=r[c],void 0!==a&&!0!==a)){e.push(t(n,{props:r}));break}i&&e.push(t(n,s,i))}}var nt={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,n=this.slotReplace,i=[];return tt(i,e,et,this.$slots.left,n,{icon:t.icon,color:t.leftColor,avatar:t.avatar,letter:t.letter,image:t.image,inverted:t.leftInverted,textColor:t.leftTextColor,tooltip:t.leftTooltip}),tt(i,e,Je["a"],this.$slots.main,n,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(i,e,et,this.$slots.right,n,{right:!0,icon:t.rightIcon,color:t.rightColor,avatar:t.rightAvatar,letter:t.rightLetter,image:t.rightImage,stamp:t.stamp,inverted:t.rightInverted,textColor:t.rightTextColor,tooltip:t.rightTooltip}),i.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},i)}},it=G["b"].width,ot={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var n=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),i=n.length,o=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=o,i0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=it(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(n,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",n,function(e){if(t.isWorking()&&t.searchId===o){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,n=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:n?"bg-dark":null,props:{fit:!0,keepOnScreen:!0,anchorClick:!1,maxHeight:this.maxHeight,noFocus:!0,noRefocus:!0},on:{show:function(){t.__input.selectionOpen=!0,t.$emit("show")},hide:function(){t.__input.selectionOpen=!1,t.$emit("hide")}},nativeOn:{mousedown:function(e){e.preventDefault()}}},[e(Ke["a"],{props:{dark:n,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(n,i){return e(nt,{key:n.id||i,class:{"q-select-highlight":t.keyboardIndex===i,"cursor-pointer":!n.disable,"text-faded":n.disable,"ka-separator":n.separator},props:{cfg:n},nativeOn:{mousedown:function(e){!n.disable&&(t.keyboardIndex=i),e.preventDefault()},click:function(){!n.disable&&t.setValue(n)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:300;window.TouchEvent&&e instanceof TouchEvent&&(1===e.targetTouches.length?null===this.doubleTouchTimeout?this.doubleTouchTimeout=setTimeout(function(){t.doubleTouchTimeout=null,null!==n&&n(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==i&&i()):null!==o&&o(e))}}},st="=(<)>",at={name:"KlabSearch",components:{KlabAutocomplete:ot},mixins:[rt],props:{maxResults:{type:Number,default:-1}},data:function(){return{searchContextId:null,searchRequestId:0,doneFunc:null,result:null,acceptedTokens:[],actualToken:"",actualSearchString:"",noSearch:!1,searchDiv:null,searchDivInitialSize:void 0,searchDivInternal:void 0,searchInput:null,autocompleteEl:null,scrolled:0,suggestionShowed:!1,searchTimeout:null,searchHistoryIndex:-1,autocompleteSB:null,freeText:!1,parenthesisDepth:0,last:!1,minimumCharForAutocomplete:2}},computed:s()({},Object(a["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(a["c"])("view",["spinner","searchIsFocused","searchLostChar","searchInApp","searchHistory","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{inputSearchColor:{get:function(){return this.searchInput?this.searchInput.$refs.input.style.color:"black"},set:function(e){this.searchInput.$refs.input&&(this.searchInput.$refs.input.style.color=e)}}}),methods:s()({},Object(a["b"])("data",["setContextCustomLabel"]),Object(a["b"])("view",["searchStop","setSpinner","searchFocus","resetSearchLostChar","storePreviousSearch","setFuzzyMode","setLargeMode"]),{notChrome:function(){return-1===navigator.userAgent.indexOf("Chrome")},onTokenFocus:function(e,t){e.selected="focus"===t.type},onInputFocus:function(e){this.searchFocus({focused:e}),this.actualToken=this.actualSearchString},onAutocompleteShow:function(){this.suggestionShowed=!0},onAutocompleteHide:function(){this.suggestionShowed=!1,this.actualToken!==this.actualSearchString&&(this.noSearch=!0,this.resetSearchInput())},onKeyPressedOnToken:function(e){var t=this;if(37===e.keyCode||39===e.keyCode){e.preventDefault();var n=this.acceptedTokens.findIndex(function(e){return e.selected}),i=null,o=!1;if(37===e.keyCode&&n>0?i="token-".concat(this.acceptedTokens[n-1].index):39===e.keyCode&&n=s&&(n=s)}else{var a=o?r.$el:r,c=(o?a.offsetLeft:r.offsetLeft)+i+a.offsetWidth,l=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;l<=c&&(n=t.searchDiv.scrollLeft+(c-l)-i)}null!==n&&He["a"].nextTick(function(){t.searchDiv.scrollLeft=n})})}}},onKeyPressedOnSearchInput:function(e){var t=this;if(this.noSearch=!1,this.last)return e.preventDefault(),void this.$q.notify({message:this.$t("messages.lastTermAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});switch(e.keyCode){case 8:if(""===this.actualToken&&0!==this.acceptedTokens.length){var n=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:n.matchIndex,matchId:n.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["v"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){t.checkLargeMode(!1)})}else""!==this.actualSearchString?(e.preventDefault(),this.actualSearchString=this.actualSearchString.slice(0,-1),""===this.actualSearchString&&this.setFuzzyMode(!1)):""===this.actualSearchString&&""!==this.actualToken&&(this.actualToken="",e.preventDefault());break;case 9:this.suggestionShowed&&-1!==this.autocompleteEl.keyboardIndex?(this.autocompleteEl.setValue(this.autocompleteEl.results[this.autocompleteEl.keyboardIndex]),this.searchHistoryIndex=-1):this.freeText&&this.acceptText(),e.preventDefault();break;case 13:this.freeText||this.fuzzyMode?this.acceptText():this.searchInKLab(e);break;case 27:this.suggestionShowed?this.autocompleteEl.hide():this.searchEnd({noStore:!0}),e.preventDefault();break;case 32:if(e.preventDefault(),this.fuzzyMode)this.searchHistoryIndex=-1,this.actualSearchString+=e.key;else if(this.freeText)this.acceptFreeText();else if(this.suggestionShowed){var i=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,o=this.autocompleteEl.results[i];o.separator||(this.autocompleteEl.setValue(o),this.searchHistoryIndex=-1)}else this.askForSuggestion()||this.$q.notify({message:this.$t("messages.noSpaceAllowedInSearch"),type:"warning",icon:"mdi-alert",timeout:1500});break;case 37:if(!this.suggestionShowed&&0===this.searchInput.$refs.input.selectionStart&&this.acceptedTokens.length>0){var r=this.acceptedTokens[this.acceptedTokens.length-1];He["a"].nextTick(function(){t.$refs["token-".concat(r.index)][0].focus()}),e.preventDefault()}break;case 38:this.suggestionShowed||this.searchHistoryEvent(1,e);break;case 40:this.suggestionShowed||this.searchHistoryEvent(-1,e);break;default:this.isAcceptedKey(e.key)?")"===e.key&&0===this.parenthesisDepth?e.preventDefault():(e.preventDefault(),0===this.acceptedTokens.length&&0===this.searchInput.$refs.input.selectionStart&&Object(Xe["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==st.indexOf(e.key)&&this.askForSuggestion(e.key.trim())):39!==e.keyCode&&e.preventDefault();break}},acceptText:function(){var e=this,t=this.actualToken.trim();""===t?this.$q.notify({message:this.$t("messages.emptyFreeTextSearch"),type:"warning",icon:"mdi-alert",timeout:1e3}):this.search(this.actualToken,function(t){t&&t.length>0?e.selected(t[0],!1):e.$q.notify({message:e.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3})})},selected:function(e,t){var n=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!0},this.$store.state.data.session).body),this.fuzzyMode)return void this.$nextTick(function(){n.searchEnd({})});this.freeText=e.nextTokenClass!==c["v"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){n.checkLargeMode(!0)})}},checkLargeMode:function(){var e=this;this.$nextTick(function(){var t;if(e.isDocked)t=e.searchDivInitialSize-e.searchDivInternal.clientWidth,t<0&&0===e.largeMode?e.setLargeMode(1):t>=0&&e.largeMode>0&&e.setLargeMode(0);else if(t=e.searchDiv.clientWidth-e.searchDivInternal.clientWidth,t>=0){var n=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);n>0&&e.largeMode>0&&(n>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-n))}else{var i=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+i)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var n=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["E"].FREETEXT:c["E"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.setSpinner(s()({},c["H"].SPINNER_ERROR,{owner:n.$options.name,errorMessage:n.$t("errors.searchTimeout"),time:n.fuzzyMode?5:2,then:s()({},c["H"].SPINNER_STOPPED)})),n.doneFunc([])},"4000")},searchInKLab:function(){if(!this.suggestionShowed&&!this.fuzzyMode)if(this.parenthesisDepth>0)this.$q.notify({message:this.$t("messages.parenthesisAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});else if(this.isCrossingIDL)this.$q.dialog({title:this.$t("label.IDLAlertTitle"),message:this.$t("messages.IDLAlertText"),color:"mc-red"}).catch(function(){});else{if(this.acceptedTokens.length>0){if(this.engineEventsCount>0)return this.$emit("busy-search"),void this.$q.notify({message:this.$t("messages.resourcesValidating"),type:"warning",icon:"mdi-alert",timeout:2e3});var e=this.acceptedTokens.map(function(e){return e.id}).join(" ");this.sendStompMessage(l["a"].OBSERVATION_REQUEST({urn:e,contextId:this.contextId,searchContextId:null},this.$store.state.data.session).body);var t=this.acceptedTokens.map(function(e){return e.label}).join(" ");this.setContextCustomLabel(this.$t("messages.waitingObservationInit",{observation:t})),this.$q.notify({message:this.$t("label.askForObservation",{urn:t}),type:"info",icon:"mdi-information",timeout:2e3})}else console.info("Nothing to search for");this.searchEnd({})}},searchEnd:function(e){var t=e.noStore,n=void 0!==t&&t,i=e.noDelete,o=void 0!==i&&i;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(o)return;n||this.storePreviousSearch({acceptedTokens:this.acceptedTokens.slice(0),searchContextId:this.searchContextId,searchRequestId:this.searchRequestId})}this.searchContextId=null,this.searchRequestId=0,this.doneFunc=null,this.result=null,this.acceptedTokens=[],this.searchHistoryIndex=-1,this.actualSearchString="",this.scrolled=0,this.noSearch=!1,this.freeText=!1,this.setFuzzyMode(!1),this.setLargeMode(0),this.parenthesisDepth=0,this.last=!1,this.searchStop()}},resetSearchInput:function(){var e=this;this.$nextTick(function(){e.actualToken=e.actualSearchString,e.inputSearchColor="black"})},searchHistoryEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(""===this.actualToken&&this.searchHistory.length>0&&(0===this.acceptedTokens.length||this.searchHistoryIndex>=0)&&this.searchHistory.length>0&&(e>0||this.searchHistoryIndex>0)&&this.searchHistoryIndex+e0&&void 0!==arguments[0]?arguments[0]:"";return(""!==t||0===this.acceptedTokens.length)&&0===this.searchInput.$refs.input.selectionStart&&(this.search(t,function(n){e.autocompleteEl.__clearSearch(),Array.isArray(n)&&n.length>0?(e.autocompleteEl.results=n,He["a"].nextTick(function(){e.autocompleteEl.__showResults(),""!==t&&(e.autocompleteEl.keyboardIndex=0)})):e.autocompleteEl.hide()}),!0)},deleteLastToken:function(){if(0!==this.acceptedTokens.length){var e=this.acceptedTokens.pop();this.searchHistoryIndex=-1,this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!1},this.$store.state.data.session).body)}},charReceived:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"ArrowUp"===e?this.searchHistoryEvent(1):"ArrowDown"===e?this.searchHistoryEvent(-1):" "===e?this.askForSuggestion():(Object(Xe["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==st.indexOf(e)&&this.askForSuggestion(e))}}),watch:{actualSearchString:function(){this.resetSearchInput()},searchResult:function(e){var t=this;if(!this.searchInApp){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(i));if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,l=r.error,u=r.errorMessage,d=r.parenthesisDepth,h=r.last;if(this.parenthesisDepth=d,this.last=h,l)this.setSpinner(s()({},c["H"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:u}));else{var p=[];a.forEach(function(e){var n=c["v"][e.matchType];if("undefined"!==typeof n){var i=n;if(null!==e.mainSemanticType){var o=c["F"][e.mainSemanticType];"undefined"!==typeof o&&(i=o)}if("SEPARATOR"===e.matchType)p.push({value:e.name,label:e.name,labelLines:1,rgb:i.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,a=null!==r?Object(Ue["m"])(e.state):null;p.push(s()({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:i.symbol,leftInverted:!0,leftColor:i.color,rgb:i.rgb,id:e.id,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==a&&{rightIcon:a.icon,rightTextColor:"state-".concat(a.tooltip),rightTooltip:{state:a.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==p.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:this.$options.name})),He["a"].nextTick(function(){t.doneFunc(p),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}},acceptedTokens:function(){var e=this;He["a"].nextTick(function(){var t=e.searchDiv.scrollWidth;e.scrolled!==t&&(e.searchDiv.scrollLeft=t,e.scrolled=t)})},searchIsFocused:function(e){e?(this.searchInput.focus(),this.acceptedTokens.forEach(function(e){e.selected=!1})):this.searchInput.blur()},searchLostChar:function(e){null!==e&&""!==e&&(this.charReceived(e,!0),this.resetSearchLostChar())}},beforeMount:function(){this.setFuzzyMode(!1)},mounted:function(){var e=this;this.searchDiv=this.$refs["ks-container"],this.searchDivInternal=document.getElementById("ks-internal-container"),this.searchInput=this.$refs["ks-search-input"],this.autocompleteEl=this.$refs["ks-autocomplete"],null!==this.searchLostChar&&""!==this.searchLostChar?this.charReceived(this.searchLostChar,!1):this.actualSearchString="",this.inputSearchColor="black",this.setLargeMode(0),this.$nextTick(function(){e.searchDivInitialSize=e.searchDiv.clientWidth})},updated:function(){var e=document.querySelectorAll("#ks-autocomplete .q-item-side-right");e.forEach(function(e){e.setAttribute("title","lalala")})},beforeDestroy:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null)}},ct=at,lt=(n("aff7"),Object(y["a"])(ct,qe,je,!1,null,null,null));lt.options.__file="KlabSearch.vue";var ut=lt.exports,dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[n("div",{ref:"st-text",staticClass:"st-text",class:{"st-accentuate":e.accentuate,"st-placeholder":e.placeholderStyle},style:{left:(e.needMarquee<0?e.needMarquee:0)+"px","animation-duration":e.animationDuration+"s"}},[e._v("\n "+e._s(e.text)+"\n ")]),e.withEdge?n("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},ht=[];dt._withStripped=!0;var pt={name:"ScrollingText",props:{hoverActive:{type:Boolean,default:!1},initialText:{type:String,default:""},duration:{type:Number,default:10},accentuate:{type:Boolean,default:!1},edgeOpacity:{type:Number,default:1},withEdge:{type:Boolean,default:!0},placeholderStyle:{type:Boolean,default:!1}},data:function(){return{needMarquee:0,animationDuration:this.duration,text:this.initialText,edgeBgGradient:""}},computed:s()({},Object(a["c"])("view",["spinnerColor"])),methods:{isNeededMarquee:function(){var e=this.$refs["st-text"];return"undefined"===typeof e?0:e.offsetWidth-e.scrollWidth},changeText:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.needMarquee=0,e!==this.text&&(this.text=null===e?"":e,this.$nextTick(function(){null!==n&&(t.animationDuration=n),t.needMarquee=t.isNeededMarquee(t.ref)}))},getBGColor:function(e,t){return"rgba(".concat(e.rgb.r,",").concat(e.rgb.g,",").concat(e.rgb.b,", ").concat(t,")")},getEdgeGradient:function(){return"linear-gradient(to right,\n ".concat(this.getBGColor(this.spinnerColor,1)," 0,\n ").concat(this.getBGColor(this.spinnerColor,0)," 5%,\n ").concat(this.getBGColor(this.spinnerColor,0)," 95%,\n ").concat(this.getBGColor(this.spinnerColor,1)," 100%)")}},watch:{spinnerColor:function(){this.edgeBgGradient=this.getEdgeGradient()}},mounted:function(){var e=this;this.$nextTick(function(){e.needMarquee=e.isNeededMarquee(e.ref)}),this.edgeBgGradient=this.getEdgeGradient()}},ft=pt,mt=(n("2590"),Object(y["a"])(ft,dt,ht,!1,null,null,null));mt.options.__file="ScrollingText.vue";var gt=mt.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-btn",{staticClass:"mcm-menubutton absolute-top-right",attrs:{icon:e.interactiveMode?"mdi-play":"mdi-chevron-right",color:e.interactiveMode?"mc-main-light":"black",size:"sm",round:"",flat:""}},[e.isVisible?n("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[n("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),n("q-list",{attrs:{dense:""}},[n("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?n("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1):e._e()],1),n("q-item-separator"),e.hasContext?n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[n("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[n("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),n("div",[n("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),n("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[n("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return n("q-item",{key:t.id},[n("q-item-main",[n("div",{staticClass:"mcm-container mcm-context-label"},[n("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(n){e.closeAndCall(t.id)}}},[n("div",{staticClass:"klab-item klab-large-text",class:{"mcm-actual-context":t.id===e.contextId},style:{"font-style":e.contextTaskIsAlive(t.id)?"italic":"normal"},on:{mouseover:function(n){e.tooltipIt(n,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),n("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.needTooltip(t.id),expression:"needTooltip(context.id)"}],attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(t.label)+"\n ")])],1)]),n("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(n){e.copyContextES(n,t.spatialProjection+" "+t.encodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1)],1)])],1)}))],1)],1)])])]),e.hasContext?e._e():[n("q-item",[n("q-item-main",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[n("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),n("q-item-separator"),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[n("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"klab-version"},[e._v("Version: "+e._s(e.$store.state.data.packageVersion)+"/ Build "+e._s(e.$store.state.data.packageBuild))])])],2)],1):e._e()],1)},bt=[];vt._withStripped=!0;var yt=n("c1df"),_t=n.n(yt),Mt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sr-container",class:[e.light?"sr-light":"sr-dark","vertical"===e.orientation?"sr-vertical":""],style:{width:e.width},on:{click:function(t){e.scaleEditing=e.editable}}},[e.hasScale?n("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?n("div",{staticClass:"sr-locked klab-item mdi sr-icon",class:[e.isScaleLocked[e.scaleType]?"mdi-lock-outline":"mdi-lock-open-outline"],on:{click:function(t){t.preventDefault(),e.lockScale(t)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.isScaleLocked[e.scaleType]?e.$t("label.clickToUnlock"):e.$t("label.clickToLock")))])],1):e._e(),n("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[n("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),n("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),n("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?n("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),n("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):n("div",{staticClass:"sr-no-scalereference"},[n("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},wt=[];Mt._withStripped=!0;var Ct={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["B"].ST_SPACE,c["B"].ST_TIME].indexOf(e)},default:c["B"].ST_SPACE},useNext:{type:Boolean,default:!1},width:{type:String,default:"150px"},light:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},full:{type:Boolean,default:!1},orientation:{type:String,default:"horizontal"}},data:function(){return{SCALE_TYPE:c["B"]}},computed:s()({},Object(a["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["B"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["C"].find(function(t){return t.value===e.unit}).index:this.scaleObj.timeScale},hasScale:function(){return this.useNext?null!==this.nextScale:null!==this.scaleReference},timeLimits:function(){return 0===this.scaleObj.start&&0===this.scaleObj.end?"":"".concat(_t()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(_t()(this.scaleObj.end).format("L HH:mm:ss"))},scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleType})}}}),methods:s()({},Object(a["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["B"].ST_SPACE?c["G"].LOCK_SPACE:c["G"].LOCK_TIME,value:t},this.$store.state.data.session).body),this.setScaleLocked({scaleType:this.scaleType,scaleLocked:t}),t||this.$eventBus.$emit(c["h"].SEND_REGION_OF_INTEREST)}})},St=Ct,At=(n("cf611"),Object(y["a"])(St,Mt,wt,!1,null,null,null));At.options.__file="ScaleReference.vue";var Et=At.exports,Ot=n("2cee"),Lt=n("1442"),Tt={name:"MainControlMenu",mixins:[Ot["a"],ke],components:{ScaleReference:Et},data:function(){return{}},computed:s()({},Object(a["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(a["d"])("stomp",["subscriptions"]),Object(a["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(a["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(a["d"])("view",["saveLocation","saveDockedStatus"]),{saveLocationVar:{get:function(){return this.saveLocation},set:function(e){this.changeSaveLocation(e)}},saveDockedStatusVar:{get:function(){return this.saveDockedStatus},set:function(e){this.changeSaveDockedStatus(e)}},interactiveModeModel:{get:function(){return this.interactiveMode},set:function(e){this.setInteractiveMode(e)}},coordinates:{get:function(){return this.viewCoordinates},set:function(e){this.setViewCoordinates(e)}},isVisible:function(){return!this.isDrawMode&&!this.isScaleEditing}}),methods:s()({},Object(a["b"])("data",["setInteractiveMode"]),Object(a["b"])("view",["setDrawMode","setViewCoordinates"]),{startDraw:function(){this.setDrawMode(!this.isDrawMode)},toggleContextsHistory:function(){this.contextsHistory.length>0&&this.$refs["mcm-contexts-popover"].toggle()},closeAndCall:function(){var e=W()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.contextId!==t){e.next=2;break}return e.abrupt("return");case 2:this.closeMenuPopups(),this.clearTooltip(),this.loadOrReloadContext(t,this.closeMenuPopups());case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),formatContextTime:function(e){var t=e.lastUpdate;if(0===t&&(t=e.creationTime),t&&null!==t){var n=_t()(t),i=0===_t()().diff(n,"days");return i?n.format("HH:mm:ss"):n.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),V["a"].set(c["P"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(V["a"].set(c["P"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),V["a"].set(c["P"].COOKIE_MAPDEFAULT,{center:Lt["b"].center,zoom:Lt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?V["a"].set(c["P"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):V["a"].remove(c["P"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(Xe["b"])(t),this.$q.notify({message:Object(Xe["a"])(this.$t("messages.customCopyToClipboard",{what:this.$t("label.context")})),type:"info",icon:"mdi-information",timeout:500})},closeMenuPopups:function(){this.$refs["mcm-main-popover"]&&this.$refs["mcm-main-popover"].hide(),this.$refs["mcm-contexts-popover"]&&this.$refs["mcm-contexts-popover"].hide()},sendInteractiveModeState:function(e){this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].INTERACTIVE_MODE,value:e},this.session).body)},viewerClickListener:function(){this.isDrawMode||this.closeMenuPopups()},askTutorial:function(){this.$eventBus.$emit(c["h"].NEED_HELP),this.closeMenuPopups()}}),watch:{hasContext:function(){this.closeMenuPopups()},searchIsActive:function(e){e&&this.closeMenuPopups()},interactiveModeModel:function(e){this.sendInteractiveModeState(e)}},mounted:function(){this.$eventBus.$on(c["h"].VIEWER_CLICK,this.viewerClickListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLICK,this.viewerClickListener)}},xt=Tt,Rt=(n("6774"),Object(y["a"])(xt,vt,bt,!1,null,null,null));Rt.options.__file="MainControlMenu.vue";var kt=Rt.exports,zt={name:"KlabSearchBar",components:{KlabSpinner:M,KlabSearch:ut,ScrollingText:gt,MainControlMenu:kt},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:s()({},Object(a["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(a["c"])("view",["spinnerColor","searchIsActive","searchIsFocused","hasMainControl","statusTextsString","statusTextsLength","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{isDocked:function(){return!this.hasMainControl},mainContextLabel:function(){return this.contextLabel?this.contextLabel:this.contextCustomLabel}}),methods:s()({},Object(a["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["u"].LEFTMENU_MINSIZE,"px")},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},showSuggestions:function(e){1===e.targetTouches.length&&(e.preventDefault(),this.searchIsActive?this.searchIsFocused?this.$refs["klab-search"].searchEnd({noDelete:!1}):this.searchFocus({char:" ",focused:!0}):this.searchStart(" "))},emitSpinnerDoubleclick:function(){this.$eventBus.$emit(c["h"].SPINNER_DOUBLE_CLICK)},askForSuggestionsListener:function(e){this.showSuggestions(e)},busySearch:function(){this.searchAsked=!0,this.updateBusy()},updateBusy:function(){var e=this;null!==this.searchAskedInterval&&(clearTimeout(this.searchAskedInterval),this.searchAskedInterval=null),this.searchAsked&&(0===this.engineEventsCount?this.searchAskedInterval=setTimeout(function(){e.searchAsked=!1,e.busyInformed=!1,e.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:"BusySearch"})),this.busyInformed=!0))}}),watch:{statusTextsString:function(e){e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)&&(e=e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation"))),this.$refs["st-status-text"].changeText(e,5*this.statusTextsLength)},mainContextLabel:function(e){this.$refs["st-context-text"]&&this.$refs["st-context-text"].changeText(e)},hasContext:function(e){e&&this.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"KlabSearch"}))},engineEventsCount:function(){this.updateBusy()}},mounted:function(){this.$eventBus.$on(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener),this.updateBusy()},beforeDestroy:function(){this.$eventBus.$off(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener)}},Pt=zt,Nt=(n("19f2"),Object(y["a"])(Pt,De,Be,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var It=Nt.exports,Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.contextsCount>1?n("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,i){return n("span",{key:t.id,on:{click:function(n){e.load(t.contextId,i)}}},[e._v(e._s(t.label))])})):e._e()},Bt=[];Dt._withStripped=!0;var qt={name:"KlabBreadcrumbs",mixins:[ke],computed:s()({},Object(a["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:s()({},Object(a["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var n,i=this.$store.state.data.observations.find(function(t){return t.id===e});n=i||this.contextById(e),this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST(s()({contextId:n.id},n.contextId&&{parentContext:n.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},jt=qt,Wt=(n("6c8f"),Object(y["a"])(jt,Dt,Bt,!1,null,null,null));Wt.options.__file="KlabBreadcrumbs.vue";var Ft=Wt.exports,Ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"klab-tree-pane"}},[n("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[n("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?n("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[n("q-resize-observable",{on:{resize:e.outContainerResized}}),[n("klab-tree",{ref:"kt-user-tree",style:{"max-height":!!e.userTreeMaxHeight&&e.userTreeMaxHeight+"px"},attrs:{id:"kt-user-tree",tree:e.userTree,"is-user":!0},on:{resized:e.recalculateTreeHeight}})],n("details",{directives:[{name:"show",rawName:"v-show",value:e.mainTreeHasNodes(),expression:"mainTreeHasNodes()"}],attrs:{id:"kt-tree-details",open:e.taskOfContextIsAlive||e.mainTreeHasNodes(!0)||e.detailsOpen}},[n("summary",[n("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[n("q-tooltip",{attrs:{offset:[0,0],self:"top left",anchor:"bottom right"}},[e._v(e._s(e.detailsOpen?e.$t("tooltips.displayMainTree"):e.$t("tooltips.hideMainTree")))])],1)],1),n("klab-tree",{ref:"kt-tree",style:{"max-height":!!e.treeHeight&&e.treeHeight+"px"},attrs:{id:"kt-tree",tree:e.tree,"is-user":!1},on:{resized:e.recalculateTreeHeight}})],1)],2):e.hasContext?n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),n("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?n("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Xt=[];Ht._withStripped=!0;n("5df2");var Ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?n("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-left",icon:"mdi-arrow-left"},nativeOn:{click:function(t){e.percent=0}}}),n("q-btn",{staticClass:"no-padding splitter-actions rotate-90",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-middle",icon:"mdi-format-align-middle"},nativeOn:{click:function(t){e.percent=50}}}),n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-right",icon:"mdi-arrow-right"},nativeOn:{click:function(t){e.percent=100}}})],n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-close",icon:"mdi-close"},nativeOn:{click:function(t){e.$emit("close-info")}}})],2):e._e(),n("div",e._g({staticClass:"vue-splitter",style:{cursor:e.cursor,flexDirection:e.flexDirection}},e.onlyOpenClose?{}:{mouseup:e.onUp,mousemove:e.onMouseMove,touchmove:e.onMove,touchend:e.onUp}),[n("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():n("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),n("div",{staticClass:"right-pane splitter-pane",style:e.rightPaneStyle},[e._t("right-pane")],2)]],2)])},Vt=[];Ut._withStripped=!0;var Gt={props:{margin:{type:Number,default:10},horizontal:{type:Boolean,default:!1},hidden:{type:String,default:""},splitterColor:{type:String,default:"rgba(0, 0, 0, 0.2)"},controlsColor:{type:String,default:"rgba(192, 192, 192)"},splitterSize:{type:Number,default:3},controllers:{type:Boolean,default:!0},onlyOpenClose:{type:Boolean,default:!0}},data:function(){return{active:!1,percent:"left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50,hasMoved:!1}},computed:{flexDirection:function(){return this.horizontal?"column":"row"},splitterStyle:function(){return this.horizontal?{height:"".concat(this.splitterSize,"px"),cursor:"ns-resize","background-color":this.splitterColor}:{width:"".concat(this.splitterSize,"px"),cursor:"ew-resize","background-color":this.splitterColor}},leftPaneStyle:function(){return this.horizontal?{height:"".concat(this.percent,"%")}:{width:"".concat(this.percent,"%")}},rightPaneStyle:function(){return this.horizontal?{height:"".concat(100-this.percent,"%")}:{width:"".concat(100-this.percent,"%")}},cursor:function(){return this.active?this.horizontal?"ns-resize":"ew-resize":""}},methods:{onDown:function(){this.active=!0,this.hasMoved=!1},onUp:function(){this.active=!1},onMove:function(e){var t=0,n=e.currentTarget,i=0;if(this.active){if(this.horizontal){while(n)t+=n.offsetTop,n=n.offsetParent;i=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(n)t+=n.offsetLeft,n=n.offsetParent;i=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}i>this.margin&&i<100-this.margin&&(this.percent=i),this.$emit("splitterresize"),this.hasMoved=!0}},onMouseMove:function(e){0!==e.buttons&&0!==e.which||(this.active=!1),this.onMove(e)}},watch:{hidden:function(){this.percent="left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50}}},Kt=Gt,$t=(n("1848"),Object(y["a"])(Kt,Ut,Vt,!1,null,null,null));$t.options.__file="KlabSplitter.vue";var Yt=$t.exports,Jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kt-container relative-position klab-menu-component",class:{"kt-drag-enter":e.dragEnter>0&&!e.dragStart},on:{dragenter:e.onDragEnter,dragover:e.onDragOver,dragleave:e.onDragLeave,drop:e.onDrop}},[n("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[n("klab-q-tree",{ref:"klab-tree",attrs:{nodes:e.tree,"node-key":"id",ticked:e.ticked,selected:e.selected,expanded:e.expanded,"tick-strategy":"strict","text-color":"white","control-color":"white",color:"white",dark:!0,noNodesLabel:e.$t("label.noNodes"),"double-click-function":e.doubleClick,filter:e.isUser?"user":"tree",filterMethod:e.filterUser,noFilteredResultLabel:e.isUser?e.taskOfContextIsAlive?e.$t("messages.treeNoResultUserWaiting"):e.$t("messages.treeNoResultUser"):e.$t("messages.treeNoResultNoUser")},on:{"update:ticked":function(t){e.ticked=t},"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},click:function(t){e.$refs["observations-context"].close()}},scopedSlots:e._u([{key:"header-default",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":"",e.hasObservationInfo&&e.observationInfo.id===t.node.id?"node-selected":"",null!==e.cleanTopLayerId&&e.cleanTopLayerId===t.node.id?"node-on-top":"",e.checkObservationsOnTop(t.node.id)?"node-on-top":"",e.isUser?"node-user-element":"node-tree-element",t.node.needUpdate?"node-updatable":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?n("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?n("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):n("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.clearObservable(t.node.observable)))])],1),t.node.childrenCount>0||t.node.children.length>0?[n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])]:e._e(),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.$t("tooltips.uploadData")))])],1),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e()],2)}},{key:"header-folder",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e(),n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])],2)}},{key:"header-stub",fn:function(t){return n("div",{staticClass:"node-stub"},[n("span",{staticClass:"node-element node-stub"},[n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-checkbox-blank-circle"}}),e._v(e._s(e.$t("messages.loadingChildren"))+"\n ")],1)])}}])},[e._v("\n >\n ")])],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;n("f559"),n("6b54"),n("b54a");var Zt=n("e4f9"),en=n("bffd"),tn=n("b70a"),nn=n("525b"),on={name:"KlabQTree",extends:Zt["a"],props:{doubleClickTimeout:{type:Number,default:300},doubleClickFunction:{type:Function,default:null},noFilteredResultLabel:{type:String,default:null},checkClick:{type:Boolean,default:!0}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[],timeouts:[]}},methods:{__blur:function(){document.activeElement&&document.activeElement.blur()},__getNode:function(e,t){var n=this,i=t[this.nodeKey],o=this.meta[i],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],s=o.isParent?this.__getChildren(e,t.children):[],a=s.length>0||o.lazy&&"loaded"!==o.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],l=r||c?this.__getSlotScope(t,o,i):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(l)])])),e("div",{key:i,staticClass:"q-tree-node",class:{"q-tree-node-parent":a,"q-tree-node-child":!a}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":o.link,"q-tree-node-selected":o.selected,disabled:o.disabled},on:{click:function(e){n.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&n.__onClick(t,o):n.__onClick(t,o)}}},["loading"===o.lazy?e(tn["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):a?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":o.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){n.__onExpandClick(t,o,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[o.hasTicking&&!o.noTick?e(nn["a"],{staticClass:"q-mr-xs",props:{value:o.indeterminate?null:o.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!o.tickable},on:{input:function(e){n.__onTickedClick(t,o,e)}}}):null,r?r(l):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),a?e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:o.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:o.disabled}},s)])]):c])},__onClick:function(e,t){var n=this;null===this.doubleClickFunction?this.__onClickDefault(e,t):"undefined"===typeof this.timeouts["id".concat(e.id)]||null===this.timeouts["id".concat(e.id)]?this.timeouts["id".concat(e.id)]=setTimeout(function(){n.timeouts["id".concat(e.id)]=null,n.__onClickDefault(e,t)},this.doubleClickTimeout):(clearTimeout(this.timeouts["id".concat(e.id)]),this.timeouts["id".concat(e.id)]=null,this.doubleClickFunction(e,t))},__onClickDefault:function(e,t){this.__blur(),this.hasSelection?t.selectable&&this.$emit("update:selected",t.key!==this.selected?t.key:null):this.__onExpandClick(e,t),"function"===typeof e.handler&&e.handler(e)}},render:function(e){var t=this.__getChildren(e,this.nodes),n=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===n?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==n&&this.classes.splice(n,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},rn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[n("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,i){return t.enabled?[t.separator&&0!==i?n("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?n("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(n){e.askForAction(t.actionId)}}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():n("q-item",{key:t.actionId,attrs:{disabled:""}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},sn=[];rn._withStripped=!0;var an={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:s()({},Object(a["b"])("data",["setContext","loadContext","setContextMenuObservationId"]),{initContextMenu:function(){var e=this,t=this.$store.state.data.observations.find(function(t){return t.id===e.observationId});t?(this.resetContextMenu(!1),t&&t.actions&&t.actions.length>1?(this.itemActions=t.actions.slice(),this.itemObservation=t):this.resetContextMenu(),t.observationType!==c["y"].TYPE_STATE&&t.observationType!==c["y"].TYPE_GROUP&&(this.itemActions.push(c["z"].SEPARATOR_ITEM),this.itemActions.push(c["z"].RECONTEXTUALIZATION_ITEM),this.itemObservation=t),this.itemActions&&this.itemActions.length>0?this.enableContextMenu=this.itemActions&&this.itemActions.length>0:this.enableContextMenu=!1):this.resetContextMenu()},resetContextMenu:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.itemActions=[],this.itemObservation=null,e&&(this.enableContextMenu=!1)},hide:function(e){this.resetContextMenu(),this.$emit("hide",e)},askForAction:function(e){if(null!==this.itemObservation)switch(console.debug("Will ask for ".concat(e," of observation ").concat(this.itemObservation.id)),e){case"Recontextualization":this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST({contextId:this.itemObservation.id,parentContext:this.itemObservation.contextId},this.$store.state.data.session).body),this.loadContext(this.itemObservation.id);break;case"AddToCache":console.log("Ask for Add to cache, no action for now");break;default:break}this.enableContextMenu=!1}}),watch:{observationId:function(){null!==this.observationId?this.initContextMenu():this.resetContextMenu()}},mounted:function(){null!==this.observationId&&this.initContextMenu()}},cn=an,ln=(n("ad0b"),Object(y["a"])(cn,rn,sn,!1,null,null,null));ln.options.__file="ObservationContextMenu.vue";var un=ln.exports,dn=null,hn={name:"klabTree",components:{KlabQTree:on,ObservationContextMenu:un},props:{isUser:{type:Boolean,required:!0},tree:{type:Array,required:!0}},data:function(){return{ticked:[],selected:null,expanded:[],itemObservationId:null,askingForChildren:!1,scrollElement:null,showPopover:null,dragStart:!1,dragEnter:0,watchedObservation:[],contextMenuObservationId:null,OBSERVATION_CONSTANTS:c["y"]}},computed:s()({},Object(a["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(a["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(a["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(a["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:s()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:Xe["b"]},Object(a["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(a["b"])("view",["setSpinner","setMainDataViewer"]),{filterUser:function(e,t){return e.userNode?"user"===t:"tree"===t},rightClickHandler:function(e){e.preventDefault();var t=null;if(e.target.className.includes("node-element"))t=e.target;else{var n=e.target.getElementsByClassName("node-element");if(1===n.length){var i=Fe()(n,1);t=i[0]}}this.contextMenuObservationId=null!==t?t.id.substring(5):null},clearObservable:function(e){return 0===e.indexOf("(")&&e.lastIndexOf(")")===e.length-1?e.substring(1,e.length-1):e},askForOutputFormat:function(e,t,n){var i=this;null!==n&&n.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:n[0].value,items:n},cancel:!0,preventClose:!1,color:"info"}).then(function(e){i.askDownload(t,e,n)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,n,i){if("undefined"===typeof i){var o="";if(-1!==this.timestamp){var r=new Date(this.timestamp);o="_".concat(r.getFullYear()).concat(r.getMonth()<9?"0":"").concat(r.getMonth()+1).concat(r.getDate()<10?"0":"").concat(r.getDate(),"_").concat(r.getHours()<10?"0":"").concat(r.getHours()).concat(r.getMinutes()<10?"0":"").concat(r.getMinutes()).concat(r.getSeconds()<10?"0":"").concat(r.getSeconds())}i="".concat(e).concat(o)}var s=n.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",i,s,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,n=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],n)},doubleClick:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isContainer){e.next=4;break}null!==t.viewerIdx&&this.setMainDataViewer({viewerIdx:t.viewerIdx,visible:t.visible}),e.next=14;break;case 4:if(t.observationType!==c["y"].TYPE_STATE){e.next=8;break}this.fitMap(t,n),e.next=14;break;case 8:if(i=this.observations.find(function(e){return e.id===t.id}),!i||null===i){e.next=14;break}return e.next=12,Object(Ue["j"])(i);case 12:o=e.sent,this.fitMap(t,n,o);case 14:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),fitMap:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:n}),e&&t&&t.ticked&&this.setVisibility({node:e,visible:!0})},updateFolderListener:function(e){if(e&&e.folderId){var t=Object(Ue["f"])(this.tree,e.folderId);t&&null!==t&&(e.visible?this.$refs["klab-tree"].setTicked(t.children.map(function(e){return e.id}),!0):this.$refs["klab-tree"].setTicked(this.ticked.filter(function(e){return-1===t.children.findIndex(function(t){return t.id===e})}),!1))}},selectElementListener:function(e){var t=this,n=e.id,i=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,n);e&&(t.setVisibility({node:e,visible:i}),i?t.ticked.push(n):t.ticked.splice(t.ticked.findIndex(function(e){return e===n}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=dn&&(clearTimeout(this.scrollToTimeout),dn=null),this.$nextTick(function(){dn=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.reduce(function(e,t){return e+t.toString().length},0),i=""!==t?" + ".concat(t):"";return"calc(".concat(n,"ch").concat(i,")")},onDragStart:function(e,t){e.dataTransfer.setData("id",t),this.dragStart=!0},onDragEnd:function(){this.dragStart=!1},onDragEnter:function(e){e.preventDefault(),this.dragStart||(this.dragEnter+=1)},onDragLeave:function(e){e.preventDefault(),this.dragStart||(this.dragEnter-=1)},onDragOver:function(e){e.preventDefault()},onDrop:function(e){if(e.preventDefault(),this.dragEnter>0){var t=e.dataTransfer.getData("id");t&&""!==t?this.changeTreeOfNode({id:t,isUserTree:this.isUser}):console.warn("Strange dropped node ".concat(e.dataTransfer.getData("id")))}else console.debug("Self dropped");this.dragStart=!1,this.dragEnter=0}}),watch:{tree:function(){this.treeSizeChangeListener()},treeSelected:function(e){e!==this.selected&&(this.selected=e)},expanded:function(e,t){if(this.$store.state.view.treeExpanded=e,t.length!==e.length){if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0],i=Object(Ue["f"])(this.tree,n);return this.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:n,rootContextId:i.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===n}),1),void console.info("Stop watching observation ".concat(n," with rootContextId ").concat(i.rootContextId))}var o=e[e.length-1],r=Object(Ue["f"])(this.tree,o);r&&(this.sendStompMessage(l["a"].WATCH_REQUEST({active:!0,observationId:o,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:o,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(o," with rootContextId ").concat(r.rootContextId)),r.children.length>0&&r.children[0].id.startsWith("STUB")&&(r.children.splice(0,1),r.children.length0?(this.addChildrenToTree({parent:r}),this.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:r.id,visible:"undefined"!==typeof r.ticked&&r.ticked})):0===r.children.length&&this.askForChildren({parentId:r.id,offset:0,count:this.childrenToAskFor,total:r.childrenCount,visible:"undefined"!==typeof r.ticked&&(!!r.isContainer&&r.ticked)})))}},selected:function(e){null!==e?0===e.indexOf("ff_")?this.selected=null:this.selectNode(e):this.selectNode(null)},ticked:function(e,t){var n=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var i=t.filter(function(t){return e.indexOf(t)<0})[0];if(i.startsWith("STUB"))return;var o=Object(Ue["f"])(this.tree,i);o&&(this.setVisibility({node:o,visible:!1}),o.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===o.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var s=Object(Ue["f"])(this.tree,r);if(null!==s)if(s.isContainer){var a=function(){var e;n.setVisibility({node:s,visible:!0}),(e=n.ticked).push.apply(e,q()(s.children.filter(function(e){return e.parentArtifactId===s.id}).map(function(e){return e.id})))};this.askingForChildren||(s.childrenLoaded We are asking for tree now, this call is not need so exit");if(0===e.lasts.length)return t.preventDefault(),void console.debug("KlabTree -> There aren't incompleted folders, exit");var n=e.scrollElement.getBoundingClientRect(),i=n.bottom;e.lasts.forEach(function(t){var n=document.getElementById("node-".concat(t.observationId));if(null!==n){var o=n.getBoundingClientRect();if(0!==o.bottom&&o.bottom Asked for them"),e.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:t.folderId,visible:"undefined"!==typeof r.ticked&&r.ticked})})}}})}),this.$eventBus.$on(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$on(c["h"].SELECT_ELEMENT,this.selectElementListener),this.selected=this.treeSelected,this.ticked=this.treeTicked,this.expanded=this.treeExpanded},beforeDestroy:function(){var e=this;this.$eventBus.$off(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$off(c["h"].SELECT_ELEMENT,this.selectElementListener),this.watchedObservation.length>0&&this.watchedObservation.forEach(function(t){e.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:t.observationId,rootContextId:t.rootContextId},e.$store.state.data.session).body),console.info("Stop watching observation ".concat(t.observationId," with rootContextId ").concat(t.rootContextId))})}},pn=hn,fn=(n("5b35"),Object(y["a"])(pn,Jt,Qt,!1,null,null,null));fn.options.__file="KlabTree.vue";var mn=fn.exports,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[n("div",{attrs:{id:"oi-controls"}},[n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[n("q-checkbox",{attrs:{"keep-color":!0,color:"mc-yellow",readonly:1===e.observationInfo.valueCount||e.observationInfo.empty,disabled:1===e.observationInfo.valueCount||e.observationInfo.empty},nativeOn:{click:function(t){return e.showNode(t)}},model:{value:e.layerShow,callback:function(t){e.layerShow=t},expression:"layerShow"}})],1),n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[n("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?n("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[n("q-slider",{attrs:{min:0,max:1,step:.1,decimals:1,color:"mc-yellow",label:!1},model:{value:e.observationInfo.layerOpacity,callback:function(t){e.$set(e.observationInfo,"layerOpacity",t)},expression:"observationInfo.layerOpacity"}})],1):e._e()]),n("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[n("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[n("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,i){return n("div",{key:i,attrs:{id:"oi-metadata"}},[n("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(i))]),n("div",{staticClass:"oi-metadata-value",on:{dblclick:function(n){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasMapInfo,expression:"hasMapInfo"}],attrs:{id:"oi-mapinfo-container"},on:{mouseenter:function(t){e.setInfoShowed({index:0,categories:[],values:[e.mapSelection.value]})},mouseleave:function(t){e.setInfoShowed(null)}}},[n("div",{attrs:{id:"oi-mapinfo-map"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),n("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},vn=[];gn._withStripped=!0;var bn=n("e00b"),yn=n("5eee"),_n=n("a2c7"),Mn={name:"ObservationInfo",components:{HistogramViewer:bn["a"]},mixins:[Ot["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:s()({},Object(a["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["N"].VIEW_MAP.component},hasMapInfo:function(){return this.exploreMode&&null!==this.mapSelection.pixelSelected&&this.mapSelection.layerSelected.get("id").startsWith("cl_".concat(this.observationInfo.id))}}),methods:{copyToClipboard:function(e){Object(Xe["b"])(e),this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})},getContainerClasses:function(){var e=[];return null!==this.observationInfo.dataSummary&&e.push("k-with-histogram"),e},showNode:function(){this.$emit(c["h"].SHOW_NODE,{nodeId:this.observationInfo.id,state:this.layerShow})},viewerClosedListener:function(e){var t=e.idx;t===this.observationInfo.viewerIdx&&(this.layerShow=!1)},setInfoShowed:function(e){this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,e)}},watch:{mapSelection:function(){var e=this;if(null!==this.mapSelection.layerSelected){var t=this.infoMap.getLayers().getArray();null!==this.mapSelection.pixelSelected?(t.length>1&&this.infoMap.removeLayer(t[1]),this.infoMap.addLayer(this.mapSelection.layerSelected),this.infoMap.getView().setCenter(this.mapSelection.pixelSelected),this.infoMap.getView().setZoom(14),this.$nextTick(function(){e.infoMap.updateSize()}),this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,{index:0,categories:[],values:[this.mapSelection.value]})):t.length>1&&this.infoMap.removeLayer(t[1])}}},mounted:function(){this.scrollBar=new be(document.getElementById("oi-scroll-container")),this.infoMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[Lt["c"].EMPTY_LAYER],controls:[],interactions:[]}),this.layerShow=this.observationInfo.visible,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},wn=Mn,Cn=(n("db0a"),Object(y["a"])(wn,gn,vn,!1,null,null,null));Cn.options.__file="ObservationInfo.vue";var Sn=Cn.exports,An=G["b"].height,En={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:mn,ObservationInfo:Sn},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:s()({},Object(a["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(a["c"])("stomp",["taskOfContextIsAlive"]),Object(a["c"])("view",["hasObservationInfo","isDocked"])),methods:s()({},Object(a["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,n=e.state,i=this.treeNode(t);i&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:n}),i.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:n}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=An(document.getElementById("dmc-tree"))+24:this.$refs["kt-out-container"]&&(this.outContainerHeight=Number.parseFloat(window.getComputedStyle(this.$refs["kt-out-container"],null).getPropertyValue("max-height"))),this.recalculateTreeHeight()},recalculateTreeHeight:function(){var e=this;this.$nextTick(function(){e.userTreeMaxHeight=e.mainTreeHasNodes()?e.outContainerHeight/2:e.outContainerHeight;var t=document.getElementById("kt-user-tree");t&&e.outContainerHeight&&(e.userTreeHeight=An(t),e.treeHeight=e.outContainerHeight-e.userTreeHeight)})},initTree:function(){var e=this;this.hasTree&&this.$nextTick(function(){e.outContainerResized(),document.getElementById("kt-tree-details").addEventListener("toggle",function(t){e.detailsOpen=t.srcElement.open,e.recalculateTreeHeight()})})}}),watch:{userTree:function(){this.recalculateTreeHeight()},tree:function(){this.recalculateTreeHeight()},hasTree:function(){this.initTree()},taskOfContextIsAlive:function(){this.detailsOpen=this.taskOfContextIsAlive}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_NODE,this.showNodeListener),window.addEventListener("resize",this.outContainerResized),this.initTree()},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NODE,this.showNodeListener),window.removeEventListener("resize",this.outContainerResized)}},On=En,Ln=(n("a663"),Object(y["a"])(On,Ht,Xt,!1,null,null,null));Ln.options.__file="KlabTreePane.vue";var Tn=Ln.exports,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[n("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[n("q-icon",{class:{"cursor-pointer":e.timestamp0},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.onClick(t,function(){e.changeTimestamp(e.scaleReference.start)})},dblclick:function(t){e.onDblClick(t,function(){e.changeTimestamp(-1)})}}},[-1===e.timestamp?n("q-icon",{staticClass:"ot-time-origin",class:{"ot-time-origin-loaded":e.timeEvents.length},attrs:{name:"mdi-circle-medium",color:"mc-main"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),n("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ot-timeline",staticClass:"ot-timeline",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible},on:{mousemove:e.moveOnTimeline,mouseenter:function(t){e.timelineActivated=!0},mouseleave:function(t){e.timelineActivated=!1},click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return n("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[n("div",{staticClass:"ot-modification"})])}),n("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?n("div",{staticClass:"ot-actual-time",style:{left:"calc("+e.calculatePosition(e.visibleTimestamp)+"px + "+(e.timestamp===e.scaleReference.end?"0":"1")+"px)"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{staticClass:"ot-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)]),n("div",{staticClass:"ot-date-container"},[n("div",{staticClass:"ot-date ot-date-end col",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible,"ot-date-loaded":e.engineTimestamp===e.scaleReference.end},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.changeTimestamp(e.scaleReference.end)}}},[0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?n("observation-time"):e._e()],1)},Rn=[];xn._withStripped=!0;var kn=n("b8c1"),zn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.timeEvents.length>0?n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"otv-now",class:{"otv-novisible":-1===e.timestamp,"otv-docked":e.isMainControlDocked,"otv-running":e.isTimeRunning},domProps:{innerHTML:e._s(e.formattedTimestamp)}})]):e._e()},Pn=[];zn._withStripped=!0;var Nn={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:s()({},Object(a["c"])("data",["timestamp","timeEvents"]),Object(a["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=_t()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},In=Nn,Dn=(n("8622"),Object(y["a"])(In,zn,Pn,!1,null,null,null));Dn.options.__file="ObservationTime.vue";var Bn=Dn.exports,qn={name:"ObservationsTimeline",components:{ObservationTime:Bn},mixins:[kn["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(Ce["a"])(function(t){e.timelineActivated&&(e.timelineDate=e.formatDate(e.getDateFromPosition(t)))},300),timelineDate:null,timelineContainer:void 0,timelineLeft:void 0,visibleTimestamp:-1,playTimer:null,interval:void 0,speedMultiplier:1,selectSpeed:!1,pressTimer:null,longPress:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(a["c"])("stomp",["tasks"]),Object(a["c"])("view",["isMainControlDocked"]),{startDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.start,!0):""},endDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.end,!0):""},isVisible:function(){return this.visibleEvents.length>0}}),methods:s()({},Object(a["b"])("data",["setTimestamp","setModificationsTask"]),Object(a["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var i=_t()(e);return t?i.format("DD MMM YYYY"):'
'.concat(i.format("L")).concat(n?" - ":"
").concat(i.format("HH:mm:ss:SSS"),"
")},calculatePosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=Math.floor((e-this.scaleReference.start)*this.timelineContainer.clientWidth/(this.scaleReference.end-this.scaleReference.start));return t},moveOnTimeline:function(e){this.moveOnTimelineFunction(e)},getDateFromPosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=this.timelineContainer.clientWidth,n=e.clientX-this.timelineContainer.getBoundingClientRect().left,i=this.scaleReference.start+n*(this.scaleReference.end-this.scaleReference.start)/t;return i>this.scaleReference.end?i=this.scaleReference.end:ithis.scaleReference.end?(this.visibleTimestamp=this.scaleReference.end,this.setTimestamp(this.scaleReference.end)):(this.visibleTimestamp=e,this.setTimestamp(e)))},stop:function(){clearInterval(this.playTimer),this.playTimer=null},run:function(){var e=this;if(null!==this.playTimer)this.stop();else{this.interval||this.calculateInterval(),-1===this.timestamp&&this.changeTimestamp(this.scaleReference.start);var t={start:this.timestamp,stop:this.timestamp+this.interval.buffer};this.playTimer=setInterval(function(){e.changeTimestamp(Math.floor(e.timestamp+e.interval.step)),e.$nextTick(function(){e.timestamp>=e.scaleReference.end?e.stop():e.timestamp>t.stop-e.interval.step&&e.timestamp<=e.scaleReference.end&&(t={start:e.timestamp,stop:e.timestamp+e.interval.buffer},e.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t))})},this.interval.interval),this.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t)}},calculateInterval:function(){if(this.scaleReference&&this.schedulingResolution){var e=1,t=this.calculatePosition(this.scaleReference.start+this.schedulingResolution);t>1&&(e=t);var n=(this.schedulingResolution||c["L"].DEFAULT_STEP)/e,i=(this.scaleReference.end-this.scaleReference.start)/n,o=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,s=o/e;s*ic["L"].MAX_PLAY_TIME&&(s=c["L"].MAX_PLAY_TIME/i),s/=this.speedMultiplier,this.interval={step:n,steps:i,interval:s,buffer:r,multiplier:this.speedMultiplier},console.info("Step: ".concat(this.interval.step,"; Steps: ").concat(this.interval.steps,"; Interval: ").concat(this.interval.interval,"; Buffer: ").concat(this.interval.buffer))}},startPress:function(){var e=this;this.longPress=!1,this.pressTimer?(clearInterval(this.pressTimer),this.pressTimer=null):this.pressTimer=setTimeout(function(){e.selectSpeed=!0,e.longPress=!0},600)},stopPress:function(){clearInterval(this.pressTimer),this.pressTimer=null,!this.longPress&&this.timestamp0&&this.modificationsTask){var n=e.find(function(e){return e.id===t.modificationsTask.id});n&&!n.alive&&this.setModificationsTask(null)}},visibleEvents:function(){0===this.visibleEvents.length&&null!==this.playTimer&&this.stop()},timestamp:function(e,t){!this.isMainControlDocked||-1!==e&&-1!==t||(this.timelineContainer=void 0)},playTimer:function(){this.setTimeRunning(null!==this.playTimer)}},mounted:function(){this.timelineDate=this.startTime,this.visibleTimestamp=this.timestamp,_t.a.locale(window.navigator.userLanguage||window.navigator.language),this.$eventBus.$on(c["h"].NEW_SCHEDULING,this.calculateInterval)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEW_SCHEDULING,this.calculateInterval)},destroyed:function(){this.stop()}},jn=qn,Wn=(n("31da"),Object(y["a"])(jn,xn,Rn,!1,null,null,null));Wn.options.__file="ObservationsTimeline.vue";var Fn,Hn=Wn.exports,Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[n("div",{staticClass:"klp-level-selector"},[n("ul",e._l(e.LOG_ICONS,function(t,i,o){return n("li",{key:o,class:{"klp-selected":e.hasLevel(i)}},[n("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(i)}}},[n("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),n("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,i){return n("q-item",{key:i,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[n("q-item-main",{staticClass:"klp-separator"},[n("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[n("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Un=[];Xn._withStripped=!0;var Vn=(Fn={},p()(Fn,T["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),p()(Fn,T["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),p()(Fn,T["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),p()(Fn,T["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),p()(Fn,T["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),Fn),Gn={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vn}},computed:s()({},Object(a["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:s()({},Object(a["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===T["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=_t()(e.payload.timestamp)),"".concat(t.format("HH:mm:ss"),": ").concat(this.$t("engineEventLabels.evt".concat(e.payload.type))," ").concat(e.payload.started?"started":"stopped")}return"".concat(e.time?e.time.format("HH:mm:ss"):this.$t("messages.noTime"),": ").concat(e.payload)}return this.$t("label.klabNoMessage")},logColorAndIcon:function(e){var t=Vn[e.type];return t?Vn[e.type]:(console.warn("Log type: ".concat(e.type),e),Vn.Error)},isSeparator:function(e){return e&&e.payload&&e.payload.separator},hasLevel:function(e){return-1!==this.levels.indexOf(e)}}),mounted:function(){this.scrollBar=new be(document.getElementById("klab-log-pane"))}},Kn=Gn,$n=(n("f58f"),Object(y["a"])(Kn,Xn,Un,!1,null,null,null));$n.options.__file="KlabLogPane.vue";var Yn=$n.exports,Jn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sb-scales"},[e.hasNextScale()?n("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[n("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[n("q-tooltip",{attrs:{delay:600,anchor:e.anchorType,self:e.selfType,offset:e.offsets}},[e._v(e._s(e.$t("tooltips.refreshScale")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showSpaceScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("space",!0)},mouseleave:function(t){e.toggleScalePopup("space",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_SPACE}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showSpaceScalePopup,callback:function(t){e.showSpaceScalePopup=t},expression:"showSpaceScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[n("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space","use-next":!0,light:!0,editable:!1}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showTimeScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("time",!0)},mouseleave:function(t){e.toggleScalePopup("time",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_TIME}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showTimeScalePopup,callback:function(t){e.showTimeScalePopup=t},expression:"showTimeScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[n("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qn=[];Jn._withStripped=!0;var Zn={name:"ScaleButtons",components:{ScaleReference:Et},props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:8},scaleWidth:{type:String,default:"140px"},timeWidth:{type:String,default:void 0},spaceWidth:{type:String,default:void 0}},data:function(){return{showSpaceScalePopup:!1,showTimeScalePopup:!1,anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],SCALE_TYPE:c["B"]}},computed:s()({},Object(a["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,n=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:n})}}}),methods:{toggleScalePopup:function(e,t){"space"===e?(this.showSpaceScalePopup=t,this.showTimeScalePopup=!1):"time"===e&&(this.showSpaceScalePopup=!1,this.showTimeScalePopup=t)},rescaleContext:function(){this.hasNextScale()&&this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["B"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["B"].ST_TIME)&&{timeResolutionMultiplier:this.nextScale.timeResolutionMultiplier,timeUnit:this.nextScale.timeUnit,start:this.nextScale.start,end:this.nextScale.end}),this.$store.state.data.session).body)},noTimeScaleChange:function(){this.$q.notify({message:this.$t("messages.availableInFuture"),type:"info",icon:"mdi-information",timeout:1e3})}}},ei=Zn,ti=(n("1817"),Object(y["a"])(ei,Jn,Qn,!1,null,null,null));ti.options.__file="ScaleButtons.vue";var ni=ti.exports,ii=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kvs-container"},[n("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[n("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():n("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?n("span",{staticClass:"klab-button-notification"}):e._e()]),n("q-tooltip",{attrs:{offset:[8,0],self:e.selfTooltipType,anchor:e.anchorTooltipType,delay:600}},[e._v(e._s(0===e.knowledgeViews.length?e.$t("tooltips.noKnowledgeViews"):e.$t("tooltips.knowledgeViews")))])],1),n("q-popover",{staticClass:"kvs-popover",attrs:{disable:0===e.knowledgeViews.length,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.kvListOpen,callback:function(t){e.kvListOpen=t},expression:"kvListOpen"}},[n("div",{staticClass:"kvs-popover-container"},[n("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return n("q-item",{key:t.viewId,nativeOn:{click:function(n){e.selectKnowledgeView(t.viewId)}}},[n("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),n("q-item-main",[n("div",[e._v(e._s(t.label))])]),n("q-tooltip",{ref:"kv-tooltip-"+t.viewId,refInFor:!0,attrs:{offset:[8,0],self:"center left",anchor:"center right"}},[e._v(e._s(t.title))])],1)}))],1)])],1)},oi=[];ii._withStripped=!0;var ri={name:"KnoledgeViewsSelector",props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:0}},data:function(){return{anchorTooltipType:this.docked?"bottom left":"center right",selfTooltipType:this.docked?"top left":"center left",offsetTooltip:this.docked?[0,this.offset]:[this.offset,0],anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],kvListOpen:!1,hasNew:!1,KNOWLEDGE_VIEWS:c["t"]}},computed:s()({},Object(a["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:s()({},Object(a["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var n=t.$refs["kv-tooltip-".concat(e)];n&&n.length>0&&n[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},si=ri,ai=(n("0e44"),Object(y["a"])(si,ii,oi,!1,null,null,null));ai.options.__file="KnowledgeViewsSelector.vue";var ci=ai.exports,li=G["b"].width,ui=G["b"].height,di={top:25,left:15},hi={name:"klabMainControl",components:{KlabSpinner:M,KlabSearchBar:It,KlabBreadcrumbs:Ft,KlabTreePane:Tn,KlabLogPane:Yn,ScrollingText:gt,ScaleButtons:ni,MainActionsButtons:Te,StopActionsButtons:Ie,ObservationsTimeline:Hn,KnowledgeViewsSelector:ci},directives:{Draggable:U},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(Ce["a"])(function(t,n,i){e.onDebouncedPositionChanged(i)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:di.left,defaultTop:di.top,centeredLeft:di.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["u"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["t"]}},computed:s()({},Object(a["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","searchIsFocused","searchIsActive","isDrawMode","fuzzyMode","largeMode","windowSide","layout","hasHeader"]),{qCardStyle:function(){return{top:"".concat(this.defaultTop+this.correctedPosition.top,"px"),left:"".concat(this.centeredLeft+this.correctedPosition.left,"px"),"margin-top":"-".concat(this.correctedPosition.top,"px"),"margin-left":"-".concat(this.correctedPosition.left,"px")}}}),methods:s()({},Object(a["b"])("view",["setMainViewer","setLargeMode","searchStart","searchFocus","setWindowSide","setObservationInfo"]),{callStartType:function(e){this.searchIsFocused?e.evt.stopPropagation():this.$refs["klab-search-bar"].startType(e)},onDebouncedPositionChanged:function(e){this.askForDocking=!!(this.hasContext&&this.dragging&&null===this.layout&&e&&e.x<=30+this.correctedPosition.left)},hide:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!0},show:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!1},getRightLeft:function(){var e=li(this.boundingElement);return e-this.draggableElement.offsetWidth-di.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,n=li(this.boundingElement);e=(n-t)/2}return e+this.correctedPosition.left},changeDraggablePosition:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(e.top+=this.correctedPosition.top,e.left+=this.correctedPosition.left),this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var n=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));n.startDragPosition=e,n.currentDragPosition=e;var i=document.querySelector(".mc-q-card-title");i?i.setAttribute("draggable-state",JSON.stringify(n)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(n))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["M"].DOCKED_DATA_VIEWER),void this.setObservationInfo(null);this.draggableElement.offsetTop<0&&this.changeDraggablePosition({top:0,left:Math.max(this.draggableElement.offsetLeft,0)}),this.draggableElement.offsetLeft+this.draggableElement.offsetWidth<=0&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:0}),this.draggableElement.offsetLeft>=li(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(li(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=ui(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(ui(this.boundingElement)-this.draggableElement.offsetHeight,0),left:Math.max(this.draggableElement.offsetLeft,0)})},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},mapSizeChangedListener:function(e){var t=this;if(e&&"changelayout"===e.type)return e.align&&this.setWindowSide(e.align),this.updateCorrectedPosition(),void this.$nextTick(function(){t.changeDraggablePosition({left:t.hasContext?"left"===t.windowSide?t.defaultLeft:t.getRightLeft():t.getCenteredLeft(),top:t.defaultTop},!1)});this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop},this.checkWhereWasDragged()},spinnerDoubleClickListener:function(){this.hide()},updateCorrectedPosition:function(){var e=document.querySelector(".kapp-header-container"),t=document.querySelector(".kapp-left-container aside"),n=e?ui(e):0,i=t?li(t):0;this.correctedPosition={top:n,left:i},this.defaultTop=di.top+n,this.defaultLeft=di.left+i,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=li(this.draggableElement),this.dragMCConfig.handle=document.querySelector(".kexplorer-main-container .mc-q-card-title"),this.boundingElement=document.querySelector(".kexplorer-container"),this.centeredLeft=this.getCenteredLeft(),this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop}},focusSearch:function(e){this.moved||e&&e.target.classList&&(e.target.classList.contains("mcm-button")||e.target.classList.contains("q-icon")||e.target.classList.contains("q-btn")||e.target.classList.contains("q-btn-inner"))||(this.searchIsActive?this.searchIsFocused||this.searchFocus({focused:!0}):this.searchStart(""))}}),watch:{hasContext:function(){var e=this;this.setLargeMode(0),this.$nextTick(function(){e.changeDraggablePosition({top:e.defaultTop,left:e.hasContext?"left"===e.windowSide?e.defaultLeft:e.getRightLeft():e.getCenteredLeft()},!1)})},largeMode:function(){var e=this;this.hasContext||this.$nextTick(function(){var t=c["g"].SEARCHBAR_INCREMENT*e.largeMode/2;if(t>=0){var n=parseFloat(e.draggableElement.style.left),i=n-e.getCenteredLeft();i%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=di.top,this.defaultLeft=di.left,this.VIEWERS=c["M"]},mounted:function(){this.updateDraggable(),this.$eventBus.$on(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$on(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$off(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)}},pi=hi,fi=(n("96fa"),Object(y["a"])(pi,Me,we,!1,null,null,null));fi.options.__file="KlabMainControl.vue";var mi=fi.exports,gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return n("div",{key:t.idx,class:["no-padding",t.main?"absolute-top full-height full-width":"absolute thumb-view"],style:e.viewerStyle(t),attrs:{id:"dv-viewer-"+t.idx}},[t.main?e._e():n("div",{staticClass:"thumb-viewer-title absolute-top"},[n("div",{staticClass:"relative-position"},[n("div",{staticClass:"thumb-viewer-label float-left q-ma-sm",class:[t.type.hideable?"thumb-closable":""]},[e._v("\n "+e._s(e.capitalize(t.label))+"\n ")]),n("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[n("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(n){e.setMain(t.idx)}}}),t.type.hideable?n("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(n){e.closeViewer(t)}}}):e._e()],1)])]),n(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},vi=[];gi._withStripped=!0;var bi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[n("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),n("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),n("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?n("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),n("q-modal",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["gl-msg-content"]},model:{value:e.waitingGeolocation,callback:function(t){e.waitingGeolocation=t},expression:"waitingGeolocation"}},[n("div",{staticClass:"bg-opaque-white"},[n("div",{staticClass:"q-pa-xs"},[n("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),n("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),n("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),n("div",{staticClass:"gl-btn-container"},[n("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],attrs:{label:e.$t("label.appRetry"),color:"primary"},on:{click:e.retryGeolocation}}),n("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),n("q-modal",{attrs:{"no-route-dismiss":!0,"no-esc-dismiss":!0,"no-backdrop-dismiss":!0},model:{value:e.progressBarVisible,callback:function(t){e.progressBarVisible=t},expression:"progressBarVisible"}},[n("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),n("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[n("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),n("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():n("q-btn",{staticClass:"mv-remove-proposed-context",style:null!==e.proposedContextCenter?e.proposedContextCenter:{},attrs:{icon:"mdi-close",size:"lg",round:""},nativeOn:{click:function(t){e.sendSpatialLocation(null)}}})],1)},yi=[];bi._withStripped=!0;var _i="".concat("").concat(T["c"].REST_UPLOAD),Mi="1024MB",wi=Mi.substr(Mi.length-2),Ci="KB"===wi?1:"MB"===wi?2:"GB"===wi?3:"PB"===wi?4:0,Si=parseInt(Mi.substring(0,Mi.length-2),10)*Math.pow(1024,Ci);function Ai(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Ei=He["a"].directive("upload",{inserted:function(e,t){if(Ai()){var n=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},i=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},o=t.value&&t.value.onUploadError&&"function"===typeof t.value.onUploadError?t.value.onUploadError:function(e){console.error(JSON.stringify(e,null,4))};["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.addEventListener(t,function(e){e.preventDefault(),e.stopPropagation()},!1)}),e.addEventListener("drop",function(e){var r=e.dataTransfer.files;if(null!==r&&0!==r.length){for(var s=new FormData,a=[],c=0;cSi?o("File is too large, max sixe is ".concat(Mi)):(s.append("files[]",r[c]),a.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&s.append("refId",t.value.refId||null),L["a"].post(_i,s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){n(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){i(null!==r&&a.length>0?a.join(", "):null)}).catch(function(e){o(e,null!==r&&a.length>0?a.join(", "):null)})}})}}}),Oi=n("256f"),Li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[n("div",{staticClass:"md-title"},[e._v("Draw mode")]),n("div",{staticClass:"md-controls"},[n("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),n("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),n("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[n("q-btn-toggle",{attrs:{"toggle-color":"mc-main",size:"md",options:[{tabindex:1,icon:"mdi-vector-point",value:"Point",disable:!0},{tabindex:2,icon:"mdi-vector-line",value:"LineString",disable:!0},{tabindex:3,icon:"mdi-vector-polygon",value:"Polygon"},{tabindex:4,icon:"mdi-vector-circle-variant",value:"Circle"}]},model:{value:e.drawType,callback:function(t){e.drawType=t},expression:"drawType"}})],1)])},Ti=[];Li._withStripped=!0;var xi=n("a27f"),Ri=n("3e6b"),ki=n("5831"),zi=n("6c77"),Pi=n("83a6"),Ni=n("8682"),Ii=n("ce2c"),Di=n("ac29"),Bi=n("c807"),qi=n("4cdf"),ji=n("f822"),Wi=n("5bc3"),Fi={name:"MapDrawer",props:{map:{type:Object,required:!0},selectors:{type:Boolean,required:!1,default:!0},fillColor:{type:String,required:!1,default:"rgba(17, 170, 187, 0.3)"},strokeColor:{type:String,required:!1,default:"rgb(17, 170, 187)"},strokeWidth:{type:Number,required:!1,default:2},pointRadius:{type:Number,required:!1,default:5}},data:function(){return{drawerLayer:void 0,drawer:void 0,drawerModify:void 0,dragDCConfig:{resetInitialPos:!0},drawType:"Polygon"}},computed:{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0}},methods:s()({},Object(a["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,n=[];if(0!==t){for(var i=null,o=0;o0&&e.pop(),this.drawerLayer.getSource().clear(!0),this.drawerLayer.getSource().addFeatures(e)},drawCancel:function(){this.$emit("drawcancel"),this.drawerLayer.getSource().clear(),this.setDrawMode(!1)},setDrawer:function(){var e=this;this.drawer=new Di["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var n=Object(Xe["j"])(t.feature.getGeometry());Object(Xe["i"])(n)||(e.$q.notify({message:e.$t("messages.invalidGeometry"),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),t.feature.setGeometry(null))}),this.map.addInteraction(this.drawer)}}),watch:{drawType:function(){this.map.removeInteraction(this.drawer),this.setDrawer()}},directives:{Draggable:xi["Draggable"]},mounted:function(){var e=new ki["a"];this.drawerModify=new Bi["a"]({source:e}),this.drawerLayer=new Ri["a"]({id:"DrawerLayer",source:e,visible:!0,style:new zi["c"]({fill:new Pi["a"]({color:this.fillColor}),stroke:new Ni["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new Ii["a"]({radius:this.pointRadius,fill:new Pi["a"]({color:this.strokeColor})})})}),this.dragDCConfig.boundingElement=document.getElementById(this.map.get("target")),this.map.addLayer(this.drawerLayer),this.map.addInteraction(this.drawerModify),this.setDrawer()},beforeDestroy:function(){this.map.removeInteraction(this.drawer),this.map.removeInteraction(this.drawerModify),this.drawerLayer.getSource().clear(!0)}},Hi=Fi,Xi=(n("37a9"),Object(y["a"])(Hi,Li,Ti,!1,null,null,null));Xi.options.__file="MapDrawer.vue";var Ui=Xi.exports,Vi=n("e300"),Gi=n("9c78"),Ki=n("c810"),$i=n("592d"),Yi=n("e269"),Ji={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},Qi=n("cd7e"),Zi=n("0999"),eo=n("1e8d"),to=n("0af5"),no={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},io=function(e){function t(t){e.call(this),this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+Qi["d"],this.element.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.autoPanAnimation=t.autoPanAnimation||{},this.autoPanMargin=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,Object(eo["a"])(this,Object(Yi["b"])(no.ELEMENT),this.handleElementChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.MAP),this.handleMapChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.OFFSET),this.handleOffsetChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITION),this.handlePositionChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITIONING),this.handlePositioningChanged,this),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(void 0!==t.positioning?t.positioning:Ji.TOP_LEFT),void 0!==t.position&&this.setPosition(t.position)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getElement=function(){return this.get(no.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(no.MAP)},t.prototype.getOffset=function(){return this.get(no.OFFSET)},t.prototype.getPosition=function(){return this.get(no.POSITION)},t.prototype.getPositioning=function(){return this.get(no.POSITIONING)},t.prototype.handleElementChanged=function(){Object(Zi["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(Zi["e"])(this.element),Object(eo["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(eo["a"])(e,$i["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element)}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(no.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(no.ELEMENT,e)},t.prototype.setMap=function(e){this.set(no.MAP,e)},t.prototype.setOffset=function(e){this.set(no.OFFSET,e)},t.prototype.setPosition=function(e){this.set(no.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),i=this.getRect(n,[Object(Zi["c"])(n),Object(Zi["b"])(n)]),o=this.autoPanMargin;if(!Object(to["g"])(t,i)){var r=i[0]-t[0],s=t[2]-i[2],a=i[1]-t[1],c=t[3]-i[3],l=[0,0];if(r<0?l[0]=r-o:s<0&&(l[0]=Math.abs(s)+o),a<0?l[1]=a-o:c<0&&(l[1]=Math.abs(c)+o),0!==l[0]||0!==l[1]){var u=e.getView().getCenter(),d=e.getPixelFromCoordinate(u),h=[d[0]+l[0],d[1]+l[1]];e.getView().animate({center:e.getCoordinateFromPixel(h),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var n=e.getBoundingClientRect(),i=n.left+window.pageXOffset,o=n.top+window.pageYOffset;return[i,o,i+t[0],o+t[1]]},t.prototype.setPositioning=function(e){this.set(no.POSITIONING,e)},t.prototype.setVisible=function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)},t.prototype.updatePixelPosition=function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var n=e.getPixelFromCoordinate(t),i=e.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var n=this.element.style,i=this.getOffset(),o=this.getPositioning();this.setVisible(!0);var r=i[0],s=i[1];if(o==Ji.BOTTOM_RIGHT||o==Ji.CENTER_RIGHT||o==Ji.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=n.left="");var a=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=a&&(this.rendered.right_=n.right=a)}else{""!==this.rendered.right_&&(this.rendered.right_=n.right=""),o!=Ji.BOTTOM_CENTER&&o!=Ji.CENTER_CENTER&&o!=Ji.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=n.left=c)}if(o==Ji.BOTTOM_LEFT||o==Ji.BOTTOM_CENTER||o==Ji.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=n.top="");var l=Math.round(t[1]-e[1]-s)+"px";this.rendered.bottom_!=l&&(this.rendered.bottom_=n.bottom=l)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=n.bottom=""),o!=Ji.CENTER_LEFT&&o!=Ji.CENTER_CENTER&&o!=Ji.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var u=Math.round(e[1]+s)+"px";this.rendered.top_!=u&&(this.rendered.top_=n.top=u)}},t.prototype.getOptions=function(){return this.options},t}(Yi["a"]),oo=io,ro=n("b2da"),so=n.n(ro),ao=n("64d9"),co=n("f403"),lo=n("01d4"),uo=n("3900"),ho="projection",po="coordinateFormat",fo=function(e){function t(t){var n=t||{},i=document.createElement("div");i.className=void 0!==n.className?n.className:"ol-mouse-position",e.call(this,{element:i,render:n.render||mo,target:n.target}),Object(eo["a"])(this,Object(Yi["b"])(ho),this.handleProjectionChanged_,this),n.coordinateFormat&&this.setCoordinateFormat(n.coordinateFormat),n.projection&&this.setProjection(n.projection),this.undefinedHTML_=void 0!==n.undefinedHTML?n.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=i.innerHTML,this.mapProjection_=null,this.transform_=null,this.lastMouseMovePixel_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get(po)},t.prototype.getProjection=function(){return this.get(ho)},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.lastMouseMovePixel_=t.getEventPixel(e),this.updateHTML_(this.lastMouseMovePixel_)},t.prototype.handleMouseOut=function(e){this.updateHTML_(null),this.lastMouseMovePixel_=null},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var n=t.getViewport();this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEMOVE,this.handleMouseMove,this),Object(eo["a"])(n,lo["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEOUT,this.handleMouseOut,this),Object(eo["a"])(n,lo["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(po,e)},t.prototype.setProjection=function(e){this.set(ho,Object(Oi["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(Oi["j"])(this.mapProjection_,n):Oi["k"]}var i=this.getMap(),o=i.getCoordinateFromPixel(e);if(o){this.transform_(o,o);var r=this.getCoordinateFormat();t=r?r(o):o.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(uo["default"]);function mo(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var go=fo,vo=n("a568"),bo=(n("c58e"),{name:"MapViewer",components:{MapDrawer:Ui,ObservationContextMenu:un},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Ei},data:function(){var e=this;return{center:this.$mapDefaults.center,zoom:this.$mapDefaults.zoom,map:null,extentMap:null,hasExtentMap:!1,view:null,movedWithContext:!1,noNewRegion:!1,layers:new Vi["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ao["a"],geolocationId:null,geolocationIncidence:null,popupContent:"",popupOverlay:void 0,contextLayer:null,proposedContextLayer:null,proposedContextCenter:null,uploadConfig:{refId:null,onUploadProgress:function(t){e.uploadProgress=t},onUploadEnd:function(t){e.$q.notify({message:e.$t("messages.uploadComplete",{fileName:t}),type:"info",icon:"mdi-information",timeout:1e3}),e.uploadProgress=null},onUploadError:function(t,n){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:n}),"\n").concat(t.response.data.message),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),e.uploadProgress=null}},uploadProgress:null,storedZoom:null,clicksOnMap:0,bufferingLayers:!1,lastModificationLoaded:null,previousTopLayer:null,lockedObservations:[],contextMenuObservationId:null,coordinatesControl:void 0}},computed:s()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(a["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(a["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(a["d"])("view",["saveLocation"]),{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0},progressBarVisible:function(){return null!==this.uploadProgress},waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}}}),methods:s()({},Object(a["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(a["b"])("view",["addToKexplorerLog","setSpinner","setMapSelection","setDrawMode","setTopLayer","setShowSettings"]),{handleResize:function(){null!==this.map&&(this.map.updateSize(),this.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED))},onMoveEnd:function(){this.hasContext?this.movedWithContext=!0:this.isDrawMode||this.noNewRegion?this.noNewRegion=!1:this.sendRegionOfInterest()},sendRegionOfInterest:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.waitingGeolocation){var e=null,t=Object(Oi["l"])(this.view.getCenter(),Lt["d"].PROJ_EPSG_3857,Lt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(Oi["l"])(t,Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),duration:500}));try{var n=Object(Oi["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(n[0]<-180||n[1]<-90||n[2]>180||n[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=l["a"].REGION_OF_INTEREST(n,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["w"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&V["a"].set(c["P"].COOKIE_MAPDEFAULT,{center:this.view.getCenter(),zoom:this.view.getZoom()},{expires:30,path:"/",secure:!0}))}},findExistingLayerById:function(e){if(this.layers&&null!==this.layers){var t=this.layers.getArray();return t.filter(function(t){return null===t.get("id")?null===e:t.get("id").startsWith(e)})}return[]},findModificationTimestamp:function(e,t){if(-1!==t){var n=null===e?this.timeEvents:this.timeEventsOfObservation(e);return n.length>0?n.reduce(function(e,n){var i=t-n.timestamp;return i<=0?e:-1===e||i0)){e.next=7;break}if(c="".concat(n.id,"T").concat(o),l=a.find(function(e){return e.get("id")===c}),!l){e.next=7;break}return e.abrupt("return",{founds:a,layer:l});case 7:return e.prev=7,console.debug("Creating layer: ".concat(n.label," with timestamp ").concat(o)),e.next=11,Object(Ue["k"])(n,{projection:this.proj,timestamp:o,realTimestamp:s?o:this.timestamp});case 11:return u=e.sent,a&&a.length>0?u.setZIndex(n.zIndex):(this.zIndexCounter+=2,n.zIndex=this.zIndexCounter+n.zIndexOffset,u.setZIndex(n.zIndex)),this.layers.push(u),a.push(u),e.abrupt("return",{founds:a,layer:u});case 18:return e.prev=18,e.t0=e["catch"](7),console.error(e.t0.message),this.$q.notify({message:e.t0.message,type:"negative",icon:"mdi-alert-circle",timeout:3e3}),e.abrupt("return",null);case 23:case"end":return e.stop()}},e,this,[[7,18]])}));return function(t){return e.apply(this,arguments)}}(),bufferLayerImages:function(e){var t=this;e.stop>=this.scaleReference.end&&(e.stop=this.scaleReference.end-1),console.debug("Ask preload from ".concat(e.start," to ").concat(e.stop));var n=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),i=n.length;if(i>0){var o=function e(o){var r=t.observations.find(function(e){return e.id===n[o].id});r&&t.findLayerById({observation:r,timestamp:n[o].timestamp,isBuffer:!0}).then(function(t){var n=t.layer,r=n.getSource().image_;r&&0===r.state?(r.load(),n.getSource().on("imageloadend",function(t){t.image;++o125&&(this.hasExtentMap=!0,this.$nextTick(function(){e.extentMap.addLayer(e.proposedContextLayer),e.extentMap.getView().fit(e.proposedContext,{padding:[10,10,10,10],constrainResolution:!1})}))}},drawContext:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&(this.layers.clear(),this.lockedObservations=[],this.previousTopLayer=null,null!==this.contextLayer?(this.map.removeLayer(this.contextLayer),this.contextLayer=null):this.baseLayers.removeMask()),null===this.contextGeometry)return console.debug("No context, send region of interest"),void this.sendRegionOfInterest();this.contextGeometry instanceof Array?(this.contextLayer=new Ri["a"]({id:this.contextId,source:new ki["a"]({features:[new qi["a"]({geometry:new co["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(Xe["d"])(Lt["e"].POINT_CONTEXT_SVG_PARAM,this.contextLabel)}),this.map.addLayer(this.contextLayer),this.view.setCenter(this.contextGeometry)):(this.baseLayers.setMask(this.contextGeometry),this.view.fit(this.contextGeometry,{padding:[10,10,10,10],constrainResolution:!1}))},drawObservations:function(){var e=W()(regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.observations&&this.observations.length>0&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.visible}),t=this.observations.find(function(e){return e.top&&Object(Ue["n"])(e)}),t&&(this.previousTopLayer&&this.previousTopLayer.visible?t.id!==this.previousTopLayer.id&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.id!==t.id}),this.lockedObservations.push(this.previousTopLayer),this.previousTopLayer=t):this.previousTopLayer=t),n="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=i.findModificationTimestamp(e.id,i.timestamp);i.findLayerById({observation:e,timestamp:t}).then(function(o){if(null!==o){var r=o.founds,s=o.layer;s.setOpacity(e.layerOpacity),s.setVisible(e.visible);var a=e.zIndex;if(e.top?a=e.zIndexOffset+Lt["d"].ZINDEX_TOP:i.lockedObservationsIds.length>0&&i.lockedObservationsIds.includes(e.id)&&(a=Math.max(s.get("zIndex")-10,1)),n||(s.setZIndex(a),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t))?i.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t)||i.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(n,i){n.get("id")==="".concat(e.id,"T").concat(t)?n.setVisible(!0):n.getVisible()&&c.push(i)}),c.length>0&&c.forEach(function(e){i.$nextTick(function(){r[e].setVisible(!1)})})}}else r.forEach(function(e){e.setVisible(!1)});else console.debug("No multiple layer for observation ".concat(e.id,", refreshing")),s.setVisible(e.visible)}})}}),null===this.topLayer&&this.closePopup());case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),sendSpatialLocation:function(e){if(e){var t=this.wktInstance.writeFeaturesText(e,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:""},this.session).body)},doGeolocation:function(){var e=this;null!==this.geolocationId&&navigator.geolocation.clearWatch(this.geolocationId),this.geolocationId=navigator.geolocation.watchPosition(function(t){e.center=Object(Oi["l"])([t.coords.longitude,t.coords.latitude],Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),e.stopGeolocation()},function(t){switch(t.code){case t.PERMISSION_DENIED:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.POSITION_UNAVAILABLE:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.TIMEOUT:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;default:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break}},{enableHighAccuracy:!0,maximumAge:3e4,timeout:6e4})},retryGeolocation:function(){this.geolocationIncidence=null,this.doGeolocation()},stopGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];navigator.geolocation.clearWatch(this.geolocationId),this.$nextTick(function(){e.waitingGeolocation=!1,t&&e.sendRegionOfInterest()})},closePopup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&this.mapSelection.locked||(this.setMapSelection(c["g"].EMPTY_MAP_SELECTION),this.popupOverlay.setPosition(void 0))},setMapInfoPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=void 0===t?null:t,i=e.locked,o=void 0!==i&&i,r=e.layer,a=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var l,u;if(null!==n?(l=n.coordinate,o&&(n.preventDefault(),n.stopPropagation())):(o=this.mapSelection.locked,l=this.mapSelection.pixelSelected),null===a){u=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var d=this.findExistingLayerById(u),h=Fe()(d,1);a=h[0]}else u=a.get("id");var p=new Ki["a"]({id:"cl_".concat(u),source:a.getSource()});this.setMapSelection(s()({pixelSelected:l,timestamp:this.timestamp,layerSelected:p},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(u)},{locked:o}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,n)},needFitMapListener:function(e){var t=this,n=e.mainIdx,i=void 0===n?null:n,o=e.geometry,r=void 0===o?null:o,s=e.withPadding,a=void 0===s||s;null===r&&this.mainViewer.name===c["M"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==i&&this.idx===i||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:a?[10,10,10,10]:[0,0,0,0],constrainResolution:!1,callback:function(){t.movedWithContext=!1}})},200)):null!==this.storedZoom&&(this.view.setZoom(this.storedZoom),this.storedZoom=null)},observationInfoClosedListener:function(){this.mapSelection.locked||this.closePopup()},sendRegionOfInterestListener:function(){this.sendRegionOfInterest()},findTopLayerFromClick:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[],i=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){i[e.getType()]&&i[e.getType()]>e.get("zIndex")||(i[e.getType()]=e.get("zIndex"),n.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),n},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,n=document.createElement("textarea");n.value=t,n.style.top="0",n.style.left="0",n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy");this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})}catch(e){console.error("Oops, unable to copy",e)}document.body.removeChild(n)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),V["a"].set(c["P"].COOKIE_VIEW_COORDINATES,this.viewCoordinates,{expires:365,path:"/",secure:!0})}}),watch:{contextGeometry:function(e,t){this.drawContext(e,t),null!==e||this.movedWithContext||this.needFitMapListener({geometry:t,withPadding:!1}),this.movedWithContext=!1},observations:{handler:function(){var e=this;this.$nextTick(function(){return e.drawObservations()})},deep:!0},timestamp:function(e){var t=this.findModificationTimestamp(null,e);t!==this.lastModificationLoaded&&(this.lastModificationLoaded=t,this.drawObservations())},center:function(){this.view.setCenter(this.center)},mapSelection:function(e){if("undefined"!==typeof e&&null!==e&&null!==e.pixelSelected){if(this.mapSelectionMarker.setPosition(e.pixelSelected),null!==this.topLayer){var t=Object(Oi["l"])(e.pixelSelected,"EPSG:3857","EPSG:4326");this.popupContent="

".concat(this.topLayer.desc,'

\n
\n

').concat(e.value,'

\n
\n

').concat(t[1].toFixed(6),", ").concat(t[0].toFixed(6),"

"),this.popupOverlay.setPosition(e.pixelSelected)}}else this.closePopup(),this.mapSelectionMarker.setPosition(void 0)},hasContext:function(e){this.uploadConfig.refId=this.contextId,e?this.setDrawMode(!1):(this.sendRegionOfInterest(),this.popupOverlay.setPosition(void 0))},proposedContext:function(e){var t=this;this.drawProposedContext(),this.$nextTick(function(){t.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"KlabSearch"}))})},topLayer:function(e){null!==e&&this.mapSelection.locked?this.setMapInfoPoint():this.closePopup()},hasExtentMap:function(){var e=this;this.hasExtentMap&&this.$nextTick(function(){e.extentMap.updateSize()}),this.setShowSettings(!this.hasExtentMap)},viewCoordinates:function(){this.setCoordinatesControl()}},created:function(){this.waitingGeolocation="geolocation"in navigator&&!V["a"].has(c["P"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=Lt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var n=t;n.on("propertychange",function(t){e.visibleBaseLayer=n,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&V["a"].set(c["P"].COOKIE_BASELAYER,n.get("name"),{expires:30,path:"/",secure:!0})})});var t=Lt["c"].MAPBOX_GOT;t.setVisible(!0);var n=new Gi["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new yn["a"]({view:new _n["a"]({center:this.center,zoom:this.zoom}),layers:n,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(i){if(e.viewCoordinates&&i.originalEvent.ctrlKey&&!i.originalEvent.altKey)e.copyCoordinates(i);else{if(e.isDrawMode)return i.preventDefault(),void i.stopPropagation();if(i.originalEvent.ctrlKey&&i.originalEvent.altKey&&i.originalEvent.shiftKey){var o=n.getLayersArray().slice(-1)[0];o&&"mapbox_got"===o.get("name")?(n.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(n.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(W()(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(n=e.findTopLayerFromClick(i,!1),n.length>0&&n.forEach(function(t){var o=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),1===n.length&&e.closePopup()):e.topLayer&&o===e.topLayer.id?e.setMapInfoPoint({event:i}):(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),e.setMapInfoPoint({event:i,layer:t.layer}))}),e.clicksOnMap=0);case 1:case"end":return t.stop()}},t)})),300)}}),this.map.on("dblclick",function(t){if(e.isDrawMode)return t.preventDefault(),void t.stopPropagation();var n=e.findTopLayerFromClick(t);if(1===n.length){var i=n[0].layer.get("id");e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:t,locked:!0,layer:n[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var n=e.findTopLayerFromClick(t,!1);n.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(n[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Gi["default"]({layers:this.layers})),this.layerSwitcher=new so.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new oo({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new oo({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[Lt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new go({coordinateFormat:Object(vo["c"])(6),projection:Lt["d"].PROJ_EPSG_4326,undefinedHTML:"..."}),this.setCoordinatesControl(),this.drawContext(),this.drawObservations(),this.drawProposedContext(),this.waitingGeolocation&&this.doGeolocation(),this.setShowSettings(!this.hasExtentMap),this.$eventBus.$on(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$on(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$on(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$on(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$off(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$off(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$off(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)}}),yo=bo,_o=(n("c612"),Object(y["a"])(yo,bi,yi,!1,null,null,null));_o.options.__file="MapViewer.vue";var Mo=_o.exports,wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?n("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),n("q-resize-observable",{on:{resize:e.resize}}),n("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},Co=[];wo._withStripped=!0;var So=n("a5b7"),Ao=n.n(So),Eo={name:"GraphViewer",components:{D3Network:Ao.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["Q"]);return e},computed:{observation:function(){var e=this.$store.getters["data/observationsOfViewer"](this.idx);return e.length>0?e[0]:null}},methods:{loadGraph:function(){var e=this,t="".concat("").concat(T["c"].REST_SESSION_VIEW,"data/").concat(this.observation.id);Object(Ue["h"])("gr_".concat(this.observation.id),t,{params:{format:"NETWORK",outputFormat:"json"}},function(t,n){if(t&&"undefined"!==typeof t.data){var i=t.data,o=i.nodes,r=i.edges;e.nodes=o.map(function(e){return{id:e.id,name:e.label,nodeSym:"~assets/klab-spinner.svg"}}),e.links=r.map(function(e){return{id:e.id,name:e.label,sid:e.source,tid:e.target}}),e.resize()}n()})},resize:function(){var e={w:this.$el.clientWidth,h:this.$el.clientHeight};this.updateOptions("size",e)},changeForce:function(e){if(e.preventDefault(),e&&e.deltaY){var t=this.options.force;if(e.deltaY<0&&t<5e3)t+=50;else{if(!(e.deltaY>0&&t>50))return;t-=50}this.updateOptions("force",t)}},updateOptions:function(e,t){this.options=s()({},this.options,p()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["Q"].options)},viewerClosedListener:function(e){var t=e.idx;t===this.idx&&this.$eventBus.$emit(c["h"].SHOW_NODE,{nodeId:this.observation.id,state:!1})}},watch:{observation:function(e){null!==e&&0===this.nodes.length?this.loadGraph():null===e&&this.reset()}},mounted:function(){this.options.size.w=this.$el.clientWidth,this.options.size.h=this.$el.clientHeight,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},Oo=Eo,Lo=(n("6420"),n("9198"),Object(y["a"])(Oo,wo,Co,!1,null,null,null));Lo.options.__file="GraphViewer.vue";var To=Lo.exports,xo=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Ro=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit uv-container"},[n("h4",[e._v("Under construction")])])}];xo._withStripped=!0;var ko={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},zo=ko,Po=(n("1fac"),Object(y["a"])(zo,xo,Ro,!1,null,null,null));Po.options.__file="UnknownViewer.vue";var No=Po.exports,Io=[],Do={components:{MapViewer:Mo,GraphViewer:To,UnknownViewer:No},computed:s()({},Object(a["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:s()({},Object(a["b"])("view",["setMainDataViewer"]),{setMain:function(e){this.setMainDataViewer({viewerIdx:e}),this.$eventBus.$emit(c["h"].VIEWER_SELECTED,{idx:e})},closeViewer:function(e){this.setMainDataViewer({viewerIdx:e.idx,viewerType:e.type,visible:!1}),this.$eventBus.$emit(c["h"].VIEWER_CLOSED,{idx:e.idx})},viewerStyle:function(e){return e.main?"":e.type.hideable&&!e.visible?"display: none":(Io.push(e),0===Io.length?"left: 0":"left: ".concat(200*(Io.length-1)+10*(Io.length-1),"px"))},capitalize:function(e){return Object(Xe["a"])(e)}}),watch:{mainDataViewerIdx:function(){Io=[]},dataViewers:{handler:function(e){var t=this,n=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,s()({},null!==n&&"undefined"!==typeof n&&{idx:n.idx}))})},deep:!0}},beforeUpdate:function(){Io=[]},mounted:function(){Io=[]}},Bo=Do,qo=(n("f164"),Object(y["a"])(Bo,gi,vi,!1,null,"216658d8",null));qo.options.__file="DataViewer.vue";var jo=qo.exports,Wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kd-main-container print-hide",style:{width:e.containerStyle.width+"px",height:e.containerStyle.height+"px"},attrs:{view:"hHh Lpr fFf",container:""}},[n("q-layout-header",[n("documentation-header")],1),n("q-layout-drawer",{attrs:{side:"left",breakpoint:0,"content-class":["klab-left","no-scroll"],width:e.LEFTMENU_CONSTANTS.LEFTMENU_DOCUMENTATION_SIZE,overlay:!1},model:{value:e.leftMenu,callback:function(t){e.leftMenu=t},expression:"leftMenu"}},[n("documentation-tree")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kd-container"},[n("documentation-viewer")],1)])],1),n("q-modal",{staticClass:"kd-modal",attrs:{"no-backdrop-dismiss":"","no-esc-dismiss":""},on:{show:e.launchPrint},model:{value:e.print,callback:function(t){e.print=t},expression:"print"}},[n("documentation-viewer",{attrs:{"for-printing":!0}}),n("q-btn",{staticClass:"dv-print-hide print-hide",attrs:{icon:"mdi-close",round:"",flat:"",size:"sm",color:"mc-main"},on:{click:function(t){e.print=!1}}})],1)],1)},Fo=[];Wo._withStripped=!0;var Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dh-container full-width row items-center"},[n("div",{staticClass:"dh-tabs col justify-start"},[n("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.REPORT,icon:"mdi-text-box-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.REPORT)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.TABLES,icon:"mdi-table",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.TABLES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.FIGURES,icon:"mdi-image",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.FIGURES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.RESOURCES,icon:"mdi-database-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.RESOURCES)},slot:"title"})],1)],1),n("div",{staticClass:"dh-actions justify-end"},[n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appPrint")))])],1),e.selectedTab===e.DOCUMENTATION_VIEWS.TABLES?[n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize-1<8,flat:"",icon:"mdi-format-font-size-decrease",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(-1)}}}),n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize+1>50,flat:"",icon:"mdi-format-font-size-increase",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(1)}}})]:e._e()],2),e.hasSpinner?n("div",{staticClass:"dh-spinner col-1 justify-end"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[n("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[n("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Xo=[];Ho._withStripped=!0;var Uo={name:"DocumentationHeader",components:{KlabSpinner:M},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["u"].LEFTMENU_HIDDEN&&!this.hasHeader)},selectedTab:{get:function(){return this.$store.getters["view/documentationView"]},set:function(e){this.$store.dispatch("view/setDocumentationView",e,{root:!0}),this.setDocumentationSelected(null)}}}),methods:s()({},Object(a["b"])("view",["setTableFontSize","setDocumentationSelected"]),{tableFontSizeChange:function(e){this.setTableFontSize(this.tableFontSize+e),this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table")},forceReload:function(){this.$eventBus.$emit(c["h"].REFRESH_DOCUMENTATION,{force:!0})},print:function(){this.$eventBus.$emit(c["h"].PRINT_DOCUMENTATION)}})},Vo=Uo,Go=(n("d18c"),Object(y["a"])(Vo,Ho,Xo,!1,null,null,null));Go.options.__file="DocumentationHeader.vue";var Ko=Go.exports,$o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dt-container relative-position klab-menu-component"},[n("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.tree.length,expression:"tree.length === 0"}],staticClass:"dt-tree-empty"},[e._v(e._s(e.$t("label.noDocumentation")))]),n("klab-q-tree",{attrs:{nodes:e.tree,"node-key":"id","check-click":!1,selected:e.selected,expanded:e.expanded,ticked:e.ticked,"text-color":"white","control-color":"white",color:"white",dark:!0,"no-nodes-label":e.$t("label.noNodes"),"no-results-label":e.$t("label.noNodes"),filter:e.documentationView,"filter-method":e.filter},on:{"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},"update:ticked":function(t){e.ticked=t}}})],1),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yo=[];$o._withStripped=!0;var Jo={name:"DocumentationTree",components:{KlabQTree:on},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("data",["documentationTrees"]),Object(a["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:s()({},Object(a["b"])("view",["setDocumentationSelected"]),{filter:function(e,t){return t!==c["n"].REPORT||e.type!==c["l"].PARAGRAPH&&e.type!==c["l"].CITATION}}),watch:{selected:function(e){this.setDocumentationSelected(e)},documentationSelected:function(){this.selected=this.documentationSelected}},mounted:function(){this.selected=this.documentationSelected}},Qo=Jo,Zo=(n("5823"),Object(y["a"])(Qo,$o,Yo,!1,null,null,null));Zo.options.__file="DocumentationTree.vue";var er=Zo.exports,tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-documentation"},[n("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[n("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[n("div",{staticClass:"dv-content"},e._l(e.content,function(t){return n("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[n("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?n("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?n("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?n("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(n){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?n("span",{staticClass:"dv-citation"},[n("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?n("div",{staticClass:"dv-table-container"},[n("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),n("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),n("div",{staticClass:"dv-table-bottom text-right print-hide"},[n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(n){e.tableCopy(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(n){e.tableDownload(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableDownloadAsXSLX")))])],1)],1)]):t.type===e.DOCUMENTATION_TYPES.FIGURE?n("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-figure-wrapper col"},[n("div",{staticClass:"content-center row"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[n("div",{staticClass:"dv-figure-caption col"},[e._v(e._s(e.$t("label.reportFigure")+" "+t.idx+(""!==t.figure.caption?". "+t.figure.caption:"")))]),t.figure.timeString&&""!==t.figure.timeString?n("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),n("div",{staticClass:"dv-col-fill col"})]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingImages.includes(t.id),expression:"loadingImages.includes(doc.id)"}],staticClass:"dv-figure-wait row items-center",style:{height:e.waitHeight+"px"}},[n("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),n("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[n("img",{staticClass:"dv-figure-img",class:[e.forPrinting?"dv-figure-print":"dv-figure-display"],attrs:{src:"",id:"figimg-"+e.documentationView+"-"+e.getId(t.id),alt:t.figure.caption}})])]),n("div",{staticClass:"dv-figure-legend col"},[n("histogram-viewer",{staticClass:"dv-figure-colormap",attrs:{dataSummary:t.figure.dataSummary,colormap:t.figure.colormap,id:e.getId(t.observationId),direction:"vertical",tooltips:!1,legend:!0}})],1)]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-time col"},[n("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(n){e.changeTime(n,t.id)}}})],1)]),n("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?n("div",{staticClass:"dv-model-container"},[n("div",{staticClass:"dv-model-code",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(e.getModelCode(t.bodyText))}})]):t.type===e.DOCUMENTATION_TYPES.RESOURCE?n("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-resource-title-container"},[n("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),n("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?n("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(i,o){return n("div",{key:o,staticClass:"dv-resource-keyword"},[n("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(i))]),o0?n("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(i,o){return n("div",{key:o,staticClass:"dv-resource-author-wrapper"},[n("span",{staticClass:"dv-resource-author"},[e._v(e._s(i))]),o0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,n=void 0===t?null:t,i=e.force,o=void 0!==i&&i;null===n&&(n=this.documentationView),(-1!==this.reloadViews.indexOf(n)||o)&&this.loadDocumentation(n)},printDocumentation:function(){this.print=!0},closePrint:function(){this.print=!1},launchPrint:function(){this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table"),setTimeout(function(){window.print()},600)}}),watch:{documentationView:function(){var e=this;this.$nextTick(function(){e.load()})},reloadViews:function(){var e=this;this.$nextTick(function(){e.load()})}},activated:function(){this.load()},mounted:function(){this.$eventBus.$on(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$on(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.addEventListener("afterprint",this.closePrint)},beforeDestroy:function(){this.$eventBus.$off(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$off(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.removeEventListener("afterprint",this.closePrint)}},cr=ar,lr=(n("7bbc"),Object(y["a"])(cr,Wo,Fo,!1,null,null,null));lr.options.__file="KlabDocumentation.vue";var ur=lr.exports,dr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dfv-wrapper",class:"dfv-"+e.flowchartSelected},[n("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[n("div",{staticClass:"dfv-graph-info"},[n("div",{staticClass:"dfv-graph-type"},[n("span",[e._v(e._s(e.flowchart(e.flowchartSelected)?e.flowchart(e.flowchartSelected).label:"Nothing"))])]),n("div",{staticClass:"dfv-graph-selector"},[n("q-btn",{staticClass:"dfv-button",class:e.flowchartSelected===e.CONSTANTS.GRAPH_DATAFLOW?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).flowchart||e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).updatable),icon:"mdi-sitemap",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_DATAFLOW&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_DATAFLOW)}}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).label))])],1),n("q-btn",{class:e.flowchartSelected===e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).flowchart||e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).updatable),icon:"mdi-graph-outline",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED)}}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).label))])],1)],1)]),n("div",[n("div",{attrs:{id:"sprotty"}}),n("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1)]),e.dataflowInfoOpen?n("div",{staticClass:"dfv-info-container"},[n("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},hr=[];dr._withStripped=!0;n("98db");var pr=n("970b"),fr=n.n(pr),mr=n("5bc30"),gr=n.n(mr),vr=n("8449"),br=n("42d6"),yr=n("e1c6"),_r=0,Mr=200,wr=!1,Cr=function(){function e(){fr()(this,e)}return gr()(e,[{key:"handle",value:function(e){switch(e.kind){case br["SelectCommand"].KIND:wr=!1,_r=setTimeout(function(){wr||vr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),wr=!1},Mr);break;case br["SetViewportCommand"].KIND:clearTimeout(_r),wr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(br["SelectCommand"].KIND,this),e.register(br["SetViewportCommand"].KIND,this)}}]),e}();function Sr(e){return void 0!==e.source&&void 0!==e.target}function Ar(e){return void 0!==e.sources&&void 0!==e.targets}yr.decorate(yr.injectable(),Cr);var Er=function(){function e(){this.nodeIds=new Set,this.edgeIds=new Set,this.portIds=new Set,this.labelIds=new Set,this.sectionIds=new Set,this.isRestored=!1}return e.prototype.transform=function(e){var t,n,i=this,o={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return i.transformElkNode(e)});(t=o.children).push.apply(t,r)}if(e.edges){var s=e.edges.map(function(e){return i.transformElkEdge(e)});(n=o.children).push.apply(n,s)}return o},e.prototype.transformElkNode=function(e){var t,n,i,o,r=this;this.checkAndRememberId(e,this.nodeIds);var s={type:"node",id:e.id,nodeType:e.id.split(".")[0],position:this.pos(e),size:this.size(e),status:this.isRestored?"processed":"waiting",children:[]};if(e.children){var a=e.children.map(function(e){return r.transformElkNode(e)});(t=s.children).push.apply(t,a)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(n=s.children).push.apply(n,c)}if(e.labels){var l=e.labels.map(function(e){return r.transformElkLabel(e)});(i=s.children).push.apply(i,l)}if(e.edges){var u=e.edges.map(function(e){return r.transformElkEdge(e)});(o=s.children).push.apply(o,u)}return s},e.prototype.transformElkPort=function(e){this.checkAndRememberId(e,this.portIds);var t={type:"port",id:e.id,position:this.pos(e),size:this.size(e),children:[]};return t},e.prototype.transformElkLabel=function(e){return this.checkAndRememberId(e,this.labelIds),{type:"label",id:e.id,text:e.text,position:this.pos(e),size:this.size(e)}},e.prototype.transformElkEdge=function(e){var t,n,i=this;this.checkAndRememberId(e,this.edgeIds);var o={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(Sr(e)?(o.sourceId=e.source,o.targetId=e.target,e.sourcePoint&&o.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&o.routingPoints.push(e.targetPoint)):Ar(e)&&(o.sourceId=e.sources[0],o.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;i.checkAndRememberId(e,i.sectionIds),o.routingPoints.push(e.startPoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),o.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,n){var i={type:"junction",id:e.id+"_j"+n,position:t};o.children.push(i)}),e.labels){var r=e.labels.map(function(e){return i.transformElkLabel(e)});(n=o.children).push.apply(n,r)}return o},e.prototype.pos=function(e){return{x:e.x||0,y:e.y||0}},e.prototype.size=function(e){return{width:e.width||0,height:e.height||0}},e.prototype.checkAndRememberId=function(e,t){if(void 0===e.id||null===e.id)throw Error("An element is missing an id: "+e);if(t.has(e.id))throw Error("Duplicate id: "+e.id+".");t.add(e.id)},e}(),Or=n("e1c6"),Lr=n("393a"),Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xr=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Rr={createElement:Lr["svg"]},kr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){var n="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Rr.createElement("g",null,Rr.createElement("rect",{classNames:n,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){return Rr.createElement("g",null,Rr.createElement("rect",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r=o||t.mouseModel&&t.mouseModel>=o,exselected:t.mouseModel&&t.model>=o&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(l["a"].DATAFLOW_NODE_RATING({nodeId:this.dataflowInfo.elementId,contextId:this.contextId,rating:this.dataflowInfo.rating,comment:e},this.session).body)},commentOk:function(){this.changeDataflowRating(this.commentContent),this.$q.notify({message:this.$t("messages.thankComment"),type:"info",icon:"mdi-information",timeout:1e3})},closePanel:function(){this.setDataflowInfoOpen(!1)}}),watch:{commentOpen:function(e){this.setModalMode(e)}}},Qr=Jr,Zr=(n("75c1"),Object(y["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var es=Zr.exports,ts={name:"DataflowViewer",components:{DataflowInfo:es},data:function(){return{modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0,CONSTANTS:c["g"]}},computed:s()({},Object(a["c"])("data",["flowchart","flowcharts","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(a["c"])("view",["leftMenuState","flowchartSelected","dataflowInfoOpen"])),methods:s()({},Object(a["b"])("data",["loadFlowchart"]),Object(a["b"])("view",["setFlowchartSelected","setDataflowInfoOpen"]),{doGraph:function(){var e=this,t=this.flowchart(this.flowchartSelected);if(t){if(this.processing)return void setTimeout(this.doGraph(),100);t.updatable?this.loadFlowchart(this.flowchartSelected).then(function(){var n=JSON.parse(JSON.stringify(t.flowchart));e.processing=!0,t.graph=(new Er).transform(n),e.setModel(t),e.centerGraph(),e.processing=!1}).catch(function(e){console.error(e)}):null===t.graph||t.visible||(this.setModel(t),this.centerGraph())}},setModel:function(e){this.modelSource.setModel(e.graph),this.flowcharts.forEach(function(e){e.visible=!1}),e.visible=!0},centerGraph:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW?this.actionDispatcher.dispatch(new br["FitToScreenAction"]([],40)):this.actionDispatcher.dispatch(new br["CenterAction"]([],40))},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length){for(var e=this.dataflowStatuses.length,t=0;t=0;n-=1)this.sendStompMessage(l["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[n],contextId:this.context.id},this.session).body)}},closePanel:function(){this.setDataflowInfoOpen(!1)},resize:function(){var e=this;this.$nextTick(function(){var t=document.getElementById("sprotty");if(null!==t){var n=t.getBoundingClientRect();e.actionDispatcher.dispatch(new br["InitializeCanvasBoundsAction"]({x:n.left,y:n.top,width:n.width,height:n.height})),e.centerGraph()}})}}),watch:{flowchartSelected:function(){this.visible&&this.doGraph()},flowcharts:{handler:function(){this.visible&&this.doGraph()},deep:!0},dataflowStatuses:{handler:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&null!==this.flowchart(this.flowchartSelected)&&this.updateStatuses()},deep:!0},dataflowInfo:function(e,t){null===e?this.setDataflowInfoOpen(!1):null===t?this.setDataflowInfoOpen(!0):e.elementId===t.elementId&&this.dataflowInfoOpen?this.setDataflowInfoOpen(!1):this.setDataflowInfoOpen(!0)},dataflowInfoOpen:function(){this.resize()}},mounted:function(){var e=Xr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(br["TYPES"].IActionHandlerInitializer).to(Cr),this.modelSource=e.get(br["TYPES"].ModelSource),this.actionDispatcher=e.get(br["TYPES"].IActionDispatcher),this.$eventBus.$on(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)},activated:function(){this.visible=!0,this.doGraph(),this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&this.needsUpdate&&(this.updateStatuses(),this.needsUpdate=!1)},deactivated:function(){this.visible=!1},beforeDestroy:function(){this.$eventBus.$off(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)}},ns=ts,is=(n("7890"),Object(y["a"])(ns,dr,hr,!1,null,null,null));is.options.__file="DataflowViewer.vue";var os=is.exports,rs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{ref:"irm-modal-container",attrs:{"no-esc-dismiss":!0,"no-backdrop-dismiss":!0,"content-classes":["irm-container"]},on:{hide:e.cleanInputRequest},model:{value:e.opened,callback:function(t){e.opened=t},expression:"opened"}},[n("q-tabs",{class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{swipeable:"",animated:"",color:"white"},model:{value:e.selectedRequest,callback:function(t){e.selectedRequest=t},expression:"selectedRequest"}},[e._l(e.inputRequests,function(t){return n("q-tab",{key:t.messageId,class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{slot:"title",name:"request-"+t.messageId},slot:"title"})}),e._l(e.inputRequests,function(t){return n("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[n("div",{staticClass:"irm-group"},[n("div",{staticClass:"irm-global-description"},[n("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),n("p",[e._v(e._s(t.description))])]),n("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[n("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(i){return n("div",{key:e.getFieldId(i,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(i.sectionTitle)?n("div",{staticClass:"irm-section-description"},[n("h5",[e._v(e._s(i.sectionTitle))]),n("p",[e._v(e._s(i.sectionDescription))])]):e._e(),n("q-field",{attrs:{label:null!==i.label?i.label:i.id,helper:i.description}},[n(e.capitalizeFirstLetter(i.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(i,t.messageId),initialValue:i.initialValue,values:i.values,range:i.range,numericPrecision:i.numericPrecision,regexp:i.regexp},on:{change:function(n){e.updateForm(e.getFieldId(i,t.messageId),n)}}})],1)],1)}))]),n("div",{staticClass:"irm-buttons"},[n("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(n){e.cancelRequest(t)}}}),n("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(n){e.send(t.messageId,!0)}}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(n){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},ss=[];rs._withStripped=!0;var as=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"text",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},cs=[];as._withStripped=!0;var ls={name:"TextField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{value:""}},computed:{hasError:function(){return this.value,!1}},methods:{emitInput:function(e){this.$emit("change",e)}}},us=ls,ds=(n("9d14"),Object(y["a"])(us,as,cs,!1,null,null,null));ds.options.__file="TextField.vue";var hs=ds.exports,ps=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"number",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},fs=[];ps._withStripped=!0;var ms={name:"NumberField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0},numericPrecision:{type:Number,default:5},range:{type:String}},data:function(){return{value:""}},computed:{hasError:function(){return this.range,!1}},methods:{emitInput:function(e){var t=this;this.fitValue(),this.$nextTick(function(){t.$emit("change",e)})},fitValue:function(){0!==this.numericPrecision&&(this.value=this.value.toFixed(this.numericPrecision))}}},gs=ms,vs=(n("d6e2"),Object(y["a"])(gs,ps,fs,!1,null,null,null));vs.options.__file="NumberField.vue";var bs=vs.exports,ys=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-checkbox",{attrs:{color:"mc-main",name:e.name},on:{input:e.emitInput},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})},_s=[];ys._withStripped=!0;var Ms={name:"BooleanField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{checked:"true"===this.initialValue}},methods:{emitInput:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})}}},ws=Ms,Cs=(n("bb33"),Object(y["a"])(ws,ys,_s,!1,null,null,null));Cs.options.__file="BooleanField.vue";var Ss=Cs.exports,As={name:"InputRequestModal",components:{TextInputRequest:hs,NumberInputRequest:bs,BooleanInputRequest:Ss},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:s()({},Object(a["c"])("data",["session"]),Object(a["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:s()({},Object(a["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof i){var o=i.fields.reduce(function(e,o){if(n)e[t.getFieldId(o)]=o.initialValue;else{var r=t.formData[t.getFieldId(o,i.messageId)];e[t.getFieldId(o)]="undefined"===typeof r||null===r||""===r?o.initialValue:r.toString()}return e},{});this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:i.messageId,requestId:i.requestId,values:o},this.session).body),this.removeInputRequest(i.messageId)}},cancelRequest:function(e){this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:e.messageId,requestId:e.requestId,cancelRun:!0,values:{}},this.session).body),this.removeInputRequest(e.messageId)},updateForm:function(e,t){null===t?this.$delete(this.formData,e):this.$set(this.formData,e,t)},capitalizeFirstLetter:function(e){return Object(Xe["a"])(e)},getFieldId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===t?"".concat(e.functionId,"/").concat(e.id):"".concat(t,"-").concat(e.functionId,"/").concat(e.id)},checkSectionTitle:function(e){return this.$options.sectionTitle!==e&&(this.$options.sectionTitle=e,!0)},cleanInputRequest:function(){this.formData={},this.removeInputRequest(null)}}),watch:{inputRequests:function(){this.inputRequests.length>0&&(this.selectedRequest="request-".concat(this.inputRequests[0].messageId))}}},Es=As,Os=(n("2b54"),Object(y["a"])(Es,rs,ss,!1,null,null,null));Os.options.__file="InputRequestModal.vue";var Ls=Os.exports,Ts=function(){var e=this,t=e.$createElement,n=e._self._c||t;return null!==e.scaleReference?n("q-dialog",{attrs:{title:e.$t("label.titleChangeScale",{type:e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?e.$t("label.labelSpatial"):e.$t("label.labelTemporal")}),color:"info",cancel:!0,ok:!1},on:{show:e.initValues},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[n("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[n("q-input",{attrs:{type:"number",min:"0",color:"info",autofocus:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"stack-label":e.resolutionError?e.$t("messages.changeScaleResolutionError"):e.$t("label.resolutionLabel")},model:{value:e.resolution,callback:function(t){e.resolution=t},expression:"resolution"}})]:e._e(),n("q-select",{attrs:{"float-label":e.$t("label.unitLabel"),color:"info",options:e.typedUnits(e.scaleEditingType)},on:{input:function(t){e.scaleEditingType===e.SCALE_TYPE.ST_TIME&&e.setStartDate()}},model:{value:e.unit,callback:function(t){e.unit=t},expression:"unit"}}),e.scaleEditingType===e.SCALE_TYPE.ST_TIME?[n("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitDecade"),type:"number",min:"0",max:"90",step:10,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.decade,callback:function(t){e.$set(e.unitInputs,"decade",t)},expression:"unitInputs.decade"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE?n("q-input",{class:["col",e.unit===e.SCALE_VALUES.CENTURY?"col-8":"col-4"],attrs:{"float-label":e.$t("label.unitCentury"),type:"number",min:"1",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.century,callback:function(t){e.$set(e.unitInputs,"century",t)},expression:"unitInputs.century"}}):e._e(),e.unit===e.SCALE_VALUES.MONTH?n("q-select",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitMonth"),type:"number",min:"0",color:"mc-main",options:e.monthOptions,autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.month,callback:function(t){e.$set(e.unitInputs,"month",t)},expression:"unitInputs.month"}}):e._e(),e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitWeek"),type:"number",min:"1",max:"53",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate(t)}},model:{value:e.unitInputs.week,callback:function(t){e.$set(e.unitInputs,"week",t)},expression:"unitInputs.week"}}):e._e(),e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{class:{col:e.unit===e.SCALE_VALUES.YEAR,"col-8":e.unit===e.SCALE_VALUES.YEAR,"col-4":e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK},attrs:{"float-label":e.$t("label.unitYear"),type:"number",min:"0",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.year,callback:function(t){e.$set(e.unitInputs,"year",t)},expression:"unitInputs.year"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",class:{"scd-inactive-multiplier":e.timeEndModified},attrs:{"float-label":e.$t("label.timeResolutionMultiplier"),type:"number",min:"1",step:1,color:"mc-main"},model:{value:e.timeResolutionMultiplier,callback:function(t){e.timeResolutionMultiplier=t},expression:"timeResolutionMultiplier"}},[e.timeEndModified?n("q-tooltip",{attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("messages.timeEndModified")))]):e._e()],1):e._e()],1),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeStart"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"","default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{focus:function(t){e.manualInputChange=!0},blur:function(t){e.manualInputChange=!1},input:function(t){e.manualInputChange&&e.initUnitInputs()&&e.calculateEnd()}},model:{value:e.timeStart,callback:function(t){e.timeStart=t},expression:"timeStart"}}),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeEnd"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{input:e.checkEnd},model:{value:e.timeEnd,callback:function(t){e.timeEnd=t},expression:"timeEnd"}})]:e._e()],2)]):e._e()},xs=[];Ts._withStripped=!0;var Rs=n("7f45"),ks=n.n(Rs),zs={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["C"],resolutionError:!1,SCALE_TYPE:c["B"],SCALE_VALUES:c["D"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","nextScale","hasContext"]),Object(a["c"])("view",["scaleEditingType"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleEditingType})}},typedUnits:function(){var e=this;return function(t){return e.units.filter(function(e){return e.type===t&&e.selectable}).map(function(t){return s()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:s()({},Object(a["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["B"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["B"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["B"].ST_SPACE&&(null===this.nextScale&&this.resolution===this.scaleReference.spaceResolutionConverted&&this.unit===this.scaleReference.spaceUnit||null!==this.nextScale&&this.resolution===this.nextScale.spaceResolutionConverted&&this.unit===this.nextScale.spaceUnit)||this.scaleEditingType===c["B"].ST_TIME&&(null===this.nextScale&&this.timeResolutionMultiplier===this.scaleReference.timeResolutionMultiplier&&this.unit===this.scaleReference.timeUnit&&this.timeStart===this.scaleReference.start&&this.timeEnd===this.scaleReference.end||null!==this.nextScale&&this.timeResolutionMultiplier===this.nextScale.timeResolutionMultiplier&&this.unit===this.nextScale.timeUnit&&this.timeStart===this.nextScale.start&&this.timeEnd===this.nextScale.end))return;var t=new Date(this.timeStart.getTime()),n=new Date(this.timeEnd.getTime());[c["D"].MILLENNIUM,c["D"].CENTURY,c["D"].DECADE,c["D"].YEAR,c["D"].MONTH,c["D"].WEEK,c["D"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),n.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference},this.scaleEditingType===c["B"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["B"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:n.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(s()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["B"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["B"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:n.getTime()},{next:this.hasContext})),this.$q.notify({message:this.$t(this.hasContext?"messages.updateNextScale":"messages.updateScale",{type:this.scaleEditingType.charAt(0).toUpperCase()+this.scaleEditingType.slice(1)}),type:"info",icon:"mdi-information",timeout:2e3})}else this.resolutionError=!0},setStartDate:function(e){var t=new Date;switch(this.unit){case c["D"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["D"].DECADE:this.unitInputs.decade=this.unitInputs.decade-this.unitInputs.decade%10,t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1)+this.unitInputs.decade);break;case c["D"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["D"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["D"].WEEK:if(e>53)return void(this.unitInputs.week=ks()(this.timeStart).week());t.setUTCMonth(0),t.setUTCDate(1+7*(this.unitInputs.week-1)),t.setUTCFullYear(this.unitInputs.year);break;default:return}this.timeStart=t,this.initUnitInputs(),this.calculateEnd()},calculateEnd:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=c["C"].find(function(t){return t.value===e.unit});this.timeEnd=ks()(this.timeStart).add(this.timeResolutionMultiplier*n.momentMultiplier-(1!==n.momentMultiplier?1:0),n.momentShorthand).toDate(),this.$nextTick(function(){e.timeEndModified=t})},checkEnd:function(){this.timeEnd<=this.timeStart?this.$q.notify({message:this.$t("messages.timeEndBeforeTimeStart"),type:"info",icon:"mdi-information",timeout:2e3}):this.calculateEnd(!0)},getFormat:function(){switch(this.unit){case c["D"].MILLENNIUM:case c["D"].CENTURY:case c["D"].DECADE:case c["D"].YEAR:case c["D"].MONTH:case c["D"].WEEK:case c["D"].DAY:return"DD/MM/YYYY";case c["D"].HOUR:return"DD/MM/YYYY HH:mm";case c["D"].MINUTE:case c["D"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["D"].MILLISECOND:return"DD/MM/YYYY HH:mm:ss:SSS";default:return"DD/MM/YYYY HH:mm:ss"}},formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dddd, MMMM Do YYYY, h:mm:ss a";return e&&null!==e?ks()(e).format(t):""},initValues:function(){var e=null!==this.nextScale?this.nextScale:null!==this.scaleReference?this.scaleReference:null;null!==e&&(this.resolution=e.spaceResolutionConverted,this.unit=this.scaleEditingType===c["B"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["D"].YEAR,this.timeResolutionMultiplier=0!==e.timeResolutionMultiplier?e.timeResolutionMultiplier:1,this.timeStart=0!==e.start?new Date(e.start):new Date,this.calculateEnd()),this.initUnitInputs()},initUnitInputs:function(){var e=this.timeStart?ks()(this.timeStart):ks()();this.unitInputs.century=Math.floor(e.year()/100)+1,this.unitInputs.decade=10*Math.floor(e.year()/10)-100*Math.floor(e.year()/100),this.unitInputs.year=e.year(),this.unitInputs.month=e.month(),this.unitInputs.week=e.week()}}),watch:{timeResolutionMultiplier:function(e,t){e<1?this.timeResolutionMultiplier=t:this.calculateEnd()}},created:function(){for(var e=0;e<12;e++)this.monthOptions.push({label:this.$t("label.months.m".concat(e)),value:e})}},Ps=zs,Ns=(n("c998"),Object(y["a"])(Ps,Ts,xs,!1,null,null,null));Ns.options.__file="ScaleChangeDialog.vue";var Is=Ns.exports,Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[n("div",{attrs:{id:"spinner-leftmenu-container"}},[n("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[n("klab-spinner",{attrs:{id:"spinner-leftmenu","store-controlled":!0,size:40,ball:22,wrapperId:"spinner-leftmenu-div"},nativeOn:{touchstart:function(t){e.handleTouch(t,e.askForSuggestion)}}})],1)]),e.hasContext?[n("div",{staticClass:"lm-separator"}),n("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),n("div",{staticClass:"lm-separator"})]:e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:"top left",anchor:"bottom left"}},[e._v(e._s(e.logShowed?e.$t("tooltips.hideLogPane"):e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"lm-separator"}),n("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[n("div",{staticClass:"lm-separator"}),n("scale-buttons",{attrs:{docked:!0}}),n("div",{staticClass:"lm-separator"}),n("div",{staticClass:"lm-bottom-buttons"},[n("stop-actions-buttons")],1)],1)],2),e.maximized?n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[n("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Bs=[];Ds._withStripped=!0;var qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[n("klab-breadcrumbs"),n("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?n("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[n("klab-tree-pane")],1):e._e(),e.contextHasTime?n("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},js=[];qs._withStripped=!0;var Ws=G["b"].width,Fs={name:"KlabDockedMainControl",components:{KlabSearchBar:It,KlabBreadcrumbs:Ft,ObservationsTimeline:Hn,KlabTreePane:Tn},directives:{Draggable:U},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(Ce["a"])(function(t,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:s()({},Object(a["c"])("data",["contextHasTime"]),Object(a["c"])("view",["largeMode","isTreeVisible"]),Object(a["c"])("stomp",["taskOfContextIsAlive"])),methods:s()({},Object(a["b"])("view",["searchIsFocused","setMainViewer"]),{onDebouncedPositionChanged:function(e){this.dragging&&(e&&e.left>this.undockLimit?this.askForUndocking=!0:this.askForUndocking=!1,this.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,this.askForUndocking))},checkUndock:function(){var e=this;this.$nextTick(function(){e.askForUndocking&&(e.askForUndocking=!1,e.setMainViewer(c["M"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Ws(document.getElementById("dmc-container"))/3}},Hs=Fs,Xs=(n("c7c3"),Object(y["a"])(Hs,qs,js,!1,null,null,null));Xs.options.__file="KlabDockedMainControl.vue";var Us=Xs.exports,Vs={name:"KlabLeftMenu",components:{KlabSpinner:M,MainActionsButtons:Te,StopActionsButtons:Ie,DockedMainControl:Us,DocumentationTree:er,KlabLogPane:Yn,ScaleButtons:ni,KnowledgeViewsSelector:ci},mixins:[rt],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["u"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["u"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:s()({},Object(a["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["u"].LOG_COMPONENT),this.setLeftMenuState(c["u"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["u"]}},Gs=Vs,Ks=(n("6283"),Object(y["a"])(Gs,Ds,Bs,!1,null,null,null));Ks.options.__file="KlabLeftMenu.vue";var $s=Ks.exports,Ys=(n("5bc0"),{name:"KExplorer",components:{KlabMainControl:mi,DataViewer:jo,KlabDocumentation:ur,DataflowViewer:os,InputRequestModal:Ls,ScaleChangeDialog:Is,ObservationTime:Bn,KlabLeftMenu:$s},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["u"]}},computed:s()({},Object(a["c"])("data",["session","hasActiveTerminal"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["searchIsActive","searchIsFocused","searchInApp","mainViewerName","mainViewer","isTreeVisible","isInModalMode","spinnerErrorMessage","isMainControlDocked","admitSearch","isHelpShown","mainViewer","leftMenuState","largeMode","hasHeader","layout"]),{waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}},logVisible:function(){return this.$logVisibility===c["P"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["u"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["u"].LEFTMENU_MAXIMIZED?c["u"].LEFTMENU_MAXSIZE:this.leftMenuState===c["u"].LEFTMENU_MINIMIZED?c["u"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["u"].LEFTMENU_MINSIZE:0)}}),methods:s()({},Object(a["b"])("view",["searchStart","searchStop","searchFocus","setMainViewer","setLeftMenuState"]),{setChildrenToAskFor:function(){var e=Math.floor(window.innerHeight*parseInt(getComputedStyle(document.documentElement).getPropertyValue("--main-control-max-height"),10)/100),t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--q-tree-no-child-min-height"),10),n=Math.floor(e/t);console.info("Set max children to ".concat(n)),this.$store.state.data.childrenToAskFor=n},askForUndockListener:function(e){this.askForUndocking=e},keydownListener:function(e){if(!(this.connectionDown||this.isInModalMode||!this.admitSearch||this.isHelpShown||this.searchInApp||this.hasActiveTerminal))return 27===e.keyCode&&this.searchIsActive?(this.searchStop(),void e.preventDefault()):void((38===e.keyCode||40===e.keyCode||32===e.keyCode||this.isAcceptedKey(e.key))&&(this.searchIsActive?this.searchIsFocused||(this.searchFocus({char:e.key,focused:!0}),e.preventDefault()):(this.searchStart(e.key),e.preventDefault())))},showDocumentation:function(){this.setMainViewer(c["M"].DOCUMENTATION_VIEWER)}}),watch:{spinnerErrorMessage:function(e,t){null!==e&&e!==t&&(console.error(this.spinnerErrorMessage),this.$q.notify({message:this.spinnerErrorMessage,type:"negative",icon:"mdi-alert-circle",timeout:1e3}))},leftMenuVisible:function(){var e=this;this.$nextTick(function(){e.$eventBus.$emit(c["h"].NEED_FIT_MAP,{})})}},created:function(){"undefined"===typeof this.mainViewer&&this.setMainViewer(c["M"].DATA_VIEWER)},mounted:function(){window.addEventListener("keydown",this.keydownListener),this.setChildrenToAskFor(),this.$eventBus.$on(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$on(c["h"].SHOW_DOCUMENTATION,this.showDocumentation),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].LOCK_TIME,value:!1},this.session).body)},beforeDestroy:function(){window.removeEventListener("keydown",this.keydownListener),this.$eventBus.$off(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$off(c["h"].SHOW_DOCUMENTATION,this.showDocumentation)}}),Js=Ys,Qs=(n("f913"),Object(y["a"])(Js,ye,_e,!1,null,null,null));Qs.options.__file="KExplorer.vue";var Zs=Qs.exports,ea=n("0388"),ta=n("7d43"),na=n("9541"),ia=n("768b"),oa=n("fb40"),ra=n("bd60"),sa="q:collapsible:close",aa={name:"QCollapsible",mixins:[oa["a"],ra["a"],{props:ra["b"]}],modelToggle:{history:!1},props:{disable:Boolean,popup:Boolean,indent:Boolean,group:String,iconToggle:Boolean,collapseIcon:String,opened:Boolean,duration:Number,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},computed:{classes:function(){return{"q-collapsible-opened":this.showing,"q-collapsible-closed":!this.showing,"q-collapsible-popup-opened":this.popup&&this.showing,"q-collapsible-popup-closed":this.popup&&!this.showing,"q-collapsible-cursor-pointer":!this.separateToggle,"q-item-dark":this.dark,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,disabled:this.disable}},separateToggle:function(){return this.iconToggle||void 0!==this.to}},watch:{showing:function(e){e&&this.group&&this.$root.$emit(sa,this)}},methods:{__toggleItem:function(){this.separateToggle||this.toggle()},__toggleIcon:function(e){this.separateToggle&&(e&&Object(Gr["g"])(e),this.toggle())},__eventHandler:function(e){this.group&&this!==e&&e.group===this.group&&this.hide()},__getToggleSide:function(e,t){return[e(na["a"],{slot:t?"right":void 0,staticClass:"cursor-pointer transition-generic relative-position q-collapsible-toggle-icon",class:{"rotate-180":this.showing,invisible:this.disable},nativeOn:{click:this.__toggleIcon},props:{icon:this.collapseIcon||this.$q.icon.collapsible.icon}})]},__getItemProps:function(e){return{props:e?{cfg:this.$props}:this.$props,style:this.headerStyle,class:this.headerClass,nativeOn:{click:this.__toggleItem}}}},created:function(){this.$root.$on(sa,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(sa,this.__eventHandler)},render:function(e){return e(this.tag,{staticClass:"q-collapsible q-item-division relative-position",class:this.classes},[e("div",{staticClass:"q-collapsible-inner"},[this.$slots.header?e(Ye["a"],this.__getItemProps(),[this.$slots.header,e(ta["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(ia["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:this.showing}]},[e("div",{staticClass:"q-collapsible-sub-item relative-position",class:{indent:this.indent}},this.$slots.default)])])])])}},ca=n("dd1f"),la=n("5d8b"),ua=n("5931"),da=n("482e"),ha={LAYOUT:function(e){return He["a"].component("KAppLayout",{render:function(t){return t(La,{props:{layout:e}})}})},ALERT:function(e){return He["a"].component("KAppAlert",{render:function(t){return t(ea["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return He["a"].component("KAppMain",{render:function(t){return t("div",s()({class:["kcv-main-container","kcv-dir-".concat(e.direction),"kcv-style-".concat(this.$store.getters["view/appStyle"])],attrs:{id:"".concat(e.applicationId,"-").concat(e.id),ref:"main-container"},style:s()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return He["a"].component("KAppPanel",{render:function(t){return t("div",s()({class:["kcv-panel-container","kcv-dir-".concat(e.direction)],attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.name&&{ref:e.name}),this.$slots.default)}})},GROUP:function(e){return He["a"].component("KAppGroup",{data:function(){return{}},render:function(t){return t("div",{staticClass:"kcv-group",class:{"text-app-alt-color":e.attributes.altfg,"bg-app-alt-background":e.attributes.altbg,"kcv-wrapper":1===e.components.length,"kcv-group-bottom":e.attributes.bottom},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:e.attributes.hfill?{width:"100%"}:{}},e.attributes.shelf||e.attributes.parentId?[t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)]:[t("div",{staticClass:"kcv-group-container",class:{"kcv-group-no-label":!e.name}},[e.name?t("div",{class:"kcv-group-legend"},e.name):null,t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)])])}})},SHELF:function(e){return e.attributes.opened?"true"===e.attributes.opened&&(e.attributes.opened=!0):e.attributes.opened=!1,He["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var n=this;return t(aa,{class:"kcv-collapsible",props:s()({opened:n.opened,headerClass:"kcv-collapsible-header",collapseIcon:"mdi-dots-vertical",separator:!1},!e.attributes.parentAttributes.multiple&&{group:e.attributes.parentId},{label:e.name},e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)}),on:{hide:function(){e.attributes.opened=!1},show:function(){e.attributes.opened=!0}}},this.$slots.default)}})},SEPARATOR:function(e){return He["a"].component("KAppSeparator",{render:function(t){var n=this;return e.attributes.empty?t("hr",{class:"kcv-hr-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)}}):t("div",{class:"kcv-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},[e.attributes.iconname?t(Qe["a"],{class:"kcv-separator-icon",props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.title?t("div",{class:"kcv-separator-title"},e.title):null,e.attributes.iconbutton?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-".concat(e.attributes.iconbutton),color:"app-main-color"},nativeOn:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})}}}):null,e.attributes.info?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-information-outline",color:"app-main-color"},nativeOn:{mouseover:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var n=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var i=function i(o){var r=n.values[o],s=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(o));if(!s){s={id:"".concat(e.id,"-").concat(r.id,"-").concat(o),label:r.label,type:r.type,observable:r.id,children:[]};var a=n.links.find(function(e){return e.first===o}).second;if(a===n.rootId)t.push(s);else{var c=i(a);c.children.push(s)}}return s};n.links.forEach(function(e){i(e.first)})}return He["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(n){var i=this;return n("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?n("div",{class:"kcv-tree-legend"},e.name):null,n(Zt["a"],{class:"kcv-tree",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{nodes:t,nodeKey:"id",tickStrategy:e.attributes.check?"leaf":"none",ticked:i.ticked,selected:i.selected,expanded:i.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){i.ticked=t,e.tree.status.ticked=t,i.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),listValue:t})},"update:selected":function(t){i.selected=t,e.tree.status.selected=t},"update:expanded":function(t){i.expanded=t,e.tree.status.expanded=t}}})])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),He["a"].component("KAppText",{data:function(){return{editable:!1,doneFunc:null,result:null,value:null,searchRequestId:0,searchContextId:null,searchTimeout:null,selected:null}},computed:{searchResult:function(){return this.$store.getters["data/searchResult"]},isSearch:function(){return"search"===e.attributes.tag&&this.editable}},methods:{search:function(e,t){var n=this;this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["E"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.$q.notify({message:n.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),n.doneFunc&&n.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:this.selected.matchIndex,matchId:this.selected.id,added:!0},this.$store.state.data.session).body)},init:function(){this.doneFunc=null,this.result=null,this.value=null,this.searchRequestId=0,this.searchContextId=null,this.searchTimeout=null,this.selected=null}},watch:{searchResult:function(e){var t=this;if(this.isSearch){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return;if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,a=r.error,l=r.errorMessage;if(a)this.$q.notify({message:l,type:"error",icon:"mdi-alert",timeout:2e3});else{var u=[];s.forEach(function(e){var t=c["v"][e.matchType];if("undefined"!==typeof t){var n=t;if(null!==e.mainSemanticType){var i=c["F"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}u.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:n.symbol,leftInverted:!0,leftColor:n.color,rgb:n.rgb,id:e.id,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1})}else console.warn("Unknown type: ".concat(e.matchType))}),0===u.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),He["a"].nextTick(function(){t.doneFunc(u)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}}},render:function(t){var n=this,i=this;return this.isSearch?t(la["a"],{class:["kcv-text-input","kcv-form-element","kcv-search"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:i.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:i.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(n.editable=!1,n.doneFunc&&(n.doneFunc(),n.doneFunc=null),n.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),i.init()),13===e.keyCode&&n.selected&&(n.$store.dispatch("view/searchInApp",!1),n.editable=!1,i.sendSelected(),i.init())},input:function(e){i.value=e},blur:function(){n.$store.dispatch("view/searchInApp",!1),n.editable=!1},focus:function(){n.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){i.search(e,t)},selected:function(e,t){i.autocompleteSelected(e,t)}}},"Cacca")]):t("div",s()({staticClass:"kcv-label",class:{"kcv-title":e.attributes.tag&&("title"===e.attributes.tag||"search"===e.attributes.tag),"kcv-clickable":"true"!==e.attributes.disabled&&"search"===e.attributes.tag,"kcv-ellipsis":e.attributes.ellipsis,"kcv-with-icon":e.attributes.iconname},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){n.editable=!0,n.$store.dispatch("view/searchInApp",!0)}}}),[e.attributes.iconname?t(Qe["a"],{class:["kcv-label-icon",e.attributes.toggle?"kcv-label-toggle":""],props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.content,e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return He["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:"number"}},render:function(t){var n=this;return t(la["a"],{class:["kcv-text-input","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){n.value=t,e.content=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return He["a"].component("KAppCombo",{data:function(){return{component:e,value:e.attributes.selected?e.choices.find(function(t){return t.first===e.attributes.selected}).first:e.choices[0].first}},render:function(t){var n=this;return t(ua["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,options:e.choices.map(function(e){return{label:e.first,value:e.second,className:"kcv-combo-option"}}),color:"app-text-color",popupCover:!1,dense:!0,disable:"true"===e.attributes.disabled,dark:"dark"===this.$store.getters["view/appStyle"]},on:{change:function(t){n.value=t,e.attributes.selected=n.value,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return He["a"].component("KAppPushButton",{data:function(){return{state:null}},watch:{state:function(){var t=this;e.attributes.timeout&&setTimeout(function(){delete e.attributes.error,delete e.attributes.waiting,delete e.attributes.done,t.state=null},e.attributes.timeout)}},render:function(t){var n=this,i=e.attributes.iconname&&!e.name;this.state=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null;var o=e.attributes.waiting?"app-background-color":e.attributes.computing?"app-alt-color":e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-background-color";return t("div",{},[t(da["a"],{class:[i?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:s()({},Object(c["k"])(e),e.attributes.timeout&&{"--button-icon-color":"app-background-color","--flash-color":e.attributes.error?"var(--app-negative-color)":e.attributes.done?"var(--app-positive-color)":"var(--app-main-color)",animation:"flash-button ".concat(e.attributes.timeout,"ms")}||{"--button-icon-color":"var(--".concat(o,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:s()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},i&&{round:!0,dense:!0,flat:!0},{noCaps:!0,disable:"true"===e.attributes.disabled},"error"===this.state&&{icon:"mdi-alert-circle"}||"done"===this.state&&{icon:"mdi-check-circle"}||e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)},"waiting"===this.state&&{loading:!0}),on:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]})})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0],delay:600}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},CHECK_BUTTON:function(e){return He["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var n=this,i=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,o=e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-main-color";return t("div",{class:["kcv-checkbutton","kcv-form-element","text-".concat(o),"kcv-check-".concat(i),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(nn["a"],{props:s()({value:n.value,color:o,keepColor:!0,label:e.name,disable:"true"===e.attributes.disabled},e.attributes.waiting&&{"checked-icon":"mdi-loading","unchecked-icon":"mdi-loading",readonly:!0},e.attributes.computing&&{"checked-icon":"mdi-cog-outline","unchecked-icon":"mdi-cog-outline",readonly:!0}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,e.attributes.checked=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.error&&"true"!==e.attributes.error?t(Ze["a"],{class:"kcv-error-tooltip",props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},e.attributes.error):null])}})},RADIO_BUTTON:function(e){return He["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var n=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ca["a"],{props:{val:!1,value:!1,color:"app-main-color",label:e.name},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return He["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var n=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":n.collapsed},attrs:{"data-simplebar":"data-simplebar"},style:Object(c["k"])(e)},[t("div",{staticClass:"kcv-internal-text",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},domProps:{innerHTML:e.content}}),e.attributes.collapse?t("div",{staticClass:"kcv-collapse-button",on:{click:function(){n.collapsed=!n.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:n.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return He["a"].component("KBrowswer",{mounted:function(){},render:function(t){var n=e.content.startsWith("http")?e.content:"".concat("").concat("/modeler").concat(e.content);return t("iframe",{class:"kcv-browser",attrs:{id:"".concat(e.applicationId,"-").concat(e.id),width:e.attributes.width||"100%",height:e.attributes.height||"100%",frameBorder:"0",src:n},style:s()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return He["a"].component("KAppUnknown",{render:function(t){return t("div",{class:"kcv-unknown",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.type)}})}};function pa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(ha.LAYOUT);var i,o=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(o=ha.SHELF(e)),e.type){case null:var r=n.mainPanelStyle,a=void 0===r?{}:r,l=n.direction,u=void 0===l?"vertical":l;i=ha.MAIN(s()({},e,{mainPanelStyle:a,direction:u}));break;case c["a"].PANEL:i=ha.PANEL(e);break;case c["a"].SEPARATOR:i=ha.SEPARATOR(e);break;case c["a"].LABEL:i=ha.LABEL(e);break;case c["a"].TEXT_INPUT:i=ha.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:i=ha.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:i=ha.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:i=ha.RADIO_BUTTON(e);break;case c["a"].TREE:i=ha.TREE(e);break;case c["a"].GROUP:i=ha.GROUP(e),e.components&&e.components.length>0&&e.components.forEach(function(t){t.attributes.parentId=e.id,t.attributes.parentAttributes=e.attributes});break;case c["a"].TEXT:i=ha.TEXT(e);break;case c["a"].COMBO:i=ha.COMBO(e);break;case c["a"].BROWSER:i=ha.BROWSER(e);break;default:i=ha.UNKNOWN(e)}var d=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){d.push(pa(e,t))}),o?t(o,{},[t(i,{},d)]):t(i,{},d)}var fa,ma,ga=G["b"].height,va={name:"KlabAppViewer",props:{component:{type:Object,required:!0},props:{type:Object,default:null},direction:{type:String,validator:function(e){return["horizontal","vertical"].includes(e)},default:"vertical"},mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{mainContainerHeight:void 0}},computed:{},methods:{calculateMinHeight:function(){this.$nextTick(function(){for(var e=document.querySelectorAll(".kcv-group-bottom"),t=0,n=0;n0},set:function(){}},showRightPanel:{get:function(){return this.layout&&this.layout.rightPanels.length>0},set:function(){}},leftPanelWidth:function(){return this.layout&&this.layout.leftPanels&&this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):512},rightPanelWidth:function(){return this.layout&&this.layout.rightPanels&&this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):512},mainPanelStyle:function(){return{width:this.header.width-this.leftPanel.width-this.rightPanel.width,height:this.leftPanel.height}},idSuffix:function(){return null!==this.layout?this.layout.applicationId:"default"},modalDimensions:function(){return this.isModal?{width:this.modalWidth,height:this.modalHeight,"min-height":this.modalHeight}:{}}}),methods:{setLogoImage:function(){this.layout&&this.layout.logo?this.logoImage="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(this.layout.projectId,"/").concat(this.layout.logo.replace("/",":")):this.logoImage=c["b"].DEFAULT_LOGO},setStyle:function(){var e=this,t=null;if(null===this.layout)t=c["j"].default;else{if(t=s()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var n=JSON.parse(this.layout.styleSpecs);t=s()({},t,n)}catch(e){console.error("Error parsing style specs",e)}var i=(this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):0)+(this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):0);0!==i&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(i,"px)"))}null!==t&&Object.keys(t).forEach(function(n){var i=t[n];if("density"===n)switch(n="line-height",t.density){case"default":i=1;break;case"confortable":i=1.5;break;case"compact":i=.5;break;default:i=1}if(document.documentElement.style.setProperty("--app-".concat(n),i),n.includes("color"))try{var o=Object(Xe["e"])(i);if(o&&o.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(n),"".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),20*r)),document.documentElement.style.setProperty("--app-lighten90-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),90*r)),document.documentElement.style.setProperty("--app-lighten75-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),75*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(n,": ").concat(i))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new be(e);var t=document.querySelector(".kapp-right-inner-container");t&&new be(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var n=document.querySelector(".kapp-main.kapp-header-container");this.header.height=n?Ca(n):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=i?wa(i):0,this.rightPanel.height=window.innerHeight-this.header.height;var o=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=o?wa(o):0,this.$nextTick(function(){e.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout",align:e.layout&&e.layout.leftPanels.length>0?"right":"left"})}),this.setStyle(),t&&this.$eventBus.$emit(c["h"].SHOW_NOTIFICATIONS,{apps:null!==this.layout?[this.layout.name]:[],groups:this.sessionReference&&this.sessionReference.owner&&this.sessionReference.owner.groups?this.sessionReference.owner.groups.map(function(e){return e.id}):[]})},downloadListener:function(e){var t=e.url,n=e.parameters;this.$axios.get("".concat("").concat("/modeler").concat(t),{params:{format:"RAW"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.href=URL.createObjectURL(e.data),t.setAttribute("download",n.filename||"output_".concat((new Date).getTime())),document.body.appendChild(t),t.click(),t.remove(),setTimeout(function(){return URL.revokeObjectURL(t.href)},5e3)}).catch(function(e){console.error(e)})},clickOnMenu:function(e,t){if(t&&window.open(t),this.layout){var n=this.layout,i=n.applicationId,o=n.identity;this.sendStompMessage(l["a"].MENU_ACTION({identity:o,applicationId:i,menuId:e},this.$store.state.data.session).body)}},resetContextListener:function(){var e=this;null!==this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.blockApp=!0,this.resetTimeout=setTimeout(function(){e.blockApp=!1,e.resetTimeout=null},1e3)},viewActionListener:function(){null!==this.resetTimeout&&this.resetContextListener()},updateListeners:function(){null!==this.layout?this.isRootLayout&&(this.$eventBus.$on(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$on(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$on(c["h"].COMPONENT_ACTION,this.componentClickedListener)):(this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$off(c["h"].COMPONENT_ACTION,this.componentClickedListener))},componentClickedListener:function(e){delete e.component.attributes.parentAttributes,delete e.component.attributes.parentId,this.sendStompMessage(l["a"].VIEW_ACTION(s()({},Sa,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var n=this,i=null!==e&&(null===t||e.applicationId!==t.applicationId);if((null===e||!this.isApp&&i)&&(this.$nextTick(function(){n.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var o=localStorage.getItem(c["P"].LOCAL_STORAGE_APP_ID);o&&o===t.name&&localStorage.removeItem(c["P"].LOCAL_STORAGE_APP_ID)}null===t&&this.updateListeners()}},created:function(){},mounted:function(){this.updateLayout(!0),this.updateListeners(),this.$eventBus.$on(c["h"].DOWNLOAD_URL,this.downloadListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].DOWNLOAD_URL,this.downloadListener),this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener)}},Ea=Aa,Oa=(n("4b0d"),Object(y["a"])(Ea,re,se,!1,null,null,null));Oa.options.__file="KlabLayout.vue";var La=Oa.exports,Ta=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{attrs:{"content-classes":"km-main-container","no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[n("q-modal-layout",{staticClass:"km-modal-window"},[e.modal.label?n("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[n("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?n("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),n("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),n("div",{staticClass:"km-buttons justify-end row"},[n("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},xa=[];Ta._withStripped=!0;var Ra={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:La},data:function(){return{instance:void 0}},computed:{open:{get:function(){return null!==this.modal},set:function(e){e||this.close()}},width:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.width,"px")||!1)},height:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.height,"px")||!1)}},methods:s()({},Object(a["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},ka=Ra,za=(n("a4c5"),Object(y["a"])(ka,Ta,xa,!1,null,null,null));za.options.__file="KlabModalWindow.vue";var Pa=za.exports,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[n("div",{staticClass:"modal-backdrop absolute-full"}),n("div",{ref:"kp-help-container",staticClass:"klab-modal-container",style:{width:e.modalSize.width+"px",height:e.modalSize.height+"px",transform:"translate(-50%, -50%) scale("+e.scale+", "+e.scale+") !important"}},[n("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[n("div",{staticClass:"klab-modal-content full-height"},[n("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,i){return n("div",{key:"kp-pres-"+i,staticClass:"kp-link",class:{"kp-link-current":i===e.activeSectionIndex},attrs:{id:"kp-pres-"+i},on:{click:function(t){i!==e.activeSectionIndex&&e.loadPresentation(i)}}},[n("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():n("q-carousel",{ref:"kp-carousel",staticClass:"kp-carousel full-height",attrs:{color:"white","no-swipe":""},on:{"slide-trigger":e.initStack}},e._l(e.activePresentation,function(t,i){return n("q-carousel-slide",{key:"kp-slide-"+i,staticClass:"kp-slide full-height"},[n("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?n("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":i,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===i},on:{stackend:e.stackEnd}}):n("div",[e._v("No slides")]),t.title?n("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),n("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),n("div",{staticClass:"kp-navigation"},[n("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,i){return n("div",{key:"kp-nav-"+i,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(i,0)},mouseover:function(n){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[n("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===i}},[e._v(e._s(i+1))])])}))]),n("div",{staticClass:"kp-btn-container"},[n("q-checkbox",{staticClass:"kp-checkbox",attrs:{"keep-color":!0,color:"grey-8",label:e.$t("label.rememberDecision"),"left-label":!0},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}})],1),n("q-btn",{directives:[{name:"show",rawName:"v-show",value:1!==e.scale,expression:"scale !== 1"}],staticClass:"kp-icon-refresh-size",attrs:{icon:"mdi-refresh",color:"mc-main",size:"md",title:e.$t("label.refreshSize"),round:"",flat:""},on:{click:e.refreshSize}}),n("q-btn",{staticClass:"kp-icon-close-popover",attrs:{icon:"mdi-close-circle-outline",color:"grey-8",size:"md",title:e.$t("label.appClose"),round:"",flat:""},on:{click:e.hideHelp}})],1),e.waitForPresentation||e.presentationBlocked?n("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?n("div",{staticClass:" kp-no-presentation"},[n("div",{staticClass:"fixed-center text-center"},[n("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),n("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?n("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ia=[];Na._withStripped=!0;n("55dd"),n("28a5");var Da=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.layers.length>0?n("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,i){return n("div",{key:"ks-layer-"+i,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===i,"ks-hide-layer":e.selectedLayer!==i},style:{"z-index":e.selectedLayer===i?9999:e.layers.length-i},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+i}},[t.image?n("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[n("img",{style:{width:t.image.width||"auto",height:t.image.height||"auto","max-width":e.imgMaxSize.width,"max-height":e.imgMaxSize.height},attrs:{src:e.getImage(t),alt:t.image.alt||t.title||t.text,title:t.image.alt||t.title||t.text,id:"ks-image-"+e.ownerIndex+"-"+i}})]):e._e(),t.title||t.text?n("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?n("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?n("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),n("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[n("q-btn",{attrs:{id:"ks-prev",disable:!e.hasPrevious,"text-color":"grey-8",icon:"mdi-chevron-left",round:"",flat:"",dense:"",title:e.$t("label.appPrevious")},on:{click:e.previous}}),n("q-btn",{attrs:{id:"ks-play-stop",disable:!e.hasNext,"text-color":"grey-8",icon:null===e.animation?"mdi-play":"mdi-pause",round:"",flat:"",dense:"",title:null===e.animation?e.$t("label.appPlay"):e.$t("label.appPause")},on:{click:function(t){null===e.animation?e.playStack():e.stopStack()}}}),n("q-btn",{attrs:{id:"ks-replay",disable:!e.isGif,"text-color":"grey-8",icon:"mdi-reload",round:"",flat:"",dense:"",title:e.$t("label.appReplay")},on:{click:function(t){e.refreshLayer(e.layers[e.selectedLayer])}}}),n("q-btn",{attrs:{id:"ks-next",disable:!e.hasNext,"text-color":"grey-8",icon:"mdi-chevron-right",round:"",flat:"",dense:"",title:e.$t("label.appNext")},on:{click:e.next}})],1)],2):e._e()},Ba=[];Da._withStripped=!0;n("aef6");var qa={name:"KlabStack",props:{presentation:{type:Object,required:!0},ownerIndex:{type:Number,required:!0},maxOwnerIndex:{type:Number,required:!0},stack:{type:Object,required:!0},onTop:{type:Boolean,default:!1}},data:function(){return{selectedLayer:0,animation:null,layers:this.stack.layers,animated:"undefined"!==typeof this.stack.animated&&this.stack.animated,autostart:"undefined"!==typeof this.stack.autostart?this.stack.autostart:0===this.ownerIndex,duration:this.stack.duration||5e3,infinite:"undefined"!==typeof this.stack.infinite&&this.stack.infinite,initialSize:{},scale:1,imgMaxSize:{width:"auto",height:"auto"}}},computed:{hasPrevious:function(){return this.selectedLayer>0||this.ownerIndex>0||this.infinite},hasNext:function(){return this.selectedLayer0?this.goTo(this.selectedLayer-1):this.infinite?this.goTo(this.layers.length-1):this.$emit("stackend",{index:this.ownerIndex,direction:-1})},reloadGif:function(e){var t=document.getElementById("ks-image-".concat(this.ownerIndex,"-").concat(this.selectedLayer));t&&(t.src=this.getImage(e))},setAnimation:function(e){if(this.hasNext){var t=this;null!==this.animation&&(clearTimeout(this.animation),this.animation=null),this.animation=setTimeout(function(){t.next()},e)}},getImage:function(e){return e.image?"".concat(this.baseUrl,"/").concat(e.image.url,"?t=").concat(Math.random()):""},rewriteImageUrl:function(e){return e&&e.length>0&&-1!==e.indexOf("0?t0&&this.goTo(t-1,"last")},refreshSize:function(){this.initialSize=void 0,this.onResize()},onResize:function(){var e=this;setTimeout(function(){if("undefined"===typeof e.initialSize){var t=window.innerWidth,n=window.innerHeight;e.initialSize={width:t,height:n}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var i=window.innerWidth*c["r"].DEFAULT_WIDTH_PERCENTAGE/100,o=i/c["r"].DEFAULT_PROPORTIONS.width*c["r"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["r"].DEFAULT_HEIGHT_PERCENTAGE/100,s=r/c["r"].DEFAULT_PROPORTIONS.height*c["r"].DEFAULT_PROPORTIONS.width;i0){var r=0;o.forEach(function(n,i){r+=1,Xa()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(n.id),{param:"callback"},function(o,s){o?console.error(o.message):t.presentations.push({id:n.id,baseFolder:n.baseFolder,linkTitle:n.name,linkDescription:n.description,slides:s,index:i}),r-=1,0===r&&(e.presentationsLoading=!1,e.presentations.sort(function(e,t){return e.index-t.index}))})})}}})}catch(e){console.error("Error loading presentation: ".concat(e.message)),this.presentationsLoading=!1,this.presentationBlocked=e}}}),watch:{showHelp:function(e){this.$store.state.view.helpShown=e,e&&!this.presentationsLoading&&this.loadPresentation(0)},presentationsLoading:function(e){!e&&this.showHelp&&this.loadPresentation(0)},remember:function(e){e?V["a"].set(c["P"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):V["a"].remove(c["P"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=this.isLocal&&!V["a"].has(c["P"].COOKIE_HELP_ON_START),this.remember=!this.needHelp,this.$eventBus.$on(c["h"].NEED_HELP,this.helpNeededEvent),window.addEventListener("resize",this.onResize)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_HELP,this.helpNeededEvent),window.removeEventListener("resize",this.onResize)}},Va=Ua,Ga=(n("edad"),Object(y["a"])(Va,Na,Ia,!1,null,null,null));Ga.options.__file="KlabPresentation.vue";var Ka=Ga.exports,$a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-checkbox",{staticClass:"kn-checkbox",attrs:{"keep-color":!0,color:"app-main-color",label:e.$t("label.rememberDecision")},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}}),n("q-btn",{attrs:{color:"app-main-color",label:e.$t("label.appAccept")},on:{click:e.onOk}})]}}]),model:{value:e.showNotifications,callback:function(t){e.showNotifications=t},expression:"showNotifications"}},[n("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),n("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Ya=[];$a._withStripped=!0;var Ja={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:s()({},Object(a["c"])("stomp",["connectionUp"]),Object(a["c"])("view",["isInModalMode"]),{showNotifications:{get:function(){return-1!==this.actualNotificationIndex&&!this.actualNotificationIndex.read},set:function(){}},actualNotification:function(){return-1===this.actualNotificationIndex?{id:-1,title:"",content:""}:this.notifications[this.actualNotificationIndex]}}),methods:s()({},Object(a["b"])("view",["setModalMode"]),{onOk:function(){var e=this,t=this.notifications[this.actualNotificationIndex];t.read=!0,this.remember&&(this.cooked.findIndex(function(e){return e===t.id})&&this.cooked.push(t.id),V["a"].set(c["P"].COOKIE_NOTIFICATIONS,this.cooked,{expires:365,path:"/",secure:!0}),this.remember=!1),this.$nextTick(function(){do{e.actualNotificationIndex+=1}while(e.actualNotificationIndex0&&void 0!==arguments[0]?arguments[0]:{};this.notificationsLoading=!0,V["a"].has(c["P"].COOKIE_NOTIFICATIONS)&&(this.cooked=V["a"].get(c["P"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var n="";if(t){var i=t.groups,o=t.apps;n=q()(i.map(function(e){return"groups[]=".concat(e)})).concat(q()(o.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Xa()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==n?"?".concat(n):""),{param:"callback",timeout:5e3},function(t,n){t?console.error("Error loading notifications: ".concat(t.message)):n.length>0?n.forEach(function(e,t){var n=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(s()({},e,{read:n})),-1!==r.actualNotificationIndex||n||(r.actualNotificationIndex=t)}):console.debug("No notification"),e.presentationsLoading=!1})}catch(e){console.error("Error loading notifications: ".concat(e.message)),this.presentationsLoading=!1}}}),mounted:function(){this.$eventBus.$on(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)}},Qa=Ja,Za=(n("e0d9"),Object(y["a"])(Qa,$a,Ya,!1,null,null,null));Za.options.__file="KlabNotifications.vue";var ec=Za.exports,tc=(n("8195"),{name:"LayoutDefault",components:{KlabLayout:La,KlabModalWindow:Pa,ConnectionStatus:A,KlabSettings:P,KlabTerminal:Q,AppDialogs:oe,KlabPresentation:Ka,KlabNotifications:ec},data:function(){return{errorLoading:!1,waitApp:!1}},computed:s()({},Object(a["c"])("data",["hasContext","terminals","isDeveloper"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["layout","isApp","klabApp","modalWindow"]),{wait:{get:function(){return this.waitApp||this.errorLoading},set:function(){}}}),methods:{reload:function(){document.location.reload()}},created:function(){},mounted:function(){var e=this;this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["P"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["P"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:this.$store.state.view.klabApp},this.$store.state.data.session).body),this.isApp&&null===this.layout&&(this.waitApp=!0,setTimeout(function(){e.isApp&&null===e.layout&&(e.errorLoading=!0)},15e3)),window.addEventListener("beforeunload",function(t){e.hasContext&&!e.isDeveloper&&(t.preventDefault(),t.returnValue=e.$t("messages.confirmExitPage"))})},watch:{layout:function(e){this.waitApp&&e&&(this.waitApp=!1),this.errorLoading&&e&&(this.errorLoading=!1)}}}),nc=tc,ic=(n("7521"),Object(y["a"])(nc,i,o,!1,null,null,null));ic.options.__file="default.vue";t["default"]=ic.exports},"7bae":function(e,t,n){},"7bae3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("064a"),o=n("e1c6"),r=n("7f73"),s=n("755f"),a=n("6923"),c=n("e576"),l=new o.ContainerModule(function(e,t,n){i.configureModelElement({bind:e,isBound:n},"marker",r.SIssueMarker,s.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(a.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=l},"7bbc":function(e,t,n){"use strict";var i=n("fcf8"),o=n.n(i);o.a},"7d36":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=i},"7d72":function(e,t,n){"use strict";var i=n("8707").Buffer,o=i.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=r(e);if("string"!==typeof t&&(i.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function l(e,t,n){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0,d=u?l.length:n.length,f=h(i,t,s,c,d),m=p(e,n),g=f.concat(m);return g}function d(e,t,n,s,a){var l=a[e.toString()]||[],u=m(l),d=!0!==u.unmanaged,h=s[e],p=u.inject||u.multiInject;if(h=p||h,h instanceof i.LazyServiceIdentifer&&(h=h.unwrap()),d){var f=h===Object,g=h===Function,v=void 0===h,b=f||g||v;if(!t&&b){var y=o.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+n+".";throw new Error(y)}var _=new c.Target(r.TargetTypeEnum.ConstructorArgument,u.targetName,h);return _.metadata=l,_}return null}function h(e,t,n,i,o){for(var r=[],s=0;s0?l:f(e,n)}return 0}function m(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[s.INJECT_TAG],multiInject:t[s.MULTI_INJECT_TAG],targetName:t[s.NAME_TAG],unmanaged:t[s.UNMANAGED_TAG]}}t.getDependencies=l,t.getBaseClassDependencyCount=f},"7f45":function(e,t,n){var i=e.exports=n("0efb");i.tz.load(n("6cd2"))},"7f73":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("e4f0"),r=n("66f9");function s(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=s;var a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,o.hoverFeedbackFeature,o.popupFeature],n}(r.SShapeElement);t.SDecoration=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(a);t.SIssueMarker=c;var l=function(){function e(){}return e}();t.SIssue=l},"7faf":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=i},"80b5":function(e,t,n){"use strict";function i(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=i},8122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("33b2"),s=n("9e2e"),a=n("0fb6"),c=n("be02"),l=n("160b"),u=n("302f"),d=n("538c"),h=n("29fa"),p=n("65d1"),f=n("3b4c"),m=n("1417"),g=n("a190"),v=n("064a"),b=n("8794"),y=n("0d7a"),_=n("b093"),M=n("842c"),w=n("cd10"),C=n("ddee"),S=n("1590"),A=n("3f0a"),E=n("6176"),O=n("c661"),L=new i.ContainerModule(function(e,t,n){e(o.TYPES.ILogger).to(s.NullLogger).inSingletonScope(),e(o.TYPES.LogLevel).toConstantValue(s.LogLevel.warn),e(o.TYPES.SModelRegistry).to(u.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(o.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(o.TYPES.ViewRegistry).to(v.ViewRegistry).inSingletonScope(),e(o.TYPES.IModelFactory).to(u.SModelFactory).inSingletonScope(),e(o.TYPES.IActionDispatcher).to(a.ActionDispatcher).inSingletonScope(),e(o.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.IActionDispatcher))})}}),e(o.TYPES.IDiagramLocker).to(O.DefaultDiagramLocker).inSingletonScope(),e(o.TYPES.IActionHandlerInitializer).to(M.CommandActionHandlerInitializer),e(o.TYPES.ICommandStack).to(l.CommandStack).inSingletonScope(),e(o.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.ICommandStack))})}}),e(o.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(h.ModelViewer).toSelf().inSingletonScope(),e(h.HiddenModelViewer).toSelf().inSingletonScope(),e(h.PopupModelViewer).toSelf().inSingletonScope(),e(o.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.ModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.PopupModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.HiddenModelViewer).toService(h.HiddenModelViewer),e(o.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(o.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(o.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(o.TYPES.PopupModelViewer)}}}),e(o.TYPES.ViewerOptions).toConstantValue(p.defaultViewerOptions()),e(o.TYPES.PatcherProvider).to(h.PatcherProvider).inSingletonScope(),e(o.TYPES.DOMHelper).to(y.DOMHelper).inSingletonScope(),e(o.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,n){var i=e.container.get(o.TYPES.ViewRegistry);return new h.ModelRenderer(i,t,n)}}),e(_.IdPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(_.IdPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(_.IdPostprocessor),e(w.CssClassPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(w.CssClassPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(w.CssClassPostprocessor),e(f.MouseTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(f.MouseTool),e(m.KeyTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(m.KeyTool),e(g.FocusFixPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(g.FocusFixPostprocessor),e(o.TYPES.PopupVNodePostprocessor).toService(_.IdPostprocessor),e(f.PopupMouseTool).toSelf().inSingletonScope(),e(o.TYPES.PopupVNodePostprocessor).toService(f.PopupMouseTool),e(o.TYPES.AnimationFrameSyncer).to(d.AnimationFrameSyncer).inSingletonScope();var i={bind:e,isBound:n};M.configureCommand(i,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),M.configureCommand(i,A.SetModelCommand),e(o.TYPES.IToolManager).to(C.ToolManager).inSingletonScope(),e(o.TYPES.KeyListener).to(C.DefaultToolsEnablingKeyListener),e(C.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(i,S.EnableDefaultToolsAction.KIND,C.ToolManagerActionHandler),c.configureActionHandler(i,S.EnableToolsAction.KIND,C.ToolManagerActionHandler),e(o.TYPES.UIExtensionRegistry).to(E.UIExtensionRegistry).inSingletonScope(),M.configureCommand(i,E.SetUIExtensionVisibilityCommand),e(f.MousePositionTracker).toSelf().inSingletonScope(),e(o.TYPES.MouseListener).toService(f.MousePositionTracker)});t.default=L},8195:function(e,t,n){},"81aa":function(e,t,n){"use strict";function i(e,t,n,i,o){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:i,elm:o,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=i,t.default=i},8336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("0fd9"),s=n("2cac"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+i.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(i.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=o.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){var n=function(){return t.container.get(e)};return n},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=a},"842c":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("7b39"),c=n("6923"),l=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=l;var u=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new l(t))})},e=i([s.injectable(),r(0,s.multiInject(c.TYPES.CommandRegistration)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();function d(e,t){if(!a.isInjectable(t))throw new Error("Commands should be @injectable: "+t.name);e.isBound(t)||e.bind(t).toSelf(),e.bind(c.TYPES.CommandRegistration).toDynamicValue(function(e){return{kind:t.KIND,factory:function(n){var i=new s.Container;return i.parent=e.container,i.bind(c.TYPES.Action).toConstantValue(n),i.get(t)}}})}t.CommandActionHandlerInitializer=u,t.configureCommand=d},"84a2":function(e,t,n){(function(t){var n="Expected a function",i=NaN,o="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=Object.prototype,f=p.toString,m=Math.max,g=Math.min,v=function(){return h.Date.now()};function b(e,t,i){var o,r,s,a,c,l,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function f(t){var n=o,i=r;return o=r=void 0,u=t,a=e.apply(i,n),a}function b(e){return u=e,c=setTimeout(w,t),d?f(e):a}function y(e){var n=e-l,i=e-u,o=t-n;return h?g(o,s-i):o}function M(e){var n=e-l,i=e-u;return void 0===l||n>=t||n<0||h&&i>=s}function w(){var e=v();if(M(e))return S(e);c=setTimeout(w,y(e))}function S(e){return c=void 0,p&&o?f(e):(o=r=void 0,a)}function A(){void 0!==c&&clearTimeout(c),u=0,o=l=r=c=void 0}function E(){return void 0===c?a:S(v())}function O(){var e=v(),n=M(e);if(o=arguments,r=this,l=e,n){if(void 0===c)return b(l);if(h)return c=setTimeout(w,t),f(l)}return void 0===c&&(c=setTimeout(w,t)),a}return t=C(t)||0,_(i)&&(d=!!i.leading,h="maxWait"in i,s=h?m(C(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),O.cancel=A,O.flush=E,O}function y(e,t,i){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError(n);return _(i)&&(o="leading"in i?!!i.leading:o,r="trailing"in i?!!i.trailing:r),b(e,t,{leading:o,maxWait:t,trailing:r})}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return!!e&&"object"==typeof e}function w(e){return"symbol"==typeof e||M(e)&&f.call(e)==o}function C(e){if("number"==typeof e)return e;if(w(e))return i;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=y}).call(this,n("c8ba"))},"84b1":function(e,t,n){(function(t,n){e.exports=n()})(0,function(){"use strict";function e(e){var t,n,i=document,o=i.createElement("div"),r=o.style,s=navigator.userAgent,a=-1!==s.indexOf("Firefox")&&-1!==s.indexOf("Mobile"),c=e.debounceWaitMs||0,l=e.preventSubmit||!1,u=a?"input":"keyup",d=[],h="",p=2,f=e.showOnFocus,m=0;if(void 0!==e.minLength&&(p=e.minLength),!e.input)throw new Error("input undefined");var g=e.input;function v(){var e=o.parentNode;e&&e.removeChild(o)}function b(){n&&window.clearTimeout(n)}function y(){o.parentNode||i.body.appendChild(o)}function _(){return!!o.parentNode}function M(){m++,d=[],h="",t=void 0,v()}function w(){if(_()){r.height="auto",r.width=g.offsetWidth+"px";var t=g.getBoundingClientRect(),n=t.top+g.offsetHeight,i=window.innerHeight-n;i<0&&(i=0),r.top=n+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=i+"px",e.customize&&e.customize(g,t,o,i)}}function C(){while(o.firstChild)o.removeChild(o.firstChild);var n=function(e,t){var n=i.createElement("div");return n.textContent=e.label||"",n};e.render&&(n=e.render);var r=function(e,t){var n=i.createElement("div");return n.textContent=e,n};e.renderGroup&&(r=e.renderGroup);var s=i.createDocumentFragment(),a="#9?$";if(d.forEach(function(i){if(i.group&&i.group!==a){a=i.group;var o=r(i.group,h);o&&(o.className+=" group",s.appendChild(o))}var c=n(i,h);c&&(c.addEventListener("click",function(t){e.onSelect(i,g),M(),t.preventDefault(),t.stopPropagation()}),i===t&&(c.className+=" selected"),s.appendChild(c))}),o.appendChild(s),d.length<1){if(!e.emptyMsg)return void M();var c=i.createElement("div");c.className="empty",c.textContent=e.emptyMsg,o.appendChild(c)}y(),w(),L()}function S(){_()&&C()}function A(){S()}function E(e){e.target!==o?S():e.preventDefault()}function O(e){for(var t=e.which||e.keyCode||0,n=[38,13,27,39,37,16,17,18,20,91,9],i=0,o=n;i0){var t=e[0],n=t.previousElementSibling;if(n&&-1!==n.className.indexOf("group")&&!n.previousElementSibling&&(t=n),t.offsetTopr&&(o.scrollTop+=i-r)}}}function T(){if(d.length<1)t=void 0;else if(t===d[0])t=d[d.length-1];else for(var e=d.length-1;e>0;e--)if(t===d[e]||1===e){t=d[e-1];break}}function x(){if(d.length<1&&(t=void 0),t&&t!==d[d.length-1]){for(var e=0;e=p||1===i?(b(),n=window.setTimeout(function(){e.fetch(r,function(e){m===o&&e&&(d=e,h=r,t=d.length>0?d[0]:void 0,C())},0)},0===i?c:0)):M()}function P(){setTimeout(function(){i.activeElement!==g&&M()},200)}function N(){g.removeEventListener("focus",k),g.removeEventListener("keydown",R),g.removeEventListener(u,O),g.removeEventListener("blur",P),window.removeEventListener("resize",A),i.removeEventListener("scroll",E,!0),b(),M(),m++}return o.className="autocomplete "+(e.className||""),r.position="fixed",o.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),g.addEventListener("keydown",R),g.addEventListener(u,O),g.addEventListener("blur",P),g.addEventListener("focus",k),window.addEventListener("resize",A),i.addEventListener("scroll",E,!0),{destroy:N}}return e})},"84fd":function(e,t,n){},"85ed":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=a.LogLevel.error&&this.forward(e,t,a.LogLevel.error,n)},e.prototype.warn=function(e,t){for(var n=[],i=2;i=a.LogLevel.warn&&this.forward(e,t,a.LogLevel.warn,n)},e.prototype.info=function(e,t){for(var n=[],i=2;i=a.LogLevel.info&&this.forward(e,t,a.LogLevel.info,n)},e.prototype.log=function(e,t){for(var n=[],i=2;i=a.LogLevel.log)try{var o="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([o+": "+t],n))}catch(e){}},e.prototype.forward=function(e,t,n,i){var o=new Date,r=new l(a.LogLevel[n],o.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,i.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(n){try{n.handle(r)}catch(n){try{console.log.apply(e,[t,r,n])}catch(e){}}})},i([s.inject(c.TYPES.ModelSourceProvider),o("design:type",Function)],e.prototype,"modelSourceProvider",void 0),i([s.inject(c.TYPES.LogLevel),o("design:type",Number)],e.prototype,"logLevel",void 0),e=i([s.injectable()],e),e}();t.ForwardingLogger=u},"861d":function(e,t,n){var i=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,o=n("c4ec"),r=Object.create?Object.create(null):{};function s(e,t,n,i,o){var r=t.indexOf("<",i),s=t.slice(i,-1===r?void 0:r);/^\s*$/.test(s)&&(s=" "),(!o&&r>-1&&n+e.length>=0||" "!==s)&&e.push({type:"text",content:s})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var n,a=[],c=-1,l=[],u={},d=!1;return e.replace(i,function(i,r){if(d){if(i!=="")return;d=!1}var h,p="/"!==i.charAt(1),f=0===i.indexOf("\x3c!--"),m=r+i.length,g=e.charAt(m);p&&!f&&(c++,n=o(i),"tag"===n.type&&t.components[n.name]&&(n.type="component",d=!0),n.voidElement||d||!g||"<"===g||s(n.children,e,c,m,t.ignoreWhitespace),u[n.tagName]=n,0===c&&a.push(n),h=l[c-1],h&&h.children.push(n),l[c]=n),(f||!p||n.voidElement)&&(f||c--,!d&&"<"!==g&&g&&(h=-1===c?a:l[c].children,s(h,e,c,m,t.ignoreWhitespace)))}),!a.length&&e.length&&s(a,e,0,0,t.ignoreWhitespace),a}},8622:function(e,t,n){"use strict";var i=n("bc63"),o=n.n(i);o.a},"869e":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var u=function(e){function n(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.kind,e)}),n}return i(n,e),Object.defineProperty(n.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),n.prototype.get=function(t,n){return e.prototype.get.call(this,t+":"+(n||this.defaultAnchorKind))},n=o([a.injectable(),s(0,a.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],n),n}(l.InstanceRegistry);t.AnchorComputerRegistry=u},8707:function(e,t,n){var i=n("b639"),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=s),s.prototype=Object.create(o.prototype),r(o,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},8794:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("538c"),c=function(){function e(){}return e.prototype.update=function(e,t){if(void 0!==t)this.delegate.update(e,t),this.cachedModel=void 0;else{var n=void 0===this.cachedModel;this.cachedModel=e,n&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},i([r.inject(s.TYPES.IViewer),o("design:type",Object)],e.prototype,"delegate",void 0),i([r.inject(s.TYPES.AnimationFrameSyncer),o("design:type",a.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=i([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("7685"),o=n("30e3"),r=n("155f"),s=n("c5f4"),a=n("a8af"),c=n("ba33"),l=n("a32f"),u=n("1979"),d=n("c8c0"),h=n("7dba"),p=n("c622"),f=n("757d");function m(e){return e._bindingDictionary}function g(e,t,n,i,o,r){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new u.Metadata(a,n),l=new f.Target(t,i,n,c);if(void 0!==o){var d=new u.Metadata(o,r);l.metadata.push(d)}return l}function v(e,t,n,o,r){var s=_(n.container,r.serviceIdentifier),a=[];return s.length===i.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(r.serviceIdentifier).toSelf(),s=_(n.container,r.serviceIdentifier)),a=t?s:s.filter(function(e){var t=new p.Request(e.serviceIdentifier,n,o,e,r);return e.constraint(t)}),b(r.serviceIdentifier,a,r,n.container),a}function b(e,t,n,r){switch(t.length){case i.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=o.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a);case i.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case i.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;s=c.getServiceIdentifierAsString(e),a=o.AMBIGUOUS_MATCH+" "+s;throw a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a)}}function y(e,t,n,i,s,a){var c,l;if(null===s){c=v(e,t,i,null,a),l=new p.Request(n,i,null,c,a);var u=new d.Plan(i,l);i.addPlan(u)}else c=v(e,t,i,s,a),l=s.addChildRequest(a.serviceIdentifier,c,a);c.forEach(function(t){var n=null;if(a.isArray())n=l.addChildRequest(t.serviceIdentifier,t,a);else{if(t.cache)return;n=l}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var s=h.getDependencies(e,t.implementationType);if(!i.container.options.skipBaseClassChecks){var c=h.getBaseClassDependencyCount(e,t.implementationType);if(s.length=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd7b"),r=n("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var n=this;return o.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return n.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var n=this.doRender(e,t);return t.decorate(n,e),n},e.prototype.copyToThunk=function(e,t){t.elm=e.elm,e.data.fn=t.data.fn,e.data.args=t.data.args,t.data=e.data,t.children=e.children,t.text=e.text,t.elm=e.elm},e.prototype.init=function(e){var t=e.data,n=t.fn.apply(void 0,t.args);this.copyToThunk(n,e)},e.prototype.prepatch=function(e,t){var n=e.data,i=t.data;this.equals(n.args,i.args)?this.copyToThunk(e,t):this.copyToThunk(i.fn.apply(void 0,i.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("3585"),s=function(){function e(){}return e.prototype.isVisible=function(e,t,n){if("hidden"===n.targetKind)return!0;if(0===t.length)return!0;var i=r.getAbsoluteRouteBounds(e,t),o=e.root.canvasBounds;return i.x<=o.width&&i.x+i.width>=0&&i.y<=o.height&&i.y+i.height>=0},e=i([o.injectable()],e),e}();t.RoutableView=s},"8e08":function(e,t,n){},"8e65":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("6923"),s=n("42be"),a=n("26ad"),c=new i.ContainerModule(function(e,t,n){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),o.configureCommand({bind:e,isBound:n},s.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(a.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("dd02"),s=n("66f9"),a=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var n=s.getAbsoluteBounds(e),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=i([o.injectable()],e),e}();t.ShapeView=a},"8ef3":function(e,t,n){},9016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,o=function(e){i(function(){i(e)})},r=!1;function s(e,t,n){o(function(){e[t]=n})}function a(e,t){var n,i,o=t.elm,r=e.data.style,a=t.data.style;if((r||a)&&r!==a){r=r||{},a=a||{};var c="delayed"in r;for(i in r)a[i]||("-"===i[0]&&"-"===i[1]?o.style.removeProperty(i):o.style[i]="");for(i in a)if(n=a[i],"delayed"===i&&a.delayed)for(var l in a.delayed)n=a.delayed[l],c&&n===r.delayed[l]||s(o.style,l,n);else"remove"!==i&&n!==r[i]&&("-"===i[0]&&"-"===i[1]?o.style.setProperty(i,n):o.style[i]=n)}}function c(e){var t,n,i=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)i.style[n]=t[n]}function l(e,t){var n=e.data.style;if(n&&n.remove){r||(getComputedStyle(document.body).transform,r=!0);var i,o,s=e.elm,a=0,c=n.remove,l=0,u=[];for(i in c)u.push(i),s.style[i]=c[i];o=getComputedStyle(s);for(var d=o["transition-property"].split(", ");a=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("21a6"),c=n("e1c6"),l=n("3f0a"),u=n("6923"),d=n("42f7"),h=n("4741"),p=n("5d19"),f=n("f4cb"),m=n("b485"),g=n("cf61"),v=n("26ad");function b(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=b;var y=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=y;var _="__receivedFromServer",M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return i(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(d.ComputedBoundsAction.KIND,this),t.register(d.RequestBoundsCommand.KIND,this),t.register(f.RequestPopupModelAction.KIND,this),t.register(h.CollapseExpandAction.KIND,this),t.register(h.CollapseExpandAllAction.KIND,this),t.register(m.OpenAction.KIND,this),t.register(y.KIND,this),this.clientId||(this.clientId=this.viewerOptions.baseDiv)},t.prototype.handle=function(e){var t=this.handleLocally(e);t&&this.forwardToServer(e)},t.prototype.forwardToServer=function(e){var t={clientId:this.clientId,action:e};this.logger.log(this,"sending",t),this.sendMessage(t)},t.prototype.messageReceived=function(e){var t=this,n="string"===typeof e?JSON.parse(e):e;b(n)&&n.action?n.clientId&&n.clientId!==this.clientId||(n.action[_]=!0,this.logger.log(this,"receiving",n),this.actionDispatcher.dispatch(n.action).then(function(){t.storeNewModel(n.action)})):this.logger.error(this,"received data is not an action message",n)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case d.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case l.RequestModelAction.KIND:return this.handleRequestModel(e);case d.RequestBoundsCommand.KIND:return!1;case p.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case y.KIND:return this.handleServerStateAction(e)}return!e[_]},t.prototype.storeNewModel=function(e){if(e.kind===l.SetModelCommand.KIND||e.kind===g.UpdateModelCommand.KIND||e.kind===d.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==l.SetModelCommand.KIND&&e.kind!==g.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=o({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),n=o(o({},e),{options:t});return this.forwardToServer(n),!1},t.prototype.handleComputedBounds=function(e){if(this.viewerOptions.needsServerLayout)return!0;var t=this.currentRoot;return this.computedBoundsApplicator.apply(t,e),t.type===this.lastSubmittedModelType?this.actionDispatcher.dispatch(new g.UpdateModelAction(t)):this.actionDispatcher.dispatch(new l.SetModelAction(t)),this.lastSubmittedModelType=t.type,!1},t.prototype.handleExportSvgAction=function(e){var t=new Blob([e.svg],{type:"text/plain;charset=utf-8"});return a.saveAs(t,"diagram.svg"),!1},t.prototype.handleServerStateAction=function(e){return!1},t.prototype.commitModel=function(e){var t=this.currentRoot;return this.currentRoot=e,t},r([c.inject(u.TYPES.ILogger),s("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(v.ComputedBoundsApplicator),s("design:type",v.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(v.ModelSource);t.DiagramServer=M},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,i,o){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,i)});case 4:return t.nextTick(function(){e.call(null,n,i,o)});default:r=new Array(a-1),s=0;while(s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=function(){function e(){}return e=o([r.injectable()],e),e}();t.Command=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.merge=function(e,t){return!1},t=o([r.injectable()],t),t}(s);t.MergeableCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.undo=function(e){return e.logger.error(this,"Cannot undo a hidden command"),e.root},t.prototype.redo=function(e){return e.logger.error(this,"Cannot redo a hidden command"),e.root},t=o([r.injectable()],t),t}(s);t.HiddenCommand=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.PopupCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.SystemCommand=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.ResetCommand=d},9811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("e7fa"),s=new i.ContainerModule(function(e){e(o.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=s},"987d":function(e,t,n){"use strict";function i(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=i},"98ab":function(e,t,n){},"98db":function(e,t,n){(function(e,t){ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use diff --git a/klab.engine/src/main/resources/static/ui/js/runtime.2e1713a8.js b/klab.engine/src/main/resources/static/ui/js/runtime.2e1713a8.js new file mode 100644 index 000000000..39481f640 --- /dev/null +++ b/klab.engine/src/main/resources/static/ui/js/runtime.2e1713a8.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],f=0,s=[];f org.mockito mockito-core - 5.3.1 + ${mockito.version} test org.mockito mockito-junit-jupiter - 5.3.1 + ${mockito.version} test diff --git a/mvnw b/mvnw new file mode 100755 index 000000000..8d937f4c1 --- /dev/null +++ b/mvnw @@ -0,0 +1,308 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Apache Maven Wrapper startup batch script, version 3.2.0 +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /usr/local/etc/mavenrc ] ; then + . /usr/local/etc/mavenrc + fi + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "$(uname)" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME + else + JAVA_HOME="/Library/Java/Home"; export JAVA_HOME + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=$(java-config --jre-home) + fi +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$JAVA_HOME" ] && + JAVA_HOME=$(cygpath --unix "$JAVA_HOME") + [ -n "$CLASSPATH" ] && + CLASSPATH=$(cygpath --path --unix "$CLASSPATH") +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] && + JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)" +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="$(which javac)" + if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=$(which readlink) + if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then + if $darwin ; then + javaHome="$(dirname "\"$javaExecutable\"")" + javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac" + else + javaExecutable="$(readlink -f "\"$javaExecutable\"")" + fi + javaHome="$(dirname "\"$javaExecutable\"")" + javaHome=$(expr "$javaHome" : '\(.*\)/bin') + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=$(cd "$wdir/.." || exit 1; pwd) + fi + # end of workaround + done + printf '%s' "$(cd "$basedir" || exit 1; pwd)" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + # Remove \r in case we run on Windows within Git Bash + # and check out the repository with auto CRLF management + # enabled. Otherwise, we may read lines that are delimited with + # \r\n and produce $'-Xarg\r' rather than -Xarg due to word + # splitting rules. + tr -s '\r\n' ' ' < "$1" + fi +} + +log() { + if [ "$MVNW_VERBOSE" = true ]; then + printf '%s\n' "$1" + fi +} + +BASE_DIR=$(find_maven_basedir "$(dirname "$0")") +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR +log "$MAVEN_PROJECTBASEDIR" + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" +if [ -r "$wrapperJarPath" ]; then + log "Found $wrapperJarPath" +else + log "Couldn't find $wrapperJarPath, downloading it ..." + + if [ -n "$MVNW_REPOURL" ]; then + wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" + else + wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" + fi + while IFS="=" read -r key value; do + # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' ) + safeValue=$(echo "$value" | tr -d '\r') + case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;; + esac + done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" + log "Downloading from: $wrapperUrl" + + if $cygwin; then + wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath") + fi + + if command -v wget > /dev/null; then + log "Found wget ... using wget" + [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet" + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + else + wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + fi + elif command -v curl > /dev/null; then + log "Found curl ... using curl" + [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent" + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" + else + curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" + fi + else + log "Falling back to using Java to download" + javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java" + javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaSource=$(cygpath --path --windows "$javaSource") + javaClass=$(cygpath --path --windows "$javaClass") + fi + if [ -e "$javaSource" ]; then + if [ ! -e "$javaClass" ]; then + log " - Compiling MavenWrapperDownloader.java ..." + ("$JAVA_HOME/bin/javac" "$javaSource") + fi + if [ -e "$javaClass" ]; then + log " - Running MavenWrapperDownloader.java ..." + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath" + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +# If specified, validate the SHA-256 sum of the Maven wrapper jar file +wrapperSha256Sum="" +while IFS="=" read -r key value; do + case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;; + esac +done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" +if [ -n "$wrapperSha256Sum" ]; then + wrapperSha256Result=false + if command -v sha256sum > /dev/null; then + if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c > /dev/null 2>&1; then + wrapperSha256Result=true + fi + elif command -v shasum > /dev/null; then + if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then + wrapperSha256Result=true + fi + else + echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." + echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." + exit 1 + fi + if [ $wrapperSha256Result = false ]; then + echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2 + echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2 + echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2 + exit 1 + fi +fi + +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$JAVA_HOME" ] && + JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME") + [ -n "$CLASSPATH" ] && + CLASSPATH=$(cygpath --path --windows "$CLASSPATH") + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR") +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +# shellcheck disable=SC2086 # safe args +exec "$JAVACMD" \ + $MAVEN_OPTS \ + $MAVEN_DEBUG_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/mvnw.cmd b/mvnw.cmd new file mode 100644 index 000000000..c4586b564 --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,205 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Apache Maven Wrapper startup batch script, version 3.2.0 +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* +if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" + +FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + if "%MVNW_VERBOSE%" == "true" ( + echo Found %WRAPPER_JAR% + ) +) else ( + if not "%MVNW_REPOURL%" == "" ( + SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" + ) + if "%MVNW_VERBOSE%" == "true" ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %WRAPPER_URL% + ) + + powershell -Command "&{"^ + "$webclient = new-object System.Net.WebClient;"^ + "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ + "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ + "}"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^ + "}" + if "%MVNW_VERBOSE%" == "true" ( + echo Finished downloading %WRAPPER_JAR% + ) +) +@REM End of extension + +@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file +SET WRAPPER_SHA_256_SUM="" +FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B +) +IF NOT %WRAPPER_SHA_256_SUM%=="" ( + powershell -Command "&{"^ + "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^ + "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^ + " Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^ + " Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^ + " Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^ + " exit 1;"^ + "}"^ + "}" + if ERRORLEVEL 1 goto error +) + +@REM Provide a "standardized" way to retrieve the CLI args that will +@REM work with both Windows and non-Windows executions. +set MAVEN_CMD_LINE_ARGS=%* + +%MAVEN_JAVA_EXE% ^ + %JVM_CONFIG_MAVEN_PROPS% ^ + %MAVEN_OPTS% ^ + %MAVEN_DEBUG_OPTS% ^ + -classpath %WRAPPER_JAR% ^ + "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ + %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" +if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%"=="on" pause + +if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% + +cmd /C exit /B %ERROR_CODE% diff --git a/pom.xml b/pom.xml index d5db921b2..76ca30319 100644 --- a/pom.xml +++ b/pom.xml @@ -130,6 +130,10 @@ 1.5.2 2.1.1 + 5.10.1 + 5.6.0 + 2.2 + 2.0.9