diff --git a/klab.engine/src/main/resources/static/ui/index.html b/klab.engine/src/main/resources/static/ui/index.html index acf634374..33fa14568 100644 --- a/klab.engine/src/main/resources/static/ui/index.html +++ b/klab.engine/src/main/resources/static/ui/index.html @@ -1,4 +1,4 @@ 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/4365aeeb.20508107.js b/klab.engine/src/main/resources/static/ui/js/4365aeeb.a8ccfbdc.js similarity index 86% rename from klab.engine/src/main/resources/static/ui/js/4365aeeb.20508107.js rename to klab.engine/src/main/resources/static/ui/js/4365aeeb.a8ccfbdc.js index 674e4da20..94b2eadcb 100644 --- a/klab.engine/src/main/resources/static/ui/js/4365aeeb.20508107.js +++ b/klab.engine/src/main/resources/static/ui/js/4365aeeb.a8ccfbdc.js @@ -9,7 +9,7 @@ //! license : MIT //! github.com/moment/moment-timezone (function(a,s){"use strict";e.exports?e.exports=s(o("c1df")):(i=[o("c1df")],n=s,r="function"===typeof n?n.apply(t,i):n,void 0===r||(e.exports=r))})(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,o="0.5.46",n={},i={},r={},a={},s={};e&&"string"===typeof e.version||X("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=e.version.split("."),p=+c[0],l=+c[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function b(e){var t,o=0,n=e.split("."),i=n[0],r=n[1]||"",a=1,s=0,c=1;for(45===e.charCodeAt(0)&&(o=1,c=-1),o;o1&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return-1;var i=0,r=n-1;while(r-i>1)o=Math.floor((i+r)/2),t[o]<=e?i=o:r=o;return r}function A(e,t){this.name=e,this.zones=t}function m(e){var t=e.toTimeString(),o=t.match(/\([a-z ]+\)/i);o&&o[0]?(o=o[0].match(/[A-Z]/g),o=o?o.join(""):void 0):(o=t.match(/[A-Z]{3,5}/g),o=o?o[0]:void 0),"GMT"===o&&(o=void 0),this.at=+e,this.abbr=o,this.offset=e.getTimezoneOffset()}function v(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function g(e,t){var o,n;while(n=6e4*((t.at-e.at)/12e4|0))o=new m(new Date(e.at+n)),o.offset===e.offset?e=o:t=o;return e}function y(){var e,t,o,n,i=(new Date).getFullYear()-2,r=new m(new Date(i,0,1)),a=r.offset,s=[r];for(n=1;n<48;n++)o=new Date(i,n,1).getTimezoneOffset(),o!==a&&(t=new m(new Date(i,n,1)),e=g(r,t),s.push(e),s.push(new m(new Date(e.at+6e4))),r=t,a=o);for(n=0;n<4;n++)s.push(new m(new Date(i+n,0,1))),s.push(new m(new Date(i+n,6,1)));return s}function q(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function _(e,t){var o,n;for(d(t),o=0;o3){var t=a[L(e)];if(t)return t;X("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var o,n,i,r=y(),s=r.length,c=W(r),p=[];for(n=0;n0?p[0].zone.name:void 0}function w(e){return t&&!e||(t=R()),t}function L(e){return(e||"").toLowerCase().replace(/\//g,"_")}function C(e){var t,o,i,r;for("string"===typeof e&&(e=[e]),t=0;t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),z.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,o=+e,n=this.untils;if(t=O(o,n),t>=0)return t},countries:function(){var e=this.name;return Object.keys(r).filter(function(t){return-1!==r[t].zones.indexOf(e)})},parse:function(e){var t,o,n,i,r=+e,a=this.offsets,s=this.untils,c=s.length-1;for(i=0;in&&j.moveInvalidForward&&(t=n),r0&&(this._z=null),e.apply(this,arguments)}}e.tz=j,e.defaultZone=null,e.updateOffset=function(t,o){var n,i=e.defaultZone;if(void 0===t._z&&(i&&I(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z)if(n=t._z.utcOffset(t),Math.abs(n)<16&&(n/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-n,o),t._z=r}else t.zone(n,o)},F.tz=function(t,o){if(t){if("string"!==typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=S(t),this._z?e.updateOffset(this,o):X("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=U(F.utc),F.local=U(F.local),F.utcOffset=V(F.utcOffset),e.tz.setDefault=function(t){return(p<2||2===p&&l<9)&&X("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?S(t):null,e};var G=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(G)?(G.push("_z"),G.push("_a")):G&&(G._z=null),e})},"0f4c":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("c146"),r=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementResizes=o,r.reverse=i,r}return n(t,e),t.prototype.tween=function(e){var t=this;return this.elementResizes.forEach(function(o){var n=o.element,i=t.reverse?{width:(1-e)*o.toDimension.width+e*o.fromDimension.width,height:(1-e)*o.toDimension.height+e*o.fromDimension.height}:{width:(1-e)*o.fromDimension.width+e*o.toDimension.width,height:(1-e)*o.fromDimension.height+e*o.toDimension.height};n.bounds={x:n.bounds.x,y:n.bounds.y,width:i.width,height:i.height}}),this.model},t}(i.Animation);t.ResizeAnimation=r},"0faf":function(e,t,o){"use strict";var n=o("5870"),i=o.n(n);i.a},"0fb6":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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=o("e1c6"),a=o("6923"),s=o("9175"),c=o("302f"),p=o("538c"),l=o("3f0a"),u=o("c20e"),b=o("510b"),d=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 l.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 s.Deferred;return this.requests.set(e.requestId,t),this.dispatch(e),t.promise},e.prototype.handleAction=function(e){if(e.kind===u.UndoAction.KIND)return this.commandStack.undo().then(function(){});if(e.kind===u.RedoAction.KIND)return this.commandStack.redo().then(function(){});if(b.isResponseAction(e)){var t=this.requests.get(e.responseId);if(void 0!==t){if(this.requests.delete(e.responseId),e.kind===b.RejectAction.KIND){var o=e;t.reject(new Error(o.message)),this.logger.warn(this,"Request with id "+e.responseId+" failed.",o.message,o.detail)}else t.resolve(e);return Promise.resolve()}this.logger.log(this,"No matching request for response",e)}var n=this.actionHandlerRegistry.get(e.kind);if(0===n.length){this.logger.warn(this,"Missing handler for action",e);var i=new Error("Missing handler for action '"+e.kind+"'");if(b.isRequestAction(e)){t=this.requests.get(e.requestId);void 0!==t&&(this.requests.delete(e.requestId),t.reject(i))}return Promise.reject(i)}this.logger.log(this,"Handle",e);for(var r=[],a=0,s=n;a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("3a92"),p=o("e45b"),l=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,o){var n=this.keyListeners.map(function(n){return n[e].apply(n,[t,o])}).reduce(function(e,t){return e.concat(t)});n.length>0&&(o.preventDefault(),this.actionDispatcher.dispatchAll(n))},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&&(p.on(e,"focus",this.focus.bind(this),t),p.on(e,"keydown",this.keyDown.bind(this),t),p.on(e,"keyup",this.keyUp.bind(this),t)),e},e.prototype.postUpdate=function(){},n([a.inject(s.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=n([a.injectable(),r(0,a.multiInject(s.TYPES.KeyListener)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();t.KeyTool=l;var u=function(){function e(){}return e.prototype.keyDown=function(e,t){return[]},e.prototype.keyUp=function(e,t){return[]},e=n([a.injectable()],e),e}();t.KeyListener=u},1468:function(e,t){var o=1e3,n=60*o,i=60*n,r=24*i,a=365.25*r;function s(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 s=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function c(e){return e>=r?Math.round(e/r)+"d":e>=i?Math.round(e/i)+"h":e>=n?Math.round(e/n)+"m":e>=o?Math.round(e/o)+"s":e+"ms"}function p(e){return l(e,r,"day")||l(e,i,"hour")||l(e,n,"minute")||l(e,o,"second")||e+" ms"}function l(e,t,o){if(!(e0)return s(e);if("number"===o&&!1===isNaN(e))return t.long?p(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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingScopeEnum=n;var i={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.BindingTypeEnum=i;var r={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};t.TargetTypeEnum=r},1590:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t){this.toolIds=t,this.kind=e.KIND}return e.KIND="enable-tools",e}();t.EnableToolsAction=n;var i=function(){function e(){this.kind=e.KIND}return e.KIND="enable-default-tools",e}();t.EnableDefaultToolsAction=i},"15f6":function(e,t,o){},"160b":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},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 a=o("e1c6"),s=o("6923"),c=o("302f"),p=o("3a92"),l=o("538c"),u=o("9757"),b=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,o){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,o){e.pushToUndoStack(t)})),this.redoFollowingSystemCommands(),this.thenUpdate()},e.prototype.handleCommand=function(e,t,o){var n=this;this.currentPromise=this.currentPromise.then(function(i){return new Promise(function(r){var a;a=e instanceof u.HiddenCommand?"hidden":e instanceof u.PopupCommand?"popup":"main";var s,c=n.createContext(i.main.model);try{s=t.call(e,c)}catch(e){n.logger.error(n,"Failed to execute command:",e),s=i[a].model}var l=d(i);s instanceof Promise?s.then(function(t){"main"===a&&o.call(n,e,c),l[a]={model:t,modelChanged:!0},r(l)}):s instanceof p.SModelRoot?("main"===a&&o.call(n,e,c),l[a]={model:s,modelChanged:!0},r(l)):("main"===a&&o.call(n,e,c),l[a]={model:s.model,modelChanged:i[a].modelChanged||s.modelChanged,cause:s.cause},r(l))})})},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 o=d(t);return t.hidden.modelChanged&&(e.updateHidden(t.hidden.model,t.hidden.cause),o.hidden.modelChanged=!1,o.hidden.cause=void 0),t.main.modelChanged&&(e.update(t.main.model,t.main.cause),o.main.modelChanged=!1,o.main.cause=void 0),t.popup.modelChanged&&(e.updatePopup(t.popup.model,t.popup.cause),o.popup.modelChanged=!1,o.popup.cause=void 0),o}),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 o=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 n=this.offStack[this.offStack.length-1];if(n instanceof u.MergeableCommand&&n.merge(e,t))return}this.offStack.push(e)}else if(this.isPushToUndoStack(e)){if(this.offStack.forEach(function(e){return o.undoStack.push(e)}),this.offStack=[],this.redoStack=[],this.undoStack.length>0){n=this.undoStack[this.undoStack.length-1];if(n instanceof u.MergeableCommand&&n.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,o){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,o){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 u.SystemCommand},e.prototype.isPushToUndoStack=function(e){return!(e instanceof u.HiddenCommand)},e.prototype.isBlockUndo=function(e){return e instanceof u.ResetCommand},i([a.inject(s.TYPES.IModelFactory),r("design:type",Object)],e.prototype,"modelFactory",void 0),i([a.inject(s.TYPES.IViewerProvider),r("design:type",Object)],e.prototype,"viewerProvider",void 0),i([a.inject(s.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),i([a.inject(s.TYPES.AnimationFrameSyncer),r("design:type",l.AnimationFrameSyncer)],e.prototype,"syncer",void 0),i([a.inject(s.TYPES.CommandStackOptions),r("design:type",Object)],e.prototype,"options",void 0),i([a.postConstruct(),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialize",null),e=i([a.injectable()],e),e}();function d(e){return{main:n({},e.main),hidden:n({},e.hidden),popup:n({},e.popup)}}t.CommandStack=b},"168d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("3864"),c=o("d8f5"),p=o("e1c6"),l=o("6923"),u=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.kind,e)}),o}return n(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=i([p.injectable(),a(0,p.multiInject(l.TYPES.IEdgeRouter)),r("design:paramtypes",[Array])],t),t}(s.InstanceRegistry);t.EdgeRouterRegistry=u},1817:function(e,t,o){"use strict";var n=o("c23f"),i=o.n(n);i.a},1848:function(e,t,o){"use strict";var n=o("98ab"),i=o.n(n);i.a},1934:function(e,t,o){(function(n){function i(){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 o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+t.humanize(this.diff),o){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(r=i))}),e.splice(r,0,n)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(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 n&&"env"in n&&(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 p(){try{return window.localStorage}catch(e){}}t=e.exports=o("6d1a"),t.log=a,t.formatArgs=r,t.save=s,t.load=c,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:p(),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,o("4362"))},1963:function(e,t,o){},1978:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("9757"),c=o("3a92"),p=o("6923"),l=o("e1c6");function u(e){return e instanceof c.SChildElement&&e.hasFeature(t.deletableFeature)}t.deletableFeature=Symbol("deletableFeature"),t.isDeletable=u;var b=function(){function e(t){this.elementIds=t,this.kind=e.KIND}return e.KIND="delete",e}();t.DeleteElementAction=b;var d=function(){function e(){}return e}();t.ResolvedDelete=d;var M=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.resolvedDeletes=[],o}return n(t,e),t.prototype.execute=function(e){for(var t=e.root.index,o=0,n=this.action.elementIds;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("9964"),a=o("3623"),s=o("e1c6"),c=function(){function e(){}return e.prototype.render=function(e,t){var o=a.findParentByFeature(e,r.isExpandable),n=void 0!==o&&o.expanded?"M 1,5 L 8,12 L 15,5 Z":"M 1,8 L 8,15 L 8,1 Z";return i.svg("g",{"class-sprotty-button":"{true}","class-enabled":"{button.enabled}"},i.svg("rect",{x:0,y:0,width:16,height:16,opacity:0}),i.svg("path",{d:n}))},e=n([s.injectable()],e),e}();t.ExpandButtonView=c},"19f2":function(e,t,o){"use strict";var n=o("8ac3"),i=o.n(n);i.a},"19fc":function(e,t,o){"use strict";(function(e){o("7f7f"),o("6762"),o("2fdb"),o("6b54"),o("a481");var n=o("448a"),i=o.n(n),r=(o("f559"),o("7514"),o("3156")),a=o.n(r),s=(o("ac6a"),o("cadf"),o("f400"),o("e325")),c=o("1ad9"),p=o.n(c),l=(o("c862"),o("e00b")),u=o("2f62"),b=o("7cca"),d=o("b12a"),M=o("be3b"),h=o("7173");t["a"]={name:"DocumentationViewer",props:{forPrinting:{type:Boolean,default:!1}},components:{FigureTimeline:h["a"],HistogramViewer:l["a"]},data:function(){return{content:[],tables:[],images:[],loadingImages:[],figures:[],rawDocumentation:[],DOCUMENTATION_TYPES:b["l"],links:new Map,tableCounter:0,referenceCounter:0,viewport:null,needUpdates:!1,visible:!1,waitHeight:320}},computed:a()({},Object(u["c"])("data",["documentationTrees","documentationContent"]),Object(u["c"])("view",["documentationView","documentationSelected","documentationCache","tableFontSize"]),{tree:function(){var e=this;return this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree}}),methods:a()({},Object(u["b"])("view",["setDocumentation"]),{getId:function(e){return this.forPrinting?"".concat(e,"-fp"):e},getFormatter:function(e,t){var o=t.numberFormat;switch(o||(o="%f"),e){case b["K"].TEXT:case b["K"].VALUE:case b["K"].BOOLEAN:return"plaintext";case b["K"].NUMBER:return function(e){return e.getValue()&&""!==e.getValue()?p()(o,e.getValue()):""};default:return"plaintext"}},formatColumns:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.numberFormat,i=function e(o,i){var r="".concat(i||"").concat(o.id);return a()({title:o.title,field:r,headerVertical:o.headerVertical,frozen:o.frozen},o.sorter&&{sorter:o.sorter},o.hozAlign&&{hozAlign:o.hozAlign},o.formatter&&{formatter:o.formatter},!o.formatter&&o.type&&{formatter:t.getFormatter(o.type,{numberFormat:o.numberFormat||n})},o.columns&&o.columns.length>0&&{columns:o.columns.map(function(t){return e(t,r)})})};return e.map(function(e){return a()({},i(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 o=[];return i()(e.matchAll(/LINK\/(?[^/]*)\/(?[^/]*)\//g)).forEach(function(e){var n,i=t.documentationContent.get(e[2]);i&&(i.type===b["l"].REFERENCE?n="[".concat(i.id,"]"):i.type===b["l"].TABLE&&(n="<".concat(i.id).concat(++t.tableCounter,">")),i.index=++t.referenceCounter,o.push({what:e[0],with:'').concat(i.index,"")}),t.links.set(e[2],i))}),o.length>0&&o.forEach(function(t){e=e.replace(t.what,t.with)}),e}return e},getImage:function(t,o){var n=this,i=document.getElementById("resimg-".concat(this.getId(t)));if(i)if(this.documentationCache.has(t)){var r=this.documentationCache.get(t);null!==r?i.src=this.documentationCache.get(t):i.style.display="none"}else M["a"].get("".concat("").concat("/modeler").concat(o),{responseType:"arraybuffer"}).then(function(o){var r=o.data;r&&r.byteLength>0?(i.src="data:image/png;base64,".concat(e.from(r,"binary").toString("base64")),n.documentationCache.set(t,i.src)):(i.style.display="none",n.documentationCache.set(t,null))})},getFigure:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.getElementById("figimg-".concat(this.documentationView,"-").concat(this.getId(e)));if(i){var r=this.documentationContent.get(e),s="".concat(t.observationId,"/").concat(o);if(r.figure.timeString=n,""!==i.src&&(this.waitHeight=i.clientHeight),this.documentationCache.has(s))i.src=this.documentationCache.get(s).src,r.figure.colormap=this.documentationCache.get(s).colormap;else if(!this.loadingImages.includes(e)){this.loadingImages.push(e),i.src="";var c=this;M["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:a()({format:b["q"].TYPE_RASTER,viewport:c.viewport},-1!==o&&{locator:"T1(1){time=".concat(o,"}")}),responseType:"blob"}).then(function(n){var p=c.loadingImages.indexOf(e);if(-1!==p&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),n){var l=new FileReader,u={src:null,colormap:null};l.readAsDataURL(n.data),l.onload=function(){i.src=l.result,u.src=l.result},M["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:a()({format:b["q"].TYPE_COLORMAP},-1!==o&&{locator:"T1(1){time=".concat(o,"}")})}).then(function(e){e&&e.data&&(r.figure.colormap=Object(d["i"])(e.data),u.colormap=r.figure.colormap),c.documentationCache.set(s,u)}).catch(function(e){console.error(e),c.documentationCache.set(s,u)})}}).catch(function(t){var o=c.loadingImages.indexOf(e);-1!==o&&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 o=document.querySelector("#".concat(t.getId(e.id),"-table"));o&&(e.instance=new s["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 o=this.figures.find(function(e){return e.id===t});o&&(o.time=e.time,this.getFigure(o.id,o.instance,o.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(d["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 o=this;this.rawDocumentation.forEach(function(e){var t=o.documentationContent.get(e.id);switch(t.bodyText&&(t.bodyText=o.getLinkedText(t.bodyText)),o.content.push(t),e.type){case b["l"].PARAGRAPH:break;case b["l"].RESOURCE:o.images.push({id:e.id,url:t.resource.spaceDescriptionUrl});break;case b["l"].SECTION:break;case b["l"].TABLE:o.tables.push({id:t.id,name:t.bodyText.replaceAll(" ","_").toLowerCase(),tabulator:{clipboard:"copy",printAsHtml:!0,data:t.table.rows,columns:o.formatColumns(t.table.columns,a()({},t.table.numberFormat&&{numberFormat:t.table.numberFormat})),clipboardCopied:function(){o.$q.notify({message:o.$t("messages.tableCopied"),type:"info",icon:"mdi-information",timeout:1e3})}}});break;case b["l"].FIGURE:o.$set(t.figure,"colormap",null),o.$set(t.figure,"timeString",""),o.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(b["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener),this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.$eventBus.$on(b["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,o){document.querySelectorAll(".link-".concat(o)).forEach(function(o){o.onclick=function(){e.setDocumentation({id:t.id,view:b["m"][t.type]})}})}),this.links.clear(),this.tableCounter=0,this.referenceCounter=0))},beforeDestroy:function(){this.forPrinting||this.$eventBus.$off(b["h"].REFRESH_DOCUMENTATION,this.clearCache),this.$eventBus.$off(b["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener)}}}).call(this,o("b639").Buffer)},"1ad9":function(e,t,o){var n=o("3022"),i=function(e,t,o,n){var i,r,a=[],s=0;while(i=t.exec(e)){if(r=e.slice(s,t.lastIndex-i[0].length),r.length&&a.push(r),o){var c=o.apply(n,i.slice(1).concat(a.length));"undefined"!=typeof c&&("%"===c.specifier?a.push("%"):a.push(c))}s=t.lastIndex}return r=e.slice(s),r.length&&a.push(r),a},r=function(e){this._mapped=!1,this._format=e,this._tokens=i(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,o,n,i,r,a){return e&&(this._mapped=!0),{mapping:e,intmapping:t,flags:o,_minWidth:n,period:i,_precision:r,specifier:a}},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,o="",n=0,i=0;i=arguments.length)throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");t.arg=arguments[n++]}if(!t.compiled){t.compiled=!0,t.sign="",t.zeroPad=!1,t.rightJustify=!1,t.alternative=!1;for(var p={},l=t.flags.length;l--;){var u=t.flags.charAt(l);switch(p[u]=!0,u){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"0":t.zeroPad=!p["-"];break;case"-":t.rightJustify=!0,t.zeroPad=!1;break;case"#":t.alternative=!0;break;default:throw Error("bad formatting flag '"+t.flags.charAt(l)+"'")}}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 b=this._specifiers[t.specifier];if("undefined"==typeof b)throw new Error("unexpected specifier '"+t.specifier+"'");if(b.extend){var d=this._specifiers[b.extend];for(var M in d)b[M]=d[M];delete b.extend}for(var h in b)t[h]=b[h]}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[n++]),isNaN(t.minWidth))throw new Error("the argument for * width at position "+n+" 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[n++]),isNaN(t.precision))throw Error("the argument for * precision at position "+n+" 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),o+=""+t.arg}return o},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=n.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 o=!1;"string"!=typeof e.arg&&(e.arg=""+e.arg),"-"===e.arg.substr(0,1)&&(o=!0,e.arg=e.arg.substr(1));var n=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 o=t-10;while(e.arg.length1?arguments[1]:void 0,f=void 0!==h,z=0,O=l(b);if(f&&(h=n(h,M>2?arguments[2]:void 0,2)),void 0==O||d==Array&&s(O))for(t=c(b.length),o=new d(t);t>z;z++)p(o,z,f?h(b[z],z):b[z]);else for(u=O.call(b),o=new d;!(i=u.next()).done;z++)p(o,z,f?a(u,h,[i.value,z],!0):i.value);return o.length=z,o}})},"1cc1":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("1978"),p=o("4c18"),l=function(){function e(e){void 0===e&&(e=[]),this.menuProviders=e}return e.prototype.getItems=function(e,t){var o=this.menuProviders.map(function(o){return o.getItems(e,t)});return Promise.all(o).then(this.flattenAndRestructure)},e.prototype.flattenAndRestructure=function(e){for(var t=e.reduce(function(e,t){return void 0!==t?e.concat(t):e},[]),o=t.filter(function(e){return e.parentId}),n=function(e){if(e.parentId){for(var o=e.parentId.split("."),n=void 0,i=t,r=function(e){n=i.find(function(t){return e===t.id}),n&&n.children&&(i=n.children)},a=0,s=o;a0}}])},e=n([a.injectable()],e),e}();t.DeleteContextMenuItemProvider=u},"1cd9":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("4c18"),l=o("510b"),u=o("3a92"),b=o("1417"),d=o("b669"),M=o("7faf"),h=o("5d19"),f=o("5eb6"),z=o("e4f0"),O=o("6923"),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return d.matchesKeystroke(t,"KeyE","ctrlCmd","shift")?[new m]:[]},t=i([s.injectable()],t),t}(b.KeyListener);t.ExportSvgKeyListener=A;var m=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(l.generateRequestId())},e.KIND="requestExportSvg",e}();t.RequestExportSvgAction=m;var v=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){if(M.isExportable(e.root)){var t=e.modelFactory.createRoot(e.root);if(M.isExportable(t))return f.isViewport(t)&&(t.zoom=1,t.scroll={x:0,y:0}),t.index.all().forEach(function(e){p.isSelectable(e)&&e.selected&&(e.selected=!1),z.isHoverable(e)&&e.hoverFeedback&&(e.hoverFeedback=!1)}),{model:t,modelChanged:!0,cause:this.action}}return{model:e.root,modelChanged:!1}},t.KIND=m.KIND,t=i([a(0,s.inject(O.TYPES.Action)),r("design:paramtypes",[m])],t),t}(c.HiddenCommand);t.ExportSvgCommand=v;var g=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof u.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){this.root&&void 0!==e&&e.kind===m.KIND&&this.svgExporter.export(this.root,e)},i([s.inject(O.TYPES.SvgExporter),r("design:type",h.SvgExporter)],e.prototype,"svgExporter",void 0),e=i([s.injectable()],e),e}();t.ExportSvgPostprocessor=g},"1d39":function(e,t,o){"use strict";var n=o("1963"),i=o.n(n);i.a},"1e19":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("ed4f"),a=o("c444"),s=o("cf98"),c=o("fe37"),p=o("842c"),l=new n.ContainerModule(function(e,t,o){p.configureCommand({bind:e,isBound:o},r.CenterCommand),p.configureCommand({bind:e,isBound:o},r.FitToScreenCommand),p.configureCommand({bind:e,isBound:o},a.SetViewportCommand),p.configureCommand({bind:e,isBound:o},a.GetViewportCommand),e(i.TYPES.KeyListener).to(r.CenterKeyboardListener),e(i.TYPES.MouseListener).to(s.ScrollMouseListener),e(i.TYPES.MouseListener).to(c.ZoomMouseListener)});t.default=l},"1e31":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("9d6c"),a=new n.ContainerModule(function(e){e(r.EdgeLayoutPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.EdgeLayoutPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(r.EdgeLayoutPostprocessor)});t.default=a},"1e94":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.of=function(t,o){var n=new e;return n.bindings=t,n.middleware=o,n},e}();t.ContainerSnapshot=n},"1f0f":function(e,t,o){},"1f66":function(e,t,o){},"1f89":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.openFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.openFeature=Symbol("openFeature"),t.isOpenable=n},"1fac":function(e,t,o){"use strict";var n=o("e5a7"),i=o.n(n);i.a},2:function(e,t){},"218d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("393a"),a=o("47b7"),s=o("8e97"),c=o("dd02"),p=o("e1c6"),l=function(){function e(){}return e.prototype.render=function(e,t){var o="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return r.svg("svg",null,r.svg("g",{transform:o},t.renderChildren(e)))},e=i([p.injectable()],e),e}();t.SvgViewportView=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var o=this.getRadius(e);return r.svg("g",null,r.svg("circle",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,r:o,cx:o,cy:o}),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=i([p.injectable()],t),t}(s.ShapeView);t.CircularNodeView=u;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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 a.SNode,"class-sprotty-port":e instanceof a.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=i([p.injectable()],t),t}(s.ShapeView);t.RectangularNodeView=b;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var o=new c.Diamond({height:Math.max(e.size.height,0),width:Math.max(e.size.width,0),x:0,y:0}),n=M(o.topPoint)+" "+M(o.rightPoint)+" "+M(o.bottomPoint)+" "+M(o.leftPoint);return r.svg("g",null,r.svg("polygon",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,points:n}),t.renderChildren(e))}},t=i([p.injectable()],t),t}(s.ShapeView);function M(e){return e.x+","+e.y}t.DiamondNodeView=d;var h=function(){function e(){}return e.prototype.render=function(e,t){return r.svg("g",null)},e=i([p.injectable()],e),e}();t.EmptyGroupView=h},2196:function(e,t,o){},"21a6":function(e,t,o){(function(o){var n,i,r;(function(o,a){i=[],n=a,r="function"===typeof n?n.apply(t,i):n,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 n(e,t,o){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,t,o)},n.onerror=function(){console.error("could not download file")},n.send()}function i(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(o){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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof o&&o.global===o?o:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,o){var s=a.URL||a.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):i(c.href)?n(e,t,o):r(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){r(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,o,a){if(o=o||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),o);else if(i(e))n(e,o,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,t,o,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,o);var r="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&s)&&"object"==typeof FileReader){var p=new FileReader;p.onloadend=function(){var e=p.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},p.readAsDataURL(e)}else{var l=a.URL||a.webkitURL,u=l.createObjectURL(e);i?i.location=u:location.href=u,i=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});a.saveAs=s.saveAs=s,e.exports=s})}).call(this,o("c8ba"))},"232d":function(e,t,o){},"23a0":function(e,t,o){"use strict";var n=o("79d7"),i=o.n(n);i.a},2590:function(e,t,o){"use strict";var n=o("1288"),i=o.n(n);i.a},"26ad":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},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 a=o("e1c6"),s=o("3f0a"),c=o("6923"),p=o("5d19"),l=o("3a92"),u=function(){function e(){}return e.prototype.initialize=function(e){e.register(s.RequestModelAction.KIND,this),e.register(p.ExportSvgAction.KIND,this)},i([a.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([a.inject(c.TYPES.ViewerOptions),r("design:type",Object)],e.prototype,"viewerOptions",void 0),e=i([a.injectable()],e),e}();t.ModelSource=u;var b=function(){function e(){}return e.prototype.apply=function(e,t){var o=new l.SModelIndex;o.add(e);for(var n=0,i=t.bounds;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("393a"),s=o("dd7b"),c=o("6af2"),p=o("ff70"),l=o("9016"),u=o("6907"),b=o("f923"),d=o("e1c6"),M=o("6923"),h=o("fba3"),f=o("33b2"),z=o("e45b"),O=o("8d53"),A=o("302f"),m=function(){function e(e,t,o){this.viewRegistry=e,this.targetKind=t,this.postprocessors=o}return e.prototype.decorate=function(e,t){return O.isThunk(e)?e:this.postprocessors.reduce(function(e,o){return o.decorate(e,t)},e)},e.prototype.renderElement=function(e,t){var o=this.viewRegistry.get(e.type),n=o.render(e,this,t);return n?this.decorate(n,e):void 0},e.prototype.renderChildren=function(e,t){var o=this;return e.children.map(function(e){return o.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=m;var v=function(){function e(){this.patcher=s.init(this.createModules())}return e.prototype.createModules=function(){return[c.propsModule,p.attributesModule,b.classModule,l.styleModule,u.eventListenersModule]},e=n([d.injectable(),i("design:paramtypes",[])],e),e}();t.PatcherProvider=v;var g=function(){function e(e,t,o){var n=this;this.onWindowResize=function(e){var t=document.getElementById(n.options.baseDiv);if(null!==t){var o=n.getBoundsInPage(t);n.actiondispatcher.dispatch(new f.InitializeCanvasBoundsAction(o))}},this.renderer=e("main",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){var o=this;this.logger.log(this,"rendering",e);var n=a.html("div",{id:this.options.baseDiv},this.renderer.renderElement(e));if(void 0!==this.lastVDOM){var i=this.hasFocus();z.copyClassesFromVNode(this.lastVDOM,n),this.lastVDOM=this.patcher.call(this,this.lastVDOM,n),this.restoreFocus(i)}else if("undefined"!==typeof document){var r=document.getElementById(this.options.baseDiv);null!==r?("undefined"!==typeof window&&window.addEventListener("resize",function(){o.onWindowResize(n)}),z.copyClassesFromElement(r,n),z.setClass(n,this.options.baseClass,!0),this.lastVDOM=this.patcher.call(this,r,n)):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 o=t.elm;o&&"function"===typeof o.focus&&o.focus()}}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),o=h.getWindowScroll();return{x:t.left+o.x,y:t.top+o.y,width:t.width,height:t.height}},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([d.inject(M.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actiondispatcher",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.IVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.ModelViewer=g;var y=function(){function e(e,t,o){this.hiddenRenderer=e("hidden",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){var o;if(this.logger.log(this,"rendering hidden"),e.type===A.EMPTY_ROOT.type)o=a.html("div",{id:this.options.hiddenDiv});else{var n=this.hiddenRenderer.renderElement(e);n&&z.setAttr(n,"opacity",0),o=a.html("div",{id:this.options.hiddenDiv},n)}if(void 0!==this.lastHiddenVDOM)z.copyClassesFromVNode(this.lastHiddenVDOM,o),this.lastHiddenVDOM=this.patcher.call(this,this.lastHiddenVDOM,o);else{var i=document.getElementById(this.options.hiddenDiv);null===i?(i=document.createElement("div"),document.body.appendChild(i)):z.copyClassesFromElement(i,o),z.setClass(o,this.options.baseClass,!0),z.setClass(o,this.options.hiddenClass,!0),this.lastHiddenVDOM=this.patcher.call(this,i,o)}this.hiddenRenderer.postUpdate(t)},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.HiddenVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.HiddenModelViewer=y;var q=function(){function e(e,t,o){this.modelRendererFactory=e,this.popupRenderer=this.modelRendererFactory("popup",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){this.logger.log(this,"rendering popup",e);var o,n=e.type===A.EMPTY_ROOT.type;if(n)o=a.html("div",{id:this.options.popupDiv});else{var i=e.canvasBounds,r={top:i.y+"px",left:i.x+"px"};o=a.html("div",{id:this.options.popupDiv,style:r},this.popupRenderer.renderElement(e))}if(void 0!==this.lastPopupVDOM)z.copyClassesFromVNode(this.lastPopupVDOM,o),z.setClass(o,this.options.popupClosedClass,n),this.lastPopupVDOM=this.patcher.call(this,this.lastPopupVDOM,o);else if("undefined"!==typeof document){var s=document.getElementById(this.options.popupDiv);null===s?(s=document.createElement("div"),document.body.appendChild(s)):z.copyClassesFromElement(s,o),z.setClass(o,this.options.popupClass,!0),z.setClass(o,this.options.popupClosedClass,n),this.lastPopupVDOM=this.patcher.call(this,s,o)}this.popupRenderer.postUpdate(t)},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.PopupVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.PopupModelViewer=q},"2b54":function(e,t,o){"use strict";var n=o("e7ed"),i=o.n(n);i.a},"2c63":function(e,t,o){e.exports=o("dc14")},"2cac":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e34e"),i=o("cf81"),r=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new n.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,o){"use strict";o("6762"),o("2fdb");t["a"]={data:function(){return{ellipsed:[]}},methods:{tooltipIt:function(e,t){e.target.offsetWidth=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},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 a=o("e1c6"),s=o("6923"),c=o("9757"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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}},i([a.inject(s.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),t=i([a.injectable()],t),t}(c.SystemCommand);t.ModelRequestCommand=p},3:function(e,t){},3022:function(e,t,o){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},n=0;n=r)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}}),c=n[o];o=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),O(o)?n.showHidden=o:o&&t._extend(n,o),q(n.showHidden)&&(n.showHidden=!1),q(n.depth)&&(n.depth=2),q(n.colors)&&(n.colors=!1),q(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),u(n,e,n.depth)}function c(e,t){var o=s.styles[t];return o?"["+s.colors[o][0]+"m"+e+"["+s.colors[o][1]+"m":e}function p(e,t){return e}function l(e){var t={};return e.forEach(function(e,o){t[e]=!0}),t}function u(e,o,n){if(e.customInspect&&o&&L(o.inspect)&&o.inspect!==t.inspect&&(!o.constructor||o.constructor.prototype!==o)){var i=o.inspect(n,e);return g(i)||(i=u(e,i,n)),i}var r=b(e,o);if(r)return r;var a=Object.keys(o),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(o)),w(o)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(o);if(0===a.length){if(L(o)){var c=o.name?": "+o.name:"";return e.stylize("[Function"+c+"]","special")}if(_(o))return e.stylize(RegExp.prototype.toString.call(o),"regexp");if(R(o))return e.stylize(Date.prototype.toString.call(o),"date");if(w(o))return d(o)}var p,O="",A=!1,m=["{","}"];if(z(o)&&(A=!0,m=["[","]"]),L(o)){var v=o.name?": "+o.name:"";O=" [Function"+v+"]"}return _(o)&&(O=" "+RegExp.prototype.toString.call(o)),R(o)&&(O=" "+Date.prototype.toUTCString.call(o)),w(o)&&(O=" "+d(o)),0!==a.length||A&&0!=o.length?n<0?_(o)?e.stylize(RegExp.prototype.toString.call(o),"regexp"):e.stylize("[Object]","special"):(e.seen.push(o),p=A?M(e,o,n,s,a):a.map(function(t){return h(e,o,n,s,t,A)}),e.seen.pop(),f(p,O,m)):m[0]+O+m[1]}function b(e,t){if(q(t))return e.stylize("undefined","undefined");if(g(t)){var o="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(o,"string")}return v(t)?e.stylize(""+t,"number"):O(t)?e.stylize(""+t,"boolean"):A(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function M(e,t,o,n,i){for(var r=[],a=0,s=t.length;a-1&&(s=r?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),q(a)){if(r&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e,t,o){var n=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?o[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+o[1]:o[0]+t+" "+e.join(", ")+" "+o[1]}function z(e){return Array.isArray(e)}function O(e){return"boolean"===typeof e}function A(e){return null===e}function m(e){return null==e}function v(e){return"number"===typeof e}function g(e){return"string"===typeof e}function y(e){return"symbol"===typeof e}function q(e){return void 0===e}function _(e){return W(e)&&"[object RegExp]"===S(e)}function W(e){return"object"===typeof e&&null!==e}function R(e){return W(e)&&"[object Date]"===S(e)}function w(e){return W(e)&&("[object Error]"===S(e)||e instanceof Error)}function L(e){return"function"===typeof e}function C(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function S(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(o){if(q(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||""),o=o.toUpperCase(),!a[o])if(new RegExp("\\b"+o+"\\b","i").test(r)){var n=e.pid;a[o]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",o,n,e)}}else a[o]=function(){};return a[o]},t.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=z,t.isBoolean=O,t.isNull=A,t.isNullOrUndefined=m,t.isNumber=v,t.isString=g,t.isSymbol=y,t.isUndefined=q,t.isRegExp=_,t.isObject=W,t.isDate=R,t.isError=w,t.isFunction=L,t.isPrimitive=C,t.isBuffer=o("d60a");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=o("28a0"),t._extend=function(e,t){if(!t||!W(t))return e;var o=Object.keys(t),n=o.length;while(n--)e[o[n]]=t[o[n]];return e};var B="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(e,t){if(!e){var o=new Error("Promise was rejected with a falsy value");o.reason=e,e=o}return t(e)}function P(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function o(){for(var o=[],n=0;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864"),l=o("3a92"),u=function(){function e(){}return e.prototype.createElement=function(e,t){var o;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof l.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");o=n}else o=new l.SChildElement;return this.initializeChild(o,e,t)},e.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var o=this.registry.get(e.type,void 0);if(!(o instanceof l.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=o}else t=new l.SModelRoot;return this.initializeRoot(t,e)},e.prototype.createSchema=function(e){var t=this,o={};for(var n in e)if(!this.isReserved(e,n)){var i=e[n];"function"!==typeof i&&(o[n]=i)}return e instanceof l.SParentElement&&(o["children"]=e.children.map(function(e){return t.createSchema(e)})),o},e.prototype.initializeElement=function(e,t){for(var o in t)if(!this.isReserved(e,o)){var n=t[o];"function"!==typeof n&&(e[o]=n)}return e},e.prototype.isReserved=function(e,t){if(["children","parent","index"].indexOf(t)>=0)return!0;var o=e;do{var n=Object.getOwnPropertyDescriptor(o,t);if(void 0!==n)return void 0!==n.get;o=Object.getPrototypeOf(o)}while(o);return!1},e.prototype.initializeParent=function(e,t){var o=this;return this.initializeElement(e,t),l.isParent(t)&&(e.children=t.children.map(function(t){return o.createElement(t,e)})),e},e.prototype.initializeChild=function(e,t,o){return this.initializeParent(e,t),void 0!==o&&(e.parent=o),e},e.prototype.initializeRoot=function(e,t){return this.initializeParent(e,t),e.index.add(e),e},i([s.inject(c.TYPES.SModelRegistry),r("design:type",b)],e.prototype,"registry",void 0),e=i([s.injectable()],e),e}();t.SModelFactory=u,t.EMPTY_ROOT=Object.freeze({type:"NONE",id:"EMPTY"});var b=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){var t=o.getDefaultFeatures(e.constr);if(!t&&e.features&&e.features.enable&&(t=[]),t){var n=d(t,e.features);o.register(e.type,function(){var t=new e.constr;return t.features=n,t})}else o.register(e.type,function(){return new e.constr})}),o}return n(t,e),t.prototype.getDefaultFeatures=function(e){var t=e;do{var o=t.DEFAULT_FEATURES;if(o)return o;t=Object.getPrototypeOf(t)}while(t)},t=i([s.injectable(),a(0,s.multiInject(c.TYPES.SModelElementRegistration)),a(0,s.optional()),r("design:paramtypes",[Array])],t),t}(p.FactoryRegistry);function d(e,t){var o=new Set(e);if(t&&t.enable)for(var n=0,i=t.enable;n= 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;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},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 a=o("e1c6"),s=o("6923"),c=o("3864"),p=o("dd02"),l=o("66f9"),u=o("da84"),b=o("4b75"),d=o("ac2a"),M=function(e){function t(){var t=e.call(this)||this;return t.register(u.VBoxLayouter.KIND,new u.VBoxLayouter),t.register(b.HBoxLayouter.KIND,new b.HBoxLayouter),t.register(d.StackLayouter.KIND,new d.StackLayouter),t}return n(t,e),t}(c.InstanceRegistry);t.LayoutRegistry=M;var h=function(){function e(){}return e.prototype.layout=function(e){new f(e,this.layoutRegistry,this.logger).layout()},i([a.inject(s.TYPES.LayoutRegistry),r("design:type",M)],e.prototype,"layoutRegistry",void 0),i([a.inject(s.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),e=i([a.injectable()],e),e}();t.Layouter=h;var f=function(){function e(e,t,o){var n=this;this.element2boundsData=e,this.layoutRegistry=t,this.log=o,this.toBeLayouted=[],e.forEach(function(e,t){l.isLayoutContainer(t)&&n.toBeLayouted.push(t)})}return e.prototype.getBoundsData=function(e){var t=this.element2boundsData.get(e),o=e.bounds;return l.isLayoutContainer(e)&&this.toBeLayouted.indexOf(e)>=0&&(o=this.doLayout(e)),t||(t={bounds:o,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 o=this.layoutRegistry.get(e.layout);o&&o.layout(e,this);var n=this.element2boundsData.get(e);return void 0!==n&&void 0!==n.bounds?n.bounds:(this.log.error(e,"Layout failed"),p.EMPTY_BOUNDS)},e}();t.StatefulLayouter=f},"33b2":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("dd02"),l=o("3a92"),u=o("9757"),b=o("fba3"),d=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof l.SModelRoot&&!p.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 o=this.getBoundsInPage(e);p.almostEquals(o.x,t.x)&&p.almostEquals(o.y,t.y)&&p.almostEquals(o.width,t.width)&&p.almostEquals(o.height,t.width)||this.actionDispatcher.dispatch(new M(o))}this.rootAndVnode=void 0}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),o=b.getWindowScroll();return{x:t.left+o.x,y:t.top+o.y,width:t.width,height:t.height}},i([s.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=i([s.injectable()],e),e}();t.CanvasBoundsInitializer=d;var M=function(){function e(t){this.newCanvasBounds=t,this.kind=e.KIND}return e.KIND="initializeCanvasBounds",e}();t.InitializeCanvasBoundsAction=M;var h=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(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=M.KIND,t=i([s.injectable(),a(0,s.inject(c.TYPES.Action)),r("design:paramtypes",[M])],t),t}(u.SystemCommand);t.InitializeCanvasBoundsCommand=h},3585:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("dd02"),a=o("66f9"),s=o("1978"),c=o("4c18"),p=o("e4f0"),l=o("a0af"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.routingPoints=[],t}return n(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}(i.SChildElement);function b(e){return e.hasFeature(t.connectableFeature)&&e.canConnect}function d(e,t){void 0===t&&(t=e.routingPoints);var o=M(t),n=e;while(n instanceof i.SChildElement){var r=n.parent;o=r.localToParent(o),n=r}return o}function M(e){for(var t={x:NaN,y:NaN,width:0,height:0},o=0,n=e;ot.x+t.width&&(t.width=i.x-t.x),i.yt.y+t.height&&(t.height=i.y-t.y))}return t}t.SRoutableElement=u,t.connectableFeature=Symbol("connectableFeature"),t.isConnectable=b,t.getAbsoluteRouteBounds=d,t.getRouteBounds=M;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.strokeWidth=0,t}return n(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}(a.SShapeElement);t.SConnectableElement=h;var f=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 n(t,e),t.prototype.hasFeature=function(e){return-1!==t.DEFAULT_FEATURES.indexOf(e)},t.DEFAULT_FEATURES=[c.selectFeature,l.moveFeature,p.hoverFeedbackFeature],t}(i.SChildElement);t.SRoutingHandle=f;var z=function(e){function t(){var t=e.call(this)||this;return t.type="dangling-anchor",t.size={width:0,height:0},t}return n(t,e),t.DEFAULT_FEATURES=[s.deletableFeature],t}(h);t.SDanglingAnchor=z,t.edgeInProgressID="edge-in-progress",t.edgeInProgressTargetHandleID=t.edgeInProgressID+"-target-anchor"},"359b":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("e45b"),a=o("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){for(var o=i.html("div",null,t.renderChildren(e)),n=0,a=e.classes;n=0?e.type.substring(0,t):e.type}function s(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 o=0,n=e.children;o=0;r--)e=n[r].parentToLocal(e)}return e}function b(e,t,o){var n=u(e,t,o),i=u({x:e.x+e.width,y:e.y+e.height},t,o);return{x:n.x,y:n.y,width:i.x-n.x,height:i.y-n.y}}t.registerModelElement=r,t.getBasicType=a,t.getSubType=s,t.findElement=c,t.findParent=p,t.findParentByFeature=l,t.translatePoint=u,t.translateBounds=b},3672:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("842c"),a=o("be02"),s=o("064a"),c=o("3585"),p=o("218d"),l=o("1978"),u=o("cd26"),b=o("1254"),d=o("a5f4"),M=o("61d8");t.edgeEditModule=new n.ContainerModule(function(e,t,o){var n={bind:e,isBound:o};r.configureCommand(n,d.SwitchEditModeCommand),r.configureCommand(n,M.ReconnectCommand),r.configureCommand(n,l.DeleteElementCommand),s.configureModelElement(n,"dangling-anchor",c.SDanglingAnchor,p.EmptyGroupView)}),t.labelEditModule=new n.ContainerModule(function(e,t,o){e(i.TYPES.MouseListener).to(u.EditLabelMouseListener),e(i.TYPES.KeyListener).to(u.EditLabelKeyListener),r.configureCommand({bind:e,isBound:o},u.ApplyLabelEditCommand)}),t.labelEditUiModule=new n.ContainerModule(function(e,t,o){var n={bind:e,isBound:o};a.configureActionHandler(n,u.EditLabelAction.KIND,b.EditLabelActionHandler),e(b.EditLabelUI).toSelf().inSingletonScope(),e(i.TYPES.IUIExtension).toService(b.EditLabelUI)})},"36e4":function(e,t,o){},"37a9":function(e,t,o){"use strict";var n=o("ddfc"),i=o.n(n);i.a},3864:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("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 o=this.elements.get(e);return o?new o(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.ProviderRegistry=r;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,t){var o=this.elements.get(e);return o?o(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.FactoryRegistry=a;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){var t=this.elements.get(e);return t||this.missing(e)},e.prototype.missing=function(e){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.InstanceRegistry=s;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 o=this.elements.get(e);void 0!==o?o.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=n([i.injectable()],e),e}();t.MultiInstanceRegistry=c},"38e8":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("66f9"),r=o("7d36"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t}return n(t,e),t.DEFAULT_FEATURES=[i.boundsFeature,i.layoutableChildFeature,r.fadeFeature],t}(i.SShapeElement);t.SButton=a},"393a":function(e,t,o){"use strict";var n="http://www.w3.org/2000/svg",i=["hook","on","style","class","props","attrs","dataset"],r=Array.prototype.slice;function a(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||null===e||void 0===e}function s(e,t,o,n){for(var i={ns:t},r=0,a=n.length;r0?l(c.slice(0,p),c.slice(p+1),e[c]):i[c]||l(o,c,e[c])}return i;function l(e,t,o){var n=i[e]||(i[e]={});n[t]=o}}function c(e,t,o,n,i,r){if(i.selector&&(n+=i.selector),i.classNames){var c=i.classNames;n=n+"."+(Array.isArray(c)?c.join("."):c.replace(/\s+/g,"."))}return{sel:n,data:s(i,e,t,o),children:r.map(function(e){return a(e)?{text:e}:e}),key:i.key}}function p(e,t,o,n,i,r){var a;if("function"===typeof n)a=n(i,r);else if(n&&"function"===typeof n.view)a=n.view(i,r);else{if(!n||"function"!==typeof n.render)throw"JSX tag must be either a string, a function or an object with 'view' or 'render' methods";a=n.render(i,r)}return a.key=i.key,a}function l(e,t,o){for(var n=t,i=e.length;n3||!Array.isArray(s))&&(s=r.call(arguments,2)),b(e,t||"props",o||i,n,a,s)}}e.exports={html:d(void 0),svg:d(n,"attrs"),JSX:d}},"3a7c":function(e,t,o){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===z(e)}function i(e){return"boolean"===typeof e}function r(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function c(e){return"string"===typeof e}function p(e){return"symbol"===typeof e}function l(e){return void 0===e}function u(e){return"[object RegExp]"===z(e)}function b(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===z(e)}function M(e){return"[object Error]"===z(e)||e instanceof Error}function h(e){return"function"===typeof e}function f(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function z(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=i,t.isNull=r,t.isNullOrUndefined=a,t.isNumber=s,t.isString=c,t.isSymbol=p,t.isUndefined=l,t.isRegExp=u,t.isObject=b,t.isDate=d,t.isError=M,t.isFunction=h,t.isPrimitive=f,t.isBuffer=o("b639").Buffer.isBuffer},"3a92":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd02"),r=o("e629"),a=function(){function e(){}return Object.defineProperty(e.prototype,"root",{get:function(){var e=this;while(e){if(e instanceof l)return e;e=e instanceof p?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 s(e){var t=e.children;return void 0!==t&&t.constructor===Array}t.SModelElement=a,t.isParent=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return n(t,e),t.prototype.add=function(e,t){var o=this.children;if(void 0===t)o.push(e);else{if(t<0||t>this.children.length)throw new Error("Child index "+t+" out of bounds (0.."+o.length+")");o.splice(t,0,e)}e.parent=this,this.index.add(e)},t.prototype.remove=function(e){var t=this.children,o=t.indexOf(e);if(o<0)throw new Error("No such child "+e.id);t.splice(o,1),delete e.parent,this.index.remove(e)},t.prototype.removeAll=function(e){var t=this,o=this.children;if(void 0!==e){for(var n=o.length-1;n>=0;n--)if(e(o[n])){var i=o.splice(n,1)[0];delete i.parent,this.index.remove(i)}}else o.forEach(function(e){delete e.parent,t.index.remove(e)}),o.splice(0,o.length)},t.prototype.move=function(e,t){var o=this.children,n=o.indexOf(e);if(-1===n)throw new Error("No such child "+e.id);if(t<0||t>o.length-1)throw new Error("Child index "+t+" out of bounds (0.."+o.length+")");o.splice(n,1),o.splice(t,0,e)},t.prototype.localToParent=function(e){return i.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t.prototype.parentToLocal=function(e){return i.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t}(a);t.SParentElement=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(c);t.SChildElement=p;var l=function(e){function t(t){void 0===t&&(t=new d);var o=e.call(this)||this;return o.canvasBounds=i.EMPTY_BOUNDS,Object.defineProperty(o,"index",{value:t,writable:!1}),o}return n(t,e),t}(c);t.SModelRoot=l;var u="0123456789abcdefghijklmnopqrstuvwxyz";function b(e){void 0===e&&(e=8);for(var t="",o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3a92"),l=o("9757"),u=o("3585"),b=function(){function e(t){this.elementIDs=t,this.kind=e.KIND}return e.KIND="bringToFront",e}();t.BringToFrontAction=b;var d=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.selected=[],o}return n(t,e),t.prototype.execute=function(e){var t=this,o=e.root;return this.action.elementIDs.forEach(function(e){var n=o.index.getById(e);n instanceof u.SRoutableElement&&(n.source&&t.addToSelection(n.source),n.target&&t.addToSelection(n.target)),n instanceof p.SChildElement&&t.addToSelection(n),t.includeConnectedEdges(n)}),this.redo(e)},t.prototype.includeConnectedEdges=function(e){var t=this;if(e instanceof u.SConnectableElement&&(e.incomingEdges.forEach(function(e){return t.addToSelection(e)}),e.outgoingEdges.forEach(function(e){return t.addToSelection(e)})),e instanceof p.SParentElement)for(var o=0,n=e.children;o=0;t--){var o=this.selected[t],n=o.element;n.parent.move(n,o.index)}return e.root},t.prototype.redo=function(e){for(var t=0;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("3a92"),l=o("6923"),u=o("0d7a"),b=o("e45b"),d=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 o=t.target,n=e.index;while(o){if(o.id){var i=n.getById(this.domHelper.findSModelIdByDOMElement(o));if(void 0!==i)return i}o=o.parentNode}},e.prototype.handleEvent=function(e,t,o){var n=this;this.focusOnMouseEvent(e,t);var i=this.getTargetElement(t,o);if(i){var r=this.mouseListeners.map(function(t){return t[e].apply(t,[i,o])}).reduce(function(e,t){return e.concat(t)});if(r.length>0){o.preventDefault();for(var a=0,s=r;a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}},s=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("9757"),l=o("6923"),u=o("33b2"),b=function(){function e(t,o){void 0===o&&(o=""),this.options=t,this.requestId=o,this.kind=e.KIND}return e.create=function(t){return new e(t,c.generateRequestId())},e.KIND="requestModel",e}();t.RequestModelAction=b;var d=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.responseId=o,this.kind=e.KIND}return e.KIND="setModel",e}();t.SetModelAction=d;var M=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(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===u.InitializeCanvasBoundsCommand.KIND}},enumerable:!0,configurable:!0}),t.KIND=d.KIND,t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[d])],t),t}(p.ResetCommand);t.SetModelCommand=M},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,o){e.exports=o("faa1").EventEmitter},"42be":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("6923"),l=o("26ad"),u=function(){function e(){this.kind=b.KIND}return e}();t.CommitModelAction=u;var b=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(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,o){var n=this,i=this.modelSource.commitModel(e);return i instanceof Promise?i.then(function(e){return o&&(n.originalModel=e),t}):(o&&(this.originalModel=i),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",i([s.inject(p.TYPES.ModelSource),r("design:type",l.ModelSource)],t.prototype,"modelSource",void 0),t=i([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[u])],t),t}(c.SystemCommand);t.CommitModelCommand=b},"42d6":function(e,t,o){"use strict";function n(e){for(var o in e)t.hasOwnProperty(o)||(t[o]=e[o])}Object.defineProperty(t,"__esModule",{value:!0}),n(o("510b")),n(o("0fb6")),n(o("be02")),n(o("c661")),n(o("538c")),n(o("c146")),n(o("987d")),n(o("9757")),n(o("842c")),n(o("5e9c")),n(o("160b")),n(o("33b2")),n(o("3f0a")),n(o("302f")),n(o("3623")),n(o("3a92")),n(o("ddee")),n(o("1590")),n(o("6176")),n(o("4c95c")),n(o("1417")),n(o("3b4c")),n(o("8d53")),n(o("064a")),n(o("8794")),n(o("65d1")),n(o("29fa")),n(o("a190")),n(o("e45b")),n(o("6923"));var i=o("8122");t.defaultModule=i.default,n(o("42f7")),n(o("61bf")),n(o("320b")),n(o("66f9")),n(o("da84")),n(o("4b75")),n(o("ac2a")),n(o("8e97")),n(o("70d9")),n(o("38e8")),n(o("a406")),n(o("0a28")),n(o("80b5")),n(o("1cc1")),n(o("3c83")),n(o("1e31")),n(o("9d6c")),n(o("779b")),n(o("ac57")),n(o("ea38")),n(o("3672")),n(o("1978")),n(o("cd26")),n(o("1254")),n(o("a5f4")),n(o("cc26")),n(o("61d8")),n(o("4741")),n(o("9964")),n(o("19b5")),n(o("1cd9")),n(o("7faf")),n(o("5d19")),n(o("e7fa")),n(o("7d36")),n(o("f4cb")),n(o("e4f0")),n(o("7f73")),n(o("755f")),n(o("e576")),n(o("a0af")),n(o("559d")),n(o("af44")),n(o("e1cb")),n(o("b485")),n(o("1f89")),n(o("869e")),n(o("b7b8")),n(o("9a1f")),n(o("46cc")),n(o("3585")),n(o("ab71")),n(o("d8f5")),n(o("168d")),n(o("8d9d")),n(o("4c18")),n(o("bcbd")),n(o("c20e")),n(o("d084")),n(o("cf61")),n(o("ed4f")),n(o("5eb6")),n(o("cf98")),n(o("3b62")),n(o("c444")),n(o("fe37")),n(o("3ada"));var r=o("5530");t.graphModule=r.default;var a=o("72dd");t.boundsModule=a.default;var s=o("54f8");t.buttonModule=s.default;var c=o("d14a");t.commandPaletteModule=c.default;var p=o("5884");t.contextMenuModule=p.default;var l=o("7bae3");t.decorationModule=l.default;var u=o("1e31");t.edgeLayoutModule=u.default;var b=o("04c2");t.expandModule=b.default;var d=o("9f8d");t.exportModule=d.default;var M=o("9811");t.fadeModule=M.default;var h=o("c95e");t.hoverModule=h.default;var f=o("520d");t.moveModule=f.default;var z=o("0483");t.openModule=z.default;var O=o("b7ca");t.routingModule=O.default;var A=o("c4e6");t.selectModule=A.default;var m=o("3b74");t.undoRedoModule=m.default;var v=o("cc3e");t.updateModule=v.default;var g=o("1e19");t.viewportModule=g.default;var y=o("6f35");t.zorderModule=y.default,n(o("dfc0")),n(o("47b7")),n(o("6bb9")),n(o("44c1")),n(o("9ad4")),n(o("359b")),n(o("87fa")),n(o("218d")),n(o("42be")),n(o("945d")),n(o("cb6e")),n(o("85ed")),n(o("26ad")),n(o("484b"));var q=o("8e65");t.modelSourceModule=q.default,n(o("fba3")),n(o("0be1")),n(o("dd02")),n(o("7b39")),n(o("9e2e")),n(o("3864"))},"42f7":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=o("e1c6"),p=o("510b"),l=o("9757"),u=o("6923"),b=o("66f9"),d=function(){function e(t){this.bounds=t,this.kind=e.KIND}return e.KIND="setBounds",e}();t.SetBoundsAction=d;var M=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.requestId=o,this.kind=e.KIND}return e.create=function(t){return new e(t,p.generateRequestId())},e.KIND="requestBounds",e}();t.RequestBoundsAction=M;var h=function(){function e(t,o,n,i){void 0===i&&(i=""),this.bounds=t,this.revision=o,this.alignments=n,this.responseId=i,this.kind=e.KIND}return e.KIND="computedBounds",e}();t.ComputedBoundsAction=h;var f=function(){function e(){this.kind=e.KIND}return e.KIND="layout",e}();t.LayoutAction=f;var z=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.bounds=[],o}return n(t,e),t.prototype.execute=function(e){var t=this;return this.action.bounds.forEach(function(o){var n=e.root.index.getById(o.elementId);n&&b.isBoundsAware(n)&&t.bounds.push({element:n,oldBounds:n.bounds,newPosition:o.newPosition,newSize:o.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=i(i({},e.newPosition),e.newSize):e.element.bounds=i({x:e.element.bounds.x,y:e.element.bounds.y},e.newSize)}),e.root},t.KIND=d.KIND,t=r([c.injectable(),s(0,c.inject(u.TYPES.Action)),a("design:paramtypes",[d])],t),t}(l.SystemCommand);t.SetBoundsCommand=z;var O=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(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===h.KIND}},enumerable:!0,configurable:!0}),t.KIND=M.KIND,t=r([c.injectable(),s(0,c.inject(u.TYPES.Action)),a("design:paramtypes",[M])],t),t}(l.HiddenCommand);t.RequestBoundsCommand=O},"44c1":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("8122"),i=o("8e65"),r=o("72dd"),a=o("54f8"),s=o("d14a"),c=o("5884"),p=o("7bae3"),l=o("1e31"),u=o("3672"),b=o("04c2"),d=o("9f8d"),M=o("9811"),h=o("c95e"),f=o("520d"),z=o("0483"),O=o("b7ca"),A=o("c4e6"),m=o("3b74"),v=o("cc3e"),g=o("1e19"),y=o("6f35");function q(e,t){var o=[n.default,i.default,r.default,a.default,s.default,c.default,p.default,u.edgeEditModule,l.default,b.default,d.default,M.default,h.default,u.labelEditModule,u.labelEditUiModule,f.default,z.default,O.default,A.default,m.default,v.default,g.default,y.default];if(t&&t.exclude)for(var q=0,_=t.exclude;q<_.length;q++){var W=_[q],R=o.indexOf(W);R>=0&&o.splice(R,1)}e.load.apply(e,o)}t.loadDefaultModules=q},"451f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4"),i=o("1979"),r=function(e,t){var o=e.parentRequest;return null!==o&&(!!t(o)||r(o,t))};t.traverseAncerstors=r;var a=function(e){return function(t){var o=function(o){return null!==o&&null!==o.target&&o.target.matchesTag(e)(t)};return o.metaData=new i.Metadata(e,t),o}};t.taggedConstraint=a;var s=a(n.NAMED_TAG);t.namedConstraint=s;var c=function(e){return function(t){var o=null;if(null!==t){if(o=t.bindings[0],"string"===typeof e){var n=o.serviceIdentifier;return n===e}var i=t.bindings[0].implementationType;return e===i}return!1}};t.typeConstraint=c},4681:function(e,t,o){"use strict";var n=o("966d");function i(e,t){var o=this,i=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return i||r?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted||(o._writableState.errorEmitted=!0,n.nextTick(a,o,e)):n.nextTick(a,o,e):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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:r}},"46cc":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o0){var n=e.routingPoints.slice();if(this.cleanupRoutingPoints(e,n,!1,!0),n.length>0)return n.map(function(e,t){return i({kind:"linear",pointIndex:t},e)})}var r=this.getOptions(e),a=this.calculateDefaultCorners(e,t,o,r);return a.map(function(e){return i({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 o=0;o0&&Math.abs(o-e[t-1].x)=0&&t0&&Math.abs(o-e[t-1].y)=0&&t=0;--c){if(!a.includes(r.bounds,t[c]))break;t.splice(c,1),o&&this.removeHandle(e,c)}if(t.length>=2){var p=this.getOptions(e);for(c=t.length-2;c>=0;--c)a.manhattanDistance(t[c],t[c+1])t?--e.pointIndex:e.pointIndex===t&&o.push(e))}),o.forEach(function(t){return e.remove(t)})},t.prototype.addAdditionalCorner=function(e,t,o,n,i){if(0!==t.length){var r,p="source"===o.kind?t[0]:t[t.length-1],l="source"===o.kind?0:t.length,u=l-("source"===o.kind?1:0);if(t.length>1)r=0===l?a.almostEquals(t[0].x,t[1].x):a.almostEquals(t[t.length-1].x,t[t.length-2].x);else{var b=n.getNearestSide(p);r=b===s.Side.TOP||b===s.Side.BOTTOM}if(r){if(p.yo.get(s.Side.BOTTOM).y){var d={x:o.get(s.Side.TOP).x,y:p.y};t.splice(l,0,d),i&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=u&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",u))}}else if(p.xo.get(s.Side.RIGHT).x){d={x:p.x,y:o.get(s.Side.LEFT).y};t.splice(l,0,d),i&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=u&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",u))}}},t.prototype.manhattanify=function(e,t){for(var o=1;o0)return r;var a=this.getBestConnectionAnchors(t,o,n,i),c=a.source,p=a.target,l=[],u=o.get(c),b=n.get(p);switch(c){case s.Side.RIGHT:switch(p){case s.Side.BOTTOM:l.push({x:b.x,y:u.y});break;case s.Side.TOP:l.push({x:b.x,y:u.y});break;case s.Side.RIGHT:l.push({x:Math.max(u.x,b.x)+1.5*i.standardDistance,y:u.y}),l.push({x:Math.max(u.x,b.x)+1.5*i.standardDistance,y:b.y});break;case s.Side.LEFT:b.y!==u.y&&(l.push({x:(u.x+b.x)/2,y:u.y}),l.push({x:(u.x+b.x)/2,y:b.y}));break}break;case s.Side.LEFT:switch(p){case s.Side.BOTTOM:l.push({x:b.x,y:u.y});break;case s.Side.TOP:l.push({x:b.x,y:u.y});break;default:b=n.get(s.Side.RIGHT),b.y!==u.y&&(l.push({x:(u.x+b.x)/2,y:u.y}),l.push({x:(u.x+b.x)/2,y:b.y}));break}break;case s.Side.TOP:switch(p){case s.Side.RIGHT:b.x-u.x>0?(l.push({x:u.x,y:u.y-i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:u.y-i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.LEFT:b.x-u.x<0?(l.push({x:u.x,y:u.y-i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:u.y-i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.TOP:l.push({x:u.x,y:Math.min(u.y,b.y)-1.5*i.standardDistance}),l.push({x:b.x,y:Math.min(u.y,b.y)-1.5*i.standardDistance});break;case s.Side.BOTTOM:b.x!==u.x&&(l.push({x:u.x,y:(u.y+b.y)/2}),l.push({x:b.x,y:(u.y+b.y)/2}));break}break;case s.Side.BOTTOM:switch(p){case s.Side.RIGHT:b.x-u.x>0?(l.push({x:u.x,y:u.y+i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:u.y+i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.LEFT:b.x-u.x<0?(l.push({x:u.x,y:u.y+i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:u.y+i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;default:b=n.get(s.Side.TOP),b.x!==u.x&&(l.push({x:u.x,y:(u.y+b.y)/2}),l.push({x:b.x,y:(u.y+b.y)/2}));break}break}return l},t.prototype.getBestConnectionAnchors=function(e,t,o,n){var i=t.get(s.Side.RIGHT),r=o.get(s.Side.LEFT);if(r.x-i.x>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.LEFT};if(i=t.get(s.Side.LEFT),r=o.get(s.Side.RIGHT),i.x-r.x>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.RIGHT};if(i=t.get(s.Side.TOP),r=o.get(s.Side.BOTTOM),i.y-r.y>n.standardDistance)return{source:s.Side.TOP,target:s.Side.BOTTOM};if(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.TOP),r.y-i.y>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.TOP};if(i=t.get(s.Side.RIGHT),r=o.get(s.Side.TOP),r.x-i.x>.5*n.standardDistance&&r.y-i.y>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.TOP};if(r=o.get(s.Side.BOTTOM),r.x-i.x>.5*n.standardDistance&&i.y-r.y>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.BOTTOM};if(i=t.get(s.Side.LEFT),r=o.get(s.Side.BOTTOM),i.x-r.x>.5*n.standardDistance&&i.y-r.y>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.BOTTOM};if(r=o.get(s.Side.TOP),i.x-r.x>.5*n.standardDistance&&r.y-i.y>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.TOP};if(i=t.get(s.Side.TOP),r=o.get(s.Side.RIGHT),i.y-r.y>.5*n.standardDistance&&i.x-r.x>n.standardDistance)return{source:s.Side.TOP,target:s.Side.RIGHT};if(r=o.get(s.Side.LEFT),i.y-r.y>.5*n.standardDistance&&r.x-i.x>n.standardDistance)return{source:s.Side.TOP,target:s.Side.LEFT};if(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.RIGHT),r.y-i.y>.5*n.standardDistance&&i.x-r.x>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.RIGHT};if(r=o.get(s.Side.LEFT),r.y-i.y>.5*n.standardDistance&&r.x-i.x>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.LEFT};if(i=t.get(s.Side.TOP),r=o.get(s.Side.TOP),!a.includes(o.bounds,i)&&!a.includes(t.bounds,r))if(i.y-r.y<0){if(Math.abs(i.x-r.x)>(t.bounds.width+n.standardDistance)/2)return{source:s.Side.TOP,target:s.Side.TOP}}else if(Math.abs(i.x-r.x)>o.bounds.width/2)return{source:s.Side.TOP,target:s.Side.TOP};if(i=t.get(s.Side.RIGHT),r=o.get(s.Side.RIGHT),!a.includes(o.bounds,i)&&!a.includes(t.bounds,r))if(i.x-r.x>0){if(Math.abs(i.y-r.y)>(t.bounds.height+n.standardDistance)/2)return{source:s.Side.RIGHT,target:s.Side.RIGHT}}else if(Math.abs(i.y-r.y)>o.bounds.height/2)return{source:s.Side.RIGHT,target:s.Side.RIGHT};return i=t.get(s.Side.TOP),r=o.get(s.Side.RIGHT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(r=o.get(s.Side.LEFT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.RIGHT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(r=o.get(s.Side.LEFT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?{source:s.Side.RIGHT,target:s.Side.BOTTOM}:{source:s.Side.BOTTOM,target:s.Side.LEFT}):{source:s.Side.BOTTOM,target:s.Side.RIGHT}):{source:s.Side.TOP,target:s.Side.LEFT}):{source:s.Side.TOP,target:s.Side.RIGHT}},t.KIND="manhattan",t}(s.LinearEdgeRouter);t.ManhattanEdgeRouter=p},4741:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("3623"),r=o("9964"),a=o("e1c6"),s=function(){function e(t,o){this.expandIds=t,this.collapseIds=o,this.kind=e.KIND}return e.KIND="collapseExpand",e}();t.CollapseExpandAction=s;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 p=function(){function e(){}return e.prototype.buttonPressed=function(e){var t=i.findParentByFeature(e,r.isExpandable);return void 0!==t?[new s(t.expanded?[]:[t.id],t.expanded?[t.id]:[])]:[]},e.TYPE="button:expand",e=n([a.injectable()],e),e}();t.ExpandButtonHandler=p},"47b7":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("66f9"),a=o("779b"),s=o("1978"),c=o("cc26"),p=o("7d36"),l=o("e4f0"),u=o("a0af"),b=o("3585"),d=o("4c18"),M=o("3b62"),h=o("dd02"),f=o("e629"),z=function(e){function t(t){return void 0===t&&(t=new y),e.call(this,t)||this}return n(t,e),t}(M.ViewportRootElement);t.SGraph=z;var O=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 n(t,e),t.prototype.canConnect=function(e,t){return void 0===this.children.find(function(e){return e instanceof A})},t.DEFAULT_FEATURES=[b.connectableFeature,s.deletableFeature,d.selectFeature,r.boundsFeature,u.moveFeature,r.layoutContainerFeature,p.fadeFeature,l.hoverFeedbackFeature,l.popupFeature],t}(b.SConnectableElement);t.SNode=O;var A=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 n(t,e),t.DEFAULT_FEATURES=[b.connectableFeature,d.selectFeature,r.boundsFeature,p.fadeFeature,l.hoverFeedbackFeature],t}(b.SConnectableElement);t.SPort=A;var m=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 n(t,e),t.DEFAULT_FEATURES=[c.editFeature,s.deletableFeature,d.selectFeature,p.fadeFeature,l.hoverFeedbackFeature],t}(b.SRoutableElement);t.SEdge=m;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.alignment=h.ORIGIN_POINT,t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.alignFeature,r.layoutableChildFeature,a.edgeLayoutFeature,p.fadeFeature],t}(r.SShapeElement);t.SLabel=v;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.layoutContainerFeature,r.layoutableChildFeature,p.fadeFeature],t}(r.SShapeElement);t.SCompartment=g;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.outgoing=new Map,t.incoming=new Map,t}return n(t,e),t.prototype.add=function(t){if(e.prototype.add.call(this,t),t instanceof m){if(t.sourceId){var o=this.outgoing.get(t.sourceId);void 0===o?this.outgoing.set(t.sourceId,[t]):o.push(t)}if(t.targetId){var n=this.incoming.get(t.targetId);void 0===n?this.incoming.set(t.targetId,[t]):n.push(t)}}},t.prototype.remove=function(t){if(e.prototype.remove.call(this,t),t instanceof m){var o=this.outgoing.get(t.sourceId);if(void 0!==o){var n=o.indexOf(t);n>=0&&(1===o.length?this.outgoing.delete(t.sourceId):o.splice(n,1))}var i=this.incoming.get(t.targetId);if(void 0!==i){n=i.indexOf(t);n>=0&&(1===i.length?this.incoming.delete(t.targetId):i.splice(n,1))}}},t.prototype.getAttachedElements=function(e){var t=this;return new f.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;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("945d"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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=i([r.injectable()],t),t}(a.DiagramServer);t.WebSocketDiagramServer=s},"48f9":function(e,t,o){},"4a4f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4"),r=o("1979");function a(){return function(e,t,o){var a=new r.Metadata(i.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,e.constructor))throw new Error(n.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,e.constructor)}}t.postConstruct=a},"4b0d":function(e,t,o){"use strict";var n=o("2196"),i=o.n(n);i.a},"4b75":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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,o=arguments.length;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("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,o=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),o.forEach(function(t){return t.call(void 0,e)})},e=n([i.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("70d9"),r=new n.ContainerModule(function(e){e(i.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("dfc0"),a=new n.ContainerModule(function(e,t,o,n){n(i.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=a},"559d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=o("e1c6"),p=o("c146"),l=o("9757"),u=o("3a92"),b=o("3623"),d=o("6923"),M=o("3b4c"),h=o("e45b"),f=o("47b7"),z=o("42be"),O=o("dd02"),A=o("66f9"),m=o("ea38"),v=o("1978"),g=o("a5f4"),y=o("61d8"),q=o("3585"),_=o("168d"),W=o("779b"),R=o("4c18"),w=o("bcbd"),L=o("5eb6"),C=o("a0af"),S=function(){function e(e,t,o){void 0===t&&(t=!0),void 0===o&&(o=!1),this.moves=e,this.animate=t,this.finished=o,this.kind=E.KIND}return e}();t.MoveAction=S;var E=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.resolvedMoves=new Map,o.edgeMementi=[],o}var o;return n(t,e),o=t,t.prototype.execute=function(e){var t=this,o=e.root.index,n=new Map,i=new Map;return this.action.moves.forEach(function(e){var r=o.getById(e.elementId);if(r instanceof q.SRoutingHandle&&t.edgeRouterRegistry){var a=r.parent;if(a instanceof q.SRoutableElement){var s=t.resolveHandleMove(r,a,e);if(s){var c=n.get(a);c||(c=[],n.set(a,c)),c.push(s)}}}else if(r&&C.isLocateable(r)){var p=t.resolveElementMove(r,e);p&&(t.resolvedMoves.set(p.element.id,p),t.edgeRouterRegistry&&o.getAttachedElements(r).forEach(function(e){if(e instanceof q.SRoutableElement){var t=i.get(e),o=O.subtract(p.toPosition,p.fromPosition),n=t?O.linear(t,o,.5):o;i.set(e,n)}}))}}),this.doMove(n,i),this.action.animate?(this.undoMove(),new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,o){var n=o.fromPosition;if(!n){var i=this.edgeRouterRegistry.get(t.routerKind);n=i.getHandlePosition(t,i.route(t),e)}if(n)return{handle:e,fromPosition:n,toPosition:o.toPosition}},t.prototype.resolveElementMove=function(e,t){var o=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:o,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var o=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var n=o.edgeRouterRegistry.get(t.routerKind),i=n.takeSnapshot(t);n.applyHandleMoves(t,e);var r=n.takeSnapshot(t);o.edgeMementi.push({edge:t,before:i,after:r})}),t.forEach(function(t,n){if(!e.get(n)){var i=o.edgeRouterRegistry.get(n.routerKind),r=i.takeSnapshot(n);if(n.source&&n.target&&o.resolvedMoves.get(n.source.id)&&o.resolvedMoves.get(n.target.id))n.routingPoints=n.routingPoints.map(function(e){return O.add(e,t)});else{var a=R.isSelectable(n)&&n.selected;i.cleanupRoutingPoints(n,n.routingPoints,a,o.action.finished)}var s=i.takeSnapshot(n);o.edgeMementi.push({edge:n,before:r,after:s})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var o=e.edgeRouterRegistry.get(t.edge.routerKind);o.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!0),new x(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var n=this;if(!this.action.animate&&e instanceof o)return e.resolvedMoves.forEach(function(e,t){var o=n.resolvedMoves.get(t);o?o.toPosition=e.toPosition:n.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=n.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:n.edgeMementi.push(e)}),!0;if(e instanceof y.ReconnectCommand){var i=e.memento;if(i){var r=this.edgeMementi.find(function(e){return e.edge.id===i.edge.id});r?r.after=i.after:this.edgeMementi.push(i)}return!0}return!1},t.KIND="move",r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o=r([c.injectable(),s(0,c.inject(d.TYPES.Action)),a("design:paramtypes",[S])],t),t}(l.MergeableCommand);t.MoveCommand=E;var T=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementMoves=o,r.reverse=i,r}return n(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(o){t.reverse?o.element.position={x:(1-e)*o.toPosition.x+e*o.fromPosition.x,y:(1-e)*o.toPosition.y+e*o.fromPosition.y}:o.element.position={x:(1-e)*o.fromPosition.x+e*o.toPosition.x,y:(1-e)*o.fromPosition.y+e*o.toPosition.y}}),this.model},t}(p.Animation);t.MoveAnimation=T;var x=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.reverse=i,r.expanded=[],o.forEach(function(e){var t=r.reverse?e.after:e.before,o=r.reverse?e.before:e.after,n=t.routedPoints,i=o.routedPoints,a=Math.max(n.length,i.length);r.expanded.push({startExpandedRoute:r.growToSize(n,a),endExpandedRoute:r.growToSize(i,a),memento:e})}),r}return n(t,e),t.prototype.midPoint=function(e){var t=e.edge,o=e.edge.source,n=e.edge.target;return O.linear(b.translatePoint(O.center(o.bounds),o.parent,t.parent),b.translatePoint(O.center(n.bounds),n.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof q.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var o=e.memento;t.reverse?o.before.router.applySnapshot(o.edge,o.before):o.after.router.applySnapshot(o.edge,o.after)}):this.expanded.forEach(function(t){for(var o=[],n=1;n(a+p)*i)++p;a+=p;for(var l=0;l0?new S(i,!1,o):void 0}},t.prototype.snap=function(e,t,o){return o&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof q.SRoutableElement))return;var o=this.edgeRouterRegistry.get(t.routerKind),n=o.route(t);return o.getHandlePosition(t,n,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof u.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var o=this,n=[],i=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&n.push(r),e.root.index.all().forEach(function(t){if(t instanceof q.SRoutingHandle){var r=t.parent;if(r instanceof q.SRoutableElement&&t.danglingAnchor){var a=o.getHandlePosition(t);if(a){var s=b.translatePoint(a,t.parent,t.root),c=A.findChildrenAtPosition(e.root,s).find(function(e){return q.isConnectable(e)&&e.canConnect(r,t.kind)});c&&o.hasDragged&&(n.push(new y.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),i=!0)}}t.editMode&&n.push(new g.SwitchEditModeAction([],[t.id]))}})}if(!i){var a=e.root.index.getById(q.edgeInProgressID);if(a instanceof u.SChildElement){var s=[];s.push(q.edgeInProgressID),a.children.forEach(function(e){e instanceof q.SRoutingHandle&&e.danglingAnchor&&s.push(e.danglingAnchor.id)}),n.push(new v.DeleteElementAction(s))}}return this.hasDragged&&n.push(new z.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),n},t.prototype.decorate=function(e,t){return e},r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(d.TYPES.ISnapper),c.optional(),a("design:type",Object)],t.prototype,"snapper",void 0),t}(M.MouseListener);t.MoveMouseListener=N;var B=function(){function e(){}return e.prototype.decorate=function(e,t){if(W.isEdgeLayoutable(t)&&t.parent instanceof f.SEdge)return e;var o="";if(C.isLocateable(t)&&t instanceof u.SChildElement&&void 0!==t.parent){var n=t.position;0===n.x&&0===n.y||(o="translate("+n.x+", "+n.y+")")}if(A.isAlignable(t)){var i=t.alignment;0===i.x&&0===i.y||(o.length>0&&(o+=" "),o+="translate("+i.x+", "+i.y+")")}return o.length>0&&h.setAttr(e,"transform",o),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=B},5823:function(e,t,o){"use strict";var n=o("e8de"),i=o.n(n);i.a},5870:function(e,t,o){},5884:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("1cc1"),r=o("3c83"),a=o("6923"),s=new n.ContainerModule(function(e){e(a.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,o){e.container.isBound(a.TYPES.IContextMenuService)?t(e.container.get(a.TYPES.IContextMenuService)):o()})}}),e(a.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(a.TYPES.IContextMenuProviderRegistry).to(i.ContextMenuProviderRegistry)});t.default=s},"5b35":function(e,t,o){"use strict";var n=o("b878"),i=o.n(n);i.a},"5bc0":function(e,t,o){},"5bcd":function(e,t,o){},"5d08":function(e,t,o){"use strict";var n=o("d675"),i=o.n(n);i.a},"5d19":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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=o("66f9"),a=o("0fb6"),s=o("6923"),c=o("dd02"),p=o("e1c6"),l=function(){function e(t,o){void 0===o&&(o=""),this.svg=t,this.responseId=o,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=l;var u=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var o=document.getElementById(this.options.hiddenDiv);if(null!==o&&o.firstElementChild&&"svg"===o.firstElementChild.tagName){var n=o.firstElementChild,i=this.createSvg(n,e);this.actionDispatcher.dispatch(new l(i,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var o=new XMLSerializer,n=o.serializeToString(e),i=document.createElement("iframe");if(document.body.appendChild(i),!i.contentWindow)throw new Error("IFrame has no contentWindow");var r=i.contentWindow.document;r.open(),r.write(n),r.close();var a=r.getElementById(e.id);a.removeAttribute("opacity"),this.copyStyles(e,a,["width","height","opacity"]),a.setAttribute("version","1.1");var s=this.getBounds(t);a.setAttribute("viewBox",s.x+" "+s.y+" "+s.width+" "+s.height);var c=o.serializeToString(a);return document.body.removeChild(i),c},e.prototype.copyStyles=function(e,t,o){for(var n=getComputedStyle(e),i=getComputedStyle(t),r="",a=0;a=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,o){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=o("8707").Buffer,r=o(3);function a(e,t,o){e.copy(t,o)}e.exports=function(){function e(){n(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,o=""+t.data;while(t=t.next)o+=e+t.data;return o},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);var t=i.allocUnsafe(e>>>0),o=this.head,n=0;while(o)a(o.data,t,n),n+=o.data.length,o=o.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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("6923");function i(e,t){var o=e.get(n.TYPES.CommandStackOptions);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);return o}t.overrideCommandStackOptions=i},"5eb6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("3a92");function i(e){return e instanceof n.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=i},6176:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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=o("e1c6"),a=o("dd02"),s=o("3a92"),c=o("6923"),p=o("42f7"),l=o("320b"),u=o("66f9"),b=function(){function e(){}return e}();t.BoundsData=b;var d=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(u.isSizeable(t)||u.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof s.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===p.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var o=[],n=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var i={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof s.SChildElement&&u.isLayoutContainer(t.parent)&&(i.newPosition={x:e.bounds.x,y:e.bounds.y}),o.push(i)}e.alignmentChanged&&void 0!==e.alignment&&n.push({elementId:t.id,newAlignment:e.alignment})});var i=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new p.ComputedBoundsAction(o,i,n,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,o){if(t.bounds&&u.isSizeable(o)){var n=t.vnode;if(n&&n.elm){var i=e.getBounds(n.elm,o);!u.isAlignable(o)||a.almostEquals(i.x,0)&&a.almostEquals(i.y,0)||(t.alignment={x:-i.x,y:-i.y},t.alignmentChanged=!0);var r={x:o.bounds.x,y:o.bounds.y,width:i.width,height:i.height};a.almostEquals(r.x,o.bounds.x)&&a.almostEquals(r.y,o.bounds.y)&&a.almostEquals(r.width,o.bounds.width)&&a.almostEquals(r.height,o.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),a.EMPTY_BOUNDS;var o=e.getBBox();return{x:o.x,y:o.y,width:o.width,height:o.height}},n([r.inject(c.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([r.inject(c.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actionDispatcher",void 0),n([r.inject(c.TYPES.Layouter),i("design:type",l.Layouter)],e.prototype,"layouter",void 0),e=n([r.injectable()],e),e}();t.HiddenBoundsUpdater=d},"61d8":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("6923"),l=o("3585"),u=o("168d"),b=function(){function e(t,o,n){this.routableId=t,this.newSourceId=o,this.newTargetId=n,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=b;var d=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,o=t.getById(this.action.routableId);if(o instanceof l.SRoutableElement){var n=this.edgeRouterRegistry.get(o.routerKind),i=n.takeSnapshot(o);n.applyReconnect(o,this.action.newSourceId,this.action.newTargetId);var r=n.takeSnapshot(o);this.memento={edge:o,before:i,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=b.KIND,i([s.inject(u.EdgeRouterRegistry),r("design:type",u.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[b])],t),t}(c.Command);t.ReconnectCommand=d},6208:function(e,t,o){"use strict";var n=o("6cea"),i=o.n(n);i.a},"624f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4"),r=o("1979"),a=o("66d7"),s=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,o,s){if(void 0===e)throw new Error(n.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(i.INJECT_TAG,e);"number"===typeof s?a.tagParameter(t,o,s,c):a.tagProperty(t,o,c)}}t.LazyServiceIdentifer=s,t.inject=c},6283:function(e,t,o){"use strict";var n=o("5bcd"),i=o.n(n);i.a},6420:function(e,t,o){"use strict";var n=o("1f0f"),i=o.n(n);i.a},6592:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=a,t.transformName=s,t.unescapeEntities=l;var n=o("81aa"),i=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return(0,i.default)(void 0,void 0,void 0,l(e,t))}function s(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"),p=null;function l(e,t){return p||(p=t.createElement("div")),e.replace(c,function(e){return p.innerHTML=e,p.textContent})}},"65d1":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},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 a=o("e1c6"),s=o("393a"),c=o("3623"),p=o("e45b"),l=o("8e97"),u=o("779b"),b=o("3585"),d=o("168d"),M=o("8d9d"),h=function(){function e(){}return e.prototype.render=function(e,t){var o="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return s.svg("svg",{"class-sprotty-graph":!0},s.svg("g",{transform:o},t.renderChildren(e)))},e=i([a.injectable()],e),e}();t.SGraphView=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){var o=this.edgeRouterRegistry.get(e.routerKind),n=o.route(e);if(0===n.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,n,t)){if(0===e.children.length)return;return s.svg("g",null,t.renderChildren(e,{route:n}))}return s.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,n,t),this.renderAdditionals(e,n,t),t.renderChildren(e,{route:n}))},t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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(){n&&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,o=void 0===t?"":t,n=p.some(function(e){return!!~o.indexOf(e)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var o=0,n=Object.keys(t);o0},e}(),w="undefined"!==typeof WeakMap?new WeakMap:new o,L=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 o=u.getInstance(),n=new R(t,o,this);w.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){L.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var C=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:L}();t["a"]=C}).call(this,o("c8ba"))},"6f35":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("3ada"),a=new n.ContainerModule(function(e,t,o){i.configureCommand({bind:e,isBound:o},r.BringToFrontCommand)});t.default=a},"70d9":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("3864"),c=o("e1c6"),p=o("6923"),l=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.TYPE,new e)}),o}return n(t,e),t=i([c.injectable(),a(0,c.multiInject(p.TYPES.IButtonHandler)),a(0,c.optional()),r("design:paramtypes",[Array])],t),t}(s.InstanceRegistry);t.ButtonHandlerRegistry=l},7122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("c5f4");function a(e,t,o){var n=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty}),r=n.map(o);return n.forEach(function(t,o){var n="";n=t.target.name.value();var i=r[o];e[n]=i}),e}function s(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var o=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[o.value]()}catch(t){throw new Error(n.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function p(e,t,o){var n=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument}),p=r.map(o);n=s(e,p),n=a(n,t,o)}else n=new e;return c(e,n),n}t.resolveInstance=p},"715d":function(e,t,o){"use strict";var n=o("1f66"),i=o.n(n);i.a},7173:function(e,t,o){"use strict";var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[o("div",{staticClass:"ft-container"},[o("div",{staticClass:"ft-time row"},[o("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[o("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?o("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),o("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("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))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?o("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,n){return-1!==t[0]?o("div",{key:n,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),o("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?o("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[o("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?o("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)])])]),o("q-resize-observable",{on:{resize:e.updateWidth}})],1)},i=[];n._withStripped=!0;o("ac6a");var r=o("278c"),a=o.n(r),s=(o("28a5"),o("c5f6"),o("c1df")),c=o.n(s),p=o("b8c1"),l={name:"FigureTimeline",mixins:[p["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)),o=a()(t,2);this.timelineDate=o[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,o=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return o>this.end?o=this.end:othis.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(o){o[0]<=e&&(t=o)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),o=a()(t,2);this.timelineDate=o[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()}},u=l,b=(o("0faf"),o("2877")),d=Object(b["a"])(u,n,i,!1,null,null,null);d.options.__file="FigureTimeline.vue";t["a"]=d.exports},"719e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,e))throw new Error(n.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(i.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,o){},"72dd":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("42f7"),a=o("61bf"),s=o("320b"),c=o("842c"),p=new n.ContainerModule(function(e,t,o){c.configureCommand({bind:e,isBound:o},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:o},r.RequestBoundsCommand),e(a.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(i.TYPES.HiddenVNodePostprocessor).toService(a.HiddenBoundsUpdater),e(i.TYPES.Layouter).to(s.Layouter).inSingletonScope(),e(i.TYPES.LayoutRegistry).to(s.LayoutRegistry).inSingletonScope()});t.default=p},7364:function(e,t,o){},7521:function(e,t,o){"use strict";var n=o("48f9"),i=o.n(n);i.a},"755f":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("e45b"),a=o("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var o=16/1792,n="scale("+o+", "+o+")",a=this.getMaxSeverity(e),s=i.svg("g",{"class-sprotty-issue":!0},i.svg("g",{transform:n},i.svg("path",{d:this.getPath(a)})));return r.setClass(s,"sprotty-"+a,!0),s},e.prototype.getMaxSeverity=function(e){for(var t="info",o=0,n=e.issues.map(function(e){return e.severity});o1?o("div",{staticClass:"kal-locales row reverse"},[o("q-select",{staticClass:"kal-lang-selector",attrs:{options:t.localeOptions,color:"app-main-color","hide-underline":""},model:{value:t.selectedLocale,callback:function(o){e.$set(t,"selectedLocale",o)},expression:"app.selectedLocale"}})],1):e._e()])})],2)])],1)],1)],1)])},R=[];W._withStripped=!0;o("a481"),o("7514"),o("20d6"),o("ac6a"),o("cadf"),o("456d"),o("7f7f");var w=o("be3b"),L=o("d247"),C={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ŋƅ"}},S=o("2b0e"),E={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["M"],ISO_LOCALE:C}},computed:a()({},Object(s["c"])("data",["sessionReference","isLocal"]),Object(s["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["O"].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:a()({},Object(s["b"])("data",["loadSessionReference","addTerminal"]),Object(s["b"])("view",["setLayout","setShowSettings"]),{getLocalizedString:function(e,t){if(e.selectedLocale){var o=e.localizations.find(function(t){return t.isoCode===e.selectedLocale});if(o)return"label"===t?o.localizedLabel:o.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(L["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,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selectedLocale,n="".concat(e.name,".").concat(o);this.layout&&this.layout.name===n||(e.selectedLocale=o,this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:n},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?w["a"].post("".concat("").concat(L["c"].REST_API_LOGOUT),{headers:{Authorization:"Bearer ".concat(localStorage.getItem(c["u"].TOKEN))}}).then(function(o){var n=o.status;if(205===n)if(e.$store.state.data.isLocal)window.location=t;else{var i={redirectUri:t};S["a"].$keycloak.logout(i)}else e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error("Strange status: ".concat(n))}).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(o){o!==e&&(t.models[o]=!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(a()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},T=E,x=(o("e2d7"),Object(A["a"])(T,W,R,!1,null,null,null));x.options.__file="KlabSettings.vue";var N=x.exports,B=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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}},[o("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[o("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}},[o("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),o("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[o("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?o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[o("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):o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[o("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),o("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[o("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),o("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),o("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.sizeSelected(t.ok,!1)}}}),o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(o){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[o("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),o("div",{attrs:{slot:"body"},slot:"body"},[o("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)},k=[];B._withStripped=!0;var P,D=o("448a"),I=o.n(D),X=(o("96cf"),o("c973")),j=o.n(X),F=o("fcf3");o("f751");function H(e){return e&&(e.$el||e)}function U(e,t,o,n,i){void 0===i&&(i={});var r={left:o,top:n},a=e.height,s=e.width,c=n,p=n+a,l=o,u=o+s,b=i.top||0,d=i.bottom||0,M=i.left||0,h=i.right||0,f=t.top+b,z=t.bottom-d,O=t.left+M,A=t.right-h;return cz&&(r.top=z-a),lA&&(r.left=A-s),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(P||(P={}));var V={bind:function(e,t,o,n){V.update(e,t,o,n)},update:function(e,t,o,n){if(!t.value||!t.value.stopDragging){var i=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(d(),f()),i.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),i.addEventListener("mousedown",c),i.addEventListener("touchstart",c,{passive:!1}),i.setAttribute("draggable","true"),e.listener=c,d(),f())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function a(){if(!M()){var t=z();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function s(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),h({initialPosition:s,startDragPosition:s,currentDragPosition:s,initialPos:u(e)}),a()}function M(){return t&&t.value&&t.value.noMove}function h(e){var t=z(),o=Object.assign({},t,e);i.setAttribute("draggable-state",JSON.stringify(o))}function f(e,o){var n=z(),i={x:0,y:0};n.currentDragPosition&&n.startDragPosition&&(i.x=n.currentDragPosition.left-n.startDragPosition.left,i.y=n.currentDragPosition.top-n.startDragPosition.top);var r=n.currentDragPosition&&Object.assign({},n.currentDragPosition);o===P.End?t.value&&t.value.onDragEnd&&n&&t.value.onDragEnd(i,r,e):o===P.Start?t.value&&t.value.onDragStart&&n&&t.value.onDragStart(i,r,e):t.value&&t.value.onPositionChange&&n&&t.value.onPositionChange(i,r,e)}function z(){return JSON.parse(i.getAttribute("draggable-state"))||{}}}},G=o("741d"),K=o("abcf"),$=(o("abb2"),K["b"].height),Y={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["L"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:V},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["L"]}},computed:a()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["M"].DEBUGGER?"#002f74":"#2e0047"}},Object(s["c"])("data",["terminalCommands"])),methods:a()({},Object(s["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(p["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=j()(regeneratorRuntime.mark(function e(t,o){var n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:n=c["L"].find(function(e){return e.value===i.selectedSize}),this.instance.resize(n.cols,n.rows),o&&G["a"].set(c["R"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(p["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:G["a"].has(c["R"].COOKIE_TERMINAL_SIZE)?G["a"].get(c["R"].COOKIE_TERMINAL_SIZE):c["L"][0].value;var o=c["L"].find(function(t){return t.value===e});this.selectedSize=o.value,this.instance=new F["Terminal"]({cols:o.cols,rows:o.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 o=function(){for(var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=0;n0){var i=t.command.join("");t.sendStompMessage(p["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:i},t.$store.state.data.session).body),t.addTerminalCommand(i)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":n>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?o(t.terminalCommands[--t.commandsIndex]):(o(),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-$(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)}},J=Y,Q=(o("23a0"),Object(A["a"])(J,B,k,!1,null,null,null));Q.options.__file="KlabTerminal.vue";var Z=Q.exports,ee=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.activeDialog?o("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[o("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),o("div",{staticClass:"kaa-button"},[o("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?o("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()},te=[];ee._withStripped=!0;var oe={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:a()({},Object(s["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:a()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=oe,ie=(o("715d"),Object(A["a"])(ne,ee,te,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var re=ie.exports,ae=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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?o("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?o("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):o("div",{staticClass:"kapp-header row"},[o("div",{staticClass:"kapp-logo-container"},[o("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),o("div",{staticClass:"kapp-title-container"},[e.layout.label?o("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?o("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?o("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?o("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return o("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(o){e.clickOnMenu(t.id,t.url)}}},[e._v(e._s(t.text)),t.url?o("span",{staticClass:"klab-external-link"},[e._v("🡥")]):e._e()])})):e._e(),o("div",{staticClass:"kapp-actions-container row items-end justify-end"},[o("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?o("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?[o("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?o("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?[o("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(),o("q-page-container",[e.layout&&0!==e.layout.panels.length?[o("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]}})]:o("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),o("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),o("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"}},[o("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];ae._withStripped=!0;o("6762"),o("2fdb"),o("4917"),o("5df3"),o("1c4c");var ce=o("50fb"),pe=o.n(ce),le=o("84a2"),ue=o.n(le),be=o("6dd8"),de=o("0312"),Me=o.n(de);function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[n]||this.options.forceVisible){"x"===n?(e=this.scrollbarX,t=this.contentSizeX,o=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,o=this.trackYSize);var i=o/t;this.handleSize[n]=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[n]=Math.min(this.handleSize[n],this.options.scrollbarMaxSize)),"x"===n?e.style.width="".concat(this.handleSize[n],"px"):e.style.height="".concat(this.handleSize[n],"px")}}},{key:"positionScrollbar",value:function(){var e,t,o,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===i?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[i]],o=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[i]],o=this.contentSizeY,n=this.trackYSize);var r=t/(o-n),a=~~((n-this.handleSize[i])*r);(this.isEnabled[i]||this.options.forceVisible)&&(e.style.transform="x"===i?"translate3d(".concat(a,"px, 0, 0)"):"translate3d(0, ".concat(a,"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,o="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]?o.style.visibility="visible":o.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=pe()(),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 o="y"===t?this.scrollbarY:this.scrollbarX,n="y"===t?e.pageY:e.pageX;this.dragOffset[t]=n-o.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 o=t.name.match(/data-simplebar-(.+)/);if(o){var n=o[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[n]=!0;break;case"false":e[n]=!1;break;case void 0:e[n]=!0;break;default:e[n]=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}();Me.a&&Oe.initHtmlApi();var Ae=Oe,me=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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:""}},[o("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"}},[o("klab-left-menu")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[o("keep-alive",[o(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),o("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),o("div",{staticClass:"col-1 row"},[e.logVisible?o("klab-log"):e._e()],1),o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?o("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?o("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():o("observation-time"),o("input-request-modal"),o("scale-change-dialog")],1)],1)],1)},ve=[];me._withStripped=!0;var ge=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("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)"}},[o("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)]),o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("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()}}},[o("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)}}},[o("klab-search-bar",{ref:"klab-search-bar"}),o("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),o("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"},[o("div",{staticClass:"mc-tabs"},[o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),o("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),o("scale-buttons",{attrs:{docked:!1}}),o("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),o("stop-actions-buttons")],1),o("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"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.selectedTab,{tag:"component"})],1)],1)],1),o("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-terrain"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-human-male-female"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?o("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?o("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},ye=[];ge._withStripped=!0;var qe=o("1fe0"),_e=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-actions",class:e.orientation},[o("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?o("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)}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("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(),o("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)}}},[o("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?o("span",{staticClass:"klab-button-notification"}):e._e(),o("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),o("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)}}},[o("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.flowchartsUpdatable?o("span",{staticClass:"klab-button-notification"}):e._e(),o("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)])])},We=[];_e._withStripped=!0;var Re={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasObservations","flowchartsUpdatable","hasContext"]),Object(s["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:a()({},Object(s["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["O"]}},we=Re,Le=(o("6208"),Object(A["a"])(we,_e,We,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Ce=Le.exports,Se=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?o("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[o("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[o("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)?o("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[o("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[o("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()])},Ee=[];Se._withStripped=!0;var Te={computed:a()({},Object(s["c"])("data",["hasContext","contextId","session"])),methods:a()({},Object(s["b"])("data",["loadContext","setWaitinForReset"]),Object(s["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(a()({},c["J"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},xe={name:"StopActionsButtons",mixins:[Te],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext","contextId","previousContext"]),Object(s["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(p["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(p["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Ne=xe,Be=(o("c31b"),Object(A["a"])(Ne,Se,Ee,!1,null,null,null));Be.options.__file="StopActionsButtons.vue";var ke=Be.exports,Pe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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():o("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[o("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),o("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?o("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):o("div",{staticClass:"ksb-context-text text-white"},[o("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),o("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[o("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?o("q-icon",{attrs:{name:"mdi-lock-outline"}},[o("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(),o("main-control-menu")],1)])},De=[];Pe._withStripped=!0;var Ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"ks-container",attrs:{id:"ks-container"}},[o("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,n){return o("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:n},on:{focus:function(o){e.onTokenFocus(t,o)},blur:function(o){e.onTokenFocus(t,o)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),o("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?o("span",[e._v(e._s(t.sublabel))]):o("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),o("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[o("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"}},[o("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)])},Xe=[];Ie._withStripped=!0;o("386d");var je=o("278c"),Fe=o.n(je),He=o("b0b2"),Ue=o("b12a"),Ve=o("7ea0"),Ge=o("b5b8"),Ke=o("1180"),$e=o("68c2"),Ye=o("506f"),Je=o("b8d9"),Qe=o("52b5"),Ze=o("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,o,n,i,r){var a={props:{right:r.right}};if(n&&i)e.push(t(o,a,n));else{var s=!1;for(var c in r)if(r.hasOwnProperty(c)&&(s=r[c],void 0!==s&&!0!==s)){e.push(t(o,{props:r}));break}n&&e.push(t(o,a,n))}}var ot={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,o=this.slotReplace,n=[];return tt(n,e,et,this.$slots.left,o,{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(n,e,Je["a"],this.$slots.main,o,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(n,e,et,this.$slots.right,o,{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}),n.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},n)}},nt=K["b"].width,it={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var o=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),n=o.length,i=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=i,n0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=nt(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(o,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",o,function(e){if(t.isWorking()&&t.searchId===i){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,o=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:o?"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:o,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(o,n){return e(ot,{key:o.id||n,class:{"q-select-highlight":t.keyboardIndex===n,"cursor-pointer":!o.disable,"text-faded":o.disable,"ka-separator":o.separator},props:{cfg:o},nativeOn:{mousedown:function(e){!o.disable&&(t.keyboardIndex=n),e.preventDefault()},click:function(){!o.disable&&t.setValue(o)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=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!==o&&o(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==n&&n()):null!==i&&i(e))}}},at="=(<)>",st={name:"KlabSearch",components:{KlabAutocomplete:it},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:a()({},Object(s["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(s["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:a()({},Object(s["b"])("data",["setContextCustomLabel"]),Object(s["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 o=this.acceptedTokens.findIndex(function(e){return e.selected}),n=null,i=!1;if(37===e.keyCode&&o>0?n="token-".concat(this.acceptedTokens[o-1].index):39===e.keyCode&&o=a&&(o=a)}else{var s=i?r.$el:r,c=(i?s.offsetLeft:r.offsetLeft)+n+s.offsetWidth,p=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;p<=c&&(o=t.searchDiv.scrollLeft+(c-p)-n)}null!==o&&S["a"].nextTick(function(){t.searchDiv.scrollLeft=o})})}}},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 o=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:o.matchIndex,matchId:o.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["x"].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 n=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,i=this.autocompleteEl.results[n];i.separator||(this.autocompleteEl.setValue(i),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];S["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(He["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==at.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 o=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(p["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(){o.searchEnd({})});this.freeText=e.nextTokenClass!==c["x"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){o.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 o=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);o>0&&e.largeMode>0&&(o>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-o))}else{var n=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+n)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var o=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["G"].FREETEXT:c["G"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(a()({},c["J"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.setSpinner(a()({},c["J"].SPINNER_ERROR,{owner:o.$options.name,errorMessage:o.$t("errors.searchTimeout"),time:o.fuzzyMode?5:2,then:a()({},c["J"].SPINNER_STOPPED)})),o.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(p["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,o=void 0!==t&&t,n=e.noDelete,i=void 0!==n&&n;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(i)return;o||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(o){e.autocompleteEl.__clearSearch(),Array.isArray(o)&&o.length>0?(e.autocompleteEl.results=o,S["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(p["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(He["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==at.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 o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(n));if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,p=r.error,l=r.errorMessage,u=r.parenthesisDepth,b=r.last;if(this.parenthesisDepth=u,this.last=b,p)this.setSpinner(a()({},c["J"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:l}));else{var d=[];s.forEach(function(e){var o=c["x"][e.matchType];if("undefined"!==typeof o){var n=o;if(null!==e.mainSemanticType){var i=c["H"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}if("SEPARATOR"===e.matchType)d.push({value:e.name,label:e.name,labelLines:1,rgb:n.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,s=null!==r?Object(Ue["m"])(e.state):null;d.push(a()({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,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==s&&{rightIcon:s.icon,rightTextColor:"state-".concat(s.tooltip),rightTooltip:{state:s.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==d.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(a()({},c["J"].SPINNER_STOPPED,{owner:this.$options.name})),S["a"].nextTick(function(){t.doneFunc(d),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}},acceptedTokens:function(){var e=this;S["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=st,pt=(o("aff7"),Object(A["a"])(ct,Ie,Xe,!1,null,null,null));pt.options.__file="KlabSearch.vue";var lt=pt.exports,ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[o("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?o("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},bt=[];ut._withStripped=!0;var dt={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:a()({},Object(s["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,o=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!==o&&(t.animationDuration=o),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()}},Mt=dt,ht=(o("2590"),Object(A["a"])(Mt,ut,bt,!1,null,null,null));ht.options.__file="ScrollingText.vue";var ft=ht.exports,zt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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?o("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[o("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),o("q-list",{attrs:{dense:""}},[o("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?o("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[o("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),o("q-item-separator"),e.hasContext?o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[o("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[o("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),o("div",[o("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),o("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[o("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return o("q-item",{key:t.id},[o("q-item-main",[o("div",{staticClass:"mcm-container mcm-context-label"},[o("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(o){e.closeAndCall(t.id)}}},[o("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(o){e.tooltipIt(o,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),o("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)]),o("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(o){e.copyContextES(o,t.spatialProjection+" "+t.encodedShape)}}},[o("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():[o("q-item",[o("q-item-main",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[o("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),o("q-item-separator"),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[o("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),o("q-item-separator"),o("q-item",[o("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)},Ot=[];zt._withStripped=!0;var At=o("c1df"),mt=o.n(At),vt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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?o("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?o("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)}}},[o("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(),o("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[o("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),o("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),o("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?o("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),o("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):o("div",{staticClass:"sr-no-scalereference"},[o("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},gt=[];vt._withStripped=!0;var yt={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["D"].ST_SPACE,c["D"].ST_TIME].indexOf(e)},default:c["D"].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["D"]}},computed:a()({},Object(s["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["D"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["E"].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(mt()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(mt()(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:a()({},Object(s["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["D"].ST_SPACE?c["I"].LOCK_SPACE:c["I"].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)}})},qt=yt,_t=(o("cf611"),Object(A["a"])(qt,vt,gt,!1,null,null,null));_t.options.__file="ScaleReference.vue";var Wt=_t.exports,Rt=o("2cee"),wt=o("1442"),Lt={name:"MainControlMenu",mixins:[Rt["a"],Te],components:{ScaleReference:Wt},data:function(){return{}},computed:a()({},Object(s["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(s["d"])("stomp",["subscriptions"]),Object(s["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(s["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(s["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:a()({},Object(s["b"])("data",["setInteractiveMode"]),Object(s["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=j()(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 o=mt()(t),n=0===mt()().diff(o,"days");return n?o.format("HH:mm:ss"):o.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),G["a"].set(c["R"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(G["a"].set(c["R"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),G["a"].set(c["R"].COOKIE_MAPDEFAULT,{center:wt["b"].center,zoom:wt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?G["a"].set(c["R"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):G["a"].remove(c["R"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(He["b"])(t),this.$q.notify({message:Object(He["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(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].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)}},Ct=Lt,St=(o("6774"),Object(A["a"])(Ct,zt,Ot,!1,null,null,null));St.options.__file="MainControlMenu.vue";var Et=St.exports,Tt={name:"KlabSearchBar",components:{KlabSpinner:v,KlabSearch:lt,ScrollingText:ft,MainControlMenu:Et},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:a()({},Object(s["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(s["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:a()({},Object(s["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["w"].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(a()({},c["J"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(a()({},c["J"].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(a()({},c["J"].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)}},xt=Tt,Nt=(o("19f2"),Object(A["a"])(xt,Pe,De,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var Bt=Nt.exports,kt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.contextsCount>1?o("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,n){return o("span",{key:t.id,on:{click:function(o){e.load(t.contextId,n)}}},[e._v(e._s(t.label))])})):e._e()},Pt=[];kt._withStripped=!0;var Dt={name:"KlabBreadcrumbs",mixins:[Te],computed:a()({},Object(s["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:a()({},Object(s["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var o,n=this.$store.state.data.observations.find(function(t){return t.id===e});o=n||this.contextById(e),this.sendStompMessage(p["a"].CONTEXTUALIZATION_REQUEST(a()({contextId:o.id},o.contextId&&{parentContext:o.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},It=Dt,Xt=(o("6c8f"),Object(A["a"])(It,kt,Pt,!1,null,null,null));Xt.options.__file="KlabBreadcrumbs.vue";var jt=Xt.exports,Ft=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"klab-tree-pane"}},[o("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[o("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?o("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[o("q-resize-observable",{on:{resize:e.outContainerResized}}),[o("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}})],o("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}},[o("summary",[o("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[o("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),o("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?o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),o("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?o("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Ht=[];Ft._withStripped=!0;o("5df2");var Ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?o("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[o("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}}}),o("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}}}),o("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}}})],o("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(),o("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}),[o("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():o("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),o("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,o=e.currentTarget,n=0;if(this.active){if(this.horizontal){while(o)t+=o.offsetTop,o=o.offsetParent;n=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(o)t+=o.offsetLeft,o=o.offsetParent;n=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}n>this.margin&&n<100-this.margin&&(this.percent=n),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=(o("1848"),Object(A["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,o=e._self._c||t;return o("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}},[o("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[o("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 o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("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(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?o("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?o("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?o("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):o("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),o("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?[o("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():o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[o("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():o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[o("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 o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("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(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[o("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(),o("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 o("div",{staticClass:"node-stub"},[o("span",{staticClass:"node-element node-stub"},[o("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),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;o("f559"),o("6b54"),o("b54a");var Zt=o("e4f9"),eo=o("bffd"),to=o("b70a"),oo=o("525b"),no={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 o=this,n=t[this.nodeKey],i=this.meta[n],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],a=i.isParent?this.__getChildren(e,t.children):[],s=a.length>0||i.lazy&&"loaded"!==i.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],p=r||c?this.__getSlotScope(t,i,n):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(p)])])),e("div",{key:n,staticClass:"q-tree-node",class:{"q-tree-node-parent":s,"q-tree-node-child":!s}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":i.link,"q-tree-node-selected":i.selected,disabled:i.disabled},on:{click:function(e){o.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&o.__onClick(t,i):o.__onClick(t,i)}}},["loading"===i.lazy?e(to["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):s?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":i.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){o.__onExpandClick(t,i,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[i.hasTicking&&!i.noTick?e(oo["a"],{staticClass:"q-mr-xs",props:{value:i.indeterminate?null:i.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!i.tickable},on:{input:function(e){o.__onTickedClick(t,i,e)}}}):null,r?r(p):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),s?e(eo["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:i.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:i.disabled}},a)])]):c])},__onClick:function(e,t){var o=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(){o.timeouts["id".concat(e.id)]=null,o.__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),o=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===o?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==o&&this.classes.splice(o,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},io=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[o("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,n){return t.enabled?[t.separator&&0!==n?o("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?o("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(o){e.askForAction(t.actionId)}}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():o("q-item",{key:t.actionId,attrs:{disabled:""}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},ro=[];io._withStripped=!0;var ao={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:a()({},Object(s["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["A"].TYPE_STATE&&t.observationType!==c["A"].TYPE_GROUP&&(this.itemActions.push(c["B"].SEPARATOR_ITEM),this.itemActions.push(c["B"].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(p["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()}},so=ao,co=(o("ad0b"),Object(A["a"])(so,io,ro,!1,null,null,null));co.options.__file="ObservationContextMenu.vue";var po=co.exports,lo=null,uo={name:"klabTree",components:{KlabQTree:no,ObservationContextMenu:po},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["A"]}},computed:a()({},Object(s["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(s["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(s["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(s["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:a()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:He["b"]},Object(s["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(s["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 o=e.target.getElementsByClassName("node-element");if(1===o.length){var n=Fe()(o,1);t=n[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,o){var n=this;null!==o&&o.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:o[0].value,items:o},cancel:!0,preventClose:!1,color:"info"}).then(function(e){n.askDownload(t,e,o)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,o,n){if("undefined"===typeof n){var i="";if(-1!==this.timestamp){var r=new Date(this.timestamp);i="_".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())}n="".concat(e).concat(i)}var a=o.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",n,a,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,o=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],o)},doubleClick:function(){var e=j()(regeneratorRuntime.mark(function e(t,o){var n,i;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["A"].TYPE_STATE){e.next=8;break}this.fitMap(t,o),e.next=14;break;case 8:if(n=this.observations.find(function(e){return e.id===t.id}),!n||null===n){e.next=14;break}return e.next=12,Object(Ue["j"])(n);case 12:i=e.sent,this.fitMap(t,o,i);case 14:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),fitMap:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:o}),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,o=e.id,n=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,o);e&&(t.setVisibility({node:e,visible:n}),n?t.ticked.push(o):t.ticked.splice(t.ticked.findIndex(function(e){return e===o}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=lo&&(clearTimeout(this.scrollToTimeout),lo=null),this.$nextTick(function(){lo=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.reduce(function(e,t){return e+t.toString().length},0),n=""!==t?" + ".concat(t):"";return"calc(".concat(o,"ch").concat(n,")")},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 o=t.filter(function(t){return e.indexOf(t)<0})[0],n=Object(Ue["f"])(this.tree,o);return this.sendStompMessage(p["a"].WATCH_REQUEST({active:!1,observationId:o,rootContextId:n.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===o}),1),void console.info("Stop watching observation ".concat(o," with rootContextId ").concat(n.rootContextId))}var i=e[e.length-1],r=Object(Ue["f"])(this.tree,i);r&&(this.sendStompMessage(p["a"].WATCH_REQUEST({active:!0,observationId:i,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:i,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(i," 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 o=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0];if(n.startsWith("STUB"))return;var i=Object(Ue["f"])(this.tree,n);i&&(this.setVisibility({node:i,visible:!1}),i.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===i.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var a=Object(Ue["f"])(this.tree,r);if(null!==a)if(a.isContainer){var s=function(){var e;o.setVisibility({node:a,visible:!0}),(e=o.ticked).push.apply(e,I()(a.children.filter(function(e){return e.parentArtifactId===a.id}).map(function(e){return e.id})))};this.askingForChildren||(a.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 o=e.scrollElement.getBoundingClientRect(),n=o.bottom;e.lasts.forEach(function(t){var o=document.getElementById("node-".concat(t.observationId));if(null!==o){var i=o.getBoundingClientRect();if(0!==i.bottom&&i.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(p["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))})}},bo=uo,Mo=(o("5b35"),Object(A["a"])(bo,Jt,Qt,!1,null,null,null));Mo.options.__file="KlabTree.vue";var ho=Mo.exports,fo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[o("div",{attrs:{id:"oi-controls"}},[o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[o("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),o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[o("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?o("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[o("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()]),o("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[o("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[o("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,n){return o("div",{key:n,attrs:{id:"oi-metadata"}},[o("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(n))]),o("div",{staticClass:"oi-metadata-value",on:{dblclick:function(o){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),o("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)}}},[o("div",{attrs:{id:"oi-mapinfo-map"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),o("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},zo=[];fo._withStripped=!0;var Oo=o("e00b"),Ao=o("5eee"),mo=o("a2c7"),vo={name:"ObservationInfo",components:{HistogramViewer:Oo["a"]},mixins:[Rt["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:a()({},Object(s["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["P"].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(He["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 Ae(document.getElementById("oi-scroll-container")),this.infoMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[wt["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)}},go=vo,yo=(o("db0a"),Object(A["a"])(go,fo,zo,!1,null,null,null));yo.options.__file="ObservationInfo.vue";var qo=yo.exports,_o=K["b"].height,Wo={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:ho,ObservationInfo:qo},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:a()({},Object(s["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(s["c"])("stomp",["taskOfContextIsAlive"]),Object(s["c"])("view",["hasObservationInfo","isDocked"])),methods:a()({},Object(s["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,o=e.state,n=this.treeNode(t);n&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:o}),n.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:o}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=_o(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=_o(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)}},Ro=Wo,wo=(o("a663"),Object(A["a"])(Ro,Ft,Ht,!1,null,null,null));wo.options.__file="KlabTreePane.vue";var Lo=wo.exports,Co=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[o("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[o("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?o("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?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),o("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("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))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return o("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[o("div",{staticClass:"ot-modification"})])}),o("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?o("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?o("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)]),o("div",{staticClass:"ot-date-container"},[o("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?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?o("observation-time"):e._e()],1)},So=[];Co._withStripped=!0;var Eo=o("b8c1"),To=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.timeEvents.length>0?o("transition",{attrs:{name:"fade"}},[o("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()},xo=[];To._withStripped=!0;var No={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:a()({},Object(s["c"])("data",["timestamp","timeEvents"]),Object(s["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=mt()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},Bo=No,ko=(o("8622"),Object(A["a"])(Bo,To,xo,!1,null,null,null));ko.options.__file="ObservationTime.vue";var Po=ko.exports,Do={name:"ObservationsTimeline",components:{ObservationTime:Po},mixins:[Eo["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(qe["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:a()({},Object(s["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(s["c"])("stomp",["tasks"]),Object(s["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:a()({},Object(s["b"])("data",["setTimestamp","setModificationsTask"]),Object(s["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var n=mt()(e);return t?n.format("DD MMM YYYY"):'
'.concat(n.format("L")).concat(o?" - ":"
").concat(n.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,o=e.clientX-this.timelineContainer.getBoundingClientRect().left,n=this.scaleReference.start+o*(this.scaleReference.end-this.scaleReference.start)/t;return n>this.scaleReference.end?n=this.scaleReference.end:nthis.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 o=(this.schedulingResolution||c["N"].DEFAULT_STEP)/e,n=(this.scaleReference.end-this.scaleReference.start)/o,i=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,a=i/e;a*nc["N"].MAX_PLAY_TIME&&(a=c["N"].MAX_PLAY_TIME/n),a/=this.speedMultiplier,this.interval={step:o,steps:n,interval:a,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 o=e.find(function(e){return e.id===t.modificationsTask.id});o&&!o.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,mt.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()}},Io=Do,Xo=(o("31da"),Object(A["a"])(Io,Co,So,!1,null,null,null));Xo.options.__file="ObservationsTimeline.vue";var jo,Fo=Xo.exports,Ho=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[o("div",{staticClass:"klp-level-selector"},[o("ul",e._l(e.LOG_ICONS,function(t,n,i){return o("li",{key:i,class:{"klp-selected":e.hasLevel(n)}},[o("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(n)}}},[o("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),o("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,n){return o("q-item",{key:n,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[o("q-item-main",{staticClass:"klp-separator"},[o("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[o("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Uo=[];Ho._withStripped=!0;var Vo=(jo={},d()(jo,L["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),d()(jo,L["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),d()(jo,L["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),d()(jo,L["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),d()(jo,L["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),jo),Go={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vo}},computed:a()({},Object(s["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:a()({},Object(s["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===L["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=mt()(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=Vo[e.type];return t?Vo[e.type]:(console.warn("Log type: ".concat(e.type),e),Vo.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 Ae(document.getElementById("klab-log-pane"))}},Ko=Go,$o=(o("f58f"),Object(A["a"])(Ko,Ho,Uo,!1,null,null,null));$o.options.__file="KlabLogPane.vue";var Yo=$o.exports,Jo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sb-scales"},[e.hasNextScale()?o("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[o("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[o("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(),o("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}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[o("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"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[o("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?o("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(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),o("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}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[o("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"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[o("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?o("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qo=[];Jo._withStripped=!0;var Zo={name:"ScaleButtons",components:{ScaleReference:Wt},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["D"]}},computed:a()({},Object(s["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,o=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:o})}}}),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(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["D"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["D"].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})}}},en=Zo,tn=(o("1817"),Object(A["a"])(en,Jo,Qo,!1,null,null,null));tn.options.__file="ScaleButtons.vue";var on=tn.exports,nn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"kvs-container"},[o("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[o("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():o("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?o("span",{staticClass:"klab-button-notification"}):e._e()]),o("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),o("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"}},[o("div",{staticClass:"kvs-popover-container"},[o("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return o("q-item",{key:t.viewId,nativeOn:{click:function(o){e.selectKnowledgeView(t.viewId)}}},[o("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),o("q-item-main",[o("div",[e._v(e._s(t.label))])]),o("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)},rn=[];nn._withStripped=!0;var an={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["v"]}},computed:a()({},Object(s["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:a()({},Object(s["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var o=t.$refs["kv-tooltip-".concat(e)];o&&o.length>0&&o[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},sn=an,cn=(o("0e44"),Object(A["a"])(sn,nn,rn,!1,null,null,null));cn.options.__file="KnowledgeViewsSelector.vue";var pn=cn.exports,ln=K["b"].width,un=K["b"].height,bn={top:25,left:15},dn={name:"klabMainControl",components:{KlabSpinner:v,KlabSearchBar:Bt,KlabBreadcrumbs:jt,KlabTreePane:Lo,KlabLogPane:Yo,ScrollingText:ft,ScaleButtons:on,MainActionsButtons:Ce,StopActionsButtons:ke,ObservationsTimeline:Fo,KnowledgeViewsSelector:pn},directives:{Draggable:V},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(qe["a"])(function(t,o,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:bn.left,defaultTop:bn.top,centeredLeft:bn.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["w"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["v"]}},computed:a()({},Object(s["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["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:a()({},Object(s["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=ln(this.boundingElement);return e-this.draggableElement.offsetWidth-bn.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,o=ln(this.boundingElement);e=(o-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 o=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));o.startDragPosition=e,o.currentDragPosition=e;var n=document.querySelector(".mc-q-card-title");n?n.setAttribute("draggable-state",JSON.stringify(o)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(o))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["O"].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>=ln(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(ln(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=un(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(un(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"),o=e?un(e):0,n=t?ln(t):0;this.correctedPosition={top:o,left:n},this.defaultTop=bn.top+o,this.defaultLeft=bn.left+n,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=ln(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 o=parseFloat(e.draggableElement.style.left),n=o-e.getCenteredLeft();n%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=bn.top,this.defaultLeft=bn.left,this.VIEWERS=c["O"]},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)}},Mn=dn,hn=(o("96fa"),Object(A["a"])(Mn,ge,ye,!1,null,null,null));hn.options.__file="KlabMainControl.vue";var fn=hn.exports,zn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return o("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():o("div",{staticClass:"thumb-viewer-title absolute-top"},[o("div",{staticClass:"relative-position"},[o("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 ")]),o("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[o("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(o){e.setMain(t.idx)}}}),t.type.hideable?o("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(o){e.closeViewer(t)}}}):e._e()],1)])]),o(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},On=[];zn._withStripped=!0;var An=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[o("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),o("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),o("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?o("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),o("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"}},[o("div",{staticClass:"bg-opaque-white"},[o("div",{staticClass:"q-pa-xs"},[o("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),o("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),o("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),o("div",{staticClass:"gl-btn-container"},[o("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}}),o("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),o("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"}},[o("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),o("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[o("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),o("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():o("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)},mn=[];An._withStripped=!0;var vn="".concat("").concat(L["c"].REST_UPLOAD),gn="1024MB",yn=gn.substr(gn.length-2),qn="KB"===yn?1:"MB"===yn?2:"GB"===yn?3:"PB"===yn?4:0,_n=parseInt(gn.substring(0,gn.length-2),10)*Math.pow(1024,qn);function Wn(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Rn=S["a"].directive("upload",{inserted:function(e,t){if(Wn()){var o=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},n=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},i=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 a=new FormData,s=[],c=0;c_n?i("File is too large, max sixe is ".concat(gn)):(a.append("files[]",r[c]),s.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&a.append("refId",t.value.refId||null),w["a"].post(vn,a,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){o(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){n(null!==r&&s.length>0?s.join(", "):null)}).catch(function(e){i(e,null!==r&&s.length>0?s.join(", "):null)})}})}}}),wn=o("256f"),Ln=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[o("div",{staticClass:"md-title"},[e._v("Draw mode")]),o("div",{staticClass:"md-controls"},[o("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),o("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),o("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),o("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[o("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)])},Cn=[];Ln._withStripped=!0;var Sn=o("a27f"),En=o("3e6b"),Tn=o("5831"),xn=o("6c77"),Nn=o("83a6"),Bn=o("8682"),kn=o("ce2c"),Pn=o("ac29"),Dn=o("c807"),In=o("4cdf"),Xn=o("f822"),jn=o("5bc3"),Fn={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:a()({},Object(s["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,o=[];if(0!==t){for(var n=null,i=0;i0&&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 Pn["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var o=Object(He["j"])(t.feature.getGeometry());Object(He["i"])(o)||(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:Sn["Draggable"]},mounted:function(){var e=new Tn["a"];this.drawerModify=new Dn["a"]({source:e}),this.drawerLayer=new En["a"]({id:"DrawerLayer",source:e,visible:!0,style:new xn["c"]({fill:new Nn["a"]({color:this.fillColor}),stroke:new Bn["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new kn["a"]({radius:this.pointRadius,fill:new Nn["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)}},Hn=Fn,Un=(o("37a9"),Object(A["a"])(Hn,Ln,Cn,!1,null,null,null));Un.options.__file="MapDrawer.vue";var Vn=Un.exports,Gn=o("e300"),Kn=o("9c78"),$n=o("c810"),Yn=o("592d"),Jn=o("e269"),Qn={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"},Zn=o("cd7e"),ei=o("0999"),ti=o("1e8d"),oi=o("0af5"),ni={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},ii=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 "+Zn["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(ti["a"])(this,Object(Jn["b"])(ni.ELEMENT),this.handleElementChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.MAP),this.handleMapChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.OFFSET),this.handleOffsetChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.POSITION),this.handlePositionChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.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:Qn.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(ni.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(ni.MAP)},t.prototype.getOffset=function(){return this.get(ni.OFFSET)},t.prototype.getPosition=function(){return this.get(ni.POSITION)},t.prototype.getPositioning=function(){return this.get(ni.POSITIONING)},t.prototype.handleElementChanged=function(){Object(ei["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(ei["e"])(this.element),Object(ti["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(ti["a"])(e,Yn["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(ni.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(ni.ELEMENT,e)},t.prototype.setMap=function(e){this.set(ni.MAP,e)},t.prototype.setOffset=function(e){this.set(ni.OFFSET,e)},t.prototype.setPosition=function(e){this.set(ni.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),o=this.getElement(),n=this.getRect(o,[Object(ei["c"])(o),Object(ei["b"])(o)]),i=this.autoPanMargin;if(!Object(oi["g"])(t,n)){var r=n[0]-t[0],a=t[2]-n[2],s=n[1]-t[1],c=t[3]-n[3],p=[0,0];if(r<0?p[0]=r-i:a<0&&(p[0]=Math.abs(a)+i),s<0?p[1]=s-i:c<0&&(p[1]=Math.abs(c)+i),0!==p[0]||0!==p[1]){var l=e.getView().getCenter(),u=e.getPixelFromCoordinate(l),b=[u[0]+p[0],u[1]+p[1]];e.getView().animate({center:e.getCoordinateFromPixel(b),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var o=e.getBoundingClientRect(),n=o.left+window.pageXOffset,i=o.top+window.pageYOffset;return[n,i,n+t[0],i+t[1]]},t.prototype.setPositioning=function(e){this.set(ni.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 o=e.getPixelFromCoordinate(t),n=e.getSize();this.updateRenderedPosition(o,n)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var o=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var r=n[0],a=n[1];if(i==Qn.BOTTOM_RIGHT||i==Qn.CENTER_RIGHT||i==Qn.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=o.left="");var s=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=s&&(this.rendered.right_=o.right=s)}else{""!==this.rendered.right_&&(this.rendered.right_=o.right=""),i!=Qn.BOTTOM_CENTER&&i!=Qn.CENTER_CENTER&&i!=Qn.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=o.left=c)}if(i==Qn.BOTTOM_LEFT||i==Qn.BOTTOM_CENTER||i==Qn.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=o.top="");var p=Math.round(t[1]-e[1]-a)+"px";this.rendered.bottom_!=p&&(this.rendered.bottom_=o.bottom=p)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=o.bottom=""),i!=Qn.CENTER_LEFT&&i!=Qn.CENTER_CENTER&&i!=Qn.CENTER_RIGHT||(a-=this.element.offsetHeight/2);var l=Math.round(e[1]+a)+"px";this.rendered.top_!=l&&(this.rendered.top_=o.top=l)}},t.prototype.getOptions=function(){return this.options},t}(Jn["a"]),ri=ii,ai=o("b2da"),si=o.n(ai),ci=o("64d9"),pi=o("f403"),li=o("01d4"),ui=o("3900"),bi="projection",di="coordinateFormat",Mi=function(e){function t(t){var o=t||{},n=document.createElement("div");n.className=void 0!==o.className?o.className:"ol-mouse-position",e.call(this,{element:n,render:o.render||hi,target:o.target}),Object(ti["a"])(this,Object(Jn["b"])(bi),this.handleProjectionChanged_,this),o.coordinateFormat&&this.setCoordinateFormat(o.coordinateFormat),o.projection&&this.setProjection(o.projection),this.undefinedHTML_=void 0!==o.undefinedHTML?o.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=n.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(di)},t.prototype.getProjection=function(){return this.get(bi)},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 o=t.getViewport();this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEMOVE,this.handleMouseMove,this),Object(ti["a"])(o,li["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEOUT,this.handleMouseOut,this),Object(ti["a"])(o,li["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(di,e)},t.prototype.setProjection=function(e){this.set(bi,Object(wn["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var o=this.getProjection();this.transform_=o?Object(wn["j"])(this.mapProjection_,o):wn["k"]}var n=this.getMap(),i=n.getCoordinateFromPixel(e);if(i){this.transform_(i,i);var r=this.getCoordinateFormat();t=r?r(i):i.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(ui["default"]);function hi(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var fi=Mi,zi=o("a568"),Oi=(o("c58e"),{name:"MapViewer",components:{MapDrawer:Vn,ObservationContextMenu:po},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Rn},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 Gn["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ci["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,o){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:o}),"\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:a()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(s["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(s["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(s["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:a()({},Object(s["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(s["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(wn["l"])(this.view.getCenter(),wt["d"].PROJ_EPSG_3857,wt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(wn["l"])(t,wt["d"].PROJ_EPSG_4326,wt["d"].PROJ_EPSG_3857),duration:500}));try{var o=Object(wn["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(o[0]<-180||o[1]<-90||o[2]>180||o[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=p["a"].REGION_OF_INTEREST(o,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["y"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&G["a"].set(c["R"].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 o=null===e?this.timeEvents:this.timeEventsOfObservation(e);return o.length>0?o.reduce(function(e,o){var n=t-o.timestamp;return n<=0?e:-1===e||n0)){e.next=7;break}if(c="".concat(o.id,"T").concat(i),p=s.find(function(e){return e.get("id")===c}),!p){e.next=7;break}return e.abrupt("return",{founds:s,layer:p});case 7:return e.prev=7,console.debug("Creating layer: ".concat(o.label," with timestamp ").concat(i)),e.next=11,Object(Ue["k"])(o,{projection:this.proj,timestamp:i,realTimestamp:a?i:this.timestamp});case 11:return l=e.sent,s&&s.length>0?l.setZIndex(o.zIndex):(this.zIndexCounter+=2,o.zIndex=this.zIndexCounter+o.zIndexOffset,l.setZIndex(o.zIndex)),this.layers.push(l),s.push(l),e.abrupt("return",{founds:s,layer:l});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 o=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),n=o.length;if(n>0){var i=function e(i){var r=t.observations.find(function(e){return e.id===o[i].id});r&&t.findLayerById({observation:r,timestamp:o[i].timestamp,isBuffer:!0}).then(function(t){var o=t.layer,r=o.getSource().image_;r&&0===r.state?(r.load(),o.getSource().on("imageloadend",function(t){t.image;++i125&&(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 En["a"]({id:this.contextId,source:new Tn["a"]({features:[new In["a"]({geometry:new pi["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(He["d"])(wt["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=j()(regeneratorRuntime.mark(function e(){var t,o,n=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),o="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=n.findModificationTimestamp(e.id,n.timestamp);n.findLayerById({observation:e,timestamp:t}).then(function(i){if(null!==i){var r=i.founds,a=i.layer;a.setOpacity(e.layerOpacity),a.setVisible(e.visible);var s=e.zIndex;if(e.top?s=e.zIndexOffset+wt["d"].ZINDEX_TOP:n.lockedObservationsIds.length>0&&n.lockedObservationsIds.includes(e.id)&&(s=Math.max(a.get("zIndex")-10,1)),o||(a.setZIndex(s),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t))?n.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t)||n.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(o,n){o.get("id")==="".concat(e.id,"T").concat(t)?o.setVisible(!0):o.getVisible()&&c.push(n)}),c.length>0&&c.forEach(function(e){n.$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")),a.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(p["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(p["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(wn["l"])([t.coords.longitude,t.coords.latitude],wt["d"].PROJ_EPSG_4326,wt["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,o=void 0===t?null:t,n=e.locked,i=void 0!==n&&n,r=e.layer,s=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var p,l;if(null!==o?(p=o.coordinate,i&&(o.preventDefault(),o.stopPropagation())):(i=this.mapSelection.locked,p=this.mapSelection.pixelSelected),null===s){l=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var u=this.findExistingLayerById(l),b=Fe()(u,1);s=b[0]}else l=s.get("id");var d=new $n["a"]({id:"cl_".concat(l),source:s.getSource()});this.setMapSelection(a()({pixelSelected:p,timestamp:this.timestamp,layerSelected:d},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(l)},{locked:i}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,o)},needFitMapListener:function(e){var t=this,o=e.mainIdx,n=void 0===o?null:o,i=e.geometry,r=void 0===i?null:i,a=e.withPadding,s=void 0===a||a;null===r&&this.mainViewer.name===c["O"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==n&&this.idx===n||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:s?[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],o=[],n=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){n[e.getType()]&&n[e.getType()]>e.get("zIndex")||(n[e.getType()]=e.get("zIndex"),o.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),o},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,o=document.createElement("textarea");o.value=t,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.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(o)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),G["a"].set(c["R"].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(wn["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(a()({},c["J"].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&&!G["a"].has(c["R"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=wt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var o=t;o.on("propertychange",function(t){e.visibleBaseLayer=o,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&G["a"].set(c["R"].COOKIE_BASELAYER,o.get("name"),{expires:30,path:"/",secure:!0})})});var t=wt["c"].MAPBOX_GOT;t.setVisible(!0);var o=new Kn["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new Ao["a"]({view:new mo["a"]({center:this.center,zoom:this.zoom}),layers:o,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(n){if(e.viewCoordinates&&n.originalEvent.ctrlKey&&!n.originalEvent.altKey)e.copyCoordinates(n);else{if(e.isDrawMode)return n.preventDefault(),void n.stopPropagation();if(n.originalEvent.ctrlKey&&n.originalEvent.altKey&&n.originalEvent.shiftKey){var i=o.getLayersArray().slice(-1)[0];i&&"mapbox_got"===i.get("name")?(o.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(o.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(j()(regeneratorRuntime.mark(function t(){var o;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(o=e.findTopLayerFromClick(n,!1),o.length>0&&o.forEach(function(t){var i=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),1===o.length&&e.closePopup()):e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:n}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:n,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 o=e.findTopLayerFromClick(t);if(1===o.length){var n=o[0].layer.get("id");e.topLayer&&n===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(n)),e.setMapInfoPoint({event:t,locked:!0,layer:o[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var o=e.findTopLayerFromClick(t,!1);o.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(o[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Kn["default"]({layers:this.layers})),this.layerSwitcher=new si.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new ri({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new ri({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[wt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new fi({coordinateFormat:Object(zi["c"])(6),projection:wt["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)}}),Ai=Oi,mi=(o("c612"),Object(A["a"])(Ai,An,mn,!1,null,null,null));mi.options.__file="MapViewer.vue";var vi=mi.exports,gi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?o("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),o("q-resize-observable",{on:{resize:e.resize}}),o("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},yi=[];gi._withStripped=!0;var qi=o("a5b7"),_i=o.n(qi),Wi={name:"GraphViewer",components:{D3Network:_i.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["S"]);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(L["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,o){if(t&&"undefined"!==typeof t.data){var n=t.data,i=n.nodes,r=n.edges;e.nodes=i.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()}o()})},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=a()({},this.options,d()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["S"].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)}},Ri=Wi,wi=(o("6420"),o("9198"),Object(A["a"])(Ri,gi,yi,!1,null,null,null));wi.options.__file="GraphViewer.vue";var Li=wi.exports,Ci=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Si=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit uv-container"},[o("h4",[e._v("Under construction")])])}];Ci._withStripped=!0;var Ei={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},Ti=Ei,xi=(o("1fac"),Object(A["a"])(Ti,Ci,Si,!1,null,null,null));xi.options.__file="UnknownViewer.vue";var Ni=xi.exports,Bi=[],ki={components:{MapViewer:vi,GraphViewer:Li,UnknownViewer:Ni},computed:a()({},Object(s["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:a()({},Object(s["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":(Bi.push(e),0===Bi.length?"left: 0":"left: ".concat(200*(Bi.length-1)+10*(Bi.length-1),"px"))},capitalize:function(e){return Object(He["a"])(e)}}),watch:{mainDataViewerIdx:function(){Bi=[]},dataViewers:{handler:function(e){var t=this,o=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,a()({},null!==o&&"undefined"!==typeof o&&{idx:o.idx}))})},deep:!0}},beforeUpdate:function(){Bi=[]},mounted:function(){Bi=[]}},Pi=ki,Di=(o("f164"),Object(A["a"])(Pi,zn,On,!1,null,"216658d8",null));Di.options.__file="DataViewer.vue";var Ii=Di.exports,Xi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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:""}},[o("q-layout-header",[o("documentation-header")],1),o("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"}},[o("documentation-tree")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kd-container"},[o("documentation-viewer")],1)])],1),o("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"}},[o("documentation-viewer",{attrs:{"for-printing":!0}}),o("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)},ji=[];Xi._withStripped=!0;var Fi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dh-container full-width row items-center"},[o("div",{staticClass:"dh-tabs col justify-start"},[o("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[o("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"}),o("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"}),o("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"}),o("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),o("div",{staticClass:"dh-actions justify-end"},[o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[o("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?[o("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)}}}),o("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?o("div",{staticClass:"dh-spinner col-1 justify-end"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[o("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[o("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Hi=[];Fi._withStripped=!0;var Ui={name:"DocumentationHeader",components:{KlabSpinner:v},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["w"].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:a()({},Object(s["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)}})},Vi=Ui,Gi=(o("d18c"),Object(A["a"])(Vi,Fi,Hi,!1,null,null,null));Gi.options.__file="DocumentationHeader.vue";var Ki=Gi.exports,$i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dt-container relative-position klab-menu-component"},[o("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[o("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")))]),o("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),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yi=[];$i._withStripped=!0;var Ji={name:"DocumentationTree",components:{KlabQTree:no},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("data",["documentationTrees"]),Object(s["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:a()({},Object(s["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}},Qi=Ji,Zi=(o("5823"),Object(A["a"])(Qi,$i,Yi,!1,null,null,null));Zi.options.__file="DocumentationTree.vue";var er=Zi.exports,tr=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dv-documentation"},[o("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[o("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[o("div",{staticClass:"dv-content"},e._l(e.content,function(t){return o("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[o("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?o("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?o("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?o("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(o){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?o("span",{staticClass:"dv-citation"},[o("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?o("div",{staticClass:"dv-table-container"},[o("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),o("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),o("div",{staticClass:"dv-table-bottom text-right print-hide"},[o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(o){e.tableCopy(t.id)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(o){e.tableDownload(t.id)}}},[o("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?o("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-figure-wrapper col"},[o("div",{staticClass:"content-center row"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[o("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?o("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),o("div",{staticClass:"dv-col-fill col"})]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("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"}},[o("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),o("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[o("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}})])]),o("div",{staticClass:"dv-figure-legend col"},[o("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)]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-time col"},[o("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(o){e.changeTime(o,t.id)}}})],1)]),o("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?o("div",{staticClass:"dv-model-container"},[o("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?o("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-resource-title-container"},[o("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),o("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?o("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(n,i){return o("div",{key:i,staticClass:"dv-resource-keyword"},[o("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(n))]),i0?o("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(n,i){return o("div",{key:i,staticClass:"dv-resource-author-wrapper"},[o("span",{staticClass:"dv-resource-author"},[e._v(e._s(n))]),i0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,o=void 0===t?null:t,n=e.force,i=void 0!==n&&n;null===o&&(o=this.documentationView),(-1!==this.reloadViews.indexOf(o)||i)&&this.loadDocumentation(o)},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=sr,pr=(o("7bbc"),Object(A["a"])(cr,Xi,ji,!1,null,null,null));pr.options.__file="KlabDocumentation.vue";var lr=pr.exports,ur=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dfv-wrapper",class:"dfv-"+e.flowchartSelected},[o("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[o("div",{staticClass:"dfv-graph-info"},[o("div",{staticClass:"dfv-graph-type"},[o("span",[e._v(e._s(e.flowchart(e.flowchartSelected)?e.flowchart(e.flowchartSelected).label:"Nothing"))])]),o("div",{staticClass:"dfv-graph-selector"},[o("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)}}},[o("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),o("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)}}},[o("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)]),o("div",[o("div",{attrs:{id:"sprotty"}}),o("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1)]),e.dataflowInfoOpen?o("div",{staticClass:"dfv-info-container"},[o("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},br=[];ur._withStripped=!0;o("98db");var dr=o("970b"),Mr=o.n(dr),hr=o("5bc30"),fr=o.n(hr),zr=o("8449"),Or=o("42d6"),Ar=o("e1c6"),mr=0,vr=200,gr=!1,yr=function(){function e(){Mr()(this,e)}return fr()(e,[{key:"handle",value:function(e){switch(e.kind){case Or["SelectCommand"].KIND:gr=!1,mr=setTimeout(function(){gr||zr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),gr=!1},vr);break;case Or["SetViewportCommand"].KIND:clearTimeout(mr),gr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(Or["SelectCommand"].KIND,this),e.register(Or["SetViewportCommand"].KIND,this)}}]),e}();function qr(e){return void 0!==e.source&&void 0!==e.target}function _r(e){return void 0!==e.sources&&void 0!==e.targets}Ar.decorate(Ar.injectable(),yr);var Wr=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,o,n=this,i={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return n.transformElkNode(e)});(t=i.children).push.apply(t,r)}if(e.edges){var a=e.edges.map(function(e){return n.transformElkEdge(e)});(o=i.children).push.apply(o,a)}return i},e.prototype.transformElkNode=function(e){var t,o,n,i,r=this;this.checkAndRememberId(e,this.nodeIds);var a={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 s=e.children.map(function(e){return r.transformElkNode(e)});(t=a.children).push.apply(t,s)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(o=a.children).push.apply(o,c)}if(e.labels){var p=e.labels.map(function(e){return r.transformElkLabel(e)});(n=a.children).push.apply(n,p)}if(e.edges){var l=e.edges.map(function(e){return r.transformElkEdge(e)});(i=a.children).push.apply(i,l)}return a},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,o,n=this;this.checkAndRememberId(e,this.edgeIds);var i={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(qr(e)?(i.sourceId=e.source,i.targetId=e.target,e.sourcePoint&&i.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&i.routingPoints.push(e.targetPoint)):_r(e)&&(i.sourceId=e.sources[0],i.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;n.checkAndRememberId(e,n.sectionIds),i.routingPoints.push(e.startPoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),i.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,o){var n={type:"junction",id:e.id+"_j"+o,position:t};i.children.push(n)}),e.labels){var r=e.labels.map(function(e){return n.transformElkLabel(e)});(o=i.children).push.apply(o,r)}return i},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}(),Rr=o("e1c6"),wr=o("393a"),Lr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cr=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},Sr={createElement:wr["svg"]},Er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){var o="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Sr.createElement("g",null,Sr.createElement("rect",{classNames:o,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(Or["RectangularNodeView"]),Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){return Sr.createElement("g",null,Sr.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}(Or["RectangularNodeView"]),xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r=i||t.mouseModel&&t.mouseModel>=i,exselected:t.mouseModel&&t.model>=i&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(p["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=(o("75c1"),Object(A["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var ea=Zr.exports,ta={name:"DataflowViewer",components:{DataflowInfo:ea},data:function(){return{modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0,CONSTANTS:c["g"]}},computed:a()({},Object(s["c"])("data",["flowchart","flowcharts","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(s["c"])("view",["leftMenuState","flowchartSelected","dataflowInfoOpen"])),methods:a()({},Object(s["b"])("data",["loadFlowchart"]),Object(s["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 o=JSON.parse(JSON.stringify(t.flowchart));e.processing=!0,t.graph=(new Wr).transform(o),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 Or["FitToScreenAction"]([],40)):this.actionDispatcher.dispatch(new Or["CenterAction"]([],40))},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length){for(var e=this.dataflowStatuses.length,t=0;t=0;o-=1)this.sendStompMessage(p["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[o],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 o=t.getBoundingClientRect();e.actionDispatcher.dispatch(new Or["InitializeCanvasBoundsAction"]({x:o.left,y:o.top,width:o.width,height:o.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=Hr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(Or["TYPES"].IActionHandlerInitializer).to(yr),this.modelSource=e.get(Or["TYPES"].ModelSource),this.actionDispatcher=e.get(Or["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)}},oa=ta,na=(o("7890"),Object(A["a"])(oa,ur,br,!1,null,null,null));na.options.__file="DataflowViewer.vue";var ia=na.exports,ra=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}},[o("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 o("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 o("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[o("div",{staticClass:"irm-group"},[o("div",{staticClass:"irm-global-description"},[o("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),o("p",[e._v(e._s(t.description))])]),o("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[o("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(n){return o("div",{key:e.getFieldId(n,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(n.sectionTitle)?o("div",{staticClass:"irm-section-description"},[o("h5",[e._v(e._s(n.sectionTitle))]),o("p",[e._v(e._s(n.sectionDescription))])]):e._e(),o("q-field",{attrs:{label:null!==n.label?n.label:n.id,helper:n.description}},[o(e.capitalizeFirstLetter(n.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(n,t.messageId),initialValue:n.initialValue,values:n.values,range:n.range,numericPrecision:n.numericPrecision,regexp:n.regexp},on:{change:function(o){e.updateForm(e.getFieldId(n,t.messageId),o)}}})],1)],1)}))]),o("div",{staticClass:"irm-buttons"},[o("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(o){e.cancelRequest(t)}}}),o("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(o){e.send(t.messageId,!0)}}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(o){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},aa=[];ra._withStripped=!0;var sa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}})},ca=[];sa._withStripped=!0;var pa={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)}}},la=pa,ua=(o("9d14"),Object(A["a"])(la,sa,ca,!1,null,null,null));ua.options.__file="TextField.vue";var ba=ua.exports,da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}})},Ma=[];da._withStripped=!0;var ha={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))}}},fa=ha,za=(o("d6e2"),Object(A["a"])(fa,da,Ma,!1,null,null,null));za.options.__file="NumberField.vue";var Oa=za.exports,Aa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}})},ma=[];Aa._withStripped=!0;var va={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)})}}},ga=va,ya=(o("bb33"),Object(A["a"])(ga,Aa,ma,!1,null,null,null));ya.options.__file="BooleanField.vue";var qa=ya.exports,_a={name:"InputRequestModal",components:{TextInputRequest:ba,NumberInputRequest:Oa,BooleanInputRequest:qa},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:a()({},Object(s["c"])("data",["session"]),Object(s["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:a()({},Object(s["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof n){var i=n.fields.reduce(function(e,i){if(o)e[t.getFieldId(i)]=i.initialValue;else{var r=t.formData[t.getFieldId(i,n.messageId)];e[t.getFieldId(i)]="undefined"===typeof r||null===r||""===r?i.initialValue:r.toString()}return e},{});this.sendStompMessage(p["a"].USER_INPUT_RESPONSE({messageId:n.messageId,requestId:n.requestId,values:i},this.session).body),this.removeInputRequest(n.messageId)}},cancelRequest:function(e){this.sendStompMessage(p["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(He["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))}}},Wa=_a,Ra=(o("2b54"),Object(A["a"])(Wa,ra,aa,!1,null,null,null));Ra.options.__file="InputRequestModal.vue";var wa=Ra.exports,La=function(){var e=this,t=e.$createElement,o=e._self._c||t;return null!==e.scaleReference?o("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[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[o("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[o("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(),o("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?[o("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?o("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?o("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?o("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?o("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?o("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?o("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?o("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),o("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"}}),o("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()},Ca=[];La._withStripped=!0;var Sa=o("7f45"),Ea=o.n(Sa),Ta={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["E"],resolutionError:!1,SCALE_TYPE:c["D"],SCALE_VALUES:c["F"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:a()({},Object(s["c"])("data",["scaleReference","nextScale","hasContext"]),Object(s["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 a()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:a()({},Object(s["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["D"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["D"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["D"].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["D"].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()),o=new Date(this.timeEnd.getTime());[c["F"].MILLENNIUM,c["F"].CENTURY,c["F"].DECADE,c["F"].YEAR,c["F"].MONTH,c["F"].WEEK,c["F"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference},this.scaleEditingType===c["D"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["D"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:o.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(a()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["D"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["D"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:o.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["F"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["F"].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["F"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["F"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["F"].WEEK:if(e>53)return void(this.unitInputs.week=Ea()(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],o=c["E"].find(function(t){return t.value===e.unit});this.timeEnd=Ea()(this.timeStart).add(this.timeResolutionMultiplier*o.momentMultiplier-(1!==o.momentMultiplier?1:0),o.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["F"].MILLENNIUM:case c["F"].CENTURY:case c["F"].DECADE:case c["F"].YEAR:case c["F"].MONTH:case c["F"].WEEK:case c["F"].DAY:return"DD/MM/YYYY";case c["F"].HOUR:return"DD/MM/YYYY HH:mm";case c["F"].MINUTE:case c["F"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["F"].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?Ea()(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["D"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["F"].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?Ea()(this.timeStart):Ea()();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})}},xa=Ta,Na=(o("c998"),Object(A["a"])(xa,La,Ca,!1,null,null,null));Na.options.__file="ScaleChangeDialog.vue";var Ba=Na.exports,ka=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[o("div",{attrs:{id:"spinner-leftmenu-container"}},[o("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[o("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?[o("div",{staticClass:"lm-separator"}),o("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),o("div",{staticClass:"lm-separator"})]:e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("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),o("div",{staticClass:"lm-separator"}),o("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[o("div",{staticClass:"lm-separator"}),o("scale-buttons",{attrs:{docked:!0}}),o("div",{staticClass:"lm-separator"}),o("div",{staticClass:"lm-bottom-buttons"},[o("stop-actions-buttons")],1)],1)],2),e.maximized?o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[o("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Pa=[];ka._withStripped=!0;var Da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[o("klab-breadcrumbs"),o("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?o("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[o("klab-tree-pane")],1):e._e(),e.contextHasTime?o("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},Ia=[];Da._withStripped=!0;var Xa=K["b"].width,ja={name:"KlabDockedMainControl",components:{KlabSearchBar:Bt,KlabBreadcrumbs:jt,ObservationsTimeline:Fo,KlabTreePane:Lo},directives:{Draggable:V},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(qe["a"])(function(t,o){e.onDebouncedPositionChanged(o)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:a()({},Object(s["c"])("data",["contextHasTime"]),Object(s["c"])("view",["largeMode","isTreeVisible"]),Object(s["c"])("stomp",["taskOfContextIsAlive"])),methods:a()({},Object(s["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["O"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Xa(document.getElementById("dmc-container"))/3}},Fa=ja,Ha=(o("c7c3"),Object(A["a"])(Fa,Da,Ia,!1,null,null,null));Ha.options.__file="KlabDockedMainControl.vue";var Ua=Ha.exports,Va={name:"KlabLeftMenu",components:{KlabSpinner:v,MainActionsButtons:Ce,StopActionsButtons:ke,DockedMainControl:Ua,DocumentationTree:er,KlabLogPane:Yo,ScaleButtons:on,KnowledgeViewsSelector:pn},mixins:[rt],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["w"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["w"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:a()({},Object(s["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["w"].LOG_COMPONENT),this.setLeftMenuState(c["w"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["w"]}},Ga=Va,Ka=(o("6283"),Object(A["a"])(Ga,ka,Pa,!1,null,null,null));Ka.options.__file="KlabLeftMenu.vue";var $a=Ka.exports,Ya=(o("5bc0"),{name:"KExplorer",components:{KlabMainControl:fn,DataViewer:Ii,KlabDocumentation:lr,DataflowViewer:ia,InputRequestModal:wa,ScaleChangeDialog:Ba,ObservationTime:Po,KlabLeftMenu:$a},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["w"]}},computed:a()({},Object(s["c"])("data",["session","hasActiveTerminal"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["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["R"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["w"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["w"].LEFTMENU_MAXIMIZED?c["w"].LEFTMENU_MAXSIZE:this.leftMenuState===c["w"].LEFTMENU_MINIMIZED?c["w"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["w"].LEFTMENU_MINSIZE:0)}}),methods:a()({},Object(s["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),o=Math.floor(e/t);console.info("Set max children to ".concat(o)),this.$store.state.data.childrenToAskFor=o},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["O"].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["O"].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(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].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)}}),Ja=Ya,Qa=(o("f913"),Object(A["a"])(Ja,me,ve,!1,null,null,null));Qa.options.__file="KExplorer.vue";var Za=Qa.exports,es=o("4082"),ts=o.n(es),os=o("0388"),ns=o("7d43"),is=o("9541"),rs=o("768b"),as=o("fb40"),ss=o("bd60"),cs="q:collapsible:close",ps={name:"QCollapsible",mixins:[as["a"],ss["a"],{props:ss["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(cs,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(is["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(cs,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(cs,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(ns["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(rs["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(eo["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)])])])])}},ls=o("dd1f"),us=o("5d8b"),bs=o("5931"),ds=o("482e"),Ms={LAYOUT:function(e){return S["a"].component("KAppLayout",{render:function(t){return t(Cs,{props:{layout:e}})}})},ALERT:function(e){return S["a"].component("KAppAlert",{render:function(t){return t(os["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return S["a"].component("KAppMain",{render:function(t){return t("div",a()({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:a()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return S["a"].component("KAppPanel",{render:function(t){return t("div",a()({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 S["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",a()({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",a()({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,S["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var o=this;return t(ps,{class:"kcv-collapsible",props:a()({opened:o.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 S["a"].component("KAppSeparator",{render:function(t){var o=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(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},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(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var o=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var n=function n(i){var r=o.values[i],a=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(i));if(!a){a={id:"".concat(e.id,"-").concat(r.id,"-").concat(i),label:r.label,type:r.type,observable:r.id,children:[]};var s=o.links.find(function(e){return e.first===i}).second;if(s===o.rootId)t.push(a);else{var c=n(s);c.children.push(a)}}return a};o.links.forEach(function(e){n(e.first)})}return S["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(o){var n=this;return o("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?o("div",{class:"kcv-tree-legend"},e.name):null,o(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:n.ticked,selected:n.selected,expanded:n.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){n.ticked=t,e.tree.status.ticked=t;var o=e.tree,i=(o.status,ts()(o,["status"]));n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{tree:i,components:[]}),listValue:t})},"update:selected":function(t){n.selected=t,e.tree.status.selected=t},"update:expanded":function(t){n.expanded=t,e.tree.status.expanded=t}}}),e.attributes.tooltip?o(Ze["a"],{props:{anchor:"top right",self:"top left",offset:[6,0]}},[e.attributes.tooltip]):null])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),S["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 o=this;this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["G"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.$q.notify({message:o.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),o.doneFunc&&o.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(p["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 o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return;if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,s=r.error,p=r.errorMessage;if(s)this.$q.notify({message:p,type:"error",icon:"mdi-alert",timeout:2e3});else{var l=[];a.forEach(function(e){var t=c["x"][e.matchType];if("undefined"!==typeof t){var o=t;if(null!==e.mainSemanticType){var n=c["H"][e.mainSemanticType];"undefined"!==typeof n&&(o=n)}l.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:o.symbol,leftInverted:!0,leftColor:o.color,rgb:o.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===l.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),S["a"].nextTick(function(){t.doneFunc(l)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}}},render:function(t){var o=this,n=this;return this.isSearch?t(us["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:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(o.editable=!1,o.doneFunc&&(o.doneFunc(),o.doneFunc=null),o.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),n.init()),13===e.keyCode&&o.selected&&(o.$store.dispatch("view/searchInApp",!1),o.editable=!1,n.sendSelected(),n.init())},input:function(e){n.value=e},blur:function(){o.$store.dispatch("view/searchInApp",!1),o.editable=!1},focus:function(){o.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){n.search(e,t)},selected:function(e,t){n.autocompleteSelected(e,t)}}})]):t("div",a()({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,"kcv-label-error":e.attributes.error,"kcv-label-info":e.attributes.info,"kcv-label-waiting":e.attributes.waiting},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){o.editable=!0,o.$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:"top right",self:"top left",offset:[6,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return S["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:e.attributes.type||"number"}},render:function(t){var o=this;return t(us["a"],{class:["kcv-text-input","kcv-form-element","textarea"===e.attributes.type&&"kcv-textarea"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id),rows:e.attributes.rows||1},props:{value:o.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:o.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){o.value=t,e.content=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return S["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 o=this;return t(bs["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:o.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){o.value=t,e.attributes.selected=o.value,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return S["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 o=this,n=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 i=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(ds["a"],{class:[n?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:a()({},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(i,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:a()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},n&&{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(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},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 S["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var o=this,n=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,i=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(i),"kcv-check-".concat(n),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(oo["a"],{props:a()({value:o.value,color:i,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){o.value=t,e.attributes.checked=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"top left",self:"top right",offset:[e.attributes.width?52:0,0]}},"true"===e.attributes.tooltip?e.name:e.attributes.tooltip):null,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 S["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var o=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ls["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){o.value=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return S["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var o=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":o.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(){o.collapsed=!o.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:o.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return S["a"].component("KBrowswer",{mounted:function(){},render:function(t){var o=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:o},style:a()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return S["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 hs(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(Ms.LAYOUT);var n,i=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(i=Ms.SHELF(e)),e.type){case null:var r=o.mainPanelStyle,s=void 0===r?{}:r,p=o.direction,l=void 0===p?"vertical":p;n=Ms.MAIN(a()({},e,{mainPanelStyle:s,direction:l}));break;case c["a"].PANEL:n=Ms.PANEL(e);break;case c["a"].SEPARATOR:n=Ms.SEPARATOR(e);break;case c["a"].LABEL:n=Ms.LABEL(e);break;case c["a"].TEXT_INPUT:n=Ms.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:n=Ms.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:n=Ms.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:n=Ms.RADIO_BUTTON(e);break;case c["a"].TREE:n=Ms.TREE(e);break;case c["a"].GROUP:n=Ms.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:n=Ms.TEXT(e);break;case c["a"].COMBO:n=Ms.COMBO(e);break;case c["a"].BROWSER:n=Ms.BROWSER(e);break;default:n=Ms.UNKNOWN(e)}var u=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){u.push(hs(e,t))}),i?t(i,{},[t(n,{},u)]):t(n,{},u)}var fs,zs,Os=K["b"].height,As={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,o=0;o0},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(L["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=a()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var o=JSON.parse(this.layout.styleSpecs);t=a()({},t,o)}catch(e){console.error("Error parsing style specs",e)}var n=(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!==n&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(n,"px)"))}null!==t&&Object.keys(t).forEach(function(o){var n=t[o];if("density"===o)switch(o="line-height",t.density){case"default":n=1;break;case"confortable":n=1.5;break;case"compact":n=.5;break;default:n=1}if(document.documentElement.style.setProperty("--app-".concat(o),n),o.includes("color"))try{var i=Object(He["e"])(n);if(i&&i.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(o),"".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),20*r)),document.documentElement.style.setProperty("--app-lighten90-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),90*r)),document.documentElement.style.setProperty("--app-lighten75-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),75*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(o,": ").concat(n))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new Ae(e);var t=document.querySelector(".kapp-right-inner-container");t&&new Ae(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var o=document.querySelector(".kapp-main.kapp-header-container");this.header.height=o?_s(o):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var n=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=n?qs(n):0,this.rightPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=i?qs(i):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,o=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",o.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 o=this.layout,n=o.applicationId,i=o.identity;this.sendStompMessage(p["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(p["a"].VIEW_ACTION(a()({},Ws,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var o=this,n=null!==e&&(null===t||e.applicationId!==t.applicationId);if((null===e||!this.isApp&&n)&&(this.$nextTick(function(){o.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var i=localStorage.getItem(c["R"].LOCAL_STORAGE_APP_ID);i&&i===t.name&&localStorage.removeItem(c["R"].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)}},ws=Rs,Ls=(o("4b0d"),Object(A["a"])(ws,ae,se,!1,null,null,null));Ls.options.__file="KlabLayout.vue";var Cs=Ls.exports,Ss=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}},[o("q-modal-layout",{staticClass:"km-modal-window"},[e.modal.label?o("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[o("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?o("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),o("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),o("div",{staticClass:"km-buttons justify-end row"},[o("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},Es=[];Ss._withStripped=!0;var Ts={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:Cs},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:a()({},Object(s["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},xs=Ts,Ns=(o("a4c5"),Object(A["a"])(xs,Ss,Es,!1,null,null,null));Ns.options.__file="KlabModalWindow.vue";var Bs=Ns.exports,ks=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[o("div",{staticClass:"modal-backdrop absolute-full"}),o("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"}},[o("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[o("div",{staticClass:"klab-modal-content full-height"},[o("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,n){return o("div",{key:"kp-pres-"+n,staticClass:"kp-link",class:{"kp-link-current":n===e.activeSectionIndex},attrs:{id:"kp-pres-"+n},on:{click:function(t){n!==e.activeSectionIndex&&e.loadPresentation(n)}}},[o("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():o("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,n){return o("q-carousel-slide",{key:"kp-slide-"+n,staticClass:"kp-slide full-height"},[o("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?o("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":n,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===n},on:{stackend:e.stackEnd}}):o("div",[e._v("No slides")]),t.title?o("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),o("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),o("div",{staticClass:"kp-navigation"},[o("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,n){return o("div",{key:"kp-nav-"+n,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(n,0)},mouseover:function(o){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[o("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===n}},[e._v(e._s(n+1))])])}))]),o("div",{staticClass:"kp-btn-container"},[o("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),o("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}}),o("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?o("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?o("div",{staticClass:" kp-no-presentation"},[o("div",{staticClass:"fixed-center text-center"},[o("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),o("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?o("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ps=[];ks._withStripped=!0;o("55dd"),o("28a5");var Ds=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.layers.length>0?o("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,n){return o("div",{key:"ks-layer-"+n,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===n,"ks-hide-layer":e.selectedLayer!==n},style:{"z-index":e.selectedLayer===n?9999:e.layers.length-n},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+n}},[t.image?o("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[o("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+"-"+n}})]):e._e(),t.title||t.text?o("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?o("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?o("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),o("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[o("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}}),o("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()}}}),o("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])}}}),o("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()},Is=[];Ds._withStripped=!0;o("aef6");var Xs={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,o=window.innerHeight;e.initialSize={width:t,height:o}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var n=window.innerWidth*c["s"].DEFAULT_WIDTH_PERCENTAGE/100,i=n/c["s"].DEFAULT_PROPORTIONS.width*c["s"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["s"].DEFAULT_HEIGHT_PERCENTAGE/100,a=r/c["s"].DEFAULT_PROPORTIONS.height*c["s"].DEFAULT_PROPORTIONS.width;n0){var r=0;i.forEach(function(o,n){r+=1,Vs()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(o.id),{param:"callback"},function(i,a){i?console.error(i.message):t.presentations.push({id:o.id,baseFolder:o.baseFolder,linkTitle:o.name,linkDescription:o.description,slides:a,index:n}),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?G["a"].set(c["R"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):G["a"].remove(c["R"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=this.isLocal&&!G["a"].has(c["R"].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)}},Ks=Gs,$s=(o("edad"),Object(A["a"])(Ks,ks,Ps,!1,null,null,null));$s.options.__file="KlabPresentation.vue";var Ys=$s.exports,Js=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("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"}}),o("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"}},[o("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),o("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Qs=[];Js._withStripped=!0;var Zs={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:a()({},Object(s["c"])("stomp",["connectionUp"]),Object(s["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:a()({},Object(s["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),G["a"].set(c["R"].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,G["a"].has(c["R"].COOKIE_NOTIFICATIONS)&&(this.cooked=G["a"].get(c["R"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var o="";if(t){var n=t.groups,i=t.apps;o=I()(n.map(function(e){return"groups[]=".concat(e)})).concat(I()(i.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Vs()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==o?"?".concat(o):""),{param:"callback",timeout:5e3},function(t,o){t?console.error("Error loading notifications: ".concat(t.message)):o.length>0?o.forEach(function(e,t){var o=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(a()({},e,{read:o})),-1!==r.actualNotificationIndex||o||(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)}},ec=Zs,tc=(o("e0d9"),Object(A["a"])(ec,Js,Qs,!1,null,null,null));tc.options.__file="KlabNotifications.vue";var oc=tc.exports,nc=(o("8195"),{name:"LayoutDefault",components:{KlabLayout:Cs,KlabModalWindow:Bs,ConnectionStatus:_,KlabSettings:N,KlabTerminal:Z,AppDialogs:re,KlabPresentation:Ys,KlabNotifications:oc},data:function(){return{errorLoading:!1,waitApp:!1}},computed:a()({},Object(s["c"])("data",["hasContext","terminals","isDeveloper"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["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(p["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["R"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["R"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(p["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)}}}),ic=nc,rc=(o("7521"),Object(A["a"])(ic,n,i,!1,null,null,null));rc.options.__file="default.vue";t["default"]=rc.exports},"7bae":function(e,t,o){},"7bae3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("064a"),i=o("e1c6"),r=o("7f73"),a=o("755f"),s=o("6923"),c=o("e576"),p=new i.ContainerModule(function(e,t,o){n.configureModelElement({bind:e,isBound:o},"marker",r.SIssueMarker,a.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(s.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=p},"7bbc":function(e,t,o){"use strict";var n=o("fcf8"),i=o.n(n);i.a},"7d36":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=n},"7d72":function(e,t,o){"use strict";var n=o("8707").Buffer,i=n.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 a(e){var t=r(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=M,this.end=h,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=z,t=3;break;default:return this.write=O,void(this.end=A)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.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 p(e,t,o){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function l(e,t,o){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 u(e){var t=this.lastTotal-this.lastNeed,o=l(this,e,t);return void 0!==o?o: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 b(e,t){var o=p(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=o;var n=e.length-(o-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function M(e,t){if((e.length-t)%2===0){var o=e.toString("utf16le",t);if(o){var n=o.charCodeAt(o.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,o)}return t}function f(e,t){var o=(e.length-t)%3;return 0===o?e.toString("base64",t):(this.lastNeed=3-o,this.lastTotal=3,1===o?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-o))}function z(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function O(e){return e.toString(this.encoding)}function A(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,o;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o0,u=l?p.length:o.length,M=b(n,t,a,c,u),h=d(e,o),f=M.concat(h);return f}function u(e,t,o,a,s){var p=s[e.toString()]||[],l=h(p),u=!0!==l.unmanaged,b=a[e],d=l.inject||l.multiInject;if(b=d||b,b instanceof n.LazyServiceIdentifer&&(b=b.unwrap()),u){var M=b===Object,f=b===Function,z=void 0===b,O=M||f||z;if(!t&&O){var A=i.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+o+".";throw new Error(A)}var m=new c.Target(r.TargetTypeEnum.ConstructorArgument,l.targetName,b);return m.metadata=p,m}return null}function b(e,t,o,n,i){for(var r=[],a=0;a0?p:M(e,o)}return 0}function h(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[a.INJECT_TAG],multiInject:t[a.MULTI_INJECT_TAG],targetName:t[a.NAME_TAG],unmanaged:t[a.UNMANAGED_TAG]}}t.getDependencies=p,t.getBaseClassDependencyCount=M},"7f45":function(e,t,o){var n=e.exports=o("0efb");n.tz.load(o("6cd2"))},"7f73":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("e4f0"),r=o("66f9");function a(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=a;var s=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return n(o,e),o.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,i.hoverFeedbackFeature,i.popupFeature],o}(r.SShapeElement);t.SDecoration=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(s);t.SIssueMarker=c;var p=function(){function e(){}return e}();t.SIssue=p},"7faf":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=n},"80b5":function(e,t,o){"use strict";function n(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=n},8122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("33b2"),a=o("9e2e"),s=o("0fb6"),c=o("be02"),p=o("160b"),l=o("302f"),u=o("538c"),b=o("29fa"),d=o("65d1"),M=o("3b4c"),h=o("1417"),f=o("a190"),z=o("064a"),O=o("8794"),A=o("0d7a"),m=o("b093"),v=o("842c"),g=o("cd10"),y=o("ddee"),q=o("1590"),_=o("3f0a"),W=o("6176"),R=o("c661"),w=new n.ContainerModule(function(e,t,o){e(i.TYPES.ILogger).to(a.NullLogger).inSingletonScope(),e(i.TYPES.LogLevel).toConstantValue(a.LogLevel.warn),e(i.TYPES.SModelRegistry).to(l.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(i.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(i.TYPES.ViewRegistry).to(z.ViewRegistry).inSingletonScope(),e(i.TYPES.IModelFactory).to(l.SModelFactory).inSingletonScope(),e(i.TYPES.IActionDispatcher).to(s.ActionDispatcher).inSingletonScope(),e(i.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.IActionDispatcher))})}}),e(i.TYPES.IDiagramLocker).to(R.DefaultDiagramLocker).inSingletonScope(),e(i.TYPES.IActionHandlerInitializer).to(v.CommandActionHandlerInitializer),e(i.TYPES.ICommandStack).to(p.CommandStack).inSingletonScope(),e(i.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.ICommandStack))})}}),e(i.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(b.ModelViewer).toSelf().inSingletonScope(),e(b.HiddenModelViewer).toSelf().inSingletonScope(),e(b.PopupModelViewer).toSelf().inSingletonScope(),e(i.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.ModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.PopupModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.HiddenModelViewer).toService(b.HiddenModelViewer),e(i.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(i.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(i.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(i.TYPES.PopupModelViewer)}}}),e(i.TYPES.ViewerOptions).toConstantValue(d.defaultViewerOptions()),e(i.TYPES.PatcherProvider).to(b.PatcherProvider).inSingletonScope(),e(i.TYPES.DOMHelper).to(A.DOMHelper).inSingletonScope(),e(i.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,o){var n=e.container.get(i.TYPES.ViewRegistry);return new b.ModelRenderer(n,t,o)}}),e(m.IdPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(m.IdPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(m.IdPostprocessor),e(g.CssClassPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(g.CssClassPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(g.CssClassPostprocessor),e(M.MouseTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(M.MouseTool),e(h.KeyTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(h.KeyTool),e(f.FocusFixPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(f.FocusFixPostprocessor),e(i.TYPES.PopupVNodePostprocessor).toService(m.IdPostprocessor),e(M.PopupMouseTool).toSelf().inSingletonScope(),e(i.TYPES.PopupVNodePostprocessor).toService(M.PopupMouseTool),e(i.TYPES.AnimationFrameSyncer).to(u.AnimationFrameSyncer).inSingletonScope();var n={bind:e,isBound:o};v.configureCommand(n,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),v.configureCommand(n,_.SetModelCommand),e(i.TYPES.IToolManager).to(y.ToolManager).inSingletonScope(),e(i.TYPES.KeyListener).to(y.DefaultToolsEnablingKeyListener),e(y.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(n,q.EnableDefaultToolsAction.KIND,y.ToolManagerActionHandler),c.configureActionHandler(n,q.EnableToolsAction.KIND,y.ToolManagerActionHandler),e(i.TYPES.UIExtensionRegistry).to(W.UIExtensionRegistry).inSingletonScope(),v.configureCommand(n,W.SetUIExtensionVisibilityCommand),e(M.MousePositionTracker).toSelf().inSingletonScope(),e(i.TYPES.MouseListener).toService(M.MousePositionTracker)});t.default=w},8195:function(e,t,o){},"81aa":function(e,t,o){"use strict";function n(e,t,o,n,i){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:o,text:n,elm:i,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=n,t.default=n},8336:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("0fd9"),a=o("2cac"),s=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+n.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.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=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(n.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){var o=function(){return t.container.get(e)};return o},new a.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=s},"842c":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("7b39"),c=o("6923"),p=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=p;var l=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new p(t))})},e=n([a.injectable(),r(0,a.multiInject(c.TYPES.CommandRegistration)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();function u(e,t){if(!s.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(o){var n=new a.Container;return n.parent=e.container,n.bind(c.TYPES.Action).toConstantValue(o),n.get(t)}}})}t.CommandActionHandlerInitializer=l,t.configureCommand=u},"84a2":function(e,t,o){(function(t){var o="Expected a function",n=NaN,i="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,b=l||u||Function("return this")(),d=Object.prototype,M=d.toString,h=Math.max,f=Math.min,z=function(){return b.Date.now()};function O(e,t,n){var i,r,a,s,c,p,l=0,u=!1,b=!1,d=!0;if("function"!=typeof e)throw new TypeError(o);function M(t){var o=i,n=r;return i=r=void 0,l=t,s=e.apply(n,o),s}function O(e){return l=e,c=setTimeout(g,t),u?M(e):s}function A(e){var o=e-p,n=e-l,i=t-o;return b?f(i,a-n):i}function v(e){var o=e-p,n=e-l;return void 0===p||o>=t||o<0||b&&n>=a}function g(){var e=z();if(v(e))return q(e);c=setTimeout(g,A(e))}function q(e){return c=void 0,d&&i?M(e):(i=r=void 0,s)}function _(){void 0!==c&&clearTimeout(c),l=0,i=p=r=c=void 0}function W(){return void 0===c?s:q(z())}function R(){var e=z(),o=v(e);if(i=arguments,r=this,p=e,o){if(void 0===c)return O(p);if(b)return c=setTimeout(g,t),M(p)}return void 0===c&&(c=setTimeout(g,t)),s}return t=y(t)||0,m(n)&&(u=!!n.leading,b="maxWait"in n,a=b?h(y(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),R.cancel=_,R.flush=W,R}function A(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(o);return m(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),O(e,t,{leading:i,maxWait:t,trailing:r})}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function g(e){return"symbol"==typeof e||v(e)&&M.call(e)==i}function y(e){if("number"==typeof e)return e;if(g(e))return n;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var o=s.test(e);return o||c.test(e)?p(e.slice(2),o?2:8):a.test(e)?n:+e}e.exports=A}).call(this,o("c8ba"))},"84b1":function(e,t,o){(function(t,o){e.exports=o()})(0,function(){"use strict";function e(e){var t,o,n=document,i=n.createElement("div"),r=i.style,a=navigator.userAgent,s=-1!==a.indexOf("Firefox")&&-1!==a.indexOf("Mobile"),c=e.debounceWaitMs||0,p=e.preventSubmit||!1,l=s?"input":"keyup",u=[],b="",d=2,M=e.showOnFocus,h=0;if(void 0!==e.minLength&&(d=e.minLength),!e.input)throw new Error("input undefined");var f=e.input;function z(){var e=i.parentNode;e&&e.removeChild(i)}function O(){o&&window.clearTimeout(o)}function A(){i.parentNode||n.body.appendChild(i)}function m(){return!!i.parentNode}function v(){h++,u=[],b="",t=void 0,z()}function g(){if(m()){r.height="auto",r.width=f.offsetWidth+"px";var t=f.getBoundingClientRect(),o=t.top+f.offsetHeight,n=window.innerHeight-o;n<0&&(n=0),r.top=o+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=n+"px",e.customize&&e.customize(f,t,i,n)}}function y(){while(i.firstChild)i.removeChild(i.firstChild);var o=function(e,t){var o=n.createElement("div");return o.textContent=e.label||"",o};e.render&&(o=e.render);var r=function(e,t){var o=n.createElement("div");return o.textContent=e,o};e.renderGroup&&(r=e.renderGroup);var a=n.createDocumentFragment(),s="#9?$";if(u.forEach(function(n){if(n.group&&n.group!==s){s=n.group;var i=r(n.group,b);i&&(i.className+=" group",a.appendChild(i))}var c=o(n,b);c&&(c.addEventListener("click",function(t){e.onSelect(n,f),v(),t.preventDefault(),t.stopPropagation()}),n===t&&(c.className+=" selected"),a.appendChild(c))}),i.appendChild(a),u.length<1){if(!e.emptyMsg)return void v();var c=n.createElement("div");c.className="empty",c.textContent=e.emptyMsg,i.appendChild(c)}A(),g(),w()}function q(){m()&&y()}function _(){q()}function W(e){e.target!==i?q():e.preventDefault()}function R(e){for(var t=e.which||e.keyCode||0,o=[38,13,27,39,37,16,17,18,20,91,9],n=0,i=o;n0){var t=e[0],o=t.previousElementSibling;if(o&&-1!==o.className.indexOf("group")&&!o.previousElementSibling&&(t=o),t.offsetTopr&&(i.scrollTop+=n-r)}}}function L(){if(u.length<1)t=void 0;else if(t===u[0])t=u[u.length-1];else for(var e=u.length-1;e>0;e--)if(t===u[e]||1===e){t=u[e-1];break}}function C(){if(u.length<1&&(t=void 0),t&&t!==u[u.length-1]){for(var e=0;e=d||1===n?(O(),o=window.setTimeout(function(){e.fetch(r,function(e){h===i&&e&&(u=e,b=r,t=u.length>0?u[0]:void 0,y())},0)},0===n?c:0)):v()}function x(){setTimeout(function(){n.activeElement!==f&&v()},200)}function N(){f.removeEventListener("focus",E),f.removeEventListener("keydown",S),f.removeEventListener(l,R),f.removeEventListener("blur",x),window.removeEventListener("resize",_),n.removeEventListener("scroll",W,!0),O(),v(),h++}return i.className="autocomplete "+(e.className||""),r.position="fixed",i.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),f.addEventListener("keydown",S),f.addEventListener(l,R),f.addEventListener("blur",x),f.addEventListener("focus",E),window.addEventListener("resize",_),n.addEventListener("scroll",W,!0),{destroy:N}}return e})},"84fd":function(e,t,o){},"85ed":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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,o=arguments.length;t=s.LogLevel.error&&this.forward(e,t,s.LogLevel.error,o)},e.prototype.warn=function(e,t){for(var o=[],n=2;n=s.LogLevel.warn&&this.forward(e,t,s.LogLevel.warn,o)},e.prototype.info=function(e,t){for(var o=[],n=2;n=s.LogLevel.info&&this.forward(e,t,s.LogLevel.info,o)},e.prototype.log=function(e,t){for(var o=[],n=2;n=s.LogLevel.log)try{var i="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([i+": "+t],o))}catch(e){}},e.prototype.forward=function(e,t,o,n){var i=new Date,r=new p(s.LogLevel[o],i.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,n.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(o){try{o.handle(r)}catch(o){try{console.log.apply(e,[t,r,o])}catch(e){}}})},n([a.inject(c.TYPES.ModelSourceProvider),i("design:type",Function)],e.prototype,"modelSourceProvider",void 0),n([a.inject(c.TYPES.LogLevel),i("design:type",Number)],e.prototype,"logLevel",void 0),e=n([a.injectable()],e),e}();t.ForwardingLogger=l},"861d":function(e,t,o){var n=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=o("c4ec"),r=Object.create?Object.create(null):{};function a(e,t,o,n,i){var r=t.indexOf("<",n),a=t.slice(n,-1===r?void 0:r);/^\s*$/.test(a)&&(a=" "),(!i&&r>-1&&o+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var o,s=[],c=-1,p=[],l={},u=!1;return e.replace(n,function(n,r){if(u){if(n!=="")return;u=!1}var b,d="/"!==n.charAt(1),M=0===n.indexOf("\x3c!--"),h=r+n.length,f=e.charAt(h);d&&!M&&(c++,o=i(n),"tag"===o.type&&t.components[o.name]&&(o.type="component",u=!0),o.voidElement||u||!f||"<"===f||a(o.children,e,c,h,t.ignoreWhitespace),l[o.tagName]=o,0===c&&s.push(o),b=p[c-1],b&&b.children.push(o),p[c]=o),(M||!d||o.voidElement)&&(M||c--,!u&&"<"!==f&&f&&(b=-1===c?s:p[c].children,a(b,e,c,h,t.ignoreWhitespace)))}),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},8622:function(e,t,o){"use strict";var n=o("bc63"),i=o.n(n);i.a},"869e":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var l=function(e){function o(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.kind,e)}),o}return n(o,e),Object.defineProperty(o.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),o.prototype.get=function(t,o){return e.prototype.get.call(this,t+":"+(o||this.defaultAnchorKind))},o=i([s.injectable(),a(0,s.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],o),o}(p.InstanceRegistry);t.AnchorComputerRegistry=l},8707:function(e,t,o){var n=o("b639"),i=n.Buffer;function r(e,t){for(var o in e)t[o]=e[o]}function a(e,t,o){return i(e,t,o)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=a),r(i,a),a.from=function(e,t,o){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,o)},a.alloc=function(e,t,o){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof o?n.fill(t,o):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},8794:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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=o("e1c6"),a=o("6923"),s=o("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 o=void 0===this.cachedModel;this.cachedModel=e,o&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},n([r.inject(a.TYPES.IViewer),i("design:type",Object)],e.prototype,"delegate",void 0),n([r.inject(a.TYPES.AnimationFrameSyncer),i("design:type",s.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=n([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("7685"),i=o("30e3"),r=o("155f"),a=o("c5f4"),s=o("a8af"),c=o("ba33"),p=o("a32f"),l=o("1979"),u=o("c8c0"),b=o("7dba"),d=o("c622"),M=o("757d");function h(e){return e._bindingDictionary}function f(e,t,o,n,i,r){var s=e?a.MULTI_INJECT_TAG:a.INJECT_TAG,c=new l.Metadata(s,o),p=new M.Target(t,n,o,c);if(void 0!==i){var u=new l.Metadata(i,r);p.metadata.push(u)}return p}function z(e,t,o,i,r){var a=m(o.container,r.serviceIdentifier),s=[];return a.length===n.BindingCount.NoBindingsAvailable&&o.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(o.container.bind(r.serviceIdentifier).toSelf(),a=m(o.container,r.serviceIdentifier)),s=t?a:a.filter(function(e){var t=new d.Request(e.serviceIdentifier,o,i,e,r);return e.constraint(t)}),O(r.serviceIdentifier,s,r,o.container),s}function O(e,t,o,r){switch(t.length){case n.BindingCount.NoBindingsAvailable:if(o.isOptional())return t;var a=c.getServiceIdentifierAsString(e),s=i.NOT_REGISTERED;throw s+=c.listMetadataForTarget(a,o),s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s);case n.BindingCount.OnlyOneBindingAvailable:if(!o.isArray())return t;case n.BindingCount.MultipleBindingsAvailable:default:if(o.isArray())return t;a=c.getServiceIdentifierAsString(e),s=i.AMBIGUOUS_MATCH+" "+a;throw s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s)}}function A(e,t,o,n,a,s){var c,p;if(null===a){c=z(e,t,n,null,s),p=new d.Request(o,n,null,c,s);var l=new u.Plan(n,p);n.addPlan(l)}else c=z(e,t,n,a,s),p=a.addChildRequest(s.serviceIdentifier,c,s);c.forEach(function(t){var o=null;if(s.isArray())o=p.addChildRequest(t.serviceIdentifier,t,s);else{if(t.cache)return;o=p}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var a=b.getDependencies(e,t.implementationType);if(!n.container.options.skipBaseClassChecks){var c=b.getBaseClassDependencyCount(e,t.implementationType);if(a.length=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd7b"),r=o("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var o=this;return i.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return o.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var o=this.doRender(e,t);return t.decorate(o,e),o},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,o=t.fn.apply(void 0,t.args);this.copyToThunk(o,e)},e.prototype.prepatch=function(e,t){var o=e.data,n=t.data;this.equals(o.args,n.args)?this.copyToThunk(e,t):this.copyToThunk(n.fn.apply(void 0,n.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("3585"),a=function(){function e(){}return e.prototype.isVisible=function(e,t,o){if("hidden"===o.targetKind)return!0;if(0===t.length)return!0;var n=r.getAbsoluteRouteBounds(e,t),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=n([i.injectable()],e),e}();t.RoutableView=a},"8e08":function(e,t,o){},"8e65":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("6923"),a=o("42be"),s=o("26ad"),c=new n.ContainerModule(function(e,t,o){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),i.configureCommand({bind:e,isBound:o},a.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(s.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("dd02"),a=o("66f9"),s=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var o=a.getAbsoluteBounds(e),n=e.root.canvasBounds;return o.x<=n.width&&o.x+o.width>=0&&o.y<=n.height&&o.y+o.height>=0},e=n([i.injectable()],e),e}();t.ShapeView=s},"8ef3":function(e,t,o){},9016:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,i=function(e){n(function(){n(e)})},r=!1;function a(e,t,o){i(function(){e[t]=o})}function s(e,t){var o,n,i=t.elm,r=e.data.style,s=t.data.style;if((r||s)&&r!==s){r=r||{},s=s||{};var c="delayed"in r;for(n in r)s[n]||("-"===n[0]&&"-"===n[1]?i.style.removeProperty(n):i.style[n]="");for(n in s)if(o=s[n],"delayed"===n&&s.delayed)for(var p in s.delayed)o=s.delayed[p],c&&o===r.delayed[p]||a(i.style,p,o);else"remove"!==n&&o!==r[n]&&("-"===n[0]&&"-"===n[1]?i.style.setProperty(n,o):i.style[n]=o)}}function c(e){var t,o,n=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(o in t)n.style[o]=t[o]}function p(e,t){var o=e.data.style;if(o&&o.remove){r||(getComputedStyle(document.body).transform,r=!0);var n,i,a=e.elm,s=0,c=o.remove,p=0,l=[];for(n in c)l.push(n),a.style[n]=c[n];i=getComputedStyle(a);for(var u=i["transition-property"].split(", ");s=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=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=o("21a6"),c=o("e1c6"),p=o("3f0a"),l=o("6923"),u=o("42f7"),b=o("4741"),d=o("5d19"),M=o("f4cb"),h=o("b485"),f=o("cf61"),z=o("26ad");function O(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=O;var A=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=A;var m="__receivedFromServer",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return n(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(u.ComputedBoundsAction.KIND,this),t.register(u.RequestBoundsCommand.KIND,this),t.register(M.RequestPopupModelAction.KIND,this),t.register(b.CollapseExpandAction.KIND,this),t.register(b.CollapseExpandAllAction.KIND,this),t.register(h.OpenAction.KIND,this),t.register(A.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,o="string"===typeof e?JSON.parse(e):e;O(o)&&o.action?o.clientId&&o.clientId!==this.clientId||(o.action[m]=!0,this.logger.log(this,"receiving",o),this.actionDispatcher.dispatch(o.action).then(function(){t.storeNewModel(o.action)})):this.logger.error(this,"received data is not an action message",o)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case u.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case p.RequestModelAction.KIND:return this.handleRequestModel(e);case u.RequestBoundsCommand.KIND:return!1;case d.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case A.KIND:return this.handleServerStateAction(e)}return!e[m]},t.prototype.storeNewModel=function(e){if(e.kind===p.SetModelCommand.KIND||e.kind===f.UpdateModelCommand.KIND||e.kind===u.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==p.SetModelCommand.KIND&&e.kind!==f.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=i({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),o=i(i({},e),{options:t});return this.forwardToServer(o),!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 f.UpdateModelAction(t)):this.actionDispatcher.dispatch(new p.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 s.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(l.TYPES.ILogger),a("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(z.ComputedBoundsApplicator),a("design:type",z.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(z.ModelSource);t.DiagramServer=v},"966d":function(e,t,o){"use strict";(function(t){function o(e,o,n,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,o)});case 3:return t.nextTick(function(){e.call(null,o,n)});case 4:return t.nextTick(function(){e.call(null,o,n,i)});default:r=new Array(s-1),a=0;while(a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=function(){function e(){}return e=i([r.injectable()],e),e}();t.Command=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.merge=function(e,t){return!1},t=i([r.injectable()],t),t}(a);t.MergeableCommand=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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=i([r.injectable()],t),t}(a);t.HiddenCommand=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.PopupCommand=p;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.SystemCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.ResetCommand=u},9811:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("e7fa"),a=new n.ContainerModule(function(e){e(i.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=a},"987d":function(e,t,o){"use strict";function n(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=n},"98ab":function(e,t,o){},"98db":function(e,t,o){(function(e,t){ +(function(o,a){i=[],n=a,r="function"===typeof n?n.apply(t,i):n,void 0===r||(e.exports=r)})(0,function(){"use strict";function e(){if("undefined"===typeof document)return 0;var e,t=document.body,o=document.createElement("div"),n=o.style;return n.position="absolute",n.top=n.left="-9999px",n.width=n.height="100px",n.overflow="scroll",t.appendChild(o),e=o.offsetWidth-o.clientWidth,t.removeChild(o),e}return e})},"510b":function(e,t,o){"use strict";function n(e){return void 0!==e&&e.hasOwnProperty("kind")&&"string"===typeof e["kind"]}function i(e){return n(e)&&e.hasOwnProperty("requestId")&&"string"===typeof e["requestId"]}Object.defineProperty(t,"__esModule",{value:!0}),t.isAction=n,t.isRequestAction=i;var r=1;function a(){return(r++).toString()}function s(e){return n(e)&&e.hasOwnProperty("responseId")&&"string"===typeof e["responseId"]&&""!==e["responseId"]}t.generateRequestId=a,t.isResponseAction=s;var c=function(){function e(t,o,n){this.message=t,this.responseId=o,this.detail=n,this.kind=e.KIND}return e.KIND="rejectRequest",e}();t.RejectAction=c;var p=function(){function e(e,t,o){this.label=e,this.actions=t,this.icon=o}return e}();function l(e){return void 0!==e&&void 0!==e.label&&void 0!==e.actions}t.LabeledAction=p,t.isLabeledAction=l},"520d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("559d"),a=o("842c"),s=new n.ContainerModule(function(e,t,o){e(i.TYPES.MouseListener).to(r.MoveMouseListener),a.configureCommand({bind:e,isBound:o},r.MoveCommand),e(r.LocationPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.LocationPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(r.LocationPostprocessor)});t.default=s},"538c":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("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,o=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),o.forEach(function(t){return t.call(void 0,e)})},e=n([i.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("70d9"),r=new n.ContainerModule(function(e){e(i.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("dfc0"),a=new n.ContainerModule(function(e,t,o,n){n(i.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=a},"559d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=o("e1c6"),p=o("c146"),l=o("9757"),u=o("3a92"),b=o("3623"),d=o("6923"),M=o("3b4c"),h=o("e45b"),f=o("47b7"),z=o("42be"),O=o("dd02"),A=o("66f9"),m=o("ea38"),v=o("1978"),g=o("a5f4"),y=o("61d8"),q=o("3585"),_=o("168d"),W=o("779b"),R=o("4c18"),w=o("bcbd"),L=o("5eb6"),C=o("a0af"),S=function(){function e(e,t,o){void 0===t&&(t=!0),void 0===o&&(o=!1),this.moves=e,this.animate=t,this.finished=o,this.kind=E.KIND}return e}();t.MoveAction=S;var E=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.resolvedMoves=new Map,o.edgeMementi=[],o}var o;return n(t,e),o=t,t.prototype.execute=function(e){var t=this,o=e.root.index,n=new Map,i=new Map;return this.action.moves.forEach(function(e){var r=o.getById(e.elementId);if(r instanceof q.SRoutingHandle&&t.edgeRouterRegistry){var a=r.parent;if(a instanceof q.SRoutableElement){var s=t.resolveHandleMove(r,a,e);if(s){var c=n.get(a);c||(c=[],n.set(a,c)),c.push(s)}}}else if(r&&C.isLocateable(r)){var p=t.resolveElementMove(r,e);p&&(t.resolvedMoves.set(p.element.id,p),t.edgeRouterRegistry&&o.getAttachedElements(r).forEach(function(e){if(e instanceof q.SRoutableElement){var t=i.get(e),o=O.subtract(p.toPosition,p.fromPosition),n=t?O.linear(t,o,.5):o;i.set(e,n)}}))}}),this.doMove(n,i),this.action.animate?(this.undoMove(),new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,o){var n=o.fromPosition;if(!n){var i=this.edgeRouterRegistry.get(t.routerKind);n=i.getHandlePosition(t,i.route(t),e)}if(n)return{handle:e,fromPosition:n,toPosition:o.toPosition}},t.prototype.resolveElementMove=function(e,t){var o=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:o,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var o=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var n=o.edgeRouterRegistry.get(t.routerKind),i=n.takeSnapshot(t);n.applyHandleMoves(t,e);var r=n.takeSnapshot(t);o.edgeMementi.push({edge:t,before:i,after:r})}),t.forEach(function(t,n){if(!e.get(n)){var i=o.edgeRouterRegistry.get(n.routerKind),r=i.takeSnapshot(n);if(n.source&&n.target&&o.resolvedMoves.get(n.source.id)&&o.resolvedMoves.get(n.target.id))n.routingPoints=n.routingPoints.map(function(e){return O.add(e,t)});else{var a=R.isSelectable(n)&&n.selected;i.cleanupRoutingPoints(n,n.routingPoints,a,o.action.finished)}var s=i.takeSnapshot(n);o.edgeMementi.push({edge:n,before:r,after:s})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var o=e.edgeRouterRegistry.get(t.edge.routerKind);o.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!0),new x(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var n=this;if(!this.action.animate&&e instanceof o)return e.resolvedMoves.forEach(function(e,t){var o=n.resolvedMoves.get(t);o?o.toPosition=e.toPosition:n.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=n.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:n.edgeMementi.push(e)}),!0;if(e instanceof y.ReconnectCommand){var i=e.memento;if(i){var r=this.edgeMementi.find(function(e){return e.edge.id===i.edge.id});r?r.after=i.after:this.edgeMementi.push(i)}return!0}return!1},t.KIND="move",r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o=r([c.injectable(),s(0,c.inject(d.TYPES.Action)),a("design:paramtypes",[S])],t),t}(l.MergeableCommand);t.MoveCommand=E;var T=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementMoves=o,r.reverse=i,r}return n(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(o){t.reverse?o.element.position={x:(1-e)*o.toPosition.x+e*o.fromPosition.x,y:(1-e)*o.toPosition.y+e*o.fromPosition.y}:o.element.position={x:(1-e)*o.fromPosition.x+e*o.toPosition.x,y:(1-e)*o.fromPosition.y+e*o.toPosition.y}}),this.model},t}(p.Animation);t.MoveAnimation=T;var x=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.reverse=i,r.expanded=[],o.forEach(function(e){var t=r.reverse?e.after:e.before,o=r.reverse?e.before:e.after,n=t.routedPoints,i=o.routedPoints,a=Math.max(n.length,i.length);r.expanded.push({startExpandedRoute:r.growToSize(n,a),endExpandedRoute:r.growToSize(i,a),memento:e})}),r}return n(t,e),t.prototype.midPoint=function(e){var t=e.edge,o=e.edge.source,n=e.edge.target;return O.linear(b.translatePoint(O.center(o.bounds),o.parent,t.parent),b.translatePoint(O.center(n.bounds),n.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof q.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var o=e.memento;t.reverse?o.before.router.applySnapshot(o.edge,o.before):o.after.router.applySnapshot(o.edge,o.after)}):this.expanded.forEach(function(t){for(var o=[],n=1;n(a+p)*i)++p;a+=p;for(var l=0;l0?new S(i,!1,o):void 0}},t.prototype.snap=function(e,t,o){return o&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof q.SRoutableElement))return;var o=this.edgeRouterRegistry.get(t.routerKind),n=o.route(t);return o.getHandlePosition(t,n,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof u.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var o=this,n=[],i=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&n.push(r),e.root.index.all().forEach(function(t){if(t instanceof q.SRoutingHandle){var r=t.parent;if(r instanceof q.SRoutableElement&&t.danglingAnchor){var a=o.getHandlePosition(t);if(a){var s=b.translatePoint(a,t.parent,t.root),c=A.findChildrenAtPosition(e.root,s).find(function(e){return q.isConnectable(e)&&e.canConnect(r,t.kind)});c&&o.hasDragged&&(n.push(new y.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),i=!0)}}t.editMode&&n.push(new g.SwitchEditModeAction([],[t.id]))}})}if(!i){var a=e.root.index.getById(q.edgeInProgressID);if(a instanceof u.SChildElement){var s=[];s.push(q.edgeInProgressID),a.children.forEach(function(e){e instanceof q.SRoutingHandle&&e.danglingAnchor&&s.push(e.danglingAnchor.id)}),n.push(new v.DeleteElementAction(s))}}return this.hasDragged&&n.push(new z.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),n},t.prototype.decorate=function(e,t){return e},r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(d.TYPES.ISnapper),c.optional(),a("design:type",Object)],t.prototype,"snapper",void 0),t}(M.MouseListener);t.MoveMouseListener=N;var B=function(){function e(){}return e.prototype.decorate=function(e,t){if(W.isEdgeLayoutable(t)&&t.parent instanceof f.SEdge)return e;var o="";if(C.isLocateable(t)&&t instanceof u.SChildElement&&void 0!==t.parent){var n=t.position;0===n.x&&0===n.y||(o="translate("+n.x+", "+n.y+")")}if(A.isAlignable(t)){var i=t.alignment;0===i.x&&0===i.y||(o.length>0&&(o+=" "),o+="translate("+i.x+", "+i.y+")")}return o.length>0&&h.setAttr(e,"transform",o),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=B},5823:function(e,t,o){"use strict";var n=o("e8de"),i=o.n(n);i.a},5870:function(e,t,o){},5884:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("1cc1"),r=o("3c83"),a=o("6923"),s=new n.ContainerModule(function(e){e(a.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,o){e.container.isBound(a.TYPES.IContextMenuService)?t(e.container.get(a.TYPES.IContextMenuService)):o()})}}),e(a.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(a.TYPES.IContextMenuProviderRegistry).to(i.ContextMenuProviderRegistry)});t.default=s},"5b35":function(e,t,o){"use strict";var n=o("b878"),i=o.n(n);i.a},"5bc0":function(e,t,o){},"5bcd":function(e,t,o){},"5d08":function(e,t,o){"use strict";var n=o("d675"),i=o.n(n);i.a},"5d19":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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=o("66f9"),a=o("0fb6"),s=o("6923"),c=o("dd02"),p=o("e1c6"),l=function(){function e(t,o){void 0===o&&(o=""),this.svg=t,this.responseId=o,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=l;var u=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var o=document.getElementById(this.options.hiddenDiv);if(null!==o&&o.firstElementChild&&"svg"===o.firstElementChild.tagName){var n=o.firstElementChild,i=this.createSvg(n,e);this.actionDispatcher.dispatch(new l(i,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var o=new XMLSerializer,n=o.serializeToString(e),i=document.createElement("iframe");if(document.body.appendChild(i),!i.contentWindow)throw new Error("IFrame has no contentWindow");var r=i.contentWindow.document;r.open(),r.write(n),r.close();var a=r.getElementById(e.id);a.removeAttribute("opacity"),this.copyStyles(e,a,["width","height","opacity"]),a.setAttribute("version","1.1");var s=this.getBounds(t);a.setAttribute("viewBox",s.x+" "+s.y+" "+s.width+" "+s.height);var c=o.serializeToString(a);return document.body.removeChild(i),c},e.prototype.copyStyles=function(e,t,o){for(var n=getComputedStyle(e),i=getComputedStyle(t),r="",a=0;a=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,o){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=o("8707").Buffer,r=o(3);function a(e,t,o){e.copy(t,o)}e.exports=function(){function e(){n(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,o=""+t.data;while(t=t.next)o+=e+t.data;return o},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);var t=i.allocUnsafe(e>>>0),o=this.head,n=0;while(o)a(o.data,t,n),n+=o.data.length,o=o.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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("6923");function i(e,t){var o=e.get(n.TYPES.CommandStackOptions);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);return o}t.overrideCommandStackOptions=i},"5eb6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("3a92");function i(e){return e instanceof n.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=i},6176:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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=o("e1c6"),a=o("dd02"),s=o("3a92"),c=o("6923"),p=o("42f7"),l=o("320b"),u=o("66f9"),b=function(){function e(){}return e}();t.BoundsData=b;var d=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(u.isSizeable(t)||u.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof s.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===p.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var o=[],n=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var i={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof s.SChildElement&&u.isLayoutContainer(t.parent)&&(i.newPosition={x:e.bounds.x,y:e.bounds.y}),o.push(i)}e.alignmentChanged&&void 0!==e.alignment&&n.push({elementId:t.id,newAlignment:e.alignment})});var i=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new p.ComputedBoundsAction(o,i,n,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,o){if(t.bounds&&u.isSizeable(o)){var n=t.vnode;if(n&&n.elm){var i=e.getBounds(n.elm,o);!u.isAlignable(o)||a.almostEquals(i.x,0)&&a.almostEquals(i.y,0)||(t.alignment={x:-i.x,y:-i.y},t.alignmentChanged=!0);var r={x:o.bounds.x,y:o.bounds.y,width:i.width,height:i.height};a.almostEquals(r.x,o.bounds.x)&&a.almostEquals(r.y,o.bounds.y)&&a.almostEquals(r.width,o.bounds.width)&&a.almostEquals(r.height,o.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),a.EMPTY_BOUNDS;var o=e.getBBox();return{x:o.x,y:o.y,width:o.width,height:o.height}},n([r.inject(c.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([r.inject(c.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actionDispatcher",void 0),n([r.inject(c.TYPES.Layouter),i("design:type",l.Layouter)],e.prototype,"layouter",void 0),e=n([r.injectable()],e),e}();t.HiddenBoundsUpdater=d},"61d8":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("6923"),l=o("3585"),u=o("168d"),b=function(){function e(t,o,n){this.routableId=t,this.newSourceId=o,this.newTargetId=n,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=b;var d=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,o=t.getById(this.action.routableId);if(o instanceof l.SRoutableElement){var n=this.edgeRouterRegistry.get(o.routerKind),i=n.takeSnapshot(o);n.applyReconnect(o,this.action.newSourceId,this.action.newTargetId);var r=n.takeSnapshot(o);this.memento={edge:o,before:i,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=b.KIND,i([s.inject(u.EdgeRouterRegistry),r("design:type",u.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[b])],t),t}(c.Command);t.ReconnectCommand=d},6208:function(e,t,o){"use strict";var n=o("6cea"),i=o.n(n);i.a},"624f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4"),r=o("1979"),a=o("66d7"),s=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,o,s){if(void 0===e)throw new Error(n.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(i.INJECT_TAG,e);"number"===typeof s?a.tagParameter(t,o,s,c):a.tagProperty(t,o,c)}}t.LazyServiceIdentifer=s,t.inject=c},6283:function(e,t,o){"use strict";var n=o("5bcd"),i=o.n(n);i.a},6420:function(e,t,o){"use strict";var n=o("1f0f"),i=o.n(n);i.a},6592:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=a,t.transformName=s,t.unescapeEntities=l;var n=o("81aa"),i=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return(0,i.default)(void 0,void 0,void 0,l(e,t))}function s(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"),p=null;function l(e,t){return p||(p=t.createElement("div")),e.replace(c,function(e){return p.innerHTML=e,p.textContent})}},"65d1":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},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 a=o("e1c6"),s=o("393a"),c=o("3623"),p=o("e45b"),l=o("8e97"),u=o("779b"),b=o("3585"),d=o("168d"),M=o("8d9d"),h=function(){function e(){}return e.prototype.render=function(e,t){var o="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return s.svg("svg",{"class-sprotty-graph":!0},s.svg("g",{transform:o},t.renderChildren(e)))},e=i([a.injectable()],e),e}();t.SGraphView=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){var o=this.edgeRouterRegistry.get(e.routerKind),n=o.route(e);if(0===n.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,n,t)){if(0===e.children.length)return;return s.svg("g",null,t.renderChildren(e,{route:n}))}return s.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,n,t),this.renderAdditionals(e,n,t),t.renderChildren(e,{route:n}))},t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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(){n&&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,o=void 0===t?"":t,n=p.some(function(e){return!!~o.indexOf(e)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var o=0,n=Object.keys(t);o0},e}(),w="undefined"!==typeof WeakMap?new WeakMap:new o,L=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 o=u.getInstance(),n=new R(t,o,this);w.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){L.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var C=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:L}();t["a"]=C}).call(this,o("c8ba"))},"6f35":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("3ada"),a=new n.ContainerModule(function(e,t,o){i.configureCommand({bind:e,isBound:o},r.BringToFrontCommand)});t.default=a},"70d9":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("3864"),c=o("e1c6"),p=o("6923"),l=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.TYPE,new e)}),o}return n(t,e),t=i([c.injectable(),a(0,c.multiInject(p.TYPES.IButtonHandler)),a(0,c.optional()),r("design:paramtypes",[Array])],t),t}(s.InstanceRegistry);t.ButtonHandlerRegistry=l},7122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("c5f4");function a(e,t,o){var n=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty}),r=n.map(o);return n.forEach(function(t,o){var n="";n=t.target.name.value();var i=r[o];e[n]=i}),e}function s(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var o=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[o.value]()}catch(t){throw new Error(n.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function p(e,t,o){var n=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument}),p=r.map(o);n=s(e,p),n=a(n,t,o)}else n=new e;return c(e,n),n}t.resolveInstance=p},"715d":function(e,t,o){"use strict";var n=o("1f66"),i=o.n(n);i.a},7173:function(e,t,o){"use strict";var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[o("div",{staticClass:"ft-container"},[o("div",{staticClass:"ft-time row"},[o("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[o("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?o("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),o("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("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))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?o("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,n){return-1!==t[0]?o("div",{key:n,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),o("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?o("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[o("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?o("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)])])]),o("q-resize-observable",{on:{resize:e.updateWidth}})],1)},i=[];n._withStripped=!0;o("ac6a");var r=o("278c"),a=o.n(r),s=(o("28a5"),o("c5f6"),o("c1df")),c=o.n(s),p=o("b8c1"),l={name:"FigureTimeline",mixins:[p["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)),o=a()(t,2);this.timelineDate=o[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,o=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return o>this.end?o=this.end:othis.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(o){o[0]<=e&&(t=o)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),o=a()(t,2);this.timelineDate=o[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()}},u=l,b=(o("0faf"),o("2877")),d=Object(b["a"])(u,n,i,!1,null,null,null);d.options.__file="FigureTimeline.vue";t["a"]=d.exports},"719e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,e))throw new Error(n.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(i.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,o){},"72dd":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("42f7"),a=o("61bf"),s=o("320b"),c=o("842c"),p=new n.ContainerModule(function(e,t,o){c.configureCommand({bind:e,isBound:o},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:o},r.RequestBoundsCommand),e(a.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(i.TYPES.HiddenVNodePostprocessor).toService(a.HiddenBoundsUpdater),e(i.TYPES.Layouter).to(s.Layouter).inSingletonScope(),e(i.TYPES.LayoutRegistry).to(s.LayoutRegistry).inSingletonScope()});t.default=p},7364:function(e,t,o){},7521:function(e,t,o){"use strict";var n=o("48f9"),i=o.n(n);i.a},"755f":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("e45b"),a=o("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var o=16/1792,n="scale("+o+", "+o+")",a=this.getMaxSeverity(e),s=i.svg("g",{"class-sprotty-issue":!0},i.svg("g",{transform:n},i.svg("path",{d:this.getPath(a)})));return r.setClass(s,"sprotty-"+a,!0),s},e.prototype.getMaxSeverity=function(e){for(var t="info",o=0,n=e.issues.map(function(e){return e.severity});o1?o("div",{staticClass:"kal-locales row reverse"},[o("q-select",{staticClass:"kal-lang-selector",attrs:{options:t.localeOptions,color:"app-main-color","hide-underline":""},model:{value:t.selectedLocale,callback:function(o){e.$set(t,"selectedLocale",o)},expression:"app.selectedLocale"}})],1):e._e()])})],2)])],1)],1)],1)])},R=[];W._withStripped=!0;o("a481"),o("7514"),o("20d6"),o("ac6a"),o("cadf"),o("456d"),o("7f7f");var w=o("be3b"),L=o("d247"),C={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ŋƅ"}},S=o("2b0e"),E={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["M"],ISO_LOCALE:C}},computed:a()({},Object(s["c"])("data",["sessionReference","isLocal"]),Object(s["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["O"].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:a()({},Object(s["b"])("data",["loadSessionReference","addTerminal"]),Object(s["b"])("view",["setLayout","setShowSettings"]),{getLocalizedString:function(e,t){if(e.selectedLocale){var o=e.localizations.find(function(t){return t.isoCode===e.selectedLocale});if(o)return"label"===t?o.localizedLabel:o.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(L["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,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selectedLocale,n="".concat(e.name,".").concat(o);this.layout&&this.layout.name===n||(e.selectedLocale=o,this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:n},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={redirectUri:__ENV__.APP_BASE_URL},o="".concat("").concat("/modeler").concat(this.isApp?"?app=".concat(this.klabApp):"");null!==this.token?w["a"].post("".concat("").concat(L["c"].REST_API_LOGOUT),{headers:{Authorization:"Bearer ".concat(localStorage.getItem(c["u"].TOKEN))}}).then(function(n){var i=n.status;205===i?e.$store.state.data.isLocal?(console.warn("paso por aqui"),window.location=o):(console.warn("paso por aqui keycloak"),S["a"].$keycloak.logout(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=o},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(o){o!==e&&(t.models[o]=!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(a()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},T=E,x=(o("e2d7"),Object(A["a"])(T,W,R,!1,null,null,null));x.options.__file="KlabSettings.vue";var N=x.exports,B=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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}},[o("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[o("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}},[o("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),o("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[o("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?o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[o("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):o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[o("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),o("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[o("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),o("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),o("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.sizeSelected(t.ok,!1)}}}),o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(o){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[o("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),o("div",{attrs:{slot:"body"},slot:"body"},[o("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)},k=[];B._withStripped=!0;var P,D=o("448a"),I=o.n(D),X=(o("96cf"),o("c973")),j=o.n(X),F=o("fcf3");o("f751");function H(e){return e&&(e.$el||e)}function U(e,t,o,n,i){void 0===i&&(i={});var r={left:o,top:n},a=e.height,s=e.width,c=n,p=n+a,l=o,u=o+s,b=i.top||0,d=i.bottom||0,M=i.left||0,h=i.right||0,f=t.top+b,z=t.bottom-d,O=t.left+M,A=t.right-h;return cz&&(r.top=z-a),lA&&(r.left=A-s),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(P||(P={}));var V={bind:function(e,t,o,n){V.update(e,t,o,n)},update:function(e,t,o,n){if(!t.value||!t.value.stopDragging){var i=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(d(),f()),i.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),i.addEventListener("mousedown",c),i.addEventListener("touchstart",c,{passive:!1}),i.setAttribute("draggable","true"),e.listener=c,d(),f())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function a(){if(!M()){var t=z();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function s(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),h({initialPosition:s,startDragPosition:s,currentDragPosition:s,initialPos:u(e)}),a()}function M(){return t&&t.value&&t.value.noMove}function h(e){var t=z(),o=Object.assign({},t,e);i.setAttribute("draggable-state",JSON.stringify(o))}function f(e,o){var n=z(),i={x:0,y:0};n.currentDragPosition&&n.startDragPosition&&(i.x=n.currentDragPosition.left-n.startDragPosition.left,i.y=n.currentDragPosition.top-n.startDragPosition.top);var r=n.currentDragPosition&&Object.assign({},n.currentDragPosition);o===P.End?t.value&&t.value.onDragEnd&&n&&t.value.onDragEnd(i,r,e):o===P.Start?t.value&&t.value.onDragStart&&n&&t.value.onDragStart(i,r,e):t.value&&t.value.onPositionChange&&n&&t.value.onPositionChange(i,r,e)}function z(){return JSON.parse(i.getAttribute("draggable-state"))||{}}}},G=o("741d"),K=o("abcf"),$=(o("abb2"),K["b"].height),Y={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["L"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:V},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["L"]}},computed:a()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["M"].DEBUGGER?"#002f74":"#2e0047"}},Object(s["c"])("data",["terminalCommands"])),methods:a()({},Object(s["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(p["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=j()(regeneratorRuntime.mark(function e(t,o){var n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:n=c["L"].find(function(e){return e.value===i.selectedSize}),this.instance.resize(n.cols,n.rows),o&&G["a"].set(c["R"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(p["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:G["a"].has(c["R"].COOKIE_TERMINAL_SIZE)?G["a"].get(c["R"].COOKIE_TERMINAL_SIZE):c["L"][0].value;var o=c["L"].find(function(t){return t.value===e});this.selectedSize=o.value,this.instance=new F["Terminal"]({cols:o.cols,rows:o.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 o=function(){for(var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=0;n0){var i=t.command.join("");t.sendStompMessage(p["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:i},t.$store.state.data.session).body),t.addTerminalCommand(i)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":n>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?o(t.terminalCommands[--t.commandsIndex]):(o(),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-$(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)}},J=Y,Q=(o("23a0"),Object(A["a"])(J,B,k,!1,null,null,null));Q.options.__file="KlabTerminal.vue";var Z=Q.exports,ee=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.activeDialog?o("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[o("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),o("div",{staticClass:"kaa-button"},[o("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?o("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()},te=[];ee._withStripped=!0;var oe={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:a()({},Object(s["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:a()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=oe,ie=(o("715d"),Object(A["a"])(ne,ee,te,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var re=ie.exports,ae=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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?o("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?o("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):o("div",{staticClass:"kapp-header row"},[o("div",{staticClass:"kapp-logo-container"},[o("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),o("div",{staticClass:"kapp-title-container"},[e.layout.label?o("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?o("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?o("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?o("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return o("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(o){e.clickOnMenu(t.id,t.url)}}},[e._v(e._s(t.text)),t.url?o("span",{staticClass:"klab-external-link"},[e._v("🡥")]):e._e()])})):e._e(),o("div",{staticClass:"kapp-actions-container row items-end justify-end"},[o("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?o("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?[o("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?o("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?[o("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(),o("q-page-container",[e.layout&&0!==e.layout.panels.length?[o("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]}})]:o("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),o("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),o("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"}},[o("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];ae._withStripped=!0;o("6762"),o("2fdb"),o("4917"),o("5df3"),o("1c4c");var ce=o("50fb"),pe=o.n(ce),le=o("84a2"),ue=o.n(le),be=o("6dd8"),de=o("0312"),Me=o.n(de);function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[n]||this.options.forceVisible){"x"===n?(e=this.scrollbarX,t=this.contentSizeX,o=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,o=this.trackYSize);var i=o/t;this.handleSize[n]=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[n]=Math.min(this.handleSize[n],this.options.scrollbarMaxSize)),"x"===n?e.style.width="".concat(this.handleSize[n],"px"):e.style.height="".concat(this.handleSize[n],"px")}}},{key:"positionScrollbar",value:function(){var e,t,o,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===i?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[i]],o=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[i]],o=this.contentSizeY,n=this.trackYSize);var r=t/(o-n),a=~~((n-this.handleSize[i])*r);(this.isEnabled[i]||this.options.forceVisible)&&(e.style.transform="x"===i?"translate3d(".concat(a,"px, 0, 0)"):"translate3d(0, ".concat(a,"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,o="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]?o.style.visibility="visible":o.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=pe()(),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 o="y"===t?this.scrollbarY:this.scrollbarX,n="y"===t?e.pageY:e.pageX;this.dragOffset[t]=n-o.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 o=t.name.match(/data-simplebar-(.+)/);if(o){var n=o[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[n]=!0;break;case"false":e[n]=!1;break;case void 0:e[n]=!0;break;default:e[n]=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}();Me.a&&Oe.initHtmlApi();var Ae=Oe,me=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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:""}},[o("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"}},[o("klab-left-menu")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[o("keep-alive",[o(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),o("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),o("div",{staticClass:"col-1 row"},[e.logVisible?o("klab-log"):e._e()],1),o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?o("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?o("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():o("observation-time"),o("input-request-modal"),o("scale-change-dialog")],1)],1)],1)},ve=[];me._withStripped=!0;var ge=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("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)"}},[o("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)]),o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("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()}}},[o("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)}}},[o("klab-search-bar",{ref:"klab-search-bar"}),o("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),o("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"},[o("div",{staticClass:"mc-tabs"},[o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),o("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),o("scale-buttons",{attrs:{docked:!1}}),o("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),o("stop-actions-buttons")],1),o("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"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.selectedTab,{tag:"component"})],1)],1)],1),o("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-terrain"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-human-male-female"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?o("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?o("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},ye=[];ge._withStripped=!0;var qe=o("1fe0"),_e=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-actions",class:e.orientation},[o("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?o("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)}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("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(),o("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)}}},[o("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?o("span",{staticClass:"klab-button-notification"}):e._e(),o("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),o("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)}}},[o("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.flowchartsUpdatable?o("span",{staticClass:"klab-button-notification"}):e._e(),o("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)])])},We=[];_e._withStripped=!0;var Re={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasObservations","flowchartsUpdatable","hasContext"]),Object(s["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:a()({},Object(s["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["O"]}},we=Re,Le=(o("6208"),Object(A["a"])(we,_e,We,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Ce=Le.exports,Se=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?o("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[o("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[o("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)?o("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[o("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[o("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()])},Ee=[];Se._withStripped=!0;var Te={computed:a()({},Object(s["c"])("data",["hasContext","contextId","session"])),methods:a()({},Object(s["b"])("data",["loadContext","setWaitinForReset"]),Object(s["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(a()({},c["J"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},xe={name:"StopActionsButtons",mixins:[Te],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext","contextId","previousContext"]),Object(s["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(p["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(p["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Ne=xe,Be=(o("c31b"),Object(A["a"])(Ne,Se,Ee,!1,null,null,null));Be.options.__file="StopActionsButtons.vue";var ke=Be.exports,Pe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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():o("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[o("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),o("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?o("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):o("div",{staticClass:"ksb-context-text text-white"},[o("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),o("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[o("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?o("q-icon",{attrs:{name:"mdi-lock-outline"}},[o("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(),o("main-control-menu")],1)])},De=[];Pe._withStripped=!0;var Ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"ks-container",attrs:{id:"ks-container"}},[o("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,n){return o("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:n},on:{focus:function(o){e.onTokenFocus(t,o)},blur:function(o){e.onTokenFocus(t,o)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),o("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?o("span",[e._v(e._s(t.sublabel))]):o("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),o("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[o("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"}},[o("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)])},Xe=[];Ie._withStripped=!0;o("386d");var je=o("278c"),Fe=o.n(je),He=o("b0b2"),Ue=o("b12a"),Ve=o("7ea0"),Ge=o("b5b8"),Ke=o("1180"),$e=o("68c2"),Ye=o("506f"),Je=o("b8d9"),Qe=o("52b5"),Ze=o("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,o,n,i,r){var a={props:{right:r.right}};if(n&&i)e.push(t(o,a,n));else{var s=!1;for(var c in r)if(r.hasOwnProperty(c)&&(s=r[c],void 0!==s&&!0!==s)){e.push(t(o,{props:r}));break}n&&e.push(t(o,a,n))}}var ot={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,o=this.slotReplace,n=[];return tt(n,e,et,this.$slots.left,o,{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(n,e,Je["a"],this.$slots.main,o,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(n,e,et,this.$slots.right,o,{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}),n.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},n)}},nt=K["b"].width,it={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var o=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),n=o.length,i=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=i,n0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=nt(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(o,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",o,function(e){if(t.isWorking()&&t.searchId===i){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,o=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:o?"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:o,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(o,n){return e(ot,{key:o.id||n,class:{"q-select-highlight":t.keyboardIndex===n,"cursor-pointer":!o.disable,"text-faded":o.disable,"ka-separator":o.separator},props:{cfg:o},nativeOn:{mousedown:function(e){!o.disable&&(t.keyboardIndex=n),e.preventDefault()},click:function(){!o.disable&&t.setValue(o)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=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!==o&&o(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==n&&n()):null!==i&&i(e))}}},at="=(<)>",st={name:"KlabSearch",components:{KlabAutocomplete:it},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:a()({},Object(s["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(s["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:a()({},Object(s["b"])("data",["setContextCustomLabel"]),Object(s["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 o=this.acceptedTokens.findIndex(function(e){return e.selected}),n=null,i=!1;if(37===e.keyCode&&o>0?n="token-".concat(this.acceptedTokens[o-1].index):39===e.keyCode&&o=a&&(o=a)}else{var s=i?r.$el:r,c=(i?s.offsetLeft:r.offsetLeft)+n+s.offsetWidth,p=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;p<=c&&(o=t.searchDiv.scrollLeft+(c-p)-n)}null!==o&&S["a"].nextTick(function(){t.searchDiv.scrollLeft=o})})}}},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 o=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:o.matchIndex,matchId:o.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["x"].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 n=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,i=this.autocompleteEl.results[n];i.separator||(this.autocompleteEl.setValue(i),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];S["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(He["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==at.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 o=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(p["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(){o.searchEnd({})});this.freeText=e.nextTokenClass!==c["x"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){o.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 o=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);o>0&&e.largeMode>0&&(o>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-o))}else{var n=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+n)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var o=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["G"].FREETEXT:c["G"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(a()({},c["J"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.setSpinner(a()({},c["J"].SPINNER_ERROR,{owner:o.$options.name,errorMessage:o.$t("errors.searchTimeout"),time:o.fuzzyMode?5:2,then:a()({},c["J"].SPINNER_STOPPED)})),o.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(p["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,o=void 0!==t&&t,n=e.noDelete,i=void 0!==n&&n;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(i)return;o||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(o){e.autocompleteEl.__clearSearch(),Array.isArray(o)&&o.length>0?(e.autocompleteEl.results=o,S["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(p["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(He["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==at.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 o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(n));if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,p=r.error,l=r.errorMessage,u=r.parenthesisDepth,b=r.last;if(this.parenthesisDepth=u,this.last=b,p)this.setSpinner(a()({},c["J"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:l}));else{var d=[];s.forEach(function(e){var o=c["x"][e.matchType];if("undefined"!==typeof o){var n=o;if(null!==e.mainSemanticType){var i=c["H"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}if("SEPARATOR"===e.matchType)d.push({value:e.name,label:e.name,labelLines:1,rgb:n.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,s=null!==r?Object(Ue["m"])(e.state):null;d.push(a()({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,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==s&&{rightIcon:s.icon,rightTextColor:"state-".concat(s.tooltip),rightTooltip:{state:s.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==d.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(a()({},c["J"].SPINNER_STOPPED,{owner:this.$options.name})),S["a"].nextTick(function(){t.doneFunc(d),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}},acceptedTokens:function(){var e=this;S["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=st,pt=(o("aff7"),Object(A["a"])(ct,Ie,Xe,!1,null,null,null));pt.options.__file="KlabSearch.vue";var lt=pt.exports,ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[o("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?o("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},bt=[];ut._withStripped=!0;var dt={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:a()({},Object(s["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,o=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!==o&&(t.animationDuration=o),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()}},Mt=dt,ht=(o("2590"),Object(A["a"])(Mt,ut,bt,!1,null,null,null));ht.options.__file="ScrollingText.vue";var ft=ht.exports,zt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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?o("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[o("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),o("q-list",{attrs:{dense:""}},[o("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?o("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[o("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),o("q-item-separator"),e.hasContext?o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[o("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[o("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),o("div",[o("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),o("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[o("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return o("q-item",{key:t.id},[o("q-item-main",[o("div",{staticClass:"mcm-container mcm-context-label"},[o("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(o){e.closeAndCall(t.id)}}},[o("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(o){e.tooltipIt(o,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),o("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)]),o("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(o){e.copyContextES(o,t.spatialProjection+" "+t.encodedShape)}}},[o("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():[o("q-item",[o("q-item-main",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[o("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),o("q-item-separator"),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[o("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),o("q-item-separator"),o("q-item",[o("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)},Ot=[];zt._withStripped=!0;var At=o("c1df"),mt=o.n(At),vt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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?o("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?o("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)}}},[o("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(),o("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[o("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),o("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),o("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?o("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),o("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):o("div",{staticClass:"sr-no-scalereference"},[o("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},gt=[];vt._withStripped=!0;var yt={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["D"].ST_SPACE,c["D"].ST_TIME].indexOf(e)},default:c["D"].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["D"]}},computed:a()({},Object(s["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["D"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["E"].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(mt()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(mt()(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:a()({},Object(s["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["D"].ST_SPACE?c["I"].LOCK_SPACE:c["I"].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)}})},qt=yt,_t=(o("cf611"),Object(A["a"])(qt,vt,gt,!1,null,null,null));_t.options.__file="ScaleReference.vue";var Wt=_t.exports,Rt=o("2cee"),wt=o("1442"),Lt={name:"MainControlMenu",mixins:[Rt["a"],Te],components:{ScaleReference:Wt},data:function(){return{}},computed:a()({},Object(s["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(s["d"])("stomp",["subscriptions"]),Object(s["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(s["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(s["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:a()({},Object(s["b"])("data",["setInteractiveMode"]),Object(s["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=j()(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 o=mt()(t),n=0===mt()().diff(o,"days");return n?o.format("HH:mm:ss"):o.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),G["a"].set(c["R"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(G["a"].set(c["R"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),G["a"].set(c["R"].COOKIE_MAPDEFAULT,{center:wt["b"].center,zoom:wt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?G["a"].set(c["R"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):G["a"].remove(c["R"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(He["b"])(t),this.$q.notify({message:Object(He["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(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].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)}},Ct=Lt,St=(o("6774"),Object(A["a"])(Ct,zt,Ot,!1,null,null,null));St.options.__file="MainControlMenu.vue";var Et=St.exports,Tt={name:"KlabSearchBar",components:{KlabSpinner:v,KlabSearch:lt,ScrollingText:ft,MainControlMenu:Et},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:a()({},Object(s["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(s["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:a()({},Object(s["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["w"].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(a()({},c["J"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(a()({},c["J"].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(a()({},c["J"].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)}},xt=Tt,Nt=(o("19f2"),Object(A["a"])(xt,Pe,De,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var Bt=Nt.exports,kt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.contextsCount>1?o("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,n){return o("span",{key:t.id,on:{click:function(o){e.load(t.contextId,n)}}},[e._v(e._s(t.label))])})):e._e()},Pt=[];kt._withStripped=!0;var Dt={name:"KlabBreadcrumbs",mixins:[Te],computed:a()({},Object(s["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:a()({},Object(s["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var o,n=this.$store.state.data.observations.find(function(t){return t.id===e});o=n||this.contextById(e),this.sendStompMessage(p["a"].CONTEXTUALIZATION_REQUEST(a()({contextId:o.id},o.contextId&&{parentContext:o.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},It=Dt,Xt=(o("6c8f"),Object(A["a"])(It,kt,Pt,!1,null,null,null));Xt.options.__file="KlabBreadcrumbs.vue";var jt=Xt.exports,Ft=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"klab-tree-pane"}},[o("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[o("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?o("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[o("q-resize-observable",{on:{resize:e.outContainerResized}}),[o("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}})],o("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}},[o("summary",[o("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[o("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),o("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?o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),o("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?o("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Ht=[];Ft._withStripped=!0;o("5df2");var Ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?o("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[o("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}}}),o("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}}}),o("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}}})],o("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(),o("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}),[o("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():o("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),o("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,o=e.currentTarget,n=0;if(this.active){if(this.horizontal){while(o)t+=o.offsetTop,o=o.offsetParent;n=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(o)t+=o.offsetLeft,o=o.offsetParent;n=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}n>this.margin&&n<100-this.margin&&(this.percent=n),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=(o("1848"),Object(A["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,o=e._self._c||t;return o("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}},[o("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[o("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 o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("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(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?o("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?o("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?o("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):o("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),o("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?[o("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():o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[o("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():o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[o("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 o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("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(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[o("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(),o("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 o("div",{staticClass:"node-stub"},[o("span",{staticClass:"node-element node-stub"},[o("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),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;o("f559"),o("6b54"),o("b54a");var Zt=o("e4f9"),eo=o("bffd"),to=o("b70a"),oo=o("525b"),no={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 o=this,n=t[this.nodeKey],i=this.meta[n],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],a=i.isParent?this.__getChildren(e,t.children):[],s=a.length>0||i.lazy&&"loaded"!==i.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],p=r||c?this.__getSlotScope(t,i,n):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(p)])])),e("div",{key:n,staticClass:"q-tree-node",class:{"q-tree-node-parent":s,"q-tree-node-child":!s}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":i.link,"q-tree-node-selected":i.selected,disabled:i.disabled},on:{click:function(e){o.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&o.__onClick(t,i):o.__onClick(t,i)}}},["loading"===i.lazy?e(to["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):s?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":i.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){o.__onExpandClick(t,i,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[i.hasTicking&&!i.noTick?e(oo["a"],{staticClass:"q-mr-xs",props:{value:i.indeterminate?null:i.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!i.tickable},on:{input:function(e){o.__onTickedClick(t,i,e)}}}):null,r?r(p):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),s?e(eo["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:i.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:i.disabled}},a)])]):c])},__onClick:function(e,t){var o=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(){o.timeouts["id".concat(e.id)]=null,o.__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),o=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===o?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==o&&this.classes.splice(o,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},io=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[o("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,n){return t.enabled?[t.separator&&0!==n?o("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?o("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(o){e.askForAction(t.actionId)}}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():o("q-item",{key:t.actionId,attrs:{disabled:""}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},ro=[];io._withStripped=!0;var ao={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:a()({},Object(s["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["A"].TYPE_STATE&&t.observationType!==c["A"].TYPE_GROUP&&(this.itemActions.push(c["B"].SEPARATOR_ITEM),this.itemActions.push(c["B"].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(p["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()}},so=ao,co=(o("ad0b"),Object(A["a"])(so,io,ro,!1,null,null,null));co.options.__file="ObservationContextMenu.vue";var po=co.exports,lo=null,uo={name:"klabTree",components:{KlabQTree:no,ObservationContextMenu:po},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["A"]}},computed:a()({},Object(s["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(s["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(s["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(s["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:a()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:He["b"]},Object(s["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(s["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 o=e.target.getElementsByClassName("node-element");if(1===o.length){var n=Fe()(o,1);t=n[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,o){var n=this;null!==o&&o.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:o[0].value,items:o},cancel:!0,preventClose:!1,color:"info"}).then(function(e){n.askDownload(t,e,o)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,o,n){if("undefined"===typeof n){var i="";if(-1!==this.timestamp){var r=new Date(this.timestamp);i="_".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())}n="".concat(e).concat(i)}var a=o.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",n,a,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,o=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],o)},doubleClick:function(){var e=j()(regeneratorRuntime.mark(function e(t,o){var n,i;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["A"].TYPE_STATE){e.next=8;break}this.fitMap(t,o),e.next=14;break;case 8:if(n=this.observations.find(function(e){return e.id===t.id}),!n||null===n){e.next=14;break}return e.next=12,Object(Ue["j"])(n);case 12:i=e.sent,this.fitMap(t,o,i);case 14:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),fitMap:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:o}),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,o=e.id,n=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,o);e&&(t.setVisibility({node:e,visible:n}),n?t.ticked.push(o):t.ticked.splice(t.ticked.findIndex(function(e){return e===o}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=lo&&(clearTimeout(this.scrollToTimeout),lo=null),this.$nextTick(function(){lo=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.reduce(function(e,t){return e+t.toString().length},0),n=""!==t?" + ".concat(t):"";return"calc(".concat(o,"ch").concat(n,")")},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 o=t.filter(function(t){return e.indexOf(t)<0})[0],n=Object(Ue["f"])(this.tree,o);return this.sendStompMessage(p["a"].WATCH_REQUEST({active:!1,observationId:o,rootContextId:n.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===o}),1),void console.info("Stop watching observation ".concat(o," with rootContextId ").concat(n.rootContextId))}var i=e[e.length-1],r=Object(Ue["f"])(this.tree,i);r&&(this.sendStompMessage(p["a"].WATCH_REQUEST({active:!0,observationId:i,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:i,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(i," 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 o=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0];if(n.startsWith("STUB"))return;var i=Object(Ue["f"])(this.tree,n);i&&(this.setVisibility({node:i,visible:!1}),i.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===i.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var a=Object(Ue["f"])(this.tree,r);if(null!==a)if(a.isContainer){var s=function(){var e;o.setVisibility({node:a,visible:!0}),(e=o.ticked).push.apply(e,I()(a.children.filter(function(e){return e.parentArtifactId===a.id}).map(function(e){return e.id})))};this.askingForChildren||(a.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 o=e.scrollElement.getBoundingClientRect(),n=o.bottom;e.lasts.forEach(function(t){var o=document.getElementById("node-".concat(t.observationId));if(null!==o){var i=o.getBoundingClientRect();if(0!==i.bottom&&i.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(p["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))})}},bo=uo,Mo=(o("5b35"),Object(A["a"])(bo,Jt,Qt,!1,null,null,null));Mo.options.__file="KlabTree.vue";var ho=Mo.exports,fo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[o("div",{attrs:{id:"oi-controls"}},[o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[o("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),o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[o("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?o("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[o("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()]),o("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[o("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[o("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,n){return o("div",{key:n,attrs:{id:"oi-metadata"}},[o("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(n))]),o("div",{staticClass:"oi-metadata-value",on:{dblclick:function(o){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),o("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)}}},[o("div",{attrs:{id:"oi-mapinfo-map"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),o("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},zo=[];fo._withStripped=!0;var Oo=o("e00b"),Ao=o("5eee"),mo=o("a2c7"),vo={name:"ObservationInfo",components:{HistogramViewer:Oo["a"]},mixins:[Rt["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:a()({},Object(s["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["P"].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(He["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 Ae(document.getElementById("oi-scroll-container")),this.infoMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[wt["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)}},go=vo,yo=(o("db0a"),Object(A["a"])(go,fo,zo,!1,null,null,null));yo.options.__file="ObservationInfo.vue";var qo=yo.exports,_o=K["b"].height,Wo={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:ho,ObservationInfo:qo},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:a()({},Object(s["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(s["c"])("stomp",["taskOfContextIsAlive"]),Object(s["c"])("view",["hasObservationInfo","isDocked"])),methods:a()({},Object(s["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,o=e.state,n=this.treeNode(t);n&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:o}),n.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:o}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=_o(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=_o(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)}},Ro=Wo,wo=(o("a663"),Object(A["a"])(Ro,Ft,Ht,!1,null,null,null));wo.options.__file="KlabTreePane.vue";var Lo=wo.exports,Co=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[o("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[o("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?o("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?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),o("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("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))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return o("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[o("div",{staticClass:"ot-modification"})])}),o("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?o("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?o("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)]),o("div",{staticClass:"ot-date-container"},[o("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?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?o("observation-time"):e._e()],1)},So=[];Co._withStripped=!0;var Eo=o("b8c1"),To=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.timeEvents.length>0?o("transition",{attrs:{name:"fade"}},[o("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()},xo=[];To._withStripped=!0;var No={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:a()({},Object(s["c"])("data",["timestamp","timeEvents"]),Object(s["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=mt()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},Bo=No,ko=(o("8622"),Object(A["a"])(Bo,To,xo,!1,null,null,null));ko.options.__file="ObservationTime.vue";var Po=ko.exports,Do={name:"ObservationsTimeline",components:{ObservationTime:Po},mixins:[Eo["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(qe["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:a()({},Object(s["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(s["c"])("stomp",["tasks"]),Object(s["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:a()({},Object(s["b"])("data",["setTimestamp","setModificationsTask"]),Object(s["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var n=mt()(e);return t?n.format("DD MMM YYYY"):'
'.concat(n.format("L")).concat(o?" - ":"
").concat(n.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,o=e.clientX-this.timelineContainer.getBoundingClientRect().left,n=this.scaleReference.start+o*(this.scaleReference.end-this.scaleReference.start)/t;return n>this.scaleReference.end?n=this.scaleReference.end:nthis.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 o=(this.schedulingResolution||c["N"].DEFAULT_STEP)/e,n=(this.scaleReference.end-this.scaleReference.start)/o,i=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,a=i/e;a*nc["N"].MAX_PLAY_TIME&&(a=c["N"].MAX_PLAY_TIME/n),a/=this.speedMultiplier,this.interval={step:o,steps:n,interval:a,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 o=e.find(function(e){return e.id===t.modificationsTask.id});o&&!o.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,mt.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()}},Io=Do,Xo=(o("31da"),Object(A["a"])(Io,Co,So,!1,null,null,null));Xo.options.__file="ObservationsTimeline.vue";var jo,Fo=Xo.exports,Ho=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[o("div",{staticClass:"klp-level-selector"},[o("ul",e._l(e.LOG_ICONS,function(t,n,i){return o("li",{key:i,class:{"klp-selected":e.hasLevel(n)}},[o("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(n)}}},[o("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),o("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,n){return o("q-item",{key:n,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[o("q-item-main",{staticClass:"klp-separator"},[o("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[o("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Uo=[];Ho._withStripped=!0;var Vo=(jo={},d()(jo,L["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),d()(jo,L["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),d()(jo,L["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),d()(jo,L["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),d()(jo,L["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),jo),Go={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vo}},computed:a()({},Object(s["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:a()({},Object(s["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===L["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=mt()(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=Vo[e.type];return t?Vo[e.type]:(console.warn("Log type: ".concat(e.type),e),Vo.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 Ae(document.getElementById("klab-log-pane"))}},Ko=Go,$o=(o("f58f"),Object(A["a"])(Ko,Ho,Uo,!1,null,null,null));$o.options.__file="KlabLogPane.vue";var Yo=$o.exports,Jo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sb-scales"},[e.hasNextScale()?o("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[o("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[o("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(),o("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}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[o("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"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[o("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?o("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(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),o("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}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[o("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"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[o("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?o("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qo=[];Jo._withStripped=!0;var Zo={name:"ScaleButtons",components:{ScaleReference:Wt},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["D"]}},computed:a()({},Object(s["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,o=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:o})}}}),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(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["D"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["D"].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})}}},en=Zo,tn=(o("1817"),Object(A["a"])(en,Jo,Qo,!1,null,null,null));tn.options.__file="ScaleButtons.vue";var on=tn.exports,nn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"kvs-container"},[o("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[o("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():o("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?o("span",{staticClass:"klab-button-notification"}):e._e()]),o("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),o("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"}},[o("div",{staticClass:"kvs-popover-container"},[o("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return o("q-item",{key:t.viewId,nativeOn:{click:function(o){e.selectKnowledgeView(t.viewId)}}},[o("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),o("q-item-main",[o("div",[e._v(e._s(t.label))])]),o("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)},rn=[];nn._withStripped=!0;var an={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["v"]}},computed:a()({},Object(s["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:a()({},Object(s["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var o=t.$refs["kv-tooltip-".concat(e)];o&&o.length>0&&o[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},sn=an,cn=(o("0e44"),Object(A["a"])(sn,nn,rn,!1,null,null,null));cn.options.__file="KnowledgeViewsSelector.vue";var pn=cn.exports,ln=K["b"].width,un=K["b"].height,bn={top:25,left:15},dn={name:"klabMainControl",components:{KlabSpinner:v,KlabSearchBar:Bt,KlabBreadcrumbs:jt,KlabTreePane:Lo,KlabLogPane:Yo,ScrollingText:ft,ScaleButtons:on,MainActionsButtons:Ce,StopActionsButtons:ke,ObservationsTimeline:Fo,KnowledgeViewsSelector:pn},directives:{Draggable:V},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(qe["a"])(function(t,o,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:bn.left,defaultTop:bn.top,centeredLeft:bn.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["w"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["v"]}},computed:a()({},Object(s["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["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:a()({},Object(s["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=ln(this.boundingElement);return e-this.draggableElement.offsetWidth-bn.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,o=ln(this.boundingElement);e=(o-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 o=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));o.startDragPosition=e,o.currentDragPosition=e;var n=document.querySelector(".mc-q-card-title");n?n.setAttribute("draggable-state",JSON.stringify(o)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(o))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["O"].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>=ln(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(ln(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=un(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(un(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"),o=e?un(e):0,n=t?ln(t):0;this.correctedPosition={top:o,left:n},this.defaultTop=bn.top+o,this.defaultLeft=bn.left+n,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=ln(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 o=parseFloat(e.draggableElement.style.left),n=o-e.getCenteredLeft();n%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=bn.top,this.defaultLeft=bn.left,this.VIEWERS=c["O"]},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)}},Mn=dn,hn=(o("96fa"),Object(A["a"])(Mn,ge,ye,!1,null,null,null));hn.options.__file="KlabMainControl.vue";var fn=hn.exports,zn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return o("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():o("div",{staticClass:"thumb-viewer-title absolute-top"},[o("div",{staticClass:"relative-position"},[o("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 ")]),o("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[o("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(o){e.setMain(t.idx)}}}),t.type.hideable?o("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(o){e.closeViewer(t)}}}):e._e()],1)])]),o(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},On=[];zn._withStripped=!0;var An=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[o("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),o("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),o("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?o("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),o("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"}},[o("div",{staticClass:"bg-opaque-white"},[o("div",{staticClass:"q-pa-xs"},[o("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),o("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),o("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),o("div",{staticClass:"gl-btn-container"},[o("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}}),o("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),o("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"}},[o("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),o("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[o("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),o("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():o("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)},mn=[];An._withStripped=!0;var vn="".concat("").concat(L["c"].REST_UPLOAD),gn="1024MB",yn=gn.substr(gn.length-2),qn="KB"===yn?1:"MB"===yn?2:"GB"===yn?3:"PB"===yn?4:0,_n=parseInt(gn.substring(0,gn.length-2),10)*Math.pow(1024,qn);function Wn(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Rn=S["a"].directive("upload",{inserted:function(e,t){if(Wn()){var o=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},n=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},i=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 a=new FormData,s=[],c=0;c_n?i("File is too large, max sixe is ".concat(gn)):(a.append("files[]",r[c]),s.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&a.append("refId",t.value.refId||null),w["a"].post(vn,a,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){o(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){n(null!==r&&s.length>0?s.join(", "):null)}).catch(function(e){i(e,null!==r&&s.length>0?s.join(", "):null)})}})}}}),wn=o("256f"),Ln=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[o("div",{staticClass:"md-title"},[e._v("Draw mode")]),o("div",{staticClass:"md-controls"},[o("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),o("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),o("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),o("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[o("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)])},Cn=[];Ln._withStripped=!0;var Sn=o("a27f"),En=o("3e6b"),Tn=o("5831"),xn=o("6c77"),Nn=o("83a6"),Bn=o("8682"),kn=o("ce2c"),Pn=o("ac29"),Dn=o("c807"),In=o("4cdf"),Xn=o("f822"),jn=o("5bc3"),Fn={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:a()({},Object(s["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,o=[];if(0!==t){for(var n=null,i=0;i0&&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 Pn["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var o=Object(He["j"])(t.feature.getGeometry());Object(He["i"])(o)||(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:Sn["Draggable"]},mounted:function(){var e=new Tn["a"];this.drawerModify=new Dn["a"]({source:e}),this.drawerLayer=new En["a"]({id:"DrawerLayer",source:e,visible:!0,style:new xn["c"]({fill:new Nn["a"]({color:this.fillColor}),stroke:new Bn["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new kn["a"]({radius:this.pointRadius,fill:new Nn["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)}},Hn=Fn,Un=(o("37a9"),Object(A["a"])(Hn,Ln,Cn,!1,null,null,null));Un.options.__file="MapDrawer.vue";var Vn=Un.exports,Gn=o("e300"),Kn=o("9c78"),$n=o("c810"),Yn=o("592d"),Jn=o("e269"),Qn={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"},Zn=o("cd7e"),ei=o("0999"),ti=o("1e8d"),oi=o("0af5"),ni={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},ii=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 "+Zn["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(ti["a"])(this,Object(Jn["b"])(ni.ELEMENT),this.handleElementChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.MAP),this.handleMapChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.OFFSET),this.handleOffsetChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.POSITION),this.handlePositionChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.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:Qn.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(ni.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(ni.MAP)},t.prototype.getOffset=function(){return this.get(ni.OFFSET)},t.prototype.getPosition=function(){return this.get(ni.POSITION)},t.prototype.getPositioning=function(){return this.get(ni.POSITIONING)},t.prototype.handleElementChanged=function(){Object(ei["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(ei["e"])(this.element),Object(ti["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(ti["a"])(e,Yn["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(ni.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(ni.ELEMENT,e)},t.prototype.setMap=function(e){this.set(ni.MAP,e)},t.prototype.setOffset=function(e){this.set(ni.OFFSET,e)},t.prototype.setPosition=function(e){this.set(ni.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),o=this.getElement(),n=this.getRect(o,[Object(ei["c"])(o),Object(ei["b"])(o)]),i=this.autoPanMargin;if(!Object(oi["g"])(t,n)){var r=n[0]-t[0],a=t[2]-n[2],s=n[1]-t[1],c=t[3]-n[3],p=[0,0];if(r<0?p[0]=r-i:a<0&&(p[0]=Math.abs(a)+i),s<0?p[1]=s-i:c<0&&(p[1]=Math.abs(c)+i),0!==p[0]||0!==p[1]){var l=e.getView().getCenter(),u=e.getPixelFromCoordinate(l),b=[u[0]+p[0],u[1]+p[1]];e.getView().animate({center:e.getCoordinateFromPixel(b),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var o=e.getBoundingClientRect(),n=o.left+window.pageXOffset,i=o.top+window.pageYOffset;return[n,i,n+t[0],i+t[1]]},t.prototype.setPositioning=function(e){this.set(ni.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 o=e.getPixelFromCoordinate(t),n=e.getSize();this.updateRenderedPosition(o,n)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var o=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var r=n[0],a=n[1];if(i==Qn.BOTTOM_RIGHT||i==Qn.CENTER_RIGHT||i==Qn.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=o.left="");var s=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=s&&(this.rendered.right_=o.right=s)}else{""!==this.rendered.right_&&(this.rendered.right_=o.right=""),i!=Qn.BOTTOM_CENTER&&i!=Qn.CENTER_CENTER&&i!=Qn.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=o.left=c)}if(i==Qn.BOTTOM_LEFT||i==Qn.BOTTOM_CENTER||i==Qn.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=o.top="");var p=Math.round(t[1]-e[1]-a)+"px";this.rendered.bottom_!=p&&(this.rendered.bottom_=o.bottom=p)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=o.bottom=""),i!=Qn.CENTER_LEFT&&i!=Qn.CENTER_CENTER&&i!=Qn.CENTER_RIGHT||(a-=this.element.offsetHeight/2);var l=Math.round(e[1]+a)+"px";this.rendered.top_!=l&&(this.rendered.top_=o.top=l)}},t.prototype.getOptions=function(){return this.options},t}(Jn["a"]),ri=ii,ai=o("b2da"),si=o.n(ai),ci=o("64d9"),pi=o("f403"),li=o("01d4"),ui=o("3900"),bi="projection",di="coordinateFormat",Mi=function(e){function t(t){var o=t||{},n=document.createElement("div");n.className=void 0!==o.className?o.className:"ol-mouse-position",e.call(this,{element:n,render:o.render||hi,target:o.target}),Object(ti["a"])(this,Object(Jn["b"])(bi),this.handleProjectionChanged_,this),o.coordinateFormat&&this.setCoordinateFormat(o.coordinateFormat),o.projection&&this.setProjection(o.projection),this.undefinedHTML_=void 0!==o.undefinedHTML?o.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=n.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(di)},t.prototype.getProjection=function(){return this.get(bi)},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 o=t.getViewport();this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEMOVE,this.handleMouseMove,this),Object(ti["a"])(o,li["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEOUT,this.handleMouseOut,this),Object(ti["a"])(o,li["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(di,e)},t.prototype.setProjection=function(e){this.set(bi,Object(wn["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var o=this.getProjection();this.transform_=o?Object(wn["j"])(this.mapProjection_,o):wn["k"]}var n=this.getMap(),i=n.getCoordinateFromPixel(e);if(i){this.transform_(i,i);var r=this.getCoordinateFormat();t=r?r(i):i.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(ui["default"]);function hi(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var fi=Mi,zi=o("a568"),Oi=(o("c58e"),{name:"MapViewer",components:{MapDrawer:Vn,ObservationContextMenu:po},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Rn},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 Gn["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ci["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,o){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:o}),"\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:a()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(s["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(s["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(s["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:a()({},Object(s["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(s["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(wn["l"])(this.view.getCenter(),wt["d"].PROJ_EPSG_3857,wt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(wn["l"])(t,wt["d"].PROJ_EPSG_4326,wt["d"].PROJ_EPSG_3857),duration:500}));try{var o=Object(wn["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(o[0]<-180||o[1]<-90||o[2]>180||o[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=p["a"].REGION_OF_INTEREST(o,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["y"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&G["a"].set(c["R"].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 o=null===e?this.timeEvents:this.timeEventsOfObservation(e);return o.length>0?o.reduce(function(e,o){var n=t-o.timestamp;return n<=0?e:-1===e||n0)){e.next=7;break}if(c="".concat(o.id,"T").concat(i),p=s.find(function(e){return e.get("id")===c}),!p){e.next=7;break}return e.abrupt("return",{founds:s,layer:p});case 7:return e.prev=7,console.debug("Creating layer: ".concat(o.label," with timestamp ").concat(i)),e.next=11,Object(Ue["k"])(o,{projection:this.proj,timestamp:i,realTimestamp:a?i:this.timestamp});case 11:return l=e.sent,s&&s.length>0?l.setZIndex(o.zIndex):(this.zIndexCounter+=2,o.zIndex=this.zIndexCounter+o.zIndexOffset,l.setZIndex(o.zIndex)),this.layers.push(l),s.push(l),e.abrupt("return",{founds:s,layer:l});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 o=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),n=o.length;if(n>0){var i=function e(i){var r=t.observations.find(function(e){return e.id===o[i].id});r&&t.findLayerById({observation:r,timestamp:o[i].timestamp,isBuffer:!0}).then(function(t){var o=t.layer,r=o.getSource().image_;r&&0===r.state?(r.load(),o.getSource().on("imageloadend",function(t){t.image;++i125&&(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 En["a"]({id:this.contextId,source:new Tn["a"]({features:[new In["a"]({geometry:new pi["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(He["d"])(wt["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=j()(regeneratorRuntime.mark(function e(){var t,o,n=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),o="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=n.findModificationTimestamp(e.id,n.timestamp);n.findLayerById({observation:e,timestamp:t}).then(function(i){if(null!==i){var r=i.founds,a=i.layer;a.setOpacity(e.layerOpacity),a.setVisible(e.visible);var s=e.zIndex;if(e.top?s=e.zIndexOffset+wt["d"].ZINDEX_TOP:n.lockedObservationsIds.length>0&&n.lockedObservationsIds.includes(e.id)&&(s=Math.max(a.get("zIndex")-10,1)),o||(a.setZIndex(s),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t))?n.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t)||n.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(o,n){o.get("id")==="".concat(e.id,"T").concat(t)?o.setVisible(!0):o.getVisible()&&c.push(n)}),c.length>0&&c.forEach(function(e){n.$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")),a.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(p["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(p["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(wn["l"])([t.coords.longitude,t.coords.latitude],wt["d"].PROJ_EPSG_4326,wt["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,o=void 0===t?null:t,n=e.locked,i=void 0!==n&&n,r=e.layer,s=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var p,l;if(null!==o?(p=o.coordinate,i&&(o.preventDefault(),o.stopPropagation())):(i=this.mapSelection.locked,p=this.mapSelection.pixelSelected),null===s){l=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var u=this.findExistingLayerById(l),b=Fe()(u,1);s=b[0]}else l=s.get("id");var d=new $n["a"]({id:"cl_".concat(l),source:s.getSource()});this.setMapSelection(a()({pixelSelected:p,timestamp:this.timestamp,layerSelected:d},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(l)},{locked:i}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,o)},needFitMapListener:function(e){var t=this,o=e.mainIdx,n=void 0===o?null:o,i=e.geometry,r=void 0===i?null:i,a=e.withPadding,s=void 0===a||a;null===r&&this.mainViewer.name===c["O"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==n&&this.idx===n||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:s?[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],o=[],n=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){n[e.getType()]&&n[e.getType()]>e.get("zIndex")||(n[e.getType()]=e.get("zIndex"),o.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),o},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,o=document.createElement("textarea");o.value=t,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.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(o)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),G["a"].set(c["R"].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(wn["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(a()({},c["J"].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&&!G["a"].has(c["R"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=wt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var o=t;o.on("propertychange",function(t){e.visibleBaseLayer=o,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&G["a"].set(c["R"].COOKIE_BASELAYER,o.get("name"),{expires:30,path:"/",secure:!0})})});var t=wt["c"].MAPBOX_GOT;t.setVisible(!0);var o=new Kn["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new Ao["a"]({view:new mo["a"]({center:this.center,zoom:this.zoom}),layers:o,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(n){if(e.viewCoordinates&&n.originalEvent.ctrlKey&&!n.originalEvent.altKey)e.copyCoordinates(n);else{if(e.isDrawMode)return n.preventDefault(),void n.stopPropagation();if(n.originalEvent.ctrlKey&&n.originalEvent.altKey&&n.originalEvent.shiftKey){var i=o.getLayersArray().slice(-1)[0];i&&"mapbox_got"===i.get("name")?(o.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(o.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(j()(regeneratorRuntime.mark(function t(){var o;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(o=e.findTopLayerFromClick(n,!1),o.length>0&&o.forEach(function(t){var i=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),1===o.length&&e.closePopup()):e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:n}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:n,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 o=e.findTopLayerFromClick(t);if(1===o.length){var n=o[0].layer.get("id");e.topLayer&&n===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(n)),e.setMapInfoPoint({event:t,locked:!0,layer:o[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var o=e.findTopLayerFromClick(t,!1);o.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(o[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Kn["default"]({layers:this.layers})),this.layerSwitcher=new si.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new ri({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new ri({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[wt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new fi({coordinateFormat:Object(zi["c"])(6),projection:wt["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)}}),Ai=Oi,mi=(o("c612"),Object(A["a"])(Ai,An,mn,!1,null,null,null));mi.options.__file="MapViewer.vue";var vi=mi.exports,gi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?o("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),o("q-resize-observable",{on:{resize:e.resize}}),o("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},yi=[];gi._withStripped=!0;var qi=o("a5b7"),_i=o.n(qi),Wi={name:"GraphViewer",components:{D3Network:_i.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["S"]);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(L["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,o){if(t&&"undefined"!==typeof t.data){var n=t.data,i=n.nodes,r=n.edges;e.nodes=i.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()}o()})},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=a()({},this.options,d()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["S"].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)}},Ri=Wi,wi=(o("6420"),o("9198"),Object(A["a"])(Ri,gi,yi,!1,null,null,null));wi.options.__file="GraphViewer.vue";var Li=wi.exports,Ci=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Si=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit uv-container"},[o("h4",[e._v("Under construction")])])}];Ci._withStripped=!0;var Ei={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},Ti=Ei,xi=(o("1fac"),Object(A["a"])(Ti,Ci,Si,!1,null,null,null));xi.options.__file="UnknownViewer.vue";var Ni=xi.exports,Bi=[],ki={components:{MapViewer:vi,GraphViewer:Li,UnknownViewer:Ni},computed:a()({},Object(s["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:a()({},Object(s["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":(Bi.push(e),0===Bi.length?"left: 0":"left: ".concat(200*(Bi.length-1)+10*(Bi.length-1),"px"))},capitalize:function(e){return Object(He["a"])(e)}}),watch:{mainDataViewerIdx:function(){Bi=[]},dataViewers:{handler:function(e){var t=this,o=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,a()({},null!==o&&"undefined"!==typeof o&&{idx:o.idx}))})},deep:!0}},beforeUpdate:function(){Bi=[]},mounted:function(){Bi=[]}},Pi=ki,Di=(o("f164"),Object(A["a"])(Pi,zn,On,!1,null,"216658d8",null));Di.options.__file="DataViewer.vue";var Ii=Di.exports,Xi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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:""}},[o("q-layout-header",[o("documentation-header")],1),o("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"}},[o("documentation-tree")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kd-container"},[o("documentation-viewer")],1)])],1),o("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"}},[o("documentation-viewer",{attrs:{"for-printing":!0}}),o("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)},ji=[];Xi._withStripped=!0;var Fi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dh-container full-width row items-center"},[o("div",{staticClass:"dh-tabs col justify-start"},[o("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[o("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"}),o("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"}),o("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"}),o("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),o("div",{staticClass:"dh-actions justify-end"},[o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[o("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?[o("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)}}}),o("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?o("div",{staticClass:"dh-spinner col-1 justify-end"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[o("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[o("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Hi=[];Fi._withStripped=!0;var Ui={name:"DocumentationHeader",components:{KlabSpinner:v},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["w"].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:a()({},Object(s["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)}})},Vi=Ui,Gi=(o("d18c"),Object(A["a"])(Vi,Fi,Hi,!1,null,null,null));Gi.options.__file="DocumentationHeader.vue";var Ki=Gi.exports,$i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dt-container relative-position klab-menu-component"},[o("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[o("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")))]),o("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),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yi=[];$i._withStripped=!0;var Ji={name:"DocumentationTree",components:{KlabQTree:no},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("data",["documentationTrees"]),Object(s["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:a()({},Object(s["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}},Qi=Ji,Zi=(o("5823"),Object(A["a"])(Qi,$i,Yi,!1,null,null,null));Zi.options.__file="DocumentationTree.vue";var er=Zi.exports,tr=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dv-documentation"},[o("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[o("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[o("div",{staticClass:"dv-content"},e._l(e.content,function(t){return o("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[o("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?o("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?o("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?o("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(o){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?o("span",{staticClass:"dv-citation"},[o("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?o("div",{staticClass:"dv-table-container"},[o("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),o("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),o("div",{staticClass:"dv-table-bottom text-right print-hide"},[o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(o){e.tableCopy(t.id)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(o){e.tableDownload(t.id)}}},[o("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?o("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-figure-wrapper col"},[o("div",{staticClass:"content-center row"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[o("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?o("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),o("div",{staticClass:"dv-col-fill col"})]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("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"}},[o("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),o("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[o("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}})])]),o("div",{staticClass:"dv-figure-legend col"},[o("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)]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-time col"},[o("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(o){e.changeTime(o,t.id)}}})],1)]),o("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?o("div",{staticClass:"dv-model-container"},[o("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?o("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-resource-title-container"},[o("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),o("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?o("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(n,i){return o("div",{key:i,staticClass:"dv-resource-keyword"},[o("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(n))]),i0?o("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(n,i){return o("div",{key:i,staticClass:"dv-resource-author-wrapper"},[o("span",{staticClass:"dv-resource-author"},[e._v(e._s(n))]),i0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,o=void 0===t?null:t,n=e.force,i=void 0!==n&&n;null===o&&(o=this.documentationView),(-1!==this.reloadViews.indexOf(o)||i)&&this.loadDocumentation(o)},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=sr,pr=(o("7bbc"),Object(A["a"])(cr,Xi,ji,!1,null,null,null));pr.options.__file="KlabDocumentation.vue";var lr=pr.exports,ur=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dfv-wrapper",class:"dfv-"+e.flowchartSelected},[o("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[o("div",{staticClass:"dfv-graph-info"},[o("div",{staticClass:"dfv-graph-type"},[o("span",[e._v(e._s(e.flowchart(e.flowchartSelected)?e.flowchart(e.flowchartSelected).label:"Nothing"))])]),o("div",{staticClass:"dfv-graph-selector"},[o("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)}}},[o("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),o("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)}}},[o("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)]),o("div",[o("div",{attrs:{id:"sprotty"}}),o("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1)]),e.dataflowInfoOpen?o("div",{staticClass:"dfv-info-container"},[o("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},br=[];ur._withStripped=!0;o("98db");var dr=o("970b"),Mr=o.n(dr),hr=o("5bc30"),fr=o.n(hr),zr=o("8449"),Or=o("42d6"),Ar=o("e1c6"),mr=0,vr=200,gr=!1,yr=function(){function e(){Mr()(this,e)}return fr()(e,[{key:"handle",value:function(e){switch(e.kind){case Or["SelectCommand"].KIND:gr=!1,mr=setTimeout(function(){gr||zr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),gr=!1},vr);break;case Or["SetViewportCommand"].KIND:clearTimeout(mr),gr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(Or["SelectCommand"].KIND,this),e.register(Or["SetViewportCommand"].KIND,this)}}]),e}();function qr(e){return void 0!==e.source&&void 0!==e.target}function _r(e){return void 0!==e.sources&&void 0!==e.targets}Ar.decorate(Ar.injectable(),yr);var Wr=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,o,n=this,i={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return n.transformElkNode(e)});(t=i.children).push.apply(t,r)}if(e.edges){var a=e.edges.map(function(e){return n.transformElkEdge(e)});(o=i.children).push.apply(o,a)}return i},e.prototype.transformElkNode=function(e){var t,o,n,i,r=this;this.checkAndRememberId(e,this.nodeIds);var a={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 s=e.children.map(function(e){return r.transformElkNode(e)});(t=a.children).push.apply(t,s)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(o=a.children).push.apply(o,c)}if(e.labels){var p=e.labels.map(function(e){return r.transformElkLabel(e)});(n=a.children).push.apply(n,p)}if(e.edges){var l=e.edges.map(function(e){return r.transformElkEdge(e)});(i=a.children).push.apply(i,l)}return a},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,o,n=this;this.checkAndRememberId(e,this.edgeIds);var i={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(qr(e)?(i.sourceId=e.source,i.targetId=e.target,e.sourcePoint&&i.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&i.routingPoints.push(e.targetPoint)):_r(e)&&(i.sourceId=e.sources[0],i.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;n.checkAndRememberId(e,n.sectionIds),i.routingPoints.push(e.startPoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),i.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,o){var n={type:"junction",id:e.id+"_j"+o,position:t};i.children.push(n)}),e.labels){var r=e.labels.map(function(e){return n.transformElkLabel(e)});(o=i.children).push.apply(o,r)}return i},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}(),Rr=o("e1c6"),wr=o("393a"),Lr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cr=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},Sr={createElement:wr["svg"]},Er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){var o="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Sr.createElement("g",null,Sr.createElement("rect",{classNames:o,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(Or["RectangularNodeView"]),Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){return Sr.createElement("g",null,Sr.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}(Or["RectangularNodeView"]),xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r=i||t.mouseModel&&t.mouseModel>=i,exselected:t.mouseModel&&t.model>=i&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(p["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=(o("75c1"),Object(A["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var ea=Zr.exports,ta={name:"DataflowViewer",components:{DataflowInfo:ea},data:function(){return{modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0,CONSTANTS:c["g"]}},computed:a()({},Object(s["c"])("data",["flowchart","flowcharts","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(s["c"])("view",["leftMenuState","flowchartSelected","dataflowInfoOpen"])),methods:a()({},Object(s["b"])("data",["loadFlowchart"]),Object(s["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 o=JSON.parse(JSON.stringify(t.flowchart));e.processing=!0,t.graph=(new Wr).transform(o),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 Or["FitToScreenAction"]([],40)):this.actionDispatcher.dispatch(new Or["CenterAction"]([],40))},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length){for(var e=this.dataflowStatuses.length,t=0;t=0;o-=1)this.sendStompMessage(p["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[o],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 o=t.getBoundingClientRect();e.actionDispatcher.dispatch(new Or["InitializeCanvasBoundsAction"]({x:o.left,y:o.top,width:o.width,height:o.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=Hr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(Or["TYPES"].IActionHandlerInitializer).to(yr),this.modelSource=e.get(Or["TYPES"].ModelSource),this.actionDispatcher=e.get(Or["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)}},oa=ta,na=(o("7890"),Object(A["a"])(oa,ur,br,!1,null,null,null));na.options.__file="DataflowViewer.vue";var ia=na.exports,ra=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}},[o("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 o("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 o("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[o("div",{staticClass:"irm-group"},[o("div",{staticClass:"irm-global-description"},[o("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),o("p",[e._v(e._s(t.description))])]),o("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[o("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(n){return o("div",{key:e.getFieldId(n,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(n.sectionTitle)?o("div",{staticClass:"irm-section-description"},[o("h5",[e._v(e._s(n.sectionTitle))]),o("p",[e._v(e._s(n.sectionDescription))])]):e._e(),o("q-field",{attrs:{label:null!==n.label?n.label:n.id,helper:n.description}},[o(e.capitalizeFirstLetter(n.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(n,t.messageId),initialValue:n.initialValue,values:n.values,range:n.range,numericPrecision:n.numericPrecision,regexp:n.regexp},on:{change:function(o){e.updateForm(e.getFieldId(n,t.messageId),o)}}})],1)],1)}))]),o("div",{staticClass:"irm-buttons"},[o("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(o){e.cancelRequest(t)}}}),o("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(o){e.send(t.messageId,!0)}}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(o){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},aa=[];ra._withStripped=!0;var sa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}})},ca=[];sa._withStripped=!0;var pa={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)}}},la=pa,ua=(o("9d14"),Object(A["a"])(la,sa,ca,!1,null,null,null));ua.options.__file="TextField.vue";var ba=ua.exports,da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}})},Ma=[];da._withStripped=!0;var ha={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))}}},fa=ha,za=(o("d6e2"),Object(A["a"])(fa,da,Ma,!1,null,null,null));za.options.__file="NumberField.vue";var Oa=za.exports,Aa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}})},ma=[];Aa._withStripped=!0;var va={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)})}}},ga=va,ya=(o("bb33"),Object(A["a"])(ga,Aa,ma,!1,null,null,null));ya.options.__file="BooleanField.vue";var qa=ya.exports,_a={name:"InputRequestModal",components:{TextInputRequest:ba,NumberInputRequest:Oa,BooleanInputRequest:qa},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:a()({},Object(s["c"])("data",["session"]),Object(s["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:a()({},Object(s["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof n){var i=n.fields.reduce(function(e,i){if(o)e[t.getFieldId(i)]=i.initialValue;else{var r=t.formData[t.getFieldId(i,n.messageId)];e[t.getFieldId(i)]="undefined"===typeof r||null===r||""===r?i.initialValue:r.toString()}return e},{});this.sendStompMessage(p["a"].USER_INPUT_RESPONSE({messageId:n.messageId,requestId:n.requestId,values:i},this.session).body),this.removeInputRequest(n.messageId)}},cancelRequest:function(e){this.sendStompMessage(p["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(He["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))}}},Wa=_a,Ra=(o("2b54"),Object(A["a"])(Wa,ra,aa,!1,null,null,null));Ra.options.__file="InputRequestModal.vue";var wa=Ra.exports,La=function(){var e=this,t=e.$createElement,o=e._self._c||t;return null!==e.scaleReference?o("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[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[o("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[o("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(),o("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?[o("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?o("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?o("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?o("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?o("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?o("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?o("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?o("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),o("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"}}),o("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()},Ca=[];La._withStripped=!0;var Sa=o("7f45"),Ea=o.n(Sa),Ta={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["E"],resolutionError:!1,SCALE_TYPE:c["D"],SCALE_VALUES:c["F"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:a()({},Object(s["c"])("data",["scaleReference","nextScale","hasContext"]),Object(s["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 a()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:a()({},Object(s["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["D"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["D"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["D"].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["D"].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()),o=new Date(this.timeEnd.getTime());[c["F"].MILLENNIUM,c["F"].CENTURY,c["F"].DECADE,c["F"].YEAR,c["F"].MONTH,c["F"].WEEK,c["F"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference},this.scaleEditingType===c["D"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["D"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:o.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(a()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["D"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["D"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:o.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["F"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["F"].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["F"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["F"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["F"].WEEK:if(e>53)return void(this.unitInputs.week=Ea()(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],o=c["E"].find(function(t){return t.value===e.unit});this.timeEnd=Ea()(this.timeStart).add(this.timeResolutionMultiplier*o.momentMultiplier-(1!==o.momentMultiplier?1:0),o.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["F"].MILLENNIUM:case c["F"].CENTURY:case c["F"].DECADE:case c["F"].YEAR:case c["F"].MONTH:case c["F"].WEEK:case c["F"].DAY:return"DD/MM/YYYY";case c["F"].HOUR:return"DD/MM/YYYY HH:mm";case c["F"].MINUTE:case c["F"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["F"].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?Ea()(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["D"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["F"].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?Ea()(this.timeStart):Ea()();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})}},xa=Ta,Na=(o("c998"),Object(A["a"])(xa,La,Ca,!1,null,null,null));Na.options.__file="ScaleChangeDialog.vue";var Ba=Na.exports,ka=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[o("div",{attrs:{id:"spinner-leftmenu-container"}},[o("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[o("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?[o("div",{staticClass:"lm-separator"}),o("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),o("div",{staticClass:"lm-separator"})]:e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("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),o("div",{staticClass:"lm-separator"}),o("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[o("div",{staticClass:"lm-separator"}),o("scale-buttons",{attrs:{docked:!0}}),o("div",{staticClass:"lm-separator"}),o("div",{staticClass:"lm-bottom-buttons"},[o("stop-actions-buttons")],1)],1)],2),e.maximized?o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[o("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Pa=[];ka._withStripped=!0;var Da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[o("klab-breadcrumbs"),o("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?o("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[o("klab-tree-pane")],1):e._e(),e.contextHasTime?o("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},Ia=[];Da._withStripped=!0;var Xa=K["b"].width,ja={name:"KlabDockedMainControl",components:{KlabSearchBar:Bt,KlabBreadcrumbs:jt,ObservationsTimeline:Fo,KlabTreePane:Lo},directives:{Draggable:V},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(qe["a"])(function(t,o){e.onDebouncedPositionChanged(o)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:a()({},Object(s["c"])("data",["contextHasTime"]),Object(s["c"])("view",["largeMode","isTreeVisible"]),Object(s["c"])("stomp",["taskOfContextIsAlive"])),methods:a()({},Object(s["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["O"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Xa(document.getElementById("dmc-container"))/3}},Fa=ja,Ha=(o("c7c3"),Object(A["a"])(Fa,Da,Ia,!1,null,null,null));Ha.options.__file="KlabDockedMainControl.vue";var Ua=Ha.exports,Va={name:"KlabLeftMenu",components:{KlabSpinner:v,MainActionsButtons:Ce,StopActionsButtons:ke,DockedMainControl:Ua,DocumentationTree:er,KlabLogPane:Yo,ScaleButtons:on,KnowledgeViewsSelector:pn},mixins:[rt],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["w"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["w"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:a()({},Object(s["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["w"].LOG_COMPONENT),this.setLeftMenuState(c["w"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["w"]}},Ga=Va,Ka=(o("6283"),Object(A["a"])(Ga,ka,Pa,!1,null,null,null));Ka.options.__file="KlabLeftMenu.vue";var $a=Ka.exports,Ya=(o("5bc0"),{name:"KExplorer",components:{KlabMainControl:fn,DataViewer:Ii,KlabDocumentation:lr,DataflowViewer:ia,InputRequestModal:wa,ScaleChangeDialog:Ba,ObservationTime:Po,KlabLeftMenu:$a},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["w"]}},computed:a()({},Object(s["c"])("data",["session","hasActiveTerminal"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["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["R"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["w"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["w"].LEFTMENU_MAXIMIZED?c["w"].LEFTMENU_MAXSIZE:this.leftMenuState===c["w"].LEFTMENU_MINIMIZED?c["w"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["w"].LEFTMENU_MINSIZE:0)}}),methods:a()({},Object(s["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),o=Math.floor(e/t);console.info("Set max children to ".concat(o)),this.$store.state.data.childrenToAskFor=o},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["O"].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["O"].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(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].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)}}),Ja=Ya,Qa=(o("f913"),Object(A["a"])(Ja,me,ve,!1,null,null,null));Qa.options.__file="KExplorer.vue";var Za=Qa.exports,es=o("4082"),ts=o.n(es),os=o("0388"),ns=o("7d43"),is=o("9541"),rs=o("768b"),as=o("fb40"),ss=o("bd60"),cs="q:collapsible:close",ps={name:"QCollapsible",mixins:[as["a"],ss["a"],{props:ss["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(cs,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(is["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(cs,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(cs,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(ns["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(rs["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(eo["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)])])])])}},ls=o("dd1f"),us=o("5d8b"),bs=o("5931"),ds=o("482e"),Ms={LAYOUT:function(e){return S["a"].component("KAppLayout",{render:function(t){return t(Cs,{props:{layout:e}})}})},ALERT:function(e){return S["a"].component("KAppAlert",{render:function(t){return t(os["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return S["a"].component("KAppMain",{render:function(t){return t("div",a()({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:a()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return S["a"].component("KAppPanel",{render:function(t){return t("div",a()({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 S["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",a()({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",a()({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,S["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var o=this;return t(ps,{class:"kcv-collapsible",props:a()({opened:o.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 S["a"].component("KAppSeparator",{render:function(t){var o=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(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},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(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var o=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var n=function n(i){var r=o.values[i],a=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(i));if(!a){a={id:"".concat(e.id,"-").concat(r.id,"-").concat(i),label:r.label,type:r.type,observable:r.id,children:[]};var s=o.links.find(function(e){return e.first===i}).second;if(s===o.rootId)t.push(a);else{var c=n(s);c.children.push(a)}}return a};o.links.forEach(function(e){n(e.first)})}return S["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(o){var n=this;return o("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?o("div",{class:"kcv-tree-legend"},e.name):null,o(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:n.ticked,selected:n.selected,expanded:n.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){n.ticked=t,e.tree.status.ticked=t;var o=e.tree,i=(o.status,ts()(o,["status"]));n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{tree:i,components:[]}),listValue:t})},"update:selected":function(t){n.selected=t,e.tree.status.selected=t},"update:expanded":function(t){n.expanded=t,e.tree.status.expanded=t}}}),e.attributes.tooltip?o(Ze["a"],{props:{anchor:"top right",self:"top left",offset:[6,0]}},[e.attributes.tooltip]):null])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),S["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 o=this;this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["G"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.$q.notify({message:o.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),o.doneFunc&&o.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(p["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 o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return;if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,s=r.error,p=r.errorMessage;if(s)this.$q.notify({message:p,type:"error",icon:"mdi-alert",timeout:2e3});else{var l=[];a.forEach(function(e){var t=c["x"][e.matchType];if("undefined"!==typeof t){var o=t;if(null!==e.mainSemanticType){var n=c["H"][e.mainSemanticType];"undefined"!==typeof n&&(o=n)}l.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:o.symbol,leftInverted:!0,leftColor:o.color,rgb:o.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===l.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),S["a"].nextTick(function(){t.doneFunc(l)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}}},render:function(t){var o=this,n=this;return this.isSearch?t(us["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:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(o.editable=!1,o.doneFunc&&(o.doneFunc(),o.doneFunc=null),o.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),n.init()),13===e.keyCode&&o.selected&&(o.$store.dispatch("view/searchInApp",!1),o.editable=!1,n.sendSelected(),n.init())},input:function(e){n.value=e},blur:function(){o.$store.dispatch("view/searchInApp",!1),o.editable=!1},focus:function(){o.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){n.search(e,t)},selected:function(e,t){n.autocompleteSelected(e,t)}}})]):t("div",a()({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,"kcv-label-error":e.attributes.error,"kcv-label-info":e.attributes.info,"kcv-label-waiting":e.attributes.waiting},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){o.editable=!0,o.$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:"top right",self:"top left",offset:[6,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return S["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:e.attributes.type||"number"}},render:function(t){var o=this;return t(us["a"],{class:["kcv-text-input","kcv-form-element","textarea"===e.attributes.type&&"kcv-textarea"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id),rows:e.attributes.rows||1},props:{value:o.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:o.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){o.value=t,e.content=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return S["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 o=this;return t(bs["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:o.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){o.value=t,e.attributes.selected=o.value,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return S["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 o=this,n=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 i=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(ds["a"],{class:[n?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:a()({},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(i,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:a()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},n&&{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(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},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 S["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var o=this,n=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,i=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(i),"kcv-check-".concat(n),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(oo["a"],{props:a()({value:o.value,color:i,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){o.value=t,e.attributes.checked=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"top left",self:"top right",offset:[e.attributes.width?52:0,0]}},"true"===e.attributes.tooltip?e.name:e.attributes.tooltip):null,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 S["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var o=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ls["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){o.value=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return S["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var o=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":o.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(){o.collapsed=!o.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:o.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return S["a"].component("KBrowswer",{mounted:function(){},render:function(t){var o=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:o},style:a()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return S["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 hs(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(Ms.LAYOUT);var n,i=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(i=Ms.SHELF(e)),e.type){case null:var r=o.mainPanelStyle,s=void 0===r?{}:r,p=o.direction,l=void 0===p?"vertical":p;n=Ms.MAIN(a()({},e,{mainPanelStyle:s,direction:l}));break;case c["a"].PANEL:n=Ms.PANEL(e);break;case c["a"].SEPARATOR:n=Ms.SEPARATOR(e);break;case c["a"].LABEL:n=Ms.LABEL(e);break;case c["a"].TEXT_INPUT:n=Ms.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:n=Ms.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:n=Ms.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:n=Ms.RADIO_BUTTON(e);break;case c["a"].TREE:n=Ms.TREE(e);break;case c["a"].GROUP:n=Ms.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:n=Ms.TEXT(e);break;case c["a"].COMBO:n=Ms.COMBO(e);break;case c["a"].BROWSER:n=Ms.BROWSER(e);break;default:n=Ms.UNKNOWN(e)}var u=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){u.push(hs(e,t))}),i?t(i,{},[t(n,{},u)]):t(n,{},u)}var fs,zs,Os=K["b"].height,As={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,o=0;o0},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(L["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=a()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var o=JSON.parse(this.layout.styleSpecs);t=a()({},t,o)}catch(e){console.error("Error parsing style specs",e)}var n=(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!==n&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(n,"px)"))}null!==t&&Object.keys(t).forEach(function(o){var n=t[o];if("density"===o)switch(o="line-height",t.density){case"default":n=1;break;case"confortable":n=1.5;break;case"compact":n=.5;break;default:n=1}if(document.documentElement.style.setProperty("--app-".concat(o),n),o.includes("color"))try{var i=Object(He["e"])(n);if(i&&i.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(o),"".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),20*r)),document.documentElement.style.setProperty("--app-lighten90-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),90*r)),document.documentElement.style.setProperty("--app-lighten75-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),75*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(o,": ").concat(n))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new Ae(e);var t=document.querySelector(".kapp-right-inner-container");t&&new Ae(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var o=document.querySelector(".kapp-main.kapp-header-container");this.header.height=o?_s(o):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var n=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=n?qs(n):0,this.rightPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=i?qs(i):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,o=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",o.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 o=this.layout,n=o.applicationId,i=o.identity;this.sendStompMessage(p["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(p["a"].VIEW_ACTION(a()({},Ws,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var o=this,n=null!==e&&(null===t||e.applicationId!==t.applicationId);if((null===e||!this.isApp&&n)&&(this.$nextTick(function(){o.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var i=localStorage.getItem(c["R"].LOCAL_STORAGE_APP_ID);i&&i===t.name&&localStorage.removeItem(c["R"].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)}},ws=Rs,Ls=(o("4b0d"),Object(A["a"])(ws,ae,se,!1,null,null,null));Ls.options.__file="KlabLayout.vue";var Cs=Ls.exports,Ss=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}},[o("q-modal-layout",{staticClass:"km-modal-window"},[e.modal.label?o("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[o("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?o("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),o("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),o("div",{staticClass:"km-buttons justify-end row"},[o("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},Es=[];Ss._withStripped=!0;var Ts={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:Cs},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:a()({},Object(s["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},xs=Ts,Ns=(o("a4c5"),Object(A["a"])(xs,Ss,Es,!1,null,null,null));Ns.options.__file="KlabModalWindow.vue";var Bs=Ns.exports,ks=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[o("div",{staticClass:"modal-backdrop absolute-full"}),o("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"}},[o("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[o("div",{staticClass:"klab-modal-content full-height"},[o("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,n){return o("div",{key:"kp-pres-"+n,staticClass:"kp-link",class:{"kp-link-current":n===e.activeSectionIndex},attrs:{id:"kp-pres-"+n},on:{click:function(t){n!==e.activeSectionIndex&&e.loadPresentation(n)}}},[o("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():o("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,n){return o("q-carousel-slide",{key:"kp-slide-"+n,staticClass:"kp-slide full-height"},[o("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?o("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":n,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===n},on:{stackend:e.stackEnd}}):o("div",[e._v("No slides")]),t.title?o("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),o("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),o("div",{staticClass:"kp-navigation"},[o("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,n){return o("div",{key:"kp-nav-"+n,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(n,0)},mouseover:function(o){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[o("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===n}},[e._v(e._s(n+1))])])}))]),o("div",{staticClass:"kp-btn-container"},[o("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),o("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}}),o("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?o("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?o("div",{staticClass:" kp-no-presentation"},[o("div",{staticClass:"fixed-center text-center"},[o("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),o("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?o("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ps=[];ks._withStripped=!0;o("55dd"),o("28a5");var Ds=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.layers.length>0?o("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,n){return o("div",{key:"ks-layer-"+n,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===n,"ks-hide-layer":e.selectedLayer!==n},style:{"z-index":e.selectedLayer===n?9999:e.layers.length-n},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+n}},[t.image?o("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[o("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+"-"+n}})]):e._e(),t.title||t.text?o("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?o("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?o("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),o("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[o("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}}),o("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()}}}),o("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])}}}),o("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()},Is=[];Ds._withStripped=!0;o("aef6");var Xs={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,o=window.innerHeight;e.initialSize={width:t,height:o}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var n=window.innerWidth*c["s"].DEFAULT_WIDTH_PERCENTAGE/100,i=n/c["s"].DEFAULT_PROPORTIONS.width*c["s"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["s"].DEFAULT_HEIGHT_PERCENTAGE/100,a=r/c["s"].DEFAULT_PROPORTIONS.height*c["s"].DEFAULT_PROPORTIONS.width;n0){var r=0;i.forEach(function(o,n){r+=1,Vs()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(o.id),{param:"callback"},function(i,a){i?console.error(i.message):t.presentations.push({id:o.id,baseFolder:o.baseFolder,linkTitle:o.name,linkDescription:o.description,slides:a,index:n}),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?G["a"].set(c["R"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):G["a"].remove(c["R"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=this.isLocal&&!G["a"].has(c["R"].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)}},Ks=Gs,$s=(o("edad"),Object(A["a"])(Ks,ks,Ps,!1,null,null,null));$s.options.__file="KlabPresentation.vue";var Ys=$s.exports,Js=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("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"}}),o("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"}},[o("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),o("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Qs=[];Js._withStripped=!0;var Zs={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:a()({},Object(s["c"])("stomp",["connectionUp"]),Object(s["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:a()({},Object(s["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),G["a"].set(c["R"].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,G["a"].has(c["R"].COOKIE_NOTIFICATIONS)&&(this.cooked=G["a"].get(c["R"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var o="";if(t){var n=t.groups,i=t.apps;o=I()(n.map(function(e){return"groups[]=".concat(e)})).concat(I()(i.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Vs()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==o?"?".concat(o):""),{param:"callback",timeout:5e3},function(t,o){t?console.error("Error loading notifications: ".concat(t.message)):o.length>0?o.forEach(function(e,t){var o=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(a()({},e,{read:o})),-1!==r.actualNotificationIndex||o||(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)}},ec=Zs,tc=(o("e0d9"),Object(A["a"])(ec,Js,Qs,!1,null,null,null));tc.options.__file="KlabNotifications.vue";var oc=tc.exports,nc=(o("8195"),{name:"LayoutDefault",components:{KlabLayout:Cs,KlabModalWindow:Bs,ConnectionStatus:_,KlabSettings:N,KlabTerminal:Z,AppDialogs:re,KlabPresentation:Ys,KlabNotifications:oc},data:function(){return{errorLoading:!1,waitApp:!1}},computed:a()({},Object(s["c"])("data",["hasContext","terminals","isDeveloper"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["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(p["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["R"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["R"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(p["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)}}}),ic=nc,rc=(o("7521"),Object(A["a"])(ic,n,i,!1,null,null,null));rc.options.__file="default.vue";t["default"]=rc.exports},"7bae":function(e,t,o){},"7bae3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("064a"),i=o("e1c6"),r=o("7f73"),a=o("755f"),s=o("6923"),c=o("e576"),p=new i.ContainerModule(function(e,t,o){n.configureModelElement({bind:e,isBound:o},"marker",r.SIssueMarker,a.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(s.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=p},"7bbc":function(e,t,o){"use strict";var n=o("fcf8"),i=o.n(n);i.a},"7d36":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=n},"7d72":function(e,t,o){"use strict";var n=o("8707").Buffer,i=n.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 a(e){var t=r(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=M,this.end=h,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=z,t=3;break;default:return this.write=O,void(this.end=A)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.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 p(e,t,o){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function l(e,t,o){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 u(e){var t=this.lastTotal-this.lastNeed,o=l(this,e,t);return void 0!==o?o: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 b(e,t){var o=p(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=o;var n=e.length-(o-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function M(e,t){if((e.length-t)%2===0){var o=e.toString("utf16le",t);if(o){var n=o.charCodeAt(o.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,o)}return t}function f(e,t){var o=(e.length-t)%3;return 0===o?e.toString("base64",t):(this.lastNeed=3-o,this.lastTotal=3,1===o?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-o))}function z(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function O(e){return e.toString(this.encoding)}function A(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,o;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o0,u=l?p.length:o.length,M=b(n,t,a,c,u),h=d(e,o),f=M.concat(h);return f}function u(e,t,o,a,s){var p=s[e.toString()]||[],l=h(p),u=!0!==l.unmanaged,b=a[e],d=l.inject||l.multiInject;if(b=d||b,b instanceof n.LazyServiceIdentifer&&(b=b.unwrap()),u){var M=b===Object,f=b===Function,z=void 0===b,O=M||f||z;if(!t&&O){var A=i.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+o+".";throw new Error(A)}var m=new c.Target(r.TargetTypeEnum.ConstructorArgument,l.targetName,b);return m.metadata=p,m}return null}function b(e,t,o,n,i){for(var r=[],a=0;a0?p:M(e,o)}return 0}function h(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[a.INJECT_TAG],multiInject:t[a.MULTI_INJECT_TAG],targetName:t[a.NAME_TAG],unmanaged:t[a.UNMANAGED_TAG]}}t.getDependencies=p,t.getBaseClassDependencyCount=M},"7f45":function(e,t,o){var n=e.exports=o("0efb");n.tz.load(o("6cd2"))},"7f73":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("e4f0"),r=o("66f9");function a(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=a;var s=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return n(o,e),o.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,i.hoverFeedbackFeature,i.popupFeature],o}(r.SShapeElement);t.SDecoration=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(s);t.SIssueMarker=c;var p=function(){function e(){}return e}();t.SIssue=p},"7faf":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=n},"80b5":function(e,t,o){"use strict";function n(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=n},8122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("33b2"),a=o("9e2e"),s=o("0fb6"),c=o("be02"),p=o("160b"),l=o("302f"),u=o("538c"),b=o("29fa"),d=o("65d1"),M=o("3b4c"),h=o("1417"),f=o("a190"),z=o("064a"),O=o("8794"),A=o("0d7a"),m=o("b093"),v=o("842c"),g=o("cd10"),y=o("ddee"),q=o("1590"),_=o("3f0a"),W=o("6176"),R=o("c661"),w=new n.ContainerModule(function(e,t,o){e(i.TYPES.ILogger).to(a.NullLogger).inSingletonScope(),e(i.TYPES.LogLevel).toConstantValue(a.LogLevel.warn),e(i.TYPES.SModelRegistry).to(l.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(i.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(i.TYPES.ViewRegistry).to(z.ViewRegistry).inSingletonScope(),e(i.TYPES.IModelFactory).to(l.SModelFactory).inSingletonScope(),e(i.TYPES.IActionDispatcher).to(s.ActionDispatcher).inSingletonScope(),e(i.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.IActionDispatcher))})}}),e(i.TYPES.IDiagramLocker).to(R.DefaultDiagramLocker).inSingletonScope(),e(i.TYPES.IActionHandlerInitializer).to(v.CommandActionHandlerInitializer),e(i.TYPES.ICommandStack).to(p.CommandStack).inSingletonScope(),e(i.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.ICommandStack))})}}),e(i.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(b.ModelViewer).toSelf().inSingletonScope(),e(b.HiddenModelViewer).toSelf().inSingletonScope(),e(b.PopupModelViewer).toSelf().inSingletonScope(),e(i.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.ModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.PopupModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.HiddenModelViewer).toService(b.HiddenModelViewer),e(i.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(i.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(i.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(i.TYPES.PopupModelViewer)}}}),e(i.TYPES.ViewerOptions).toConstantValue(d.defaultViewerOptions()),e(i.TYPES.PatcherProvider).to(b.PatcherProvider).inSingletonScope(),e(i.TYPES.DOMHelper).to(A.DOMHelper).inSingletonScope(),e(i.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,o){var n=e.container.get(i.TYPES.ViewRegistry);return new b.ModelRenderer(n,t,o)}}),e(m.IdPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(m.IdPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(m.IdPostprocessor),e(g.CssClassPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(g.CssClassPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(g.CssClassPostprocessor),e(M.MouseTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(M.MouseTool),e(h.KeyTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(h.KeyTool),e(f.FocusFixPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(f.FocusFixPostprocessor),e(i.TYPES.PopupVNodePostprocessor).toService(m.IdPostprocessor),e(M.PopupMouseTool).toSelf().inSingletonScope(),e(i.TYPES.PopupVNodePostprocessor).toService(M.PopupMouseTool),e(i.TYPES.AnimationFrameSyncer).to(u.AnimationFrameSyncer).inSingletonScope();var n={bind:e,isBound:o};v.configureCommand(n,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),v.configureCommand(n,_.SetModelCommand),e(i.TYPES.IToolManager).to(y.ToolManager).inSingletonScope(),e(i.TYPES.KeyListener).to(y.DefaultToolsEnablingKeyListener),e(y.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(n,q.EnableDefaultToolsAction.KIND,y.ToolManagerActionHandler),c.configureActionHandler(n,q.EnableToolsAction.KIND,y.ToolManagerActionHandler),e(i.TYPES.UIExtensionRegistry).to(W.UIExtensionRegistry).inSingletonScope(),v.configureCommand(n,W.SetUIExtensionVisibilityCommand),e(M.MousePositionTracker).toSelf().inSingletonScope(),e(i.TYPES.MouseListener).toService(M.MousePositionTracker)});t.default=w},8195:function(e,t,o){},"81aa":function(e,t,o){"use strict";function n(e,t,o,n,i){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:o,text:n,elm:i,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=n,t.default=n},8336:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("0fd9"),a=o("2cac"),s=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+n.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.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=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(n.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){var o=function(){return t.container.get(e)};return o},new a.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=s},"842c":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("7b39"),c=o("6923"),p=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=p;var l=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new p(t))})},e=n([a.injectable(),r(0,a.multiInject(c.TYPES.CommandRegistration)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();function u(e,t){if(!s.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(o){var n=new a.Container;return n.parent=e.container,n.bind(c.TYPES.Action).toConstantValue(o),n.get(t)}}})}t.CommandActionHandlerInitializer=l,t.configureCommand=u},"84a2":function(e,t,o){(function(t){var o="Expected a function",n=NaN,i="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,b=l||u||Function("return this")(),d=Object.prototype,M=d.toString,h=Math.max,f=Math.min,z=function(){return b.Date.now()};function O(e,t,n){var i,r,a,s,c,p,l=0,u=!1,b=!1,d=!0;if("function"!=typeof e)throw new TypeError(o);function M(t){var o=i,n=r;return i=r=void 0,l=t,s=e.apply(n,o),s}function O(e){return l=e,c=setTimeout(g,t),u?M(e):s}function A(e){var o=e-p,n=e-l,i=t-o;return b?f(i,a-n):i}function v(e){var o=e-p,n=e-l;return void 0===p||o>=t||o<0||b&&n>=a}function g(){var e=z();if(v(e))return q(e);c=setTimeout(g,A(e))}function q(e){return c=void 0,d&&i?M(e):(i=r=void 0,s)}function _(){void 0!==c&&clearTimeout(c),l=0,i=p=r=c=void 0}function W(){return void 0===c?s:q(z())}function R(){var e=z(),o=v(e);if(i=arguments,r=this,p=e,o){if(void 0===c)return O(p);if(b)return c=setTimeout(g,t),M(p)}return void 0===c&&(c=setTimeout(g,t)),s}return t=y(t)||0,m(n)&&(u=!!n.leading,b="maxWait"in n,a=b?h(y(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),R.cancel=_,R.flush=W,R}function A(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(o);return m(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),O(e,t,{leading:i,maxWait:t,trailing:r})}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function g(e){return"symbol"==typeof e||v(e)&&M.call(e)==i}function y(e){if("number"==typeof e)return e;if(g(e))return n;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var o=s.test(e);return o||c.test(e)?p(e.slice(2),o?2:8):a.test(e)?n:+e}e.exports=A}).call(this,o("c8ba"))},"84b1":function(e,t,o){(function(t,o){e.exports=o()})(0,function(){"use strict";function e(e){var t,o,n=document,i=n.createElement("div"),r=i.style,a=navigator.userAgent,s=-1!==a.indexOf("Firefox")&&-1!==a.indexOf("Mobile"),c=e.debounceWaitMs||0,p=e.preventSubmit||!1,l=s?"input":"keyup",u=[],b="",d=2,M=e.showOnFocus,h=0;if(void 0!==e.minLength&&(d=e.minLength),!e.input)throw new Error("input undefined");var f=e.input;function z(){var e=i.parentNode;e&&e.removeChild(i)}function O(){o&&window.clearTimeout(o)}function A(){i.parentNode||n.body.appendChild(i)}function m(){return!!i.parentNode}function v(){h++,u=[],b="",t=void 0,z()}function g(){if(m()){r.height="auto",r.width=f.offsetWidth+"px";var t=f.getBoundingClientRect(),o=t.top+f.offsetHeight,n=window.innerHeight-o;n<0&&(n=0),r.top=o+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=n+"px",e.customize&&e.customize(f,t,i,n)}}function y(){while(i.firstChild)i.removeChild(i.firstChild);var o=function(e,t){var o=n.createElement("div");return o.textContent=e.label||"",o};e.render&&(o=e.render);var r=function(e,t){var o=n.createElement("div");return o.textContent=e,o};e.renderGroup&&(r=e.renderGroup);var a=n.createDocumentFragment(),s="#9?$";if(u.forEach(function(n){if(n.group&&n.group!==s){s=n.group;var i=r(n.group,b);i&&(i.className+=" group",a.appendChild(i))}var c=o(n,b);c&&(c.addEventListener("click",function(t){e.onSelect(n,f),v(),t.preventDefault(),t.stopPropagation()}),n===t&&(c.className+=" selected"),a.appendChild(c))}),i.appendChild(a),u.length<1){if(!e.emptyMsg)return void v();var c=n.createElement("div");c.className="empty",c.textContent=e.emptyMsg,i.appendChild(c)}A(),g(),w()}function q(){m()&&y()}function _(){q()}function W(e){e.target!==i?q():e.preventDefault()}function R(e){for(var t=e.which||e.keyCode||0,o=[38,13,27,39,37,16,17,18,20,91,9],n=0,i=o;n0){var t=e[0],o=t.previousElementSibling;if(o&&-1!==o.className.indexOf("group")&&!o.previousElementSibling&&(t=o),t.offsetTopr&&(i.scrollTop+=n-r)}}}function L(){if(u.length<1)t=void 0;else if(t===u[0])t=u[u.length-1];else for(var e=u.length-1;e>0;e--)if(t===u[e]||1===e){t=u[e-1];break}}function C(){if(u.length<1&&(t=void 0),t&&t!==u[u.length-1]){for(var e=0;e=d||1===n?(O(),o=window.setTimeout(function(){e.fetch(r,function(e){h===i&&e&&(u=e,b=r,t=u.length>0?u[0]:void 0,y())},0)},0===n?c:0)):v()}function x(){setTimeout(function(){n.activeElement!==f&&v()},200)}function N(){f.removeEventListener("focus",E),f.removeEventListener("keydown",S),f.removeEventListener(l,R),f.removeEventListener("blur",x),window.removeEventListener("resize",_),n.removeEventListener("scroll",W,!0),O(),v(),h++}return i.className="autocomplete "+(e.className||""),r.position="fixed",i.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),f.addEventListener("keydown",S),f.addEventListener(l,R),f.addEventListener("blur",x),f.addEventListener("focus",E),window.addEventListener("resize",_),n.addEventListener("scroll",W,!0),{destroy:N}}return e})},"84fd":function(e,t,o){},"85ed":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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,o=arguments.length;t=s.LogLevel.error&&this.forward(e,t,s.LogLevel.error,o)},e.prototype.warn=function(e,t){for(var o=[],n=2;n=s.LogLevel.warn&&this.forward(e,t,s.LogLevel.warn,o)},e.prototype.info=function(e,t){for(var o=[],n=2;n=s.LogLevel.info&&this.forward(e,t,s.LogLevel.info,o)},e.prototype.log=function(e,t){for(var o=[],n=2;n=s.LogLevel.log)try{var i="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([i+": "+t],o))}catch(e){}},e.prototype.forward=function(e,t,o,n){var i=new Date,r=new p(s.LogLevel[o],i.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,n.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(o){try{o.handle(r)}catch(o){try{console.log.apply(e,[t,r,o])}catch(e){}}})},n([a.inject(c.TYPES.ModelSourceProvider),i("design:type",Function)],e.prototype,"modelSourceProvider",void 0),n([a.inject(c.TYPES.LogLevel),i("design:type",Number)],e.prototype,"logLevel",void 0),e=n([a.injectable()],e),e}();t.ForwardingLogger=l},"861d":function(e,t,o){var n=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=o("c4ec"),r=Object.create?Object.create(null):{};function a(e,t,o,n,i){var r=t.indexOf("<",n),a=t.slice(n,-1===r?void 0:r);/^\s*$/.test(a)&&(a=" "),(!i&&r>-1&&o+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var o,s=[],c=-1,p=[],l={},u=!1;return e.replace(n,function(n,r){if(u){if(n!=="")return;u=!1}var b,d="/"!==n.charAt(1),M=0===n.indexOf("\x3c!--"),h=r+n.length,f=e.charAt(h);d&&!M&&(c++,o=i(n),"tag"===o.type&&t.components[o.name]&&(o.type="component",u=!0),o.voidElement||u||!f||"<"===f||a(o.children,e,c,h,t.ignoreWhitespace),l[o.tagName]=o,0===c&&s.push(o),b=p[c-1],b&&b.children.push(o),p[c]=o),(M||!d||o.voidElement)&&(M||c--,!u&&"<"!==f&&f&&(b=-1===c?s:p[c].children,a(b,e,c,h,t.ignoreWhitespace)))}),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},8622:function(e,t,o){"use strict";var n=o("bc63"),i=o.n(n);i.a},"869e":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=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(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var l=function(e){function o(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.kind,e)}),o}return n(o,e),Object.defineProperty(o.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),o.prototype.get=function(t,o){return e.prototype.get.call(this,t+":"+(o||this.defaultAnchorKind))},o=i([s.injectable(),a(0,s.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],o),o}(p.InstanceRegistry);t.AnchorComputerRegistry=l},8707:function(e,t,o){var n=o("b639"),i=n.Buffer;function r(e,t){for(var o in e)t[o]=e[o]}function a(e,t,o){return i(e,t,o)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=a),r(i,a),a.from=function(e,t,o){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,o)},a.alloc=function(e,t,o){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof o?n.fill(t,o):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},8794:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=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=o("e1c6"),a=o("6923"),s=o("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 o=void 0===this.cachedModel;this.cachedModel=e,o&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},n([r.inject(a.TYPES.IViewer),i("design:type",Object)],e.prototype,"delegate",void 0),n([r.inject(a.TYPES.AnimationFrameSyncer),i("design:type",s.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=n([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("7685"),i=o("30e3"),r=o("155f"),a=o("c5f4"),s=o("a8af"),c=o("ba33"),p=o("a32f"),l=o("1979"),u=o("c8c0"),b=o("7dba"),d=o("c622"),M=o("757d");function h(e){return e._bindingDictionary}function f(e,t,o,n,i,r){var s=e?a.MULTI_INJECT_TAG:a.INJECT_TAG,c=new l.Metadata(s,o),p=new M.Target(t,n,o,c);if(void 0!==i){var u=new l.Metadata(i,r);p.metadata.push(u)}return p}function z(e,t,o,i,r){var a=m(o.container,r.serviceIdentifier),s=[];return a.length===n.BindingCount.NoBindingsAvailable&&o.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(o.container.bind(r.serviceIdentifier).toSelf(),a=m(o.container,r.serviceIdentifier)),s=t?a:a.filter(function(e){var t=new d.Request(e.serviceIdentifier,o,i,e,r);return e.constraint(t)}),O(r.serviceIdentifier,s,r,o.container),s}function O(e,t,o,r){switch(t.length){case n.BindingCount.NoBindingsAvailable:if(o.isOptional())return t;var a=c.getServiceIdentifierAsString(e),s=i.NOT_REGISTERED;throw s+=c.listMetadataForTarget(a,o),s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s);case n.BindingCount.OnlyOneBindingAvailable:if(!o.isArray())return t;case n.BindingCount.MultipleBindingsAvailable:default:if(o.isArray())return t;a=c.getServiceIdentifierAsString(e),s=i.AMBIGUOUS_MATCH+" "+a;throw s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s)}}function A(e,t,o,n,a,s){var c,p;if(null===a){c=z(e,t,n,null,s),p=new d.Request(o,n,null,c,s);var l=new u.Plan(n,p);n.addPlan(l)}else c=z(e,t,n,a,s),p=a.addChildRequest(s.serviceIdentifier,c,s);c.forEach(function(t){var o=null;if(s.isArray())o=p.addChildRequest(t.serviceIdentifier,t,s);else{if(t.cache)return;o=p}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var a=b.getDependencies(e,t.implementationType);if(!n.container.options.skipBaseClassChecks){var c=b.getBaseClassDependencyCount(e,t.implementationType);if(a.length=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd7b"),r=o("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var o=this;return i.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return o.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var o=this.doRender(e,t);return t.decorate(o,e),o},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,o=t.fn.apply(void 0,t.args);this.copyToThunk(o,e)},e.prototype.prepatch=function(e,t){var o=e.data,n=t.data;this.equals(o.args,n.args)?this.copyToThunk(e,t):this.copyToThunk(n.fn.apply(void 0,n.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("3585"),a=function(){function e(){}return e.prototype.isVisible=function(e,t,o){if("hidden"===o.targetKind)return!0;if(0===t.length)return!0;var n=r.getAbsoluteRouteBounds(e,t),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=n([i.injectable()],e),e}();t.RoutableView=a},"8e08":function(e,t,o){},"8e65":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("6923"),a=o("42be"),s=o("26ad"),c=new n.ContainerModule(function(e,t,o){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),i.configureCommand({bind:e,isBound:o},a.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(s.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("dd02"),a=o("66f9"),s=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var o=a.getAbsoluteBounds(e),n=e.root.canvasBounds;return o.x<=n.width&&o.x+o.width>=0&&o.y<=n.height&&o.y+o.height>=0},e=n([i.injectable()],e),e}();t.ShapeView=s},"8ef3":function(e,t,o){},9016:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,i=function(e){n(function(){n(e)})},r=!1;function a(e,t,o){i(function(){e[t]=o})}function s(e,t){var o,n,i=t.elm,r=e.data.style,s=t.data.style;if((r||s)&&r!==s){r=r||{},s=s||{};var c="delayed"in r;for(n in r)s[n]||("-"===n[0]&&"-"===n[1]?i.style.removeProperty(n):i.style[n]="");for(n in s)if(o=s[n],"delayed"===n&&s.delayed)for(var p in s.delayed)o=s.delayed[p],c&&o===r.delayed[p]||a(i.style,p,o);else"remove"!==n&&o!==r[n]&&("-"===n[0]&&"-"===n[1]?i.style.setProperty(n,o):i.style[n]=o)}}function c(e){var t,o,n=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(o in t)n.style[o]=t[o]}function p(e,t){var o=e.data.style;if(o&&o.remove){r||(getComputedStyle(document.body).transform,r=!0);var n,i,a=e.elm,s=0,c=o.remove,p=0,l=[];for(n in c)l.push(n),a.style[n]=c[n];i=getComputedStyle(a);for(var u=i["transition-property"].split(", ");s=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=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=o("21a6"),c=o("e1c6"),p=o("3f0a"),l=o("6923"),u=o("42f7"),b=o("4741"),d=o("5d19"),M=o("f4cb"),h=o("b485"),f=o("cf61"),z=o("26ad");function O(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=O;var A=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=A;var m="__receivedFromServer",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return n(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(u.ComputedBoundsAction.KIND,this),t.register(u.RequestBoundsCommand.KIND,this),t.register(M.RequestPopupModelAction.KIND,this),t.register(b.CollapseExpandAction.KIND,this),t.register(b.CollapseExpandAllAction.KIND,this),t.register(h.OpenAction.KIND,this),t.register(A.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,o="string"===typeof e?JSON.parse(e):e;O(o)&&o.action?o.clientId&&o.clientId!==this.clientId||(o.action[m]=!0,this.logger.log(this,"receiving",o),this.actionDispatcher.dispatch(o.action).then(function(){t.storeNewModel(o.action)})):this.logger.error(this,"received data is not an action message",o)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case u.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case p.RequestModelAction.KIND:return this.handleRequestModel(e);case u.RequestBoundsCommand.KIND:return!1;case d.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case A.KIND:return this.handleServerStateAction(e)}return!e[m]},t.prototype.storeNewModel=function(e){if(e.kind===p.SetModelCommand.KIND||e.kind===f.UpdateModelCommand.KIND||e.kind===u.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==p.SetModelCommand.KIND&&e.kind!==f.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=i({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),o=i(i({},e),{options:t});return this.forwardToServer(o),!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 f.UpdateModelAction(t)):this.actionDispatcher.dispatch(new p.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 s.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(l.TYPES.ILogger),a("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(z.ComputedBoundsApplicator),a("design:type",z.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(z.ModelSource);t.DiagramServer=v},"966d":function(e,t,o){"use strict";(function(t){function o(e,o,n,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,o)});case 3:return t.nextTick(function(){e.call(null,o,n)});case 4:return t.nextTick(function(){e.call(null,o,n,i)});default:r=new Array(s-1),a=0;while(a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=function(){function e(){}return e=i([r.injectable()],e),e}();t.Command=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.merge=function(e,t){return!1},t=i([r.injectable()],t),t}(a);t.MergeableCommand=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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=i([r.injectable()],t),t}(a);t.HiddenCommand=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.PopupCommand=p;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.SystemCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.ResetCommand=u},9811:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("e7fa"),a=new n.ContainerModule(function(e){e(i.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=a},"987d":function(e,t,o){"use strict";function n(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=n},"98ab":function(e,t,o){},"98db":function(e,t,o){(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/app.1f480085.js b/klab.engine/src/main/resources/static/ui/js/app.87cc1f0f.js similarity index 72% rename from klab.engine/src/main/resources/static/ui/js/app.1f480085.js rename to klab.engine/src/main/resources/static/ui/js/app.87cc1f0f.js index ede295e76..f029d0806 100644 --- a/klab.engine/src/main/resources/static/ui/js/app.1f480085.js +++ b/klab.engine/src/main/resources/static/ui/js/app.87cc1f0f.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("2f39")},"034f":function(e,t,n){"use strict";var o=n("fb1c"),a=n.n(o);a.a},1:function(e,t){},1442:function(e,t,n){"use strict";n.d(t,"d",function(){return A}),n.d(t,"f",function(){return I}),n.d(t,"e",function(){return v}),n.d(t,"c",function(){return N}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return R});n("ac6a"),n("7514"),n("48c0"),n("6c7b");var o=n("7cca"),a=n("480c"),i=n("5043"),r=n("d0e9"),c=n("2ef1"),s=n("6c77"),l=n("83a6"),u=n("8682"),d=n("8295"),E=n("6cbf"),f=n("bcf0"),T=n("4cdf"),p=n("ddaa"),S=n("8f3a"),m=n("256f"),O="pk.eyJ1Ijoiay1sYWIiLCJhIjoiY2prd2d2dWNxMHlvcDNxcDVsY3FncDBydiJ9.zMQE3gu-0qPpkLapVfVhnA",b='© Mapbox © OpenStreetMap Improve this map',A={BING_KEY:"",COORD_BC3:[-2.968226,43.332125],PROJ_EPSG_4326:Object(m["g"])("EPSG:4326"),PROJ_EPSG_3857:Object(m["g"])("EPSG:3857"),ZINDEX_TOP:1e4,ZINDEX_BASE:1e3,ZINDEX_MULTIPLIER_RASTER:0,ZINDEX_MULTIPLIER_POLYGONS:1,ZINDEX_MULTIPLIER_LINES:2,ZINDEX_MULTIPLIER_POINTS:3,DEFAULT_BASELAYER:"osm_layer"},_={MARKER_SVG:function(e){var t=e.fill,n=void 0===t?"yellow":t,o=e.stroke,a=void 0===o?"black":o,i=e.strokeWidth,r=void 0===i?"5":i;return'\n ')}},I={POINT_OBSERVATION_ICON:new E["a"]({anchor:[.5,1],src:"statics/maps/marker.png",opacity:.8,scale:.6}),POINT_OBSERVATION_SVG_ICON:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;return new E["a"]({opacity:1,src:"data:image/svg+xml;utf8,".concat(_.MARKER_SVG(e)),scale:t})},POINT_OBSERVATION_TEXT:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.offsetY,n=void 0===t?25:t,o=e.bold,a=void 0!==o&&o,i=e.size,r=void 0===i?"10px":i;return new d["a"]({textAlign:"center",textBaseline:"bottom",offsetY:n,font:"".concat(a?"bold":"normal"," ").concat(r," Roboto, sans-serif")})}},v={POLYGON_CONTEXT_STYLE:new s["c"]({fill:new l["a"]({color:"rgba(38, 166, 154, 0.2)"})}),POLYGON_PROPOSED_CONTEXT:new s["c"]({fill:new l["a"]({color:"rgba(255,255,255,0.5)"}),stroke:new f["a"]({width:8,pattern:"hatch",color:"#3187ca",offset:0,scale:.75,fill:new l["a"]({color:"#FFFFFF"}),size:2,spacing:5,angle:45})}),POLYGON_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2}),fill:new l["a"]({color:"rgba(255, 102, 0, 0.2)"})}),LNE_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2})}),POINT_OBSERVATION_SVG_PARAM:{fill:o["e"].MAIN_COLOR,stroke:"rgb(51,51,51)",strokeWidth:"4",scale:.3},POINT_CONTEXT_SVG_PARAM:{fill:"rgb(17, 170, 187)",stroke:"rgb(51,51,51)",strokeWidth:"5",scale:.5,offsetY:35,bold:!0,size:"14px"}},N={OSM_LAYER:new a["a"]({name:"osm_layer",title:"OpenStreetMap",type:"base",source:new r["a"]({attributions:'Map credits ©\n OSM\n contributors.'}),visible:!1}),CLEARMAP_TOPO_LAYER:new a["a"]({name:"clearmap_topo_layer",title:"UN Clear Map",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebTopo/MapServer/export"}),visible:!1}),CLEARMAP_PLAIN_LAYER:new a["a"]({name:"clearmap_plain_layer",title:"UN Clear Map Plain",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebPlain/MapServer/export"}),visible:!1}),CLEARMAP_DARK_LAYER:new a["a"]({name:"clearmap_dark_layer",title:"UN Clear Map Dark",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebDark/MapServer/export"}),visible:!1}),CLEARMAP_GRAY_LAYER:new a["a"]({name:"clearmap_gray_layer",title:"UN Clear Map Gray",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebGray/MapServer/export"}),visible:!1}),GOOGLE_HYBRID:new a["a"]({name:"google_hybrid",title:"Google Hybrid",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_STREET:new a["a"]({name:"google_street",title:"Google Street",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_TERRAIN:new a["a"]({name:"google_terrain",title:"Google Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://mt{0-3}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),MAPBOX_CALI_TERRAIN:new a["a"]({name:"mapbox_cali_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjkwh1z9z06ok2rrn9unfpn2n/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_MINIMO:new a["a"]({name:"mapbox_minimo",title:"Mapbox Minimo",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjm0l6i4g7ffj2sqk7xy5dv1m/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_TERRAIN:new a["a"]({name:"mapbox_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",format:"pbf",url:"https://api.mapbox.com/styles/v1/k-lab/cl1dgarpr005f15ntep34yq88/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_GOT:new a["a"]({name:"mapbox_got",title:"k.LAB Mapbox GOT",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjuihteg13toh1fmovvd6r80y/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),EMPTY_LAYER:new a["a"]({name:"empty_layer",title:"No background",type:"base",visible:!1})},h={controls:S["a"]({attribution:!1}).extend([]),target:"map",projection:A.PROJ_EPSG_4326,center:Object(m["l"])(A.COORD_BC3,A.PROJ_EPSG_4326,A.PROJ_EPSG_3857),zoom:13},R={layers:[N.EMPTY_LAYER,N.CLEARMAP_TOPO_LAYER,N.MAPBOX_MINIMO,N.MAPBOX_TERRAIN,N.OSM_LAYER],mask:null,hasMask:function(){return null!==this.mask},getBaseLayer:function(){return this.layers.find(function(e){return"base"===e.get("type")&&e.getVisible()})},setMask:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[38,38,38,.4];null!==this.mask&&this.removeMask(),this.mask=new p["a"]({feature:new T["a"]({geometry:e,name:"Context"}),inner:!1,active:!0,fill:new l["a"]({color:n})}),this.layers.forEach(function(e){e.addFilter(t.mask)})},removeMask:function(){var e=this;null!==this.mask&&this.layers.forEach(function(t){t.removeFilter(e.mask)}),this.mask=null}}},"17dc":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("ac6a"),n("cadf"),n("6b54"),n("c5f6");var o=n("3156"),a=n.n(o),i=n("278c"),r=n.n(i),c=n("2369"),s=n("c1df"),l=n.n(s),u=n("d247");function d(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=n!==u["b"].PAYLOAD_CLASS_EMPTY?c["b"].validateJsonSchema(o,n):o;return{validated:r,body:{messageClass:e,type:t,payloadClass:n,payload:o,identity:a,timestamp:l()().valueOf(),inResponseTo:i}}}var E={SPATIAL_EXTENT:function(e){var t=r()(e,4),n=t[0],o=t[1],a=t[2],i=t[3];return{south:o,west:n,north:i,east:a}}},f={REGION_OF_INTEREST:function(e,t){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_REGIONOFINTEREST,u["b"].PAYLOAD_CLASS_SPATIALEXTENT,E.SPATIAL_EXTENT(e),t)},SEARCH_REQUEST:function(e,t){var n=e.queryString,o=e.searchMode,i=e.requestId,r=e.contextId,c=void 0===r?null:r,s=e.matchTypes,l=void 0===s?null:s,E=e.cancelSearch,f=void 0!==E&&E,T=e.defaultResults,p=void 0!==T&&T,S=e.maxResults;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_SUBMITSEARCH,u["b"].PAYLOAD_CLASS_SEARCHREQUEST,a()({},null!==c&&{contextId:c},null!==l&&{matchTypes:l},{queryString:n,searchMode:o,requestId:i,cancelSearch:f,defaultResults:p,maxResults:S}),t)},SEARCH_MATCH:function(e,t){var n=e.contextId,o=e.matchId,a=e.matchIndex,i=e.added;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_MATCHACTION,u["b"].PAYLOAD_CLASS_SEARCHMATCHACTION,{contextId:n,matchId:o,matchIndex:a,added:i},t)},OBSERVATION_REQUEST:function(e,t){var n=e.urn,o=e.contextId,i=e.searchContextId,r=void 0===i?null:i,c=e.estimate,s=void 0!==c&&c,l=e.estimatedCost,E=void 0===l?0:l;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_REQUESTOBSERVATION,u["b"].PAYLOAD_CLASS_OBSERVATIONREQUEST,a()({urn:n},null!==o&&{contextId:o},null!==r&&{searchContextId:r},{estimate:s,estimatedCost:E}),t)},RESET_CONTEXT:function(e){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_RESETCONTEXT,u["b"].PAYLOAD_CLASS_EMPTY,"",e)},CONTEXTUALIZATION_REQUEST:function(e,t){var n=e.contextUrn,o=e.contextId,i=e.parentContext,r=e.contextQuery;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_RECONTEXTUALIZE,u["b"].PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST,a()({},"undefined"!==typeof n&&{contextUrn:n},"undefined"!==typeof o&&{contextId:o},"undefined"!==typeof i&&{parentContext:i},"undefined"!==typeof r&&{contextQuery:r}),t)},TASK_INTERRUPTED:function(e,t){var n=e.taskId,o=e.forceInterruption,a=void 0===o||o;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_TASKINTERRUPTED,u["b"].PAYLOAD_CLASS_INTERRUPTTASK,{taskId:n,forceInterruption:a},t)},SCALE_REFERENCE:function(e,t){var n=e.scaleReference,o=e.spaceResolution,i=e.spaceUnit,r=e.timeResolutionMultiplier,c=e.timeUnit,s=e.start,l=e.end,E=e.timeResolutionDescription,f=void 0===E?"":E,T=e.contextId,p=void 0===T?"":T,S=e.shape,m=void 0===S?"":S,O=e.timeType,b=void 0===O?"":O,A=e.timeGeometry,_=void 0===A?"":A,I=e.spaceGeometry,v=void 0===I?"":I;return d(u["b"].CLASS_USERCONTEXTDEFINITION,u["b"].TYPE_SCALEDEFINED,u["b"].PAYLOAD_CLASS_SCALEREFERENCE,a()({},n,{name:"",contextId:p,shape:m,timeType:b,timeGeometry:_,spaceGeometry:v,timeResolutionDescription:null===f?"":f},"undefined"!==typeof o&&{spaceResolution:o},"undefined"!==typeof i&&{spaceUnit:i},"undefined"!==typeof r&&{timeResolutionMultiplier:r},"undefined"!==typeof c&&{timeUnit:c},"undefined"!==typeof s&&{start:s},"undefined"!==typeof l&&{end:l}),t)},SPATIAL_LOCATION:function(e,t){var n=e.wktShape,o=e.contextId,i=void 0===o?null:o;return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_FEATUREADDED,u["b"].PAYLOAD_CLASS_SPATIALLOCATION,a()({easting:Number.MIN_VALUE,northing:Number.MIN_VALUE,wktShape:n},null!==i&&{contextId:i}),t)},DATAFLOW_NODE_DETAILS:function(e,t){var n=e.nodeId,o=e.contextId;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODEDETAIL,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,{nodeId:n,monitorable:!1,rating:-1,progress:0,contextId:o},t)},DATAFLOW_NODE_RATING:function(e,t){var n=e.nodeId,o=e.contextId,i=e.rating,r=e.comment,c=void 0===r?null:r;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODERATING,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,a()({nodeId:n,monitorable:!1,progress:0,rating:i},null!==c&&{comment:c},{contextId:o}),t)},SETTING_CHANGE_REQUEST:function(e,t){var n=e.setting,o=e.value;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CHANGESETTING,u["b"].PAYLOAD_CLASS_SETTINGCHANGEREQUEST,{setting:n,previousValue:(!o).toString(),newValue:o.toString()},t)},USER_INPUT_RESPONSE:function(e,t){var n=e.messageId,o=e.requestId,a=e.cancelRun,i=void 0!==a&&a,r=e.values,c=void 0===r?{}:r;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_USERINPUTPROVIDED,u["b"].PAYLOAD_CLASS_USERINPUTRESPONSE,{requestId:o,cancelRun:i,values:c},t,n)},WATCH_REQUEST:function(e,t){var n=e.active,o=e.eventType,i=e.observationId,r=e.rootContextId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_WATCHOBSERVATION,u["b"].PAYLOAD_CLASS_WATCHREQUEST,a()({active:n,observationId:i,rootContextId:r},o&&{eventType:o}),t)},WATCH_ENGINE_EVENT:function(e,t){var n=e.active,o=e.eventType;return d(u["b"].CLASS_NOTIFICATION,u["b"].TYPE_ENGINEEVENT,u["b"].PAYLOAD_CLASS_WATCHREQUEST,{active:n,eventType:o},t)},VIEW_ACTION:function(e,t){var n=e.component,o=e.componentTag,a=void 0===o?null:o,i=e.applicationId,r=void 0===i?null:i,c=e.booleanValue,s=void 0===c?null:c,l=e.doubleValue,E=void 0===l?null:l,f=e.intValue,T=void 0===f?null:f,p=e.stringValue,S=void 0===p?null:p,m=e.listValue,O=void 0===m?[]:m,b=e.dateValue,A=void 0===b?null:b,_=e.data,I=void 0===_?null:_;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_VIEWACTION,{component:n,componentTag:a,applicationId:r,booleanValue:s,doubleValue:E,intValue:T,stringValue:S,listValue:O,dateValue:A,data:I},t)},MENU_ACTION:function(e,t){var n=e.identity,o=e.applicationId,a=e.menuId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_MENUACTION,{identity:n,applicationId:o,menuId:a},t)},RUN_APPLICATION:function(e,t){var n=e.applicationId,o=e.test,a=void 0!==o&&o,i=e.stop,r=void 0!==i&&i;return d(u["b"].CLASS_RUN,u["b"].TYPE_RUNAPP,u["b"].PAYLOAD_CLASS_LOADAPPLICATIONREQUEST,{behavior:n,test:a,stop:r,parameters:{}},t)},CONSOLE_CREATED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECREATED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},CONSOLE_CLOSED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECLOSED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},COMMAND_REQUEST:function(e,t){var n=e.consoleId,o=e.consoleType,a=e.commandId,i=e.payload;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_COMMANDREQUEST,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o,commandId:a,payload:i},t)}}},"1e5d":function(e,t,n){},2369:function(e,t,n){"use strict";var o=n("278c"),a=n.n(o),i=(n("ffc1"),n("ac6a"),n("cadf"),n("456d"),n("7037")),r=n.n(i),c=n("970b"),s=n.n(c),l=n("5bc30"),u=n.n(l),d=n("be3b"),E=n("3b1b6"),f=n.n(E),T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{draft:"draft-04"};if(s()(this,e),void 0===t||""===t)throw Error("URL is mandatory");this.djvEnv=new f.a({version:n.draft}),this.initialized=!1,this.url=t,this.initTimeout=null,console.debug("Load schema(s) on creation"),this.initTimeout=setTimeout(this.init(t),2e3)}return u()(e,[{key:"validateJsonSchema",value:function(e,t){if(!this.initialized)return console.info("djvEnv not ready"),!1;if(this.djvEnv.resolve(t)){var n=this.djvEnv.validate(t,e);if("undefined"===typeof n)return!0;if("$ref"===n.keyword)return!0;throw Error(n)}throw Error("Schema not found: ".concat(t))}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;this.initialized||d["a"].get(t,{}).then(function(n){var o=n.data;if("object"!==r()(o))throw Error("Error asking for JsonSchema(s): no data");if(0===Object.keys(o).length)throw Error("Schema on url ".concat(t," is empty, check it"));for(var i=Object.entries(o),c=0;c-1))&&(a.splice(o,1),this.listeners.set(e,a),!0)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ze()(this,e),!t)throw new Error("Connection url is needed");this.connectionUrl=t,this.connectionHeaders=n;var a=o.stompOptions,i=void 0===a?{debug:!1}:a,r=o.sockJSOptions,c=void 0===r?{}:r,s=o.reconnection,l=void 0!==s&&s,u=o.reconnectionAttempts,d=void 0===u?1/0:u,E=o.reconnectionDelay,f=void 0===E?2e3:E,T=o.debug,p=void 0!==T&&T,S=o.store,m=void 0===S?null:S,O=o.storeNS,b=void 0===O?"":O;this.reconnection=l,this.reconnectionAttempts=d,this.reconnectionDelay=f,this.hasDebug=p,this.reconnectTimeoutId=-1,this.reconnectionCount=0,"undefined"!==typeof m&&null!==m&&(this.store=m,this.storeNS=b),this.stompOptions=i,this.sockJSOptions=c,this.connect()}return Ke()(e,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).debug.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=Xe()(this.connectionUrl,{},this.sockJSOptions);t.protocol=this.stompOptions.protocol||"",this.StompClient=Je.a.over(t,this.stompOptions),this.StompClient.connect(this.connectionHeaders,function(t){e.doOnEvent("onconnect",t)},function(t){return setTimeout(function(){e.doOnEvent("onerror",t)},1e3)})}},{key:"isConnected",value:function(){return this.StompClient&&this.StompClient.connected}},{key:"reconnect",value:function(){var e=this;this.reconnectionCount<=this.reconnectionAttempts?(this.reconnectionCount+=1,clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout(function(){e.doOnEvent("reconnect",e.reconnectionCount),e.connect()},this.reconnectionDelay)):this.store&&this.passToStore("stomp_onerror","Reconnection error")}},{key:"subscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){t.doOnEvent("onmessage",e)};if(e){var a=this.StompClient.subscribe(e,o,n);if(a)return this.doOnEvent("onsubscribe",a),a}return null}},{key:"unsubscribe",value:function(e,t){this.StompClient.unsubscribe(e,t)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isConnected()?(this.StompClient.send(e,JSON.stringify(t),n),this.doOnEvent("onsend",{headers:n,message:t}),!0):(this.doOnEvent("onerrorsend",{headers:n,message:t}),!1)}},{key:"doOnEvent",value:function(e,t){Ze.emit(e,t)||this.debug("No listener for ".concat(e)),this.store&&this.passToStore("stomp_".concat(e),t),this.reconnection&&"onoconnect"===e&&(this.reconnectionCount=0),this.reconnection&&"onerror"===e&&this.reconnect()}},{key:"passToStore",value:function(e,t){if(e.startsWith("stomp_")){var n="dispatch",o=[this.storeNS||"",e.toLowerCase()].filter(function(e){return!!e}).join("/"),a=t||null;t&&t.data&&(a=JSON.parse(t.data),a.mutation?o=[a.namespace||"",a.mutation].filter(function(e){return!!e}).join("/"):a.action&&(n="dispatch",o=[a.namespace||"",a.action].filter(function(e){return!!e}).join("/"))),this.store[n](o,a)}}},{key:"close",value:function(){this.StompClient&&(this.StompClient.disconnect(),this.doOnEvent("onclose")),this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId)}}]),e}(),tt={install:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new Error("[vue-stomp-client] cannot locate connection");var a=null;o.connectManually?(e.prototype.$connect=function(){a=new et(t,n,o),e.prototype.$stompClient=a.StompClient},e.prototype.$disconnect=function(){a&&a.reconnection&&(a.reconnection=!1),e.prototype.$stompClient&&(a.close(),delete e.prototype.$stompClient)}):(a=new et(t,n,o),e.prototype.$stompClient=a.StompClient),e.mixin({methods:{sendStompMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.defaultMessageDestination;a.send(n,e,t)?console.debug("Message sent: ".concat(JSON.stringify(e,null,4))):console.debug("Message not sent, still no connected:\n".concat(JSON.stringify(e,null,4)))},subscribe:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultSubscribeDestination;return a.subscribe("".concat(i,"/").concat(e),t,n)},unsubscribe:function(e){a.unsubscribe(e),console.debug("Unsubscribe the subscription with id ".concat(e))},reconnect:function(){a.StompClient&&!a.StompClient.connected&&(console.debug("Try to reconnect..."),a.reconnect())},disconnect:function(){a&&a.reconnection&&(a.reconnection=!1),a.close()}},created:function(){var e=this;if(this.$options.sockets){var t=this,n=this.$options.sockets;this.$options.sockets=new Proxy({},{set:function(e,n,o){return Ze.addListener(n,o,t),e[n]=o,!0},deleteProperty:function(e,n){return Ze.removeListener(n,t.$options.sockets[n],t),delete e.key,!0}}),n&&Object.keys(n).forEach(function(t){e.$options.sockets[t]=n[t]})}},beforeDestroy:function(){var e=this;if(this.$options.sockets){var t=this.$options.sockets;t&&Object.keys(t).forEach(function(t){console.debug("Remove listener ".concat(t)),Ze.removeListener(t,e.$options.sockets[t],e),delete e.$options.sockets[t]})}}})}},nt=function(e){var t=e.Vue,n=e.store,o=new URLSearchParams(window.location.search).get(Ie["R"].PARAMS_STOMP_DEBUG),a=!1;"true"===o&&(a=!0),t.use(tt,"/modeler/message",{},{stompOptions:{debug:a,protocol:"v12.stomp"},store:n,storeNS:"stomp",reconnection:!0,reconnectionAttempts:5,debug:a,defaultMessageDestination:"/klab/message",defaultSubscribeDestination:"/message"})},ot=De(),at=ot.app,it=ot.store,rt=ot.router;[Me["a"],xe["b"],We,Ge["a"],je["a"],nt].forEach(function(e){e({app:at,router:rt,store:it,Vue:o["a"],ssrContext:null})}),new o["a"](at)},4360:function(e,t,n){"use strict";var o,a=n("2b0e"),i=n("2f62"),r=(n("ac6a"),n("cadf"),n("f400"),n("7cca")),c=n("d247"),s={kexplorerLog:[],statusTexts:[],klabLog:[],dataViewers:[],mainDataViewerIdx:0,lastViewerId:0,mainViewer:void 0,treeVisible:!0,leftMenuContent:null,leftMenuState:r["w"].LEFTMENU_HIDDEN,mainControlDocked:!1,contextGeometry:null,spinner:r["J"].SPINNER_STOPPED,spinnerOwners:[],searchActive:!1,searchFocus:!1,searchLostChar:"",searchHistory:[],searchInApp:!1,flowchartSelected:r["g"].GRAPH_DATAFLOW,dataflowInfoOpen:!1,observationInfo:null,mapSelection:r["g"].EMPTY_MAP_SELECTION,exploreMapMode:!1,treeSelected:null,treeTicked:[],treeExpanded:[],topLayer:null,scaleEditing:{active:!1,type:null},drawMode:!1,customContext:!1,saveLocation:!0,saveDockedStatus:!1,modalMode:!1,inputRequests:[],waitingGeolocation:!0,helpShown:!1,modalSize:r["s"].DEFAULT_MODAL_SIZE,fuzzyMode:!1,largeMode:0,helpBaseUrl:null,timeRunning:!1,layout:null,windowSide:"left",dialogs:[],modalWindow:null,engineEvents:[],klabApp:null,levels:[c["a"].TYPE_INFO,c["a"].TYPE_WARNING,c["a"].TYPE_ERROR],showSettings:!0,notificationsParams:null,reloadViews:[],documentationView:r["n"].REPORT,documentationSelected:null,documentationCache:new Map,tableFontSize:12,textFontSize:10,viewCoordinates:!0},l=(n("7514"),n("7f7f"),n("6762"),n("2fdb"),n("448a")),u=n.n(l),d=n("b12a"),E=n("b0b2"),f={kexplorerLog:function(e){return e.kexplorerLog},lastKexplorerLog:function(e){return function(t){return Object(d["o"])(e.kexplorerLog,t)}},klabLog:function(e){return e.klabLog},lastKlabLog:function(e){return function(t){return Object(d["o"])(e.klabLog,t)}},klabLogReversedAndFiltered:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.klabLog.length)return[];var n=u()(e.klabLog).reverse();return 0===t.length?n:n.filter(function(e){return t.includes(e.type)})}},levels:function(e){return e.levels},statusTexts:function(e){return e.statusTexts},statusTextsLength:function(e){return e.statusTexts.length},statusTextsString:function(e){return e.statusTexts.length>0?e.statusTexts.map(function(e){return e.text}).join(" - "):""},mainViewer:function(e){return e.mainViewer},mainViewerName:function(e){return e.mainViewer?e.mainViewer.name:null},isTreeVisible:function(e){return e.treeVisible},leftMenuContent:function(e){return e.leftMenuContent},leftMenuState:function(e){return e.leftMenuState},isDocked:function(e){return e.leftMenuState!==r["w"].LEFTMENU_HIDDEN},hasMainControl:function(e){return e.mainViewer&&e.mainViewer.mainControl},isMainControlDocked:function(e){return e.mainControlDocked},admitSearch:function(e){return e.mainViewer&&e.mainViewer.hasSearch},contextGeometry:function(e){return e.contextGeometry},dataViewers:function(e){return e.dataViewers},mainDataViewer:function(e){return e.dataViewers.find(function(e){return e.main})},mainDataViewerIdx:function(e){return e.mainDataViewerIdx},lastViewerId:function(e){return e.lastViewerId},viewer:function(e){return function(t){return e.dataViewers.length>0?e.dataViewers.find(function(e){return e.idx===t}):null}},spinnerIsAnimated:function(e){return e.spinner.animated},spinner:function(e){return e.spinner},spinnerOwners:function(e){return e.spinnerOwners},spinnerColor:function(e){return"undefined"!==e.spinner&&null!==e.spinner?Object(E["e"])(e.spinner.color):null},spinnerErrorMessage:function(e){return"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null},searchIsActive:function(e){return e.searchActive},searchIsFocused:function(e){return e.searchFocus},searchLostChar:function(e){return e.searchLostChar},searchHistory:function(e){return e.searchHistory},searchInApp:function(e){return e.searchInApp},flowchartSelected:function(e){return e.flowchartSelected},dataflowInfoOpen:function(e){return e.dataflowInfoOpen},observationInfo:function(e){return e.observationInfo},mapSelection:function(e){return e.mapSelection},hasObservationInfo:function(e){return null!==e.observationInfo},exploreMode:function(e){return!!(null!==e.observationInfo&&Object(d["n"])(e.observationInfo)&&e.observationInfo.dataSummary.histogram.length>0&&e.observationInfo.visible&&e.observationInfo.top)},isScaleEditing:function(e){return e.scaleEditing.active},scaleEditingType:function(e){return e.scaleEditing.type},isDrawMode:function(e){return e.drawMode},hasCustomContext:function(e){return e.customContext},topLayer:function(e){return e.topLayer},topLayerId:function(e){return null!==e.topLayer?e.topLayer.id:null},inputRequests:function(e){return e.inputRequests},hasInputRequests:function(e){return 0!==e.inputRequests.length},isInModalMode:function(e){return e.modalMode},isHelpShown:function(e){return e.helpShown},modalSize:function(e){return e.modalSize},fuzzyMode:function(e){return e.fuzzyMode},largeMode:function(e){return e.largeMode},isTimeRunning:function(e){return e.timeRunning},layout:function(e){return e.layout},appStyle:function(e){return e.layout.style||"default"},modalWindow:function(e){return e.modalWindow},hasHeader:function(e){return e.layout&&(e.layout.header||e.layout.logo||e.layout.label||e.layout.description)},windowSide:function(e){return e.windowSide},isApp:function(e){return null!==e.klabApp},klabApp:function(e){return e.klabApp},activeDialogs:function(e){return e.dialogs.filter(function(e){return!e.dismiss})},engineEvents:function(e){return e.engineEvents},engineEventsCount:function(e){return e.engineEvents.length},hasShowSettings:function(e){return e.showSettings},notificationsParams:function(e){return e.notificationsParams},reloadViews:function(e){return e.reloadViews},documentationView:function(e){return e.documentationView},documentationSelected:function(e){return e.documentationSelected},documentationCache:function(e){return e.documentationCache},tableFontSize:function(e){return e.tableFontSize},textFontSize:function(e){return e.textFontSize},viewCoordinates:function(e){return e.viewCoordinates}},T=(n("f751"),n("3156")),p=n.n(T),S=(n("20d6"),n("741d")),m={ADD_TO_KEXPLORER_LOG:function(e,t){Object(d["p"])(e.kexplorerLog,t)},ADD_TO_KLAB_LOG:function(e,t){Object(d["p"])(e.klabLog,t)},SET_LEVELS:function(e,t){t&&(e.levels=t)},TOGGLE_LEVEL:function(e,t){var n=e.levels.indexOf(t);-1===n?e.levels.push(t):e.levels.splice(n,1)},ADD_TO_STATUS_TEXTS:function(e,t){var n=t.id,o=t.text;e.statusTexts.push({id:n,text:o})},REMOVE_FROM_STATUS_TEXTS:function(e,t){var n=e.statusTexts.findIndex(function(e){return e.id===t});-1!==n&&e.statusTexts.splice(n,1)},SET_CONTEXT_LAYER:function(e,t){e.dataViewers.splice(0,e.dataViewers.length),e.lastViewerId=0,e.contextGeometry=t,e.treeExpanded=[],e.treeTicked=[],e.statusTexts=[],e.treeSelected=null,e.topLayer=null,e.reloadViews.splice(0,e.reloadViews.length),e.documentationSelected=null,e.modalWindow=null},SET_MAIN_VIEWER:function(e,t){e.mainViewer=t},SET_TREE_VISIBLE:function(e,t){e.treeVisible=t},SET_LEFTMENU_CONTENT:function(e,t){e.leftMenuContent=t},SET_LEFTMENU_STATE:function(e,t){e.leftMenuState=t},SET_MAIN_DATA_VIEWER:function(e,t){var n=t.viewerIdx,o=t.visible;if(o)e.dataViewers.forEach(function(t){t.idx===n?(t.main=!0,e.mainDataViewerIdx=n):t.main=!1,t.visible=!t.type.hideable||t.idx===n||t.visible});else{var a=!1;e.dataViewers.forEach(function(t){a||t.type.hideable&&!t.visible?(t.main=!1,t.type.hideable&&t.idx===n&&(t.visible=!1)):(t.main=!0,e.mainDataViewerIdx=t.idx,a=!0)})}},RESET_MAIN_DATA_VIEWER:function(e){e.dataViewer=[],e.mainDataViewerIdx=0},SET_SAVE_DOCKED_STATUS:function(e,t){e.saveDockedStatus=t},SET_MAIN_CONTROL_DOCKED:function(e,t){e.mainControlDocked=t,e.saveDockedStatus&&S["a"].set(r["R"].COOKIE_DOCKED_STATUS,t,{expires:30,path:"/",secure:!0})},ADD_VIEWER_ELEMENT:function(e,t){var n=t.main,o=t.type,a=t.label,i=t.visible,r=t.callback;0===e.lastViewerId?n=!0:!0===n&&e.dataViewers.forEach(function(e){e.main=!1}),e.lastViewerId+=1,e.dataViewers.push({idx:e.lastViewerId,main:n,type:o,label:a,visible:i,observations:[]}),"function"===typeof r&&r(e.lastViewerId)},SET_SPINNER_ANIMATED:function(e,t){e.spinner.animated=t},SET_SPINNER_COLOR:function(e,t){e.spinner.color=t},SET_SPINNER:function(e,t){var n=t.animated,o=t.color,a=t.errorMessage,i=void 0===a?null:a;e.spinner={animated:n,color:o,errorMessage:i}},ADD_TO_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1===n&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1!==n&&e.spinnerOwners.splice(n,1)},SEARCH_ACTIVE:function(e,t){var n=t.active,o=t.char,a=void 0===o?"":o;e.searchActive!==n&&(e.searchLostChar=a,e.searchActive=n)},SEARCH_FOCUS:function(e,t){var n=t.focused,o=t.char,a=void 0===o?"":o;e.searchFocus!==n&&(e.searchLostChar=a,e.searchFocus=n)},SEARCH_INAPP:function(e,t){e.searchInApp=t},RESET_SEARCH_LOST_CHAR:function(e){e.searchLostChar=""},RESET_SEARCH:function(e){e.searchActive=!1,e.searchFocus=!1,e.searchLostChar=""},STORE_SEARCH:function(e,t){e.searchHistory.unshift(t)},SET_FLOWCHART_SELECTED:function(e,t){e.flowchartSelected=t},SET_DATAFLOW_INFO_OPEN:function(e,t){e.dataflowInfoOpen=t},SET_OBSERVATION_INFO:function(e,t){null===t?(e.treeSelected=null,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.observationInfo=null):null!==e.observationInfo&&t.id===e.observationInfo.id||(e.observationInfo=t,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.treeSelected=t.id)},SET_MAP_SELECTION:function(e,t){var n=t.pixelSelected,o=t.layerSelected,a=t.value,i=void 0===a?null:a,c=t.locked,s=void 0!==c&&c;e.mapSelection=null===t||null===n?r["g"].EMPTY_MAP_SELECTION:{pixelSelected:n,layerSelected:o,value:i,locked:s}},SET_SCALE_EDITING:function(e,t){var n=t.active,o=t.type;e.scaleEditing={active:n,type:o}},SET_DRAW_MODE:function(e,t){e.drawMode=t},SET_CUSTOM_CONTEXT:function(e,t){e.customContext=t},SET_SAVE_LOCATION:function(e,t){e.saveLocation=t},SET_TOP_LAYER:function(e,t){e.topLayer=t},SET_MODAL_MODE:function(e,t){e.modalMode=t},SET_INPUT_REQUEST:function(e,t){var n=t.payload,o=t.id;e.inputRequests.push(p()({messageId:o},n))},REMOVE_INPUT_REQUEST:function(e,t){if(e.inputRequests.length>0)if(null===t)e.inputRequests.splice(0,e.inputRequests.length);else{var n=e.inputRequests.findIndex(function(e){return e.messageId===t});-1!==n&&e.inputRequests.splice(n,1)}},SET_MODAL_SIZE:function(e,t){var n=t.width,o=t.height;e.modalSize={width:n,height:o}},SET_FUZZY_MODE:function(e,t){e.fuzzyMode=t},SET_LARGE_MODE:function(e,t){t<0?t=0:t>6&&(t=r["g"].MAX_SEARCHBAR_INCREMENTS),e.largeMode=t},SET_TIME_RUNNING:function(e,t){e.timeRunning=t},SET_LAYOUT:function(e,t){e.layout=t},SET_MODAL_WINDOW:function(e,t){e.modalWindow=t},SET_WINDOW_SIDE:function(e,t){e.windowSide=t},CREATE_VIEW_COMPONENT:function(e,t){if(t.type!==r["a"].ALERT&&t.type!==r["a"].CONFIRM){var n=e.layout&&(Object(d["d"])(e.layout,t.id)||e.modalWindow&&Object(d["d"])(e.modalWindow,t.id));if(n)console.log("Updating component: ",JSON.stringify(n,null,2)),Object.assign(n,t),console.log("Updated component: ",JSON.stringify(n,null,2));else{var o=Object(d["c"])(e.layout,t.parentId)||e.modalWindow&&Object(d["c"])(e.modalWindow,t.id);o&&(o.children.push(t),console.warn("Update parent: ",o))}}else e.dialogs.push(p()({},t,{dismiss:!1}))},SET_ENGINE_EVENT:function(e,t){if(null!==e.engineEvents)switch(t.type){case r["o"].RESOURCE_VALIDATION:var n=e.engineEvents.findIndex(function(e){return e.id===t.id});t.started?-1===n?e.engineEvents.push({id:t.id,timestamp:t.timestamp}):console.debug("Try to start an existing engine event",t):-1!==n?e.engineEvents.splice(n,1):console.debug("Try to stop an unregistered engine event",t),console.debug("Engine event with id ".concat(t.id," ").concat(t.started?"start":"stop"," / total engine events: ").concat(e.engineEvents.length));break;default:break}else console.debug("Receive an engine event before subscription")},VIEW_ACTION:function(e,t){if(null!==t.component){if(e.layout||e.modalWindow){var n=Object(d["d"])(e.layout,t.component.id)||null!==e.modalWindow&&Object(d["d"])(e.modalWindow,t.component.id);n&&(0===t.component.components.length&&0!==n.components.length&&delete t.component.components,Object.assign(n,t.component))}}else console.warn("Action component is null")},SHOW_SETTINGS:function(e,t){e.showSettings=t},SET_NOTIFICATIONS_PARAMS:function(e,t){e.notificationsParams=t},SET_DOCUMENTATION_VIEW:function(e,t){e.documentationView=t},SET_DOCUMENTATION_SELECTED:function(e,t){e.documentationSelected=t},SET_RELOAD_VIEWS:function(e,t){t&&t.forEach(function(t){-1===e.reloadViews.indexOf(t)&&e.reloadViews.push(t)})},REMOVE_RELOAD_VIEW:function(e,t){-1!==e.reloadViews.indexOf(t)&&e.reloadViews.splice(e.reloadViews.indexOf(t),1)},SET_TABLE_FONT_SIZE:function(e,t){e.tableFontSize=t},SET_TEXT_FONT_SIZE:function(e,t){e.textFontSize=t},SET_VIEW_COORDINATES:function(e,t){e.viewCoordinates=t}},O=n("7037"),b=n.n(O),A=(n("551c"),n("c1df")),_=n.n(A),I=n("4328"),v=n.n(I),N=n("8449"),h=n("256f"),R={addToKexplorerLog:function(e,t){var n=e.commit,o=t.type,a=t.payload,i=t.important,r=void 0!==i&&i;n("ADD_TO_KEXPLORER_LOG",{type:o,payload:a,important:r,time:_()()})},addToKlabLog:function(e,t){var n=e.commit,o=t.type,a=t.id,i=t.payload,r=t.timestamp;n("ADD_TO_KLAB_LOG",{type:o,id:a,payload:i,time:_()(r)})},setLevels:function(e,t){var n=e.commit;n("SET_LEVELS",t)},toggleLevel:function(e,t){var n=e.commit;n("TOGGLE_LEVEL",t)},addToStatusTexts:function(e,t){var n=e.commit,o=t.id,a=t.text;n("ADD_TO_STATUS_TEXTS",{id:o,text:a})},removeFromStatusTexts:function(e,t){var n=e.commit;n("REMOVE_FROM_STATUS_TEXTS",t)},setContextLayer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;Object(d["j"])(t).then(function(e){o("SET_CONTEXT_LAYER",e),o("RESET_SEARCH"),a("assignViewer",{observation:t,main:!0}),n.mainViewer.name===r["O"].DATA_VIEWER.name&&n.mainControlDocked&&a("setMainViewer",r["O"].DOCKED_DATA_VIEWER)})},resetContext:function(e){var t=e.commit;t("SET_CONTEXT_LAYER",null),t("RESET_SEARCH"),t("SET_OBSERVATION_INFO",null);var n=r["O"].DATA_VIEWER;t("SET_LEFTMENU_CONTENT",n.leftMenuContent),t("SET_LEFTMENU_STATE",n.leftMenuState),t("SET_MAIN_VIEWER",n),t("RESET_MAIN_DATA_VIEWER",null),t("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION),t("SET_FLOWCHART_SELECTED",r["g"].GRAPH_DATAFLOW)},setMainViewer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;t&&"undefined"!==typeof n.mainViewer&&(t.leftMenuContent===r["w"].DOCKED_DATA_VIEWER_COMPONENT?o("SET_MAIN_CONTROL_DOCKED",!0):t.leftMenuContent===r["w"].DATA_VIEWER_COMPONENT&&o("SET_MAIN_CONTROL_DOCKED",!1)),o("SET_MAIN_VIEWER",t),t&&(a("setLeftMenuState",t.leftMenuState),a("setLeftMenuContent",t.leftMenuContent))},setTreeVisible:function(e,t){var n=e.commit;n("SET_TREE_VISIBLE",t)},setLeftMenuContent:function(e,t){var n=e.commit;n("SET_LEFTMENU_CONTENT",t)},setLeftMenuState:function(e,t){var n=e.commit;n("SET_LEFTMENU_STATE",t)},setMainDataViewer:function(e,t){var n=e.commit,o=e.getters,a=t.viewerIdx,i=t.viewerType,r=void 0===i?null:i,c=t.visible,s=void 0===c||c;(s&&a!==o.mainDataViewerIdx||!s&&null!==r&&r.hideable)&&n("SET_MAIN_DATA_VIEWER",{viewerIdx:a,visible:s})},assignViewer:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=e.rootGetters,c=t.observation,s=t.main,l=void 0!==s&&s;return new Promise(function(e,t){var s,u=null,E=null;if(c.observationType)switch(c.observationType){case r["A"].TYPE_GROUP:case r["A"].TYPE_VIEW:case r["A"].TYPE_PROCESS:u=null;break;case r["A"].TYPE_STATE:var f;if(1===c.valueCount)u=null;else if(u=r["P"].VIEW_MAP,f=c.parentId===i["data/contextId"]?i["data/context"]:i["data/observations"].find(function(e){return e.id===c.parentId}),"undefined"!==typeof f){c.encodedShape=f.encodedShape;var T=f;E=T.label}else console.warn("Need parent of ".concat(c.id," but doesn't find it. Parent id is ").concat(c.parentId));break;case r["A"].TYPE_INITIAL:case r["A"].TYPE_RELATIONSHIP:u=r["P"].VIEW_MAP;var p=null;if(null!==c.parentId&&(p=Object(d["f"])(i["data/tree"],c.parentId),"undefined"===typeof p&&(console.warn("Observation with id ".concat(c.id," has an invalid unknown parent: ").concat(c.parentId)),p=null)),p){var S=p;E=S.label}else E=c.label;break;case r["A"].TYPE_SUBJECT:u=r["P"].VIEW_MAP;break;case r["A"].TYPE_CONFIGURATION:u=r["P"].VIEW_GRAPH,E=c.label;break;case r["A"].TYPE_EVENT:u=r["P"].VIEW_UNKNOWN;break;default:t(new Error("Unknown observation type in observation labeled ".concat(c.label,": ").concat(c.observationType)));break}null!==u?(console.debug("Need a viewer of type ".concat(u.component)),u.forceNew||(s=o.dataViewers.find(function(e){return e.type.component===u.component})),"undefined"===typeof s?(console.info("Create new viewer of type ".concat(u.component)),n("ADD_VIEWER_ELEMENT",{main:l,type:u,label:E&&null!==E?E:u.label,visible:!u.hideable,callback:function(t){e(t)}})):(l&&a("setMainDataViewer",{viewerIdx:s.idx}),e(s.idx))):e(null)})},setSpinner:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=t.animated,c=t.color,s=t.time,l=void 0===s?null:s,u=t.then,d=void 0===u?null:u,E=t.errorMessage,f=void 0===E?null:E,T=t.owner;return new Promise(function(e){if(!T||null===T)throw new Error("No spinner owner!");i?n("ADD_TO_SPINNER_OWNERS",T):(n("REMOVE_FROM_SPINNER_OWNERS",T),0!==o.spinnerOwners.length&&(i=!0,c!==r["J"].SPINNER_ERROR.color&&(c=r["J"].SPINNER_LOADING.color))),null!==f&&"object"===b()(f)&&(f=JSON.stringify(f)),n("SET_SPINNER",{animated:i,color:c,errorMessage:f}),null!==l&&null!==d&&setTimeout(function(){a("setSpinner",p()({},d,{owner:T}))},1e3*l),e()})},searchStart:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SEARCH_ACTIVE",{active:!0,char:n})},searchStop:function(e){var t=e.commit;t("SEARCH_ACTIVE",{active:!1})},searchFocus:function(e,t){var n=e.commit,o=t.focused,a=t.char,i=void 0===a?null:a;n("SEARCH_FOCUS",{focused:o,char:i})},resetSearchLostChar:function(e){var t=e.commit;t("RESET_SEARCH_LOST_CHAR")},storePreviousSearch:function(e,t){var n=e.commit;n("STORE_SEARCH",t)},searchInApp:function(e,t){var n=e.commit;n("SEARCH_INAPP",t)},setFlowchartSelected:function(e,t){var n=e.commit;n("SET_FLOWCHART_SELECTED",t)},setDataflowInfoOpen:function(e,t){var n=e.commit;n("SET_DATAFLOW_INFO_OPEN",t)},setObservationInfo:function(e,t){var n=e.commit;n("SET_OBSERVATION_INFO",t)},setMapSelection:function(e,t){var n=e.commit,o=e.state,a=t.pixelSelected,i=t.timestamp,s=void 0===i?-1:i,l=t.layerSelected,u=void 0===l?null:l,E=t.observationId,f=void 0===E?null:E,T=t.locked,p=void 0!==T&&T;if(null!==a){null===f&&(f=o.observationInfo.id);var S="".concat("").concat(c["c"].REST_SESSION_VIEW,"data/").concat(f),m=Object(h["l"])(a,"EPSG:3857","EPSG:4326"),O=-1!==s?"T1(1){time=".concat(s.toFixed(0),"}"):"";Object(d["h"])("pv_".concat(f),S,{params:{format:"SCALAR",locator:"".concat(O,"S0(1){latlon=[").concat(m[0]," ").concat(m[1],"]}")},paramsSerializer:function(e){return v.a.stringify(e,{arrayFormat:"repeat"})}},function(e,t){var o="No value";e&&"undefined"!==typeof e.data&&(o=e.data),n("SET_MAP_SELECTION",{pixelSelected:a,layerSelected:u,value:o,locked:p}),t()})}else n("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION)},setScaleEditing:function(e,t){var n=e.commit,o=t.active,a=t.type;n("SET_SCALE_EDITING",{active:o,type:a}),n("SET_MODAL_MODE",o)},setDrawMode:function(e,t){var n=e.commit;n("SET_DRAW_MODE",t),n("SET_MODAL_MODE",t)},setCustomContext:function(e,t){var n=e.commit;n("SET_CUSTOM_CONTEXT",t)},setTopLayer:function(e,t){var n=e.commit;n("SET_TOP_LAYER",t)},inputRequest:function(e,t){var n=e.commit;n("SET_INPUT_REQUEST",t),n("SET_MODAL_MODE",!0)},removeInputRequest:function(e,t){var n=e.commit,o=e.getters;n("REMOVE_INPUT_REQUEST",t),o.hasInputRequests||n("SET_MODAL_MODE",!1)},setModalMode:function(e,t){var n=e.commit;n("SET_MODAL_MODE",t)},setModalSize:function(e,t){var n=e.commit,o=t.width,a=t.height;n("SET_MODAL_SIZE",{width:o,height:a})},setFuzzyMode:function(e,t){var n=e.rootGetters,o=e.commit;n["data/hasContext"]||o("SET_FUZZY_MODE",t)},setLargeMode:function(e,t){var n=e.commit;n("SET_LARGE_MODE",t)},setTimeRunning:function(e,t){var n=e.commit;n("SET_TIME_RUNNING",t)},setLayout:function(e,t){var n=e.commit;if(null===t||"DESKTOP"!==t.platform&&"MOBILE"!==t.platform)if(n("SET_LAYOUT",null===t?null:p()({},t)),null!==t)localStorage.setItem(r["R"].LOCAL_STORAGE_APP_ID,t.name);else{var o=localStorage.getItem(r["R"].LOCAL_STORAGE_APP_ID);o&&localStorage.removeItem(r["R"].LOCAL_STORAGE_APP_ID)}else console.info("Received an app for another platform: ".concat(t.platform))},setModalWindow:function(e,t){var n=e.commit;n("SET_MODAL_WINDOW",t)},setWindowSide:function(e,t){var n=e.commit;n("SET_WINDOW_SIDE",t)},setEngineEvent:function(e,t){var n=e.commit;n("SET_ENGINE_EVENT",t)},createViewComponent:function(e,t){var n=e.commit;n("CREATE_VIEW_COMPONENT",t)},viewAction:function(e,t){var n=e.commit;n("VIEW_ACTION",t)},viewSetting:function(e,t){var n=e.getters,o=e.rootGetters,a=e.dispatch;if(t){var i=function(){N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.targetId,selected:t.operation===r["Q"].SHOW})};switch(t.target){case r["Q"].OBSERVATION:n.mainViewerName!==r["O"].DATA_VIEWER.name&&t.operation===r["Q"].SHOW?a("setMainViewer",r["O"].DATA_VIEWER).then(function(){i(),N["b"].$emit(r["h"].MAP_SIZE_CHANGED,{type:"changelayout"})}):i();break;case r["Q"].VIEW:i();break;case r["Q"].TREE:n.mainViewerName===r["O"].DATA_VIEWER.name&&o["data/hasContext"]&&a("setTreeVisible",t.operation===r["Q"].SHOW);break;case r["Q"].REPORT:n.mainViewerName===r["O"].REPORT_VIEWER.name&&t.operation===r["Q"].HIDE?a("setMainViewer",n.isMainControlDocked?r["O"].DOCKED_DATA_VIEWER:r["O"].DATA_VIEWER):n.mainViewerName!==r["O"].REPORT_VIEWER.name&&o["data/hasObservations"]&&t.operation===r["Q"].SHOW&&a("setMainViewer",r["O"].REPORT_VIEWER);break;case r["Q"].DATAFLOW:n.mainViewerName===r["O"].DATAFLOW_VIEWER.name&&t.operation===r["Q"].HIDE?a("setMainViewer",n.isMainControlDocked?r["O"].DOCKED_DATA_VIEWER:r["O"].DATA_VIEWER):n.mainViewerName!==r["O"].DATAFLOW_VIEWER.name&&o["data/hasContext"]&&t.operation===r["Q"].SHOW&&a("setMainViewer",r["O"].DATAFLOW_VIEWER);break;case r["Q"].URL:N["b"].$emit(r["h"].DOWNLOAD_URL,{url:t.targetId,parameters:t.parameters});break;default:break}}},setShowSettings:function(e,t){var n=e.commit;n("SHOW_SETTINGS",t)},setNotificationsParams:function(e,t){var n=e.commit;n("SET_NOTIFICATIONS_PARAMS",t)},setDocumentationView:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_VIEW",t)},setDocumentationSelected:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_SELECTED",t)},setDocumentation:function(e,t){var n=e.commit,o=e.rootGetters;if(!t.view){var a=o["data/documentationContent"].get(t.id);if(!a)return void console.debug("Try to show an unknown document: ".concat(t.id));t.view=r["m"][a.type]}n("SET_DOCUMENTATION_VIEW",t.view),n("SET_DOCUMENTATION_SELECTED",t.id),N["b"].$emit(r["h"].SHOW_DOCUMENTATION),N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.id,selected:!0})},changeInDocumentation:function(e,t){var n=e.commit;if(t.viewsAffected){var o=t.viewsAffected.filter(function(e){return e!==r["n"].REFERENCES&&e!==r["n"].MODELS});if(o.length>1&&o.includes(r["n"].TABLES)){var a=o.indexOf(r["n"].REPORT);-1!==a&&o.splice(a,1)}o.length>0&&n("SET_RELOAD_VIEWS",o)}},removeReloadView:function(e,t){var n=e.commit;n("REMOVE_RELOAD_VIEW",t)},setTableFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setTextFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setViewCoordinates:function(e,t){var n=e.commit;n("SET_VIEW_COORDINATES",t)}},C={namespaced:!0,state:s,getters:f,mutations:m,actions:R},g=(n("456d"),n("970b")),L=n.n(g),w=n("5bc30"),P=n.n(w),y=function(){function e(){L()(this,e),this.items=[]}return P()(e,[{key:"push",value:function(e){this.items.push(e)}},{key:"pop",value:function(e){if("undefined"!==typeof e&&e>0){if(e>this.size()-1)throw Error("Stack overflow");return this.items.splice(e+1),this.items.peek()}return this.items.pop()}},{key:"peek",value:function(){return 0===this.items.length?null:this.items[this.items.length-1]}},{key:"previous",value:function(){return this.items.length<=1?null:this.items[this.items.length-2]}},{key:"size",value:function(){return this.items.length}},{key:"findIndex",value:function(e){return this.items.findIndex(e)}},{key:"findItem",value:function(e){return this.items.find(function(t){return t.id===e})}},{key:"map",value:function(e){return this.items.map(e)}},{key:"empty",value:function(){this.items.splice(0)}},{key:"isEmpty",value:function(){return 0===this.items.length}},{key:"toArray",value:function(){return this.items}}]),e}(),D={sessionReference:null,tree:[],userTree:[],lasts:[],contexts:new y,contextCustomLabel:null,scaleReference:null,schedulingResolution:null,proposedContext:null,scaleLocked:{space:!1,time:!1},nextScale:null,observations:[],contextMenuObservationId:null,knowledgeViews:[],timeEvents:[],modificationsTask:null,timestamp:-1,engineTimestamp:-1,flowcharts:r["t"],dataflowStatuses:[],dataflowInfo:null,session:null,contextsHistory:[],waitingForReset:null,orphans:[],searchResult:null,childrenToAskFor:r["g"].CHILDREN_TO_ASK_FOR,interactiveMode:!1,crossingIDL:!1,capabilities:{},local:!1,token:null,packageVersion:"0.22.0",packageBuild:"0",terminalsCounter:0,terminals:[],terminalCommands:null!==localStorage.getItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS)?JSON.parse(localStorage.getItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS)):[],documentationTrees:Object.keys(r["n"]).map(function(e){return{view:e,tree:[]}}),documentationContent:new Map},M=(n("55dd"),{sessionReference:function(e){return e.sessionReference},isDeveloper:function(e){return e.sessionReference&&e.sessionReference.owner&&e.sessionReference.owner.groups&&-1!==e.sessionReference.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})},tree:function(e){return e.tree},treeNode:function(e){return function(t){return Object(d["f"])(e.tree,t)}},lasts:function(e){return e.lasts},hasTree:function(e){return e.tree.length>0},mainTreeHasNodes:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return null!==Object(d["e"])(e.tree,"",function(e){return e.userNode||t&&!e.ticked?null:e})}},userTree:function(e){return e.userTree},observations:function(e){return e.observations},observationsOfViewer:function(e){return function(t){return e.observations.filter(function(e){return e.viewerIdx===t})}},hasObservations:function(e){return 0!==e.observations.length},visibleObservations:function(e){return e.observations.filter(function(e){return e.visible})},observationsIdOnTop:function(e){return e.observations.filter(function(e){return e.top}).map(function(e){return e.id})},contextMenuObservationId:function(e){return e.contextMenuObservationId},knowledgeViews:function(e){return e.knowledgeViews},visibleKnowledgeView:function(e){return e.knowledgeViews.find(function(e){return e.show})},timeEvents:function(e){return e.timeEvents},timeEventsOfObservation:function(e){return function(t){return e.timeEvents.filter(function(e){return e.id===t})}},timeEventsUntil:function(e){return function(t){return e.timeEventsEvents.filter(function(e){return e.timestamp<=t})}},modificationsTask:function(e){return e.modificationsTask},visibleEvents:function(e){var t=e.observations.filter(function(e){return e.visible}).map(function(e){return e.id});return e.timeEvents.filter(function(e){return t.includes(e.id)})},timestamp:function(e){return e.timestamp},engineTimestamp:function(e){return e.engineTimestamp},flowcharts:function(e){return e.flowcharts},flowchart:function(e){return function(t){return e.flowcharts.find(function(e){return e.type===t})}},flowchartsUpdatable:function(e){return e.flowcharts.find(function(e){return e.updatable})},flowchartUpdatable:function(e){return function(t){var n=e.flowcharts.find(function(e){return e.type===t});return!!n&&n.updatable}},dataflowStatuses:function(e){return e.dataflowStatuses},dataflowInfo:function(e){return e.dataflowInfo},contextsId:function(e){return e.contexts.map(function(e){return e.id})},context:function(e){return e.contexts.peek()},contextsCount:function(e){return e.contexts.size()},previousContext:function(e){return e.contexts.previous()},contextById:function(e){return function(t){return e.contexts.findItem(t)}},proposedContext:function(e){return e.proposedContext},hasContext:function(e,t){return null!==t.context},contextLabel:function(e,t){return null!==t.context?t.context.label:null},contextCustomLabel:function(e){return null!==e.contextCustomLabel?e.contextCustomLabel:null},contextsLabels:function(e,t){return null!==t.context?e.contexts.map(function(e){return{label:e.label,contextId:e.id}}):[]},contextId:function(e,t){return null!==t.context?t.context.id:null},contextEncodedShape:function(e,t){return null!==t.context?"".concat(t.context.spatialProjection," ").concat(t.context.encodedShape):""},contextsHistory:function(e){return e.contextsHistory.length>0&&e.contextsHistory.sort(function(e,t){return e.creationTime===t.creationTime?0:e.creationTime>t.creationTime?-1:1}),e.contextsHistory},contextReloaded:function(e,t){return null!==t.context&&"undefined"!==typeof t.context.restored&&t.context.restored},contextHasTime:function(e,t){return null!==t.context&&t.context.scaleReference&&0!==t.context.scaleReference.end},session:function(e){return e.session},scaleReference:function(e,t){return null!==t.context?t.context.scaleReference:e.scaleReference},schedulingResolution:function(e){return e.schedulingResolution},isScaleLocked:function(e){return e.scaleLocked},nextScale:function(e){return e.nextScale},hasNextScale:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!==e.nextScale&&(null===t||t===r["D"].ST_SPACE&&e.nextScale.spaceChanged||t===r["D"].ST_SPACE&&e.nextScale.spaceChanged)}},capabilities:function(e){return e.capabilities},searchResult:function(e){return e.searchResult},interactiveMode:function(e){return e.interactiveMode},isCrossingIDL:function(e){return e.crossingIDL},isLocal:function(e){return e.local},terminals:function(e){return e.terminals},hasActiveTerminal:function(e){return-1!==e.terminals.findIndex(function(e){return e.active})},terminalCommands:function(e){return e.terminalCommands},documentationTrees:function(e){return e.documentationTrees},documentationContent:function(e){return e.documentationContent}}),x=n("9523"),k=n.n(x),U=n("1442"),V={SET_SESSION_REFERENCE:function(e,t){e.sessionReference=t},SET_CONTEXT:function(e,t){var n=t.context,o=void 0===n?null:n,a=t.isRecontext,i=void 0!==a&&a;if(null===o)e.contexts.empty();else{var c=e.contexts.findIndex(function(e){return e.id===o.id});if(-1===c){if(i){var s=e.contexts.peek();o.scaleReference=s.scaleReference}e.contexts.push(o)}else e.contexts.pop(c)}e.tree=[],e.userTree=[],e.lasts=[],e.observations=[],e.knowledgeViews=[],e.flowcharts.forEach(function(e){e.flowchart=null,e.graph=null,e.updatable=!1,e.visible=!1}),e.dataflowStatuses=[],e.dataflowInfo=null,e.nodeSelected=null,e.nextScale=null,e.crossingIDL=!1,e.contextCustomLabel=null,e.timeEvents=[],e.timestamp=-1,e.engineTimestamp=-1,e.proposedContext=null,e.documentationTrees.forEach(function(e){e.tree.splice(0,e.tree.length)}),e.documentationContent.clear(),e.documentationView=r["n"].REPORT,null===o?e.contextsHistory=[]:"undefined"===typeof o.restored&&(o.restored=!1),e.schedulingResolution=null},SET_CONTEXT_CUSTOM_LABEL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.contextCustomLabel=t},WAITING_FOR_RESET:function(e,t){e.waitingForReset=t},STORE_CONTEXT:function(e,t){var n=e.contextsHistory.find(function(e){return e.id===t.id});"undefined"===typeof n?(console.debug("Added new context in store with id ".concat(t.id)),e.contextsHistory.push(t)):console.debug("Context with id ".concat(t.id," yet exists in contextHistory"))},SET_RELOAD_FLOWCHART:function(e,t){e.flowcharts.filter(function(e){return null===t||e.target===t}).forEach(function(e){e.updatable=!0,e.visible=!1})},ADD_FLOWCHART:function(e,t){var n=t.flowchart,o=t.target,a=e.flowcharts.find(function(e){return e.type===o});a?(a.flowchart=n,a.updatable=!1):console.warn("Unknown target to add flowchart: ".concat(o))},SET_DATAFLOW_STATUS:function(e,t){var n=t.id,o=t.status,a=e.dataflowStatuses.find(function(e){return e.id===n});"undefined"!==typeof a?a.status=o:e.dataflowStatuses.push({id:n,status:o})},SET_DATAFLOW_INFO:function(e,t){e.dataflowInfo=t},UPDATE_TIME_EVENTS:function(e,t){t.timeEvents&&t.timeEvents.length>0&&(t.timeEvents.forEach(function(n){e.timeEvents.push({id:t.id,timestamp:n})}),console.debug("Added ".concat(t.timeEvents.length," events")))},ADD_OBSERVATION:function(e,t){var n=t.observation;e.observations.push(n),console.info("Added observation: ".concat(n.label)),console.debug("Observation content: ".concat(JSON.stringify(n,null,2)))},UPDATE_OBSERVATION:function(e,t){var n=t.observationIndex,o=t.newObservation,a=e.observations[n],i=p()({},a,o);e.observations.splice(n,1,i);var r=function(e){e?(e.needUpdate=!i.contextualized,e.dynamic=i.dynamic,e.childrenCount=i.childrenCount,e.children.forEach(function(e){e.siblingsCount=i.childrenCount}),e.tickable=null!==i.viewerIdx&&!i.empty||i.isContainer||i.childrenCount>0,e.exportFormats=i.exportFormats):console.warn("Node of ".concat(i.id," - ").concat(i.label," not found"))},c=Object(d["f"])(e.tree,i.id);r(c),c&&c.userNode&&r(Object(d["f"])(e.userTree,i.id))},SET_CONTEXTMENU_OBSERVATIONID:function(e,t){e.contextMenuObservationId=t},MOD_BRING_FORWARD:function(e,t){var n=e.observations.find(function(e){return e.id===t.id});n||console.warn("Receive a bring forward for an unknown observation: ".concat(t.id," - ").concat(t.label)),n.main=!0,t.main=!0},MOD_STRUCTURE_CHANGE:function(e,t){var n=t.node,o=t.modificationEvent,a=e.observations.find(function(e){return e.id===o.id});a.childrenCount=o.newSize,a.empty=!1,o.exportFormats&&(a.exportFormats=o.exportFormats);var i=function(e){e&&(e.childrenCount=o.newSize,o.exportFormats&&(e.exportFormats=o.exportFormats),e.children.forEach(function(e){e.siblingsCount=o.newSize}),e.tickable=!0,e.disabled=!1,e.empty=!1,e.needUpdate=!0)};i(n),n.userNode&&i(Object(d["f"])(e.userTree,n.id))},MOD_VALUE_CHANGE:function(e,t){if(t.dynamic=!0,t.needUpdate=!1,t.userNode){var n=Object(d["f"])(e.userTree,t.id);n?(n.dynamic=!0,n.needUpdate=!1):console.warn("Node theoretically in user tree but not found: ".concat(t.id," - ").concat(t.label))}},ADD_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.push(p()({},t,{show:!1}))},SHOW_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.forEach(function(e){e.viewId===t&&(e.show=!0)})},ADD_TIME_EVENT:function(e,t){var n=-1!==e.timeEvents.findIndex(function(e){return e.id===t.id&&e.timestamp===t.timestamp&&e.newAttributes===t.newAttributes&&e.newScale===t.newScale&&e.newName===t.newName&&e.newSemantics===t.newSemantics&&e.newSize===t.newSize});n?console.warn("Duplicated time event:\n ".concat(JSON.stringify(t,null,2))):e.timeEvents.push(t)},SET_MODIFICATIONS_TASK:function(e,t){e.modificationsTask=t},SET_TIMESTAMP:function(e,t){e.timestamp=t},SET_ENGINE_TIMESTAMP:function(e,t){e.engineTimestamp=t},SET_SCHEDULING_STATUS:function(e,t){if(null!==e.scaleReference)switch(t.type){case"TIME_ADVANCED":e.engineTimestamp=t.currentTime;break;case"STARTED":e.engineTimestamp=t.currentTime,e.schedulingResolution=t.resolution,N["b"].$emit(r["h"].NEW_SCHEDULING);break;case"FINISHED":e.engineTimestamp=e.scaleReference.end;break;default:console.warn("Unknown scheduling type: ".concat(t.type));break}else console.warn("Try to change scheduling type but no scaleReference")},ADD_NODE:function(e,t){var n=t.node,o=t.parentId,a=t.toUserTreeOnly,i=void 0!==a&&a,r=e.contexts.peek();if(null===r)return console.info("Context is null, it's just set or is a new observation of previous search for this session, so added to orphans. ID: ".concat(n.id)),void e.orphans.push(n);var c=r.id===r.rootContextId;if((c&&n.rootContextId!==r.id||!c&&n.contextId!==r.id)&&console.info("Subcontext or trying to add to tree an observation of other context. Actual: ".concat(r.id," / Node: ").concat(n.rootContextId)),r.id!==n.id)if(r.id===o){if(i||e.tree.push(n),n.userNode){var s=JSON.parse(JSON.stringify(n));e.userTree.push(s)}}else{var l=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=Object(d["f"])(t,o);null!==i?(i.children.length===i.childrenCount&&(i.childrenCount++,i.children.forEach(function(e){e.siblingsCount=i.childrenCount})),i.children.push(p()({},a,{idx:i.children.length,siblingsCount:i.childrenCount})),i.disabled=!1):(console.warn("Orphan founded with id ".concat(n.id)),e.orphans.push(n))};i||l(e.tree),n.userNode&&l(e.userTree,JSON.parse(JSON.stringify(n)))}else console.error("Try to add context to tree, check it!")},REMOVE_NODE:function(e,t){var n=t.id,o=t.fromMainTree,a=void 0!==o&&o,i=a?e.tree:e.userTree,r=function e(t,n){var o=t.findIndex(function(e){return e.id===n});-1===o?t.forEach(function(t){t.children&&0!==t.children.length&&e(t.children,n)}):(t.splice(o,1),console.debug("Find and delete node ".concat(n," from ").concat(a?"main tree":"user tree")))};r(i,n)},UPDATE_USER_NODE:function(e,t){var n=t.node,o=t.userNode,a=function e(t){t.userNode=o,t.children&&t.children.length>0&&t.children.forEach(function(t){return e(t)})};a(n)},SET_FOLDER_VISIBLE:function(e,t){var n=t.nodeId,o=t.visible,a=t.zIndexOffset;if(null!==a){e.observations.forEach(function(e){e.parentArtifactId===n||e.parentId===n?(e.visible=o,e.top=o):o&&e.zIndexOffset===a&&(e.top=!1)});var i=e.observations.find(function(e){return e.id===n});"undefined"!==typeof i&&(i.visible=o)}else console.info("Folder with id ".concat(n," has no loaded elements"));var r=function(e){var t=Object(d["f"])(e,n);"undefined"!==typeof t&&null!==t&&t.children.length>0&&(t.children.forEach(function(e){e.parentArtifactId===t.id&&(e.ticked=o)}),t.ticked=o)};r(e.tree),r(e.userTree)},SET_VISIBLE:function(e,t){var n=t.id,o=t.visible,a=e.observations.findIndex(function(e){return e.id===n}),i=e.observations[a];if("undefined"!==typeof i){var r=i.zIndexOffset;i.visible=o,i.top=o,o&&e.observations.forEach(function(e){e.id!==n&&e.zIndexOffset===r&&(e.top=!1)});var c=function(e){var t=Object(d["f"])(e,n);t&&(t.ticked=o)};c(e.tree),c(e.userTree),e.observations.splice(a,1,i)}else console.warn("Try to change visibility to no existing observations with id ".concat(n))},SET_LOADING_LAYERS:function(e,t){var n=t.loading,o=t.observation;if(o){o.loading=n;var a=Object(d["f"])(e.tree,o.id);if(a&&(a.loading=n,a.userNode)){var i=Object(d["f"])(e.userTree,o.id);i.loading=n}}},STORE_RAW_SEARCH_RESULT:function(e,t){e.searchResult=t},ADD_LAST:function(e,t){var n=t.parentId,o=t.observationId,a=t.offsetToAdd,i=t.total,r=e.lasts.findIndex(function(e){return n===e.parentId});if(-1!==r){var c=e.lasts[r];c.offset+a>=c.total?(e.lasts.splice(r,1),console.info("Folder ".concat(n," fully loaded"))):(c.observationId=o,c.offset+=a,console.info("Loaded more elements in folder ".concat(n,". New offset is ").concat(c.offset," ")))}else{if(a+1===i)return void console.info("Nothing to do in folder ".concat(n,". Offset is ").concat(a," and total is ").concat(i," "));e.lasts.push({parentId:n,observationId:o,offset:a,total:i}),console.debug("Added folder ".concat(n,". Offset is ").concat(a," "))}},SET_SCALE_REFERENCE:function(e,t){null===t.timeUnit&&(t.timeUnit=r["F"].YEAR),e.scaleReference=t,e.context||(null!==e.scaleReference.shape?e.proposedContext=d["a"].readGeometry(e.scaleReference.shape,{dataProjection:U["d"].PROJ_EPSG_4326,featureProjection:U["d"].PROJ_EPSG_3857}):e.proposedContext=null),console.info("Scale reference set: ".concat(JSON.stringify(t,null,2)))},UPDATE_SCALE_REFERENCE:function(e,t){var n,o=t.type,a=t.unit,i=t.timeResolutionMultiplier,c=t.start,s=t.end,l=t.next,u=void 0!==l&&l,d=t.spaceResolution;o===r["D"].ST_SPACE&&0!==d&&Math.round(d)!==d&&(d=d.toFixed(1));var E=p()({},e.scaleReference,(n={},k()(n,"".concat(o,"Unit"),a),k()(n,"".concat(o,"ResolutionDescription"),(d&&0!==d?"".concat(d," "):"")+a),n),o===r["D"].ST_SPACE&&{spaceResolution:d,spaceResolutionConverted:d},o===r["D"].ST_TIME&&{timeResolutionMultiplier:i,start:c,end:s});u?e.nextScale=p()({},E,{spaceChanged:o===r["D"].ST_SPACE,timeChanged:o===r["D"].ST_TIME}):e.scaleReference=E},SET_SCALE_LOCKED:function(e,t){var n=t.scaleType,o=t.scaleLocked;"all"===n?(e.scaleLocked.space=o,e.scaleLocked.time=o):Object.prototype.hasOwnProperty.call(e.scaleLocked,n)?(console.info("Set ".concat(o," to ").concat(n," scale type")),e.scaleLocked[n]=o):console.error("Try to set locked to unknow scale type: ".concat(n))},SET_INTERACTIVE_MODE:function(e,t){e.interactiveMode=t},SET_CROSSING_IDL:function(e,t){e.crossingIDL=t},ADD_TERMINAL:function(e,t){e.terminals.push(t)},REMOVE_TERMINAL:function(e,t){var n=e.terminals.findIndex(function(e){return e.id===t});-1!==n?e.terminals.splice(n,1):console.warn("Trying to remove unknown terminal ".concat(t))},ADD_TERMINAL_COMMAND:function(e,t){e.terminalCommands.push(t),localStorage.setItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},CLEAR_TERMINAL_COMMANDS:function(e){e.terminalCommands.splice(0,e.terminalCommands.length),localStorage.setItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},SET_DOCUMENTATION:function(e,t){var n=t.view,o=t.tree,a=e.documentationTrees.findIndex(function(e){return e.view===n});-1===a?console.warn("Unknown documentation view: ".concat(n)):e.documentationTrees[a].tree=o},ADD_DOCUMENTATION:function(e,t){t.forEach(function(t){e.documentationContent.set(t.id,t)})}},F=(n("28a5"),n("f559"),n("ffc1"),n("96cf"),n("c973")),Y=n.n(F),W=n("be3b"),G=n("17dc"),j=n("e7d8"),H=void 0,z={loadSessionReference:function(e){var t=e.commit;return new Promise(function(e,n){W["a"].get("".concat("").concat(c["c"].REST_SESSION_INFO),{maxRedirects:0}).then(function(n){var o=n.data;o&&(t("SET_SESSION_REFERENCE",o),e())}).catch(function(e){e.response&&403===e.response.status?n(new Error("Invalid session")):n(new Error("Error retrieving session: ".concat(e)))})})},setContext:function(e,t){var n=t.context,o=t.isRecontext,a=e.commit,i=e.getters,r=e.dispatch;null!==i.context&&i.context.id===n.id||(a("SET_CONTEXT",{context:n,isRecontext:o}),o&&r("view/resetContext",null,{root:!0}),r("view/setContextLayer",n,{root:!0}),console.debug("Send start watch context ".concat(n.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!0,observationId:n.id,rootContextId:n.rootContextId}))},resetContext:function(e){var t=e.commit,n=e.dispatch,o=e.state,a=e.getters,i=a.context;if(null!==i){var s={id:i.id,rootContextId:i.rootContextId};t("SET_CONTEXT",{}),n("getSessionContexts"),n("view/resetContext",null,{root:!0}),null!==o.waitingForReset?(n("loadContext",o.waitingForReset),o.waitingForReset=null):n("addObservation",{observation:r["C"],main:!0}),n("view/addToKlabLog",{type:c["a"].TYPE_INFO,payload:{message:"Context reset",separator:!0}},{root:!0}),console.debug("Send stop watch context ".concat(s.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!1,observationId:s.id,rootContextId:s.rootContextId})}else console.info("Try to reset null context, is initial reset?")},setWaitinForReset:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("WAITING_FOR_RESET",n)},loadContext:function(e,t){var n=e.commit,o=e.dispatch;console.info("Ask for context to restore ".concat(t)),W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(t),{params:{childLevel:1}}).then(function(){var e=Y()(regeneratorRuntime.mark(function e(a){var i,c,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=a.data,i.restored=!0,e.next=4,o("setContext",{context:p()({},i,{children:[]})});case 4:if(n("data/SET_RELOAD_FLOWCHART",{target:null},{root:!0}),console.debug("Context received with id ".concat(i.id)),!(i.children.length>0)){e.next=12;break}return c=[],s=i.children,s.forEach(function(e){null!==e.taskId&&(-1===c.indexOf(e.taskId)&&c.push(e.taskId),o("addObservation",{observation:e,restored:!0}))}),e.next=12,Promise.all(c);case 12:o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t}),{root:!0});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw o("view/setSpinner",p()({},r["J"].SPINNER_ERROR,{owner:t,errorMessage:e}),{root:!0}),e})},getSessionContexts:function(e){var t=e.getters,n=e.commit;return new Promise(function(e,o){if(null!==t.session){var a="".concat("").concat(c["c"].REST_STATUS);Object(d["h"])(t.session,a,{transformRequest:[function(e,t){return delete t.common[r["r"].KLAB_AUTHORIZATION],e}]},function(a,i){var r=a.data;if(console.debug("Contexts history:\n".concat(JSON.stringify(r,null,4))),r&&r.sessions&&r.sessions.length>0){var c=r.sessions.find(function(e){return e.id===t.session});if("undefined"!==typeof c){var s=c.rootObservations;if(null===s||0===Object.keys(s).length&&s.constructor===Object)console.debug("No root observation founded"),e(0);else{console.debug("Find ".concat(Object.keys(s).length," root observations for this session"));var l=0;Object.entries(s).forEach(function(e){n("STORE_CONTEXT",e[1]),l+=1}),e(l)}}else console.warn("No information for session ".concat(t.session,", isn't valid session?")),o(new Error("No information for session ".concat(t.session,", disconnect")))}i()})}else o(new Error("No session established, no useful engine available, disconnect"))})},setContextCustomLabel:function(e,t){var n=e.commit;n("SET_CONTEXT_CUSTOM_LABEL",t)},addObservation:function(e,t){var n=e.commit,o=e.rootGetters,a=e.state,i=e.dispatch,c=t.observation,s=t.toTree,l=void 0===s||s,u=t.visible,E=void 0!==u&&u,f=t.restored,T=void 0!==f&&f,S=t.updated,m=void 0!==S&&S;return new Promise(function(e){var t=a.observations.findIndex(function(e){return e.id===c.id});return-1!==t?(m?(n("UPDATE_OBSERVATION",{observationIndex:t,newObservation:c}),n("UPDATE_TIME_EVENTS",c),console.debug("Observation$ ".concat(c.label," updated"))):i("view/addToKexplorerLog",{type:r["y"].TYPE_WARNING,payload:{message:"Existing observation received: ".concat(c.label)},important:!0},{root:!0}),e()):(i("view/assignViewer",{observation:c},{root:!0}).then(function(t){if(c.viewerIdx=t,c.visible=E,c.top=!1,c.zIndex=0,c.layerOpacity=c.layerOpacity||1,c.colormap=c.colormap||null,c.tsImages=[],c.isContainer=c.observationType===r["A"].TYPE_GROUP||c.observationType===r["A"].TYPE_VIEW,c.singleValue=c.observationType===r["A"].TYPE_STATE&&1===c.valueCount,c.loading=!1,c.loaded=!0,null===c.contextId){var a=o["stomp/tasks"].find(function(e){return c.taskId.startsWith(e.id)});if(a){var s=a.contextId;c.contextId=s}else c.contextId=c.rootContextId}if(n("ADD_OBSERVATION",{observation:p()({},c,{children:[]}),restored:T}),n("UPDATE_TIME_EVENTS",c),c.observationType===r["A"].TYPE_INITIAL)return e();if(c.children.length>0&&(c.disabled=!1,c.children.forEach(function(e){i("addObservation",{observation:e})})),l){var u=Object(d["l"])(c);if(n("ADD_NODE",u),c.childrenCount>0&&0===c.children.length){var f=u.node;i("addStub",f)}}return e()}),null)})},updateObservation:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.observationId,r=t.exportFormats,s=a.observations.findIndex(function(e){return e.id===i});-1!==s?W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(i),{params:{childLevel:0}}).then(function(e){var t=e.data;if(t){if(r&&(t.exportFormats=r),n("UPDATE_OBSERVATION",{observationIndex:s,newObservation:t}),t.childrenCount>0){var c=Object(d["f"])(a.tree,t.id),l=c.children,u=l.length>0;u&&1===l.length&&(u=!l[0].id.startsWith("STUB")),u&&o("askForChildren",{parentId:i,count:Math.max(l.length,a.childrenToAskFor),total:t.childrenCount,updated:!0})}}else console.warn("Ask for update observation ".concat(i," but nothing found in engine"))}):console.warn("Try to update a not existing observation: ".concat(i))},addStub:function(e,t){var n=e.commit;n("ADD_NODE",{node:p()({},t,{id:"STUB-".concat(t.id),observable:"",label:"",children:[],childrenCount:0,childrenLoaded:0,siblingsCount:t.childrenCount,parentArtifactId:t.id,tickable:!1,disabled:!0,empty:!0,actions:{},header:"stub",main:!1,isContainer:!1,exportFormats:{},observationType:r["A"].TYPE_INITIAL,noTick:!0,parentId:t.id,dynamic:!1},t.userNode&&{userNode:t.userNode}),parentId:t.id}),n("ADD_LAST",{parentId:t.id,observationId:"STUB-".concat(t.id),offsetToAdd:0,total:t.childrenCount})},addKnowledgeView:function(e,t){var n=e.commit;n("ADD_KNOWLEDGE_VIEW",t)},showKnowledgeView:function(e,t){var n=e.commit;n("SHOW_KNOWLEDGE_VIEW",t)},addModificationEvent:function(e,t){var n=e.rootGetters,o=e.state,a=e.commit,i=e.dispatch,c=Object(d["f"])(o.tree,t.id);if(c)switch(t.type){case r["z"].BRING_FORWARD:a("MOD_BRING_FORWARD",c),i("changeTreeOfNode",{id:t.id,isUserTree:!0});break;case r["z"].VALUE_CHANGE:a("MOD_VALUE_CHANGE",c),a("ADD_TIME_EVENT",t),null===o.modificationsTask&&i("setModificationsTask",n["stomp/lastActiveTask"]());break;case r["z"].STRUCTURE_CHANGE:a("MOD_STRUCTURE_CHANGE",{node:c,modificationEvent:t}),c.childrenCount>0&&0===c.children.length&&i("addStub",c);break;case r["z"].CONTEXTUALIZATION_COMPLETED:i("updateObservation",{observationId:t.id,exportFormats:t.exportFormats});break;default:console.warn("Unknown modification event: ".concat(t.type));break}else t.id!==t.contextId?console.debug("Modification event for a not existing node, probably still not loaded",t):console.debug("Modification event for context",t)},setModificationsTask:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SET_MODIFICATIONS_TASK",n)},setTimestamp:function(e,t){var n=e.commit;t&&-1!==t&&(t=Math.round(t)),n("SET_TIMESTAMP",t)},setScheduling:function(e,t){var n=e.commit,o=e.getters;o.context&&t.contextId===o.context.id?n("SET_SCHEDULING_STATUS",t):console.debug("Received a scheduling of other context: ".concat(t.contextId))},askForChildren:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.parentId,s=t.total,l=t.offset,u=void 0===l?0:l,E=t.count,f=void 0===E?a.childrenToAskFor:E,T=t.toTree,S=void 0===T||T,m=t.visible,O=void 0!==m&&m,b=t.notified,A=void 0===b||b,_=t.updated,I=void 0!==_&&_;return new Promise(function(e){console.debug("Ask for children of node ".concat(i,": count:").concat(f," / offset ").concat(u)),o("view/setSpinner",p()({},r["J"].SPINNER_LOADING,{owner:i}),{root:!0}).then(function(){W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"children/").concat(i),{params:{count:f,offset:u}}).then(function(t){var c=t.data;c&&c.length>0?c.forEach(function(t,l,u){t.notified=A,t.siblingsCount=s,o("addObservation",{observation:t,toTree:S,visible:O,updated:I}).then(function(){if(l===u.length-1){S&&n("ADD_LAST",{parentId:i,observationId:t.id,offsetToAdd:c.length,total:s});var E=function(e){var t=Object(d["f"])(e,i);t&&null!==t&&(t.childrenLoaded+=c.length)};E(a.tree),E(a.userTree),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:i}),{root:!0}),e()}})}):(o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:i}),{root:!0}),e())})})})},addChildrenToTree:function(e,t){var n=e.dispatch,o=e.commit,a=e.state,i=t.parent,r=t.count,c=void 0===r?a.childrenToAskFor:r;if(i&&null!==i)for(var s=a.observations.filter(function(e){return e.parentArtifactId===i.id||e.parentId===i.id}),l=s.length,u=i.children.length,E=u,f=0;E0&&0===T.children.length&&n("addStub",p.node),f!==c-1&&E!==l-1||o("ADD_LAST",{parentId:i.id,observationId:T.id,offsetToAdd:f+1,total:i.childrenLoaded})}},changeTreeOfNode:function(e,t){var n=e.commit,o=e.state,a=t.id,i=t.isUserTree,r=Object(d["f"])(o.tree,a);i?null===Object(d["f"])(o.userTree,a)?(n("UPDATE_USER_NODE",{node:r,userNode:!0}),n("ADD_NODE",{node:r,parentId:r.parentArtifactId||r.parentId,toUserTreeOnly:!0})):console.warn("Try to move to user tree an existing node: ".concat(a," - ").concat(r.label)):(n("UPDATE_USER_NODE",{node:r,userNode:!1}),n("REMOVE_NODE",{id:a}))},setVisibility:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.node,r=t.visible;if(i.isContainer){if(0!==i.childrenCount&&null===i.viewerIdx){var c=a.observations.find(function(e){return e.parentArtifactId===i.id||e.parentId===i.id});if("undefined"!==typeof c){var s=c.viewerIdx,l=c.viewerType,u=c.zIndexOffset;i.viewerIdx=s,i.viewerType=l,i.zIndexOffset=u}else i.zIndexOffset=null}null!==i.viewerIdx&&o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_FOLDER_VISIBLE",{nodeId:i.id,visible:r,zIndexOffset:i.zIndexOffset})}else o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_VISIBLE",{id:i.id,visible:r})},putObservationOnTop:function(e,t){var n=e.commit;n("SET_VISIBLE",{id:t,visible:!0})},setContextMenuObservationId:function(e,t){var n=e.commit;n("SET_CONTEXTMENU_OBSERVATIONID",t)},selectNode:function(e,t){var n=e.dispatch,o=e.state;if(null===t)n("view/setObservationInfo",null,{root:!0});else{var a=o.observations.find(function(e){return e.id===t});a&&(a.visible&&!a.top&&n("setVisibility",{node:a,visible:!0}),n("view/setObservationInfo",a,{root:!0}))}},setLoadingLayers:function(e,t){var n=e.commit,o=t.loading,a=t.observation;a&&n("SET_LOADING_LAYERS",{loading:o,observation:a})},loadFlowchart:function(e){var t=e.commit,n=e.getters,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r["g"].GRAPH_DATAFLOW;return new Promise(function(e,a){console.info("Ask for flowchart ".concat(o)),W["a"].get("".concat("").concat(c["c"].REST_API_EXPORT,"/").concat(o,"/").concat(n.contextId),{headers:{Accept:"application/json"}}).then(function(i){var r=i.data;if("undefined"!==typeof r&&null!==r)try{r.restored=n.context.restored,t("ADD_FLOWCHART",{flowchart:r,target:o}),e()}catch(e){a(new Error("Error in dataflow layout for the context ".concat(H.contextId,": ").concat(e)))}else a(new Error("Dataflow in context ".concat(H.contextId," has no layout")))}).catch(function(e){a(e)})})},setReloadFlowchart:function(e,t){var n=e.commit,o=t.target;n("SET_RELOAD_FLOWCHART",o)},setDataflowStatus:function(e,t){var n=e.commit,o=t.id,a=t.status;n("SET_DATAFLOW_STATUS",{id:o,status:a})},setDataflowInfo:function(e,t){var n=e.commit;if(null===t)n("SET_DATAFLOW_INFO",null);else{var o=t.id,a=t.html,i=t.rateable,r=t.rating,c=t.averageRating;if(null!==o&&""!==o){var s=o.split("."),l=s[s.length-1],u=s.slice(0,s.length-1);n("SET_DATAFLOW_INFO",{elementId:l,elementTypes:u,html:a,rateable:i,rating:r,averageRating:c})}}},storeSearchResult:function(e,t){var n=e.commit;n("STORE_RAW_SEARCH_RESULT",t)},setScaleReference:function(e,t){var n=e.commit;n("SET_SCALE_REFERENCE",t)},updateScaleReference:function(e,t){var n=e.commit;n("UPDATE_SCALE_REFERENCE",t)},setScaleLocked:function(e,t){var n=e.commit,o=t.scaleType,a=t.scaleLocked;n("SET_SCALE_LOCKED",{scaleType:o,scaleLocked:a})},setInteractiveMode:function(e,t){var n=e.commit;n("SET_INTERACTIVE_MODE",t)},setCrossingIDL:function(e,t){var n=e.commit;n("SET_CROSSING_IDL",t)},addTerminal:function(e,t){var n=e.state,o=e.commit,a=t.id,i=t.active,c=t.type;if(a){var s=n.terminals.findIndex(function(e){return e.id===a});-1!==s?console.warn("Terminal already exists"):n.terminals[s].active=!0}else a="".concat(n.session,"-").concat(++n.terminalsCounter),o("ADD_TERMINAL",{id:a,active:"undefined"===typeof i||i,type:c||r["M"].CONSOLE})},removeTerminal:function(e,t){var n=e.commit;n("REMOVE_TERMINAL",t)},addTerminalCommand:function(e,t){var n=e.commit;n("ADD_TERMINAL_COMMAND",t)},clearTerminalCommands:function(e){var t=e.commit;t("CLEAR_TERMINAL_COMMANDS")},loadDocumentation:function(e){var t=e.dispatch,n=e.getters,o=e.rootGetters,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(e,i){if(null===n.contextId)return console.warn("Ask documentation without context"),void i(new Error("Ask documentation without context"));null===a&&(a=o["view/documentationView"],null===a&&console.warn("No view selected")),W["a"].get("".concat("").concat(c["c"].REST_SESSION_OBSERVATION,"documentation/").concat(a,"/").concat(n.contextId),{}).then(function(n){var o=n.data;""===o?(console.warn("Empty report"),e(!1)):t("refreshDocumentation",{view:a,documentation:o}).then(function(){t("view/removeReloadView",a,{root:!0}).then(function(){e(!0)})})}).catch(function(e){i(e)})})},refreshDocumentation:function(e,t){var n=e.commit,o=t.view,a=t.documentation,i=[],c=[],s=new Map,l=function e(t,n,o,a){var i,l;switch(n.type===r["l"].SECTION?l=null===o?"".concat(a,"."):"".concat(o).concat(a,"."):(l=s.has(n.type)?s.get(n.type)+1:1,s.set(n.type,l)),n.type){case r["l"].SECTION:i="".concat(l," ").concat(n.title);break;case r["l"].TABLE:i="".concat(Object(j["b"])().tc("label.reportTable")," ").concat(l,". ").concat(n.bodyText);break;case r["l"].RESOURCE:i=n.title;break;case r["l"].MODEL:i=n.id;break;case r["l"].REFERENCE:i=n.id;break;case r["l"].FIGURE:i="".concat(Object(j["b"])().tc("label.reportFigure")," ").concat(l,". ").concat(n.figure.label);break;default:i=n.type}var u={type:n.type,id:n.id,idx:l,parentId:n.parentId,previousId:n.previousId,nextId:n.nextId,label:i,children:[]},d=0;n.children.forEach(function(t){var n=-1;t.type===r["l"].SECTION&&(n=++d),e(u.children,t,l,n)}),t.push(u),c.push({id:n.id,idx:l,label:i,type:n.type,title:n.title,subtitle:n.subtitle,bodyText:n.bodyText,model:n.model,section:n.section,resource:n.resource,table:n.table,figure:n.figure,reference:n.reference})},u=0;a.forEach(function(e,t){l(i,e,null,e.type===r["l"].SECTION?++u:t)}),n("SET_DOCUMENTATION",{view:o,tree:i}),n("ADD_DOCUMENTATION",c)}},B={namespaced:!0,state:D,getters:M,mutations:V,actions:z},K={stompClient:null,connectionState:r["f"].CONNECTION_UNKNOWN,reconnectionsAttempt:0,subscriber:null,sentMessages:[],receivedMessages:[],queuedMessage:null,tasks:[],subscriptions:[]},Q={connectionDown:function(e){return e.connectionState!==r["f"].CONNECTION_UP},lastError:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["y"].TYPE_ERROR}).slice(-1);return 1===t.length?t[0]:null},lastMessage:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["y"].TYPE_MESSAGE}).slice(-1);return 1===t.length?t[0]:null},lastReceivedMessage:function(e){return e.receivedMessages.length>0?e.receivedMessages.slice(-1)[0]:null},lastSendedMessage:function(e){return e.sentMessages.length>0?e.sentMessages.slice(-1)[0]:null},subscriberId:function(e){return null!==e.subscriber?e.subscriber.id:null},queuedMessage:function(e){return e.queuedMessage},connectionState:function(e){return e.connectionState},connectionUp:function(e){return e.connectionState===r["f"].CONNECTION_UP},tasks:function(e){return e.tasks},taskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.id===t&&e.alive})}},taskOfContextIsAlive:function(e,t,n,o){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===o["data/contextId"]&&e.alive})},contextTaskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===t&&e.alive})}},hasTasks:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return-1!==e.tasks.findIndex(function(e){return e.alive&&(null===t||e.contextId===t)})}},lastActiveTask:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e.tasks.filter(function(e){return e.alive&&(null===t||e.contextId===t)});return n.length>0?n.pop():null}}},X={STOMP_CONNECTION_STATE:function(e,t){e.connectionState=t},STOMP_ERROR:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["y"].TYPE_ERROR,message:t})},STOMP_MESSAGE:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["y"].TYPE_MESSAGE,message:t})},STOMP_SEND_MESSAGE:function(e,t){Object(d["p"])(e.sentMessages,p()({date:_()().format("HH:mm:ss")},t))},STOMP_SUBSCRIBED:function(e,t){e.subscriber=t},STOMP_RECONNECTIONS_ATTEMPT:function(e,t){e.reconnectionsAttempt=t},STOMP_RECONNECTIONS_ATTEMPT_RESET:function(e){e.reconnectionsAttempt=0},STOMP_QUEUE_MESSAGE:function(e,t){e.queuedMessage=t},STOMP_CLEAN_QUEUE:function(e){e.queuedMessage=null},TASK_START:function(e,t){var n=t.id,o=t.contextId,a=t.description;-1!==e.tasks.findIndex(function(e){return e.id===n})?console.debug("Received duplicated start task id: ".concat(n," - ").concat(a)):e.tasks.push({id:n,contextId:o,description:a,alive:!0})},TASK_END:function(e,t){var n=t.id,o=e.tasks.findIndex(function(e){return e.id===n});if(-1!==o){var a=e.tasks[o];a.alive=!1,e.tasks.splice(o,1,a)}else console.debug("Task with id = ".concat(n," not founded or is not alive"))}};function q(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e("view/addToKexplorerLog",{type:t,payload:{message:n,attach:o},important:a},{root:!0})}var J=(o={},k()(o,c["a"].TYPE_TASKSTARTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskStart",n,{root:!0}),q(o,r["y"].TYPE_DEBUG,"Started task with id ".concat(n.id)),o("view/addToStatusTexts",{id:n.id,text:n.description},{root:!0})}),k()(o,c["a"].TYPE_TASKABORTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskAbort",n,{root:!0}),q(o,r["y"].TYPE_ERROR,"Aborted task with id ".concat(n.id),n),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_TASKFINISHED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskEnd",n,{root:!0}),q(o,r["y"].TYPE_DEBUG,"Ended task with id ".concat(n.id)),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_PROVENANCECHANGED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["y"].TYPE_INFO,"Provenance of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["y"].TYPE_DEBUG,"Provenance available in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWCOMPILED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["y"].TYPE_INFO,"Dataflow of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["y"].TYPE_DEBUG,"Dataflow compiled in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWSTATECHANGED,function(e,t){var n,o=e.payload,a=t.dispatch;n="STARTED"===o.status?r["i"].PROCESSING:"FINISHED"===o.status?r["i"].PROCESSED:"ABORTED"===o.status?r["i"].ABORTED:r["i"].WAITING,a("data/setDataflowStatus",{id:o.nodeId,status:n},{root:!0})}),k()(o,c["a"].TYPE_DATAFLOWDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;n&&n.dataflowId&&n.htmlDescription?(q(o,r["y"].TYPE_DEBUG,"Dataflow element info received",n),o("data/setDataflowInfo",{id:n.dataflowId,html:n.htmlDescription,rateable:n.rateable,rating:n.rating,averageRating:n.averageRating},{root:!0})):q(o,r["y"].TYPE_WARNING,"Strange payload of dataflow element info received",n)}),k()(o,c["a"].TYPE_NEWOBSERVATION,function(e,t){var n=e.payload,o=t.rootState,a=t.rootGetters,i=t.dispatch,c=o.stomp.tasks.find(function(e){return e.id===n.taskId});"undefined"===typeof c&&-1!==o.data.contextsHistory.findIndex(function(e){return e.id===n.contextId})&&(i("stomp/taskStart",{id:n.taskId,description:r["p"].UNKNOWN_SEARCH_OBSERVATION,contextId:n.contextId},{root:!0}),i("view/addToStatusTexts",{id:n.taskId,text:r["p"].UNKNOWN_SEARCH_OBSERVATION},{root:!0}),q(i,r["y"].TYPE_INFO,"Received an observation of previous context with no task associated. Session was been reloaded?",n)),null===n.parentId?null===a["data/context"]?(q(i,r["y"].TYPE_DEBUG,"New context received with id ".concat(n.id),n),i("data/setContext",{context:n},{root:!0}),"undefined"!==typeof n.scaleReference&&null!==n.scaleReference&&i("data/setScaleReference",n.scaleReference,{root:!0})):q(i,r["y"].TYPE_ERROR,"Strange behaviour: observation with no parent in existing context: ".concat(n.id," - ").concat(n.label),n):null!==a["data/context"]&&(a["data/context"].id===n.rootContextId||c&&a["data/context"].id===c.contextId)?(q(i,r["y"].TYPE_INFO,"New observation received with id ".concat(n.id,", rootContextId ").concat(n.rootContextId," and contextId ").concat(n.contextId),n),n.notified=!0,i("data/addObservation",{observation:n},{root:!0})):q(i,r["y"].TYPE_INFO,"Received an observation of different context",n,null,4)}),k()(o,c["a"].TYPE_MODIFIEDOBSERVATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_DEBUG,"Received a modification event",n),o("data/addModificationEvent",n,{root:!0})}),k()(o,c["a"].TYPE_QUERYRESULT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received search results",n),o("data/storeSearchResult",n,{root:!0})}),k()(o,c["a"].TYPE_RESETCONTEXT,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Received context reset"),N["b"].$emit(r["h"].RESET_CONTEXT),n("data/resetContext",null,{root:!0})}),k()(o,c["a"].TYPE_SCALEDEFINED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scale reference",n),o("data/setScaleReference",n,{root:!0})}),k()(o,c["a"].TYPE_USERINPUTREQUESTED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Received input request",e.payload),n("view/inputRequest",e,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULEADVANCED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received schedule advanced",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGSTARTED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scheduling started",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGFINISHED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scheduling finished",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_ENGINEEVENT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Engine event received",n),o("view/setEngineEvent",n,{root:!0})}),k()(o,c["a"].TYPE_DEBUG,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_DEBUG,n)}),k()(o,c["a"].TYPE_INFO,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,n)}),k()(o,c["a"].TYPE_WARNING,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_WARNING,n)}),k()(o,c["a"].TYPE_ERROR,function(e,t){var n=e.payload,o=t.dispatch;n===r["f"].UNKNOWN_IDENTITY?N["b"].$emit(r["h"].SESSION_CUT):q(o,r["y"].TYPE_ERROR,n)}),k()(o,c["a"].TYPE_USERPROJECTOPENED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Project opened in k.Modeler")}),k()(o,c["a"].TYPE_PROJECTFILEMODIFIED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Project modified in k.Modeler")}),k()(o,c["a"].TYPE_NETWORKSTATUS,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Network status received",n)}),k()(o,c["a"].TYPE_AUTHORITYDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Authority documentation message received",n)}),k()(o,c["a"].TYPE_SETUPINTERFACE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setLayout",n,{root:!0}),q(o,r["y"].TYPE_INFO,"App ".concat(n.name," loaded"),n,!0)}),k()(o,c["a"].TYPE_CREATEMODALWINDOW,function(e,t){var n=e.payload,o=t.dispatch;o("view/setModalWindow",n,{root:!0}),q(o,r["y"].TYPE_INFO,"Modal ".concat(n.name," loaded"),n)}),k()(o,c["a"].TYPE_CREATEVIEWCOMPONENT,function(e,t){var n=e.payload,o=t.dispatch;o("view/createViewComponent",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New create view component received",n)}),k()(o,c["a"].TYPE_VIEWACTION,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewAction",n,{root:!0}),N["b"].$emit(r["h"].VIEW_ACTION),q(o,r["y"].TYPE_INFO,"New view action received",n)}),k()(o,c["a"].TYPE_VIEWSETTING,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewSetting",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New view setting received",n)}),k()(o,c["a"].TYPE_VIEWAVAILABLE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setDocumentation",{id:n.viewId,view:n.viewClass},{root:!0}),q(o,r["y"].TYPE_INFO,"New documentation available",n)}),k()(o,c["a"].TYPE_DOCUMENTATIONCHANGED,function(e,t){var n=e.payload,o=t.dispatch;o("view/changeInDocumentation",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New change in documentation",n)}),k()(o,c["a"].TYPE_COMMANDRESPONSE,function(e,t){var n=e.payload,o=t.dispatch;N["b"].$emit(r["h"].COMMAND_RESPONSE,n),q(o,r["y"].TYPE_INFO,"Command response received",n)}),o),$=function(e){var t=e.body,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=JSON.parse(t),a=n.dispatch;return o.messageClass===c["a"].CLASS_NOTIFICATION&&a("view/addToKlabLog",o,{root:!0}),Object.prototype.hasOwnProperty.call(J,o.type)?J[o.type](o,n):(console.warn("Unknown parser ".concat(o.type)),!1)},Z={stomp_onconnect:function(e,t){var n=e.commit;n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_UP),n("STOMP_RECONNECTIONS_ATTEMPT_RESET"),n("STOMP_MESSAGE",t)},stomp_onclose:function(e){var t=e.commit;t("STOMP_CONNECTION_STATE",r["f"].CONNECTION_DOWN)},stomp_onerror:function(e,t){var n=e.dispatch;n("setConnectionState",{state:r["f"].CONNECTION_ERROR,message:t})},setConnectionState:function(e,t){var n=e.commit,o=t.state,a=t.message;n("STOMP_CONNECTION_STATE",o),n("STOMP_ERROR",a)},stomp_onmessage:function(e,t){var n=e.commit;n("STOMP_MESSAGE",t),$(t,e)},stomp_onsubscribe:function(e,t){var n=e.commit;n("STOMP_SUBSCRIBED",t)},stomp_reconnect:function(e,t){var n=e.commit;n("STOMP_RECONNECTIONS_ATTEMPT",t),n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_WORKING)},stomp_onsend:function(e,t){var n=e.commit,o=t.message;n("STOMP_SEND_MESSAGE",o)},stomp_onerrorsend:function(e,t){var n=e.commit;n("STOMP_QUEUE_MESSAGE",t)},stomp_cleanqueue:function(e){var t=e.commit;t("STOMP_CLEAN_QUEUE")},taskStart:function(e,t){var n=e.commit,o=e.dispatch;o("view/setSpinner",p()({},r["J"].SPINNER_LOADING,{owner:t.id}),{root:!0}),n("TASK_START",t)},taskAbort:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t.id}),{root:!0})},taskEnd:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t.id}),{root:!0})}},ee={namespaced:!0,state:K,getters:Q,mutations:X,actions:Z};a["a"].use(i["a"]);var te=new i["a"].Store({modules:{view:C,data:B,stomp:ee}});t["a"]=te},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d833","./ar-tn.js":"6d833","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="4678"},"7cca":function(e,t,n){"use strict";n.d(t,"g",function(){return l}),n.d(t,"t",function(){return u}),n.d(t,"w",function(){return d}),n.d(t,"O",function(){return E}),n.d(t,"P",function(){return f}),n.d(t,"x",function(){return T}),n.d(t,"H",function(){return p}),n.d(t,"S",function(){return S}),n.d(t,"f",function(){return m}),n.d(t,"y",function(){return O}),n.d(t,"A",function(){return b}),n.d(t,"C",function(){return A}),n.d(t,"q",function(){return _}),n.d(t,"R",function(){return I}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return N}),n.d(t,"J",function(){return R}),n.d(t,"p",function(){return C}),n.d(t,"i",function(){return g}),n.d(t,"h",function(){return L}),n.d(t,"D",function(){return w}),n.d(t,"F",function(){return P}),n.d(t,"E",function(){return y}),n.d(t,"z",function(){return D}),n.d(t,"N",function(){return M}),n.d(t,"G",function(){return x}),n.d(t,"I",function(){return k}),n.d(t,"s",function(){return U}),n.d(t,"B",function(){return F}),n.d(t,"v",function(){return Y}),n.d(t,"Q",function(){return W}),n.d(t,"o",function(){return G}),n.d(t,"a",function(){return j}),n.d(t,"c",function(){return H}),n.d(t,"b",function(){return z}),n.d(t,"k",function(){return K}),n.d(t,"j",function(){return Q}),n.d(t,"M",function(){return X}),n.d(t,"L",function(){return q}),n.d(t,"n",function(){return J}),n.d(t,"l",function(){return $}),n.d(t,"m",function(){return Z}),n.d(t,"r",function(){return ee}),n.d(t,"K",function(){return te}),n.d(t,"u",function(){return ne});var o,a=n("9523"),i=n.n(a),r=(n("f559"),n("cadf"),n("456d"),n("ac6a"),n("3156")),c=n.n(r),s=n("e7d8"),l={EMPTY_MAP_SELECTION:{pixelSelected:null,layerSelected:null,value:null,locked:!1},HIST_MAX_LENGTH:50,CHILDREN_TO_ASK_FOR:25,SEARCHBAR_SIZE:512,SEARCHBAR_INCREMENT:128,MAX_SEARCHBAR_INCREMENTS:6,TARGET_DATAFLOW:"DATAFLOW",TARGET_PROVENANCE:"PROVENANCE",GRAPH_DATAFLOW:"dataflow",GRAPH_PROVENANCE_FULL:"provenance_full",GRAPH_PROVENANCE_SIMPLIFIED:"provenance_simplified"},u=[{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_DATAFLOW,type:l.GRAPH_DATAFLOW,label:"Dataflow"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_FULL,label:"Provenance full"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_SIMPLIFIED,label:"Provenance simplified"}],d={LEFTMENU_MAXSIZE:512,LEFTMENU_MINSIZE:80,LEFTMENU_DOCUMENTATION_SIZE:320,LEFTMENU_MAXIMIZED:"max",LEFTMENU_MINIMIZED:"min",LEFTMENU_HIDDEN:"hidden",DATA_VIEWER_COMPONENT:"klab-main-control",DOCKED_DATA_VIEWER_COMPONENT:"docked-main-control",REPORT_VIEWER_COMPONENT:"reports-details",DOCUMENTATION_VIEWER_COMPONENT:"documentation-tree",DATAFLOW_VIEWER_COMPONENT:"dataflow-details",DATAFLOW_INFO_COMPONENT:"dataflow-info",PROVENANCE_VIEWER_COMPONENT:"provenance-details",LOG_COMPONENT:"klab-log-pane"},E={DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_HIDDEN,leftMenuContent:d.DATA_VIEWER_COMPONENT,mainControl:!0,hasSearch:!0},DOCKED_DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_MAXIMIZED,leftMenuContent:d.DOCKED_DATA_VIEWER_COMPONENT,mainControl:!1,hasSearch:!0},DOCUMENTATION_VIEWER:{name:"KlabDocumentation",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DOCUMENTATION_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},REPORT_VIEWER:{name:"ReportViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.REPORT_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},DATAFLOW_VIEWER:{name:"DataflowViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DATAFLOW_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},PROVENANCE_VIEWER:{name:"ProvenanceViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.PROVENANCE_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1}},f={VIEW_MAP:{component:"MapViewer",label:"Maps",hideable:!1,forceNew:!1},VIEW_CHART:{component:"ChartViewer",label:"Chart",hideable:!0,forceNew:!0},VIEW_GRAPH:{component:"GraphViewer",label:"Graph",hideable:!0,forceNew:!0},VIEW_BLOB:{component:"BlobViewer",label:"Blob",hideable:!1,forceNew:!1},VIEW_UNKNOWN:{component:"UnknownViewer",label:"Under construction",hideable:!1,forceNew:!1}},T={CONCEPT:{label:"Concept",symbol:"C",color:"sem-types",rgb:"rgb(38, 50, 56)"},PREFIX_OPERATOR:{label:"Prefix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},INFIX_OPERATOR:{label:"Infix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},OBSERVATION:{label:"Observation",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODEL:{label:"Model",symbol:"M",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODIFIER:{label:"Modifier",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},PRESET_OBSERVABLE:{label:"Preset observable",symbol:"O",color:"sem-preset-observable",rgb:"rgb(240, 240, 240)"},SEPARATOR:{label:"Separator",symbol:"S",color:"sem-separator",rgb:"rgb(10, 10, 10)"},NEXT_TOKENS:{TOKEN:"TOKEN",TEXT:"TEXT",INTEGER:"INTEGER",DOUBLE:"DOUBLE",BOOLEAN:"BOOLEAN",UNIT:"UNIT",CURRENCY:"CURRENCY"}},p={QUALITY:{label:"Quality",symbol:"Q",color:"sem-quality",rgb:"rgb(0, 153, 0)"},SUBJECT:{label:"Subject",symbol:"S",color:"sem-subject",rgb:"rgb(153, 76, 0)"},IDENTITY:{label:"identity",symbol:"Id",color:"sem-identity",rgb:"rgb(0, 102, 204)"},ATTRIBUTE:{label:"Attribute",symbol:"A",color:"sem-attribute",rgb:"rgb(0, 102, 204)"},REALM:{label:"Realm",symbol:"R",color:"sem-realm",rgb:"rgb(0, 102, 204)"},TRAIT:{label:"Trait",symbol:"T",color:"sem-trait",rgb:"rgb(0, 102, 204)"},EVENT:{label:"Event",symbol:"E",color:"sem-event",rgb:"rgb(53, 153, 0)"},RELATIONSHIP:{label:"Relationship",symbol:"R",color:"sem-relationship",rgb:"rgb(210, 170, 0)"},PROCESS:{label:"Process",symbol:"P",color:"sem-process",rgb:"rgb(204, 0, 0)"},ROLE:{label:"Role",symbol:"R",color:"sem-role",rgb:"rgb(0, 86, 163)"},CONFIGURATION:{label:"Configuration",symbol:"C",color:"sem-configuration",rgb:"rgb(98, 98, 98)"},DOMAIN:{label:"Domain",symbol:"D",color:"sem-domain",rgb:"rgb(240, 240, 240)"}},S={nodes:[],links:[],showMenu:!1,selected:{},showSelection:!1,linksSelected:{},options:{canvas:!1,size:{w:500,h:500},force:350,offset:{x:0,y:0},nodeSize:20,linkWidth:1,nodeLabels:!0,linkLabels:!1,strLinks:!0}},m={CONNECTION_UNKNOWN:"UNKNOWN",CONNECTION_UP:"UP",CONNECTION_DOWN:"DOWN",CONNECTION_WORKING:"WORKING",CONNECTION_ERROR:"ERROR",UNKNOWN_IDENTITY:"UNKNOWN_IDENTITY"},O={TYPE_DEBUG:"debug",TYPE_WARNING:"warning",TYPE_ERROR:"error",TYPE_INFO:"info",TYPE_MESSAGE:"MSG",TYPE_ALL:"ALL"},b={TYPE_PROCESS:"PROCESS",TYPE_STATE:"STATE",TYPE_SUBJECT:"SUBJECT",TYPE_CONFIGURATION:"CONFIGURATION",TYPE_EVENT:"EVENT",TYPE_RELATIONSHIP:"RELATIONSHIP",TYPE_GROUP:"GROUP",TYPE_VIEW:"VIEW",TYPE_INITIAL:"INITIAL"},A={shapeType:"POINT",encodedShape:"POINT (40.299841 9.343971)",id:null,label:"DEFAULT",parentId:-1,visible:!0,spatialProjection:"EPSG:4326",observationType:b.TYPE_INITIAL},_={TYPE_RASTER:"RASTER",TYPE_SHAPE:"SHAPE",TYPE_SCALAR:"SCALAR",TYPE_TIMESERIES:"TIMESERIES",TYPE_NETWORK:"NETWORK",TYPE_PROPORTIONS:"PROPORTIONS",TYPE_COLORMAP:"COLORMAP",SHAPE_POLYGON:"POLYGON",SHAPE_POINT:"POINT",PARAM_VIEWPORT_SIZE:800,PARAM_VIEWPORT_MAX_SIZE:7680,PARAM_VIEWPORT_MULTIPLIER:1},I={PARAMS_MODE:"mode",PARAMS_MODE_IDE:"ide",PARAMS_MODE_STANDALONE:"standalone",PARAMS_SESSION:"session",PARAMS_LOG:"log",PARAMS_LOG_HIDDEN:"hidden",PARAMS_LOG_VISIBLE:"visible",PARAMS_LOCAL_HELP:"localhelp",PARAMS_APP:"app",PARAMS_DEBUG_REMOTE:"remote-debug",PARAMS_STOMP_DEBUG:"stomp-debug",PARAMS_TOKEN:"token",COOKIE_LANG:"klab_exp_lang",COOKIE_SESSION:"klab_session",COOKIE_MODE:"klab_mode",COOKIE_LOG:"klab_log",COOKIE_BASELAYER:"klab_baselayer",COOKIE_MAPDEFAULT:"klab_mapdefault",COOKIE_SAVELOCATION:"klab_saveLocation",COOKIE_HELP_ON_START:"klab_helponstart",COOKIE_DOCKED_STATUS:"klab_dockedstatus",COOKIE_NOTIFICATIONS:"klab_notifications",COOKIE_TERMINAL_SIZE:"klab_terminalsize",COOKIE_VIEW_COORDINATES:"klab_coordinates",LOCAL_STORAGE_APP_ID:"klab:appId",LOCAL_STORAGE_TERMINAL_COMMANDS:"klab:terminalCommands"},v={NOTIFICATIONS_URL:"".concat("https://integratedmodelling.org","/statics/notifications/index.php")},N={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED_HEX:"#ff6464",MAIN_COLOR_HEX:"#11aabb",MAIN_GREEN_HEX:"#e7ffdb",MAIN_CYAN_HEX:"#e4fdff",MAIN_YELLOW_HEX:"#ffc300",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#DA1F26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning"},h={SPINNER_STOPPED_COLOR:N.MAIN_COLOR,SPINNER_LOADING_COLOR:N.MAIN_YELLOW,SPINNER_MC_RED:N.MAIN_RED,SPINNER_ERROR_COLOR:N.NEGATIVE_NAME},R={SPINNER_LOADING:{color:h.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:h.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:h.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:h.SPINNER_STOPPED_COLOR,animated:!1}}},C={UNKNOWN_SEARCH_OBSERVATION:"$$UNKNOWN_SEARCH_OBSERVATION$$"},g={WAITING:"waiting",PROCESSING:"processing",PROCESSED:"processed",ABORTED:"aborted"},L={MAP_SIZE_CHANGED:"mapsizechanged",UPDATE_FOLDER:"updatefolder",GRAPH_NODE_SELECTED:"graphnodeselected",SPINNER_DOUBLE_CLICK:"spinnerdoubleclick",SHOW_NODE:"shownode",ASK_FOR_UNDOCK:"askforundock",ASK_FOR_SUGGESTIONS:"askforsuggestions",NEED_FIT_MAP:"needfitmap",TREE_VISIBLE:"treevisible",VIEWER_CLICK:"viewerclick",VIEWER_SELECTED:"viewerselected",VIEWER_CLOSED:"viewerclosed",OBSERVATION_INFO_CLOSED:"observationinfoclosed",SEND_REGION_OF_INTEREST:"sendregionofinterest",NEED_HELP:"needhelp",OBSERVATION_BY_TIME:"observationbytime",NEED_LAYER_BUFFER:"needlayerbuffer",COMPONENT_ACTION:"componentaction",LAYOUT_CHANGED:"layoutchanged",SELECT_ELEMENT:"selectelement",PROPOSED_CONTEXT_CHANGE:"proposedcontextchange",NEW_SCHEDULING:"newscheduling",SHOW_NOTIFICATIONS:"shownotifications",TERMINAL_FOCUSED:"terminalfocused",COMMAND_RESPONSE:"commandresponse",REFRESH_DOCUMENTATION:"refreshdocumentation",PRINT_DOCUMENTATION:"printdocumentation",SHOW_DOCUMENTATION:"showdowcumentation",FONT_SIZE_CHANGE:"fontsizechange",DOWNLOAD_URL:"downloadurl",RESET_CONTEXT:"resetcontext",VIEW_ACTION:"viewaction",SESSION_CUT:"sessioncut",SHOW_DATA_INFO:"showdatainfo"},w={ST_SPACE:"space",ST_TIME:"time"},P={CENTIMETERS:"cm",METERS:"m",KILOMETERS:"km",MILLENNIUM:"MILLENNIUM",CENTURY:"CENTURY",DECADE:"DECADE",YEAR:"YEAR",MONTH:"MONTH",WEEK:"WEEK",DAY:"DAY",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND"},y=[{i18nlabel:"unitCentimeter",type:w.ST_SPACE,value:P.CENTIMETERS,selectable:!0},{i18nlabel:"unitMeter",type:w.ST_SPACE,value:P.METERS,selectable:!0},{i18nlabel:"unitKilometer",type:w.ST_SPACE,value:P.KILOMETERS,selectable:!0},{i18nlabel:"unitMillennium",type:w.ST_TIME,value:P.MILLENNIUM,selectable:!1,momentShorthand:"y",momentMultiplier:1e3,index:0},{i18nlabel:"unitCentury",type:w.ST_TIME,value:P.CENTURY,selectable:!0,momentShorthand:"y",momentMultiplier:100,index:1},{i18nlabel:"unitDecade",type:w.ST_TIME,value:P.DECADE,selectable:!0,momentShorthand:"y",momentMultiplier:10,index:2},{i18nlabel:"unitYear",type:w.ST_TIME,value:P.YEAR,selectable:!0,momentShorthand:"y",momentMultiplier:1,index:3},{i18nlabel:"unitMonth",type:w.ST_TIME,value:P.MONTH,selectable:!0,momentShorthand:"M",momentMultiplier:1,index:4},{i18nlabel:"unitWeek",type:w.ST_TIME,value:P.WEEK,selectable:!0,momentShorthand:"W",momentMultiplier:1,index:5},{i18nlabel:"unitDay",type:w.ST_TIME,value:P.DAY,selectable:!0,momentShorthand:"d",momentMultiplier:1,index:6},{i18nlabel:"unitHour",type:w.ST_TIME,value:P.HOUR,selectable:!0,momentShorthand:"h",momentMultiplier:1,index:7},{i18nlabel:"unitMinute",type:w.ST_TIME,value:P.MINUTE,selectable:!0,momentShorthand:"m",momentMultiplier:1,index:8},{i18nlabel:"unitSecond",type:w.ST_TIME,value:P.SECOND,selectable:!1,momentShorthand:"s",momentMultiplier:1,index:9},{i18nlabel:"unitMillisecond",type:w.ST_TIME,value:P.MILLISECOND,selectable:!1,momentShorthand:"ms",momentMultiplier:1,index:10}],D={SPATIAL_TRANSLATION:"SpatialTranslation",SPATIAL_CHANGE:"SpatialChange",TERMINATION:"Termination",STRUCTURE_CHANGE:"StructureChange",NAME_CHANGE:"NameChange",ATTRIBUTE_CHANGE:"AttributeChange",VALUE_CHANGE:"ValueChange",BRING_FORWARD:"BringForward",CONTEXTUALIZATION_COMPLETED:"ContextualizationCompleted"},M={DEFAULT_STEP:864e5,DEFAULT_INTERVAL:100,PIXEL_TIME_MULTIPLIER:1,MIN_PLAY_TIME:6e4,MAX_PLAY_TIME:6e4},x={SEMANTIC:"SEMANTIC",FREETEXT:"FREETEXT"},k={INTERACTIVE_MODE:"InteractiveMode",LOCK_SPACE:"LockSpace",LOCK_TIME:"LockTime"},U={DEFAULT_MODAL_SIZE:{width:1024,height:768},DEFAULT_PROPORTIONS:{width:4,height:3},DEFAULT_WIDTH_PERCENTAGE:90,DEFAULT_HEIGHT_PERCENTAGE:90,DEFAULT_HELP_BASE_URL:"https://integratedmodelling.org/statics/help"},V={actionLabel:null,actionId:null,downloadUrl:null,downloadFileExtension:null,enabled:!1,separator:!1,submenu:[]},F={SEPARATOR_ITEM:c()({},V,{enabled:!0,separator:!0}),RECONTEXTUALIZATION_ITEM:c()({},V,{actionId:"Recontextualization",actionLabel:Object(s["b"])().tc("label.recontextualization"),enabled:!0})},Y=[{viewClass:"table",label:Object(s["b"])().tc("label.kwTable"),icon:"mdi-table",exportIcons:[{type:"xlsx",icon:"mdi-file-excel"}]},{viewClass:"chart",label:Object(s["b"])().tc("label.kwChart"),icon:"mdi-chart-bar",exportIcons:[]}],W={OBSERVATION:"Observation",VIEW:"View",TREE:"Tree",REPORT:"Report",DATAFLOW:"Dataflow",SHOW:"Show",HIDE:"Hide",URL:"Url",DOWNLOAD:"Download"},G={RESOURCE_VALIDATION:"ResourceValidation"},j={PANEL:"Panel",ALERT:"Alert",PUSH_BUTTON:"PushButton",CHECK_BUTTON:"CheckButton",RADIO_BUTTON:"RadioButton",TEXT_INPUT:"TextInput",COMBO:"Combo",GROUP:"Group",MAP:"Map",TREE:"Tree",TREE_ITEM:"TreeItem",CONFIRM:"Confirm",VIEW:"View",CONTAINER:"Container",MULTICONTAINER:"MultiContainer",LABEL:"Label",TEXT:"Text",TABLE:"Table",NOTIFICATION:"Notification",INPUT_GROUP:"InputGroup",SEPARATOR:"Separator",MODAL_WINDOW:"ModalWindow",WINDOW:"Window",BROWSER:"Browser",IMAGE:"Image"},H={USER_ACTION:"UserAction",ENABLE:"Enable",HIDE:"Hide",UPDATE:"Update",MENU_ACTION:"MenuAction"},z={LABEL_MIN_WIDTH:"150px",DEFAULT_LOGO:"statics/klab-logo.png"},B=/^\d+\D{1,2}/,K=function(e){var t={};return Object.keys(e.attributes).forEach(function(n){var o=e.attributes[n];switch(n){case"hidden":t.display="none";break;case"width":"content"===o?t["flex-basis"]="0":o.startsWith("col")?t["flex-grow"]=o.substring(3):t.width="".concat(o).concat(B.test(o)?"":"px");break;case"height":t.height="".concat(o).concat(B.test(o)?"":"px");break;case"hfill":e.attributes.hbox&&(t["flex-wrap"]="nowrap"),t.width="100%";break;case"vfill":t["flex-grow"]=1;break;case"top":case"bottom":case"middle":e.attributes.parentAttributes&&(e.attributes.parentAttributes.hbox||e.attributes.parentAttributes.vbox)?t["align-self"]="top"===n?"flex-start":"bottom"===n?"flex-end":"center":e.attributes.hbox||e.attributes.vbox?t["justify-content"]=n:t["vertical-align"]=n;break;case"hbox":case"vbox":t["flex-direction"]="hbox"===n?"row":"column",e.attributes.center&&(t["align-items"]="center");break;case"left":case"right":t["text-align"]=n;break;default:break}}),t},Q={dark:{"main-color":"white","positive-color":"rgb(116, 212, 116)","negative-color":"rgb(250, 117, 117)","background-color":"rgb(18, 18, 18)","alt-background":"rgb(99,99,99)","text-color":"white","control-text-color":"black","title-color":"white","alt-color":"rgb(0, 204, 204)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},light:{"main-color":"black","background-color":"white","alt-background":"rgb(233,233,233)","text-color":"black","control-text-color":"white","title-color":"black","alt-color":"rgb(0,138,150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},worst:{"main-color":"green","background-color":"yellow","alt-background":"fuchsia","text-color":"red","control-text-color":"yellow","title-color":"indigo","alt-color":"blue","font-family":"comics","font-size":"1.2em","title-size":"32px","subtitle-size":"20px","line-height":"1.2em"},default:{"main-color":"rgb(0, 92, 129)","background-color":"rgb(250, 250, 250)","alt-background":"rgb(222, 222, 222)","text-color":"rgb(0, 92, 129)","control-text-color":"rgb(250, 250, 250)","title-color":"rgb(0, 92, 129)","alt-color":"rgb(0, 138, 150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"}},X={DEBUGGER:"Debugger",CONSOLE:"Console"},q=[{value:"80x24",label:"80x24",cols:80,rows:24},{value:"80x43",label:"80x43",cols:80,rows:43},{value:"132x24",label:"132x24",cols:132,rows:24},{value:"132x43",label:"132x43",cols:132,rows:43}],J={REPORT:"REPORT",FIGURES:"FIGURES",TABLES:"TABLES",RESOURCES:"RESOURCES",MODELS:"MODELS",PROVENANCE:"PROVENANCE",REFERENCES:"REFERENCES"},$={REPORT:"Report",SECTION:"Section",PARAGRAPH:"Paragraph",TABLE:"Table",CHART:"Chart",FIGURE:"Figure",RESOURCE:"Resource",MODEL:"Model",REFERENCE:"Reference",CITATION:"Citation",VIEW:"View",LINK:"Link",ANCHOR:"Anchor"},Z=(o={},i()(o,$.REPORT,J.REPORT),i()(o,$.SECTION,J.REPORT),i()(o,$.PARAGRAPH,J.REPORT),i()(o,$.TABLE,J.TABLES),i()(o,$.CHART,J.REPORT),i()(o,$.FIGURE,J.FIGURES),i()(o,$.RESOURCE,J.RESOURCES),i()(o,$.MODEL,J.MODELS),i()(o,$.REFERENCE,J.REPORT),i()(o,$.CITATION,J.REPORT),i()(o,$.VIEW,J.REPORT),i()(o,$.LINK,J.REPORT),i()(o,$.ANCHOR,J.REPORT),o),ee={KLAB_AUTHORIZATION:"klab-authorization"},te={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",CONCEPT:"CONCEPT",PROCESS:"PROCESS",EVENT:"EVENT",OBJECT:"OBJECT",TEXT:"TEXT",VALUE:"VALUE",RANGE:"RANGE",ENUM:"ENUM",EXTENT:"EXTENT",TEMPORALEXTENT:"TEMPORALEXTENT",SPATIALEXTENT:"SPATIALEXTENT",ANNOTATION:"ANNOTATION",LIST:"LIST",VOID:"VOID",MAP:"MAP",TABLE:"TABLE"},ne={URL:__ENV__.KEYCLOAK_URL,REALM:"im",CLIENT_ID:"k.Explorer",TOKEN:"vue-token",REFRESH_TOKEN:"vue-refresh-token",BEARER:"Bearer "}},"7e6d":function(e,t,n){},8449:function(e,t,n){"use strict";n.d(t,"b",function(){return d});n("ac6a"),n("cadf"),n("456d");var o=n("7037"),a=n.n(o),i=(n("386d"),n("7cca")),r=n("1442"),c=n("8fec"),s=n("be3b"),l=n("741d"),u=n("2b0e"),d=new u["a"];t["a"]=function(e){var t,n=e.store,o=new URLSearchParams(window.location.search),E=o.get(i["R"].PARAMS_SESSION)||l["a"].get(i["R"].COOKIE_SESSION),f=o.get(i["R"].PARAMS_MODE)||l["a"].get(i["R"].COOKIE_MODE)||i["R"].PARAMS_MODE_IDE,T=o.get(i["R"].PARAMS_LOG)||l["a"].get(i["R"].COOKIE_LOG)||i["R"].PARAMS_LOG_HIDDEN,p=l["a"].get(i["R"].COOKIE_BASELAYER)||r["d"].DEFAULT_BASELAYER,S=l["a"].get(i["R"].COOKIE_MAPDEFAULT)||{center:r["b"].center,zoom:r["b"].zoom},m=!l["a"].has(i["R"].COOKIE_SAVELOCATION)||l["a"].get(i["R"].COOKIE_SAVELOCATION),O=l["a"].has(i["R"].COOKIE_DOCKED_STATUS),b=o.get(i["R"].PARAMS_DEBUG_REMOTE);if(b)t="true"!==b;else{var A=window.location.hostname.toLowerCase();t=-1===A.indexOf("integratedmodelling.org")&&-1===A.indexOf("klab.officialstatistics.org")}t="engine.remote "===__ENV__.ACTIVE_PROFILE,console.warn(t);var _=o.get(i["R"].PARAMS_TOKEN);u["a"].mixin({methods:{hexToRgbValues:function(e){if("undefined"!==typeof e){var t=c["b"](e);return"".concat(t.r,", ").concat(t.g,", ").concat(t.b)}return"black"},isAcceptedKey:function(e){var t="abcdefghijklmnopqrstuvwxyz0123456789.<>=!()+-*/^";return e=e.toLowerCase(),-1!==t.indexOf(e)}}}),u["a"].prototype.$eventBus=d,n.state.data.session=E,u["a"].prototype.$mode=f,l["a"].set(i["R"].COOKIE_MODE,f,{expires:30,path:"/",secure:!0}),u["a"].prototype.$logVisibility=T,l["a"].set(i["R"].COOKIE_LOG,T,{expires:30,path:"/",secure:!0}),u["a"].prototype.$baseLayer=p,l["a"].set(i["R"].COOKIE_BASELAYER,p,{expires:30,path:"/",secure:!0}),u["a"].prototype.$mapDefaults=S,n.state.view.saveLocation=m,l["a"].set(i["R"].COOKIE_SAVELOCATION,m,{expires:30,path:"/",secure:!0}),n.state.view.saveDockedStatus=O,O&&(n.state.view.mainControlDocked=l["a"].get(i["R"].COOKIE_DOCKED_STATUS)),n.state.view.viewCoordinates=l["a"].has(i["R"].COOKIE_VIEW_COORDINATES)&&l["a"].get(i["R"].COOKIE_VIEW_COORDINATES),n.state.data.local=t,n.state.data.token=_,console.info("Session: ".concat(E," / mode: ").concat(f));var I=o.get(i["R"].PARAMS_LOCAL_HELP);n.state.view.helpBaseUrl=I?"http://".concat(I):i["s"].DEFAULT_HELP_BASE_URL;var v=o.get(i["R"].PARAMS_APP);v&&(n.state.view.klabApp=v),s["a"].get("".concat("").concat("/modeler","/capabilities"),{}).then(function(e){var t=e.data;if("object"!==a()(t))throw Error("Error asking for capabilities: no data");if(0===Object.keys(t).length)throw Error("Capabilities are empty, check it");n.state.data.capabilities=t}).catch(function(e){console.error("Error trying to retrieve capabilities: ".concat(e))})}},"8fec":function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return s});n("c5f6"),n("ee1d"),n("a481"),n("6b54");var o=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function a(e){var t=e.r,n=e.g,o=e.b,a=e.a,i=void 0!==a;if(t=Math.round(t),n=Math.round(n),o=Math.round(o),t>255||n>255||o>255||i&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=i?(256|Math.round(255*a/100)).toString(16).slice(1):"","#".concat((o|n<<8|t<<16|1<<24).toString(16).slice(1)).concat(a)}function i(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=e.replace(/ /g,""),n=o.exec(t);if(null===n)return i(t);var a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){var r=parseFloat(n[5]);a.a=100*Math.min(1,!0===Number.isNaN(r)?1:r)}return a}function c(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");var n=r(e),o=t<0?0:255,a=Math.abs(t)/100,i=n.r,c=n.g,s=n.b;return"#".concat((16777216+65536*(Math.round((o-i)*a)+i)+256*(Math.round((o-c)*a)+c)+(Math.round((o-s)*a)+s)).toString(16).slice(1))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if("string"!==typeof e)throw new TypeError("Expected a string as color");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue("--q-color-".concat(e)).trim()||null}},b0b2:function(e,t,n){"use strict";n.d(t,"a",function(){return P}),n.d(t,"h",function(){return D}),n.d(t,"e",function(){return x}),n.d(t,"f",function(){return k}),n.d(t,"g",function(){return U}),n.d(t,"b",function(){return V}),n.d(t,"k",function(){return F}),n.d(t,"j",function(){return Y}),n.d(t,"i",function(){return W}),n.d(t,"l",function(){return G}),n.d(t,"c",function(){return H}),n.d(t,"d",function(){return z});n("4917"),n("28a5"),n("48c0"),n("6c7b"),n("ac6a");var o=n("278c"),a=n.n(o),i=(n("c5f6"),n("ee1d"),n("8fec")),r=n("256f"),c=n("5bc3"),s=n("6c77"),l=n("1442"),u=n("f403"),d=n("7a09"),E=n("9a44"),f=n("47e4"),T=n("88da"),p=n("f822"),S=n("049d"),m=n("c4c8"),O=n("c7e3"),b=n("f384"),A=n("01ae"),_=n("7f68"),I=n("881a"),v=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/,N=i["b"],h=i["a"],R=i["d"],C={topLeft:Object(r["l"])([-180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomLeft:Object(r["l"])([-180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),topRight:Object(r["l"])([180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomRight:Object(r["l"])([180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857)},g=new _["b"],L={left:g.createLineString([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1])]),right:g.createLineString([new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1])])},w=g.createPolygon([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1]),new _["a"](C.topLeft[0],C.topLeft[1])]);function P(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function y(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=v.exec(e);if(t){var n={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(n.a=parseFloat(t[4])),n}return N(e)}function D(e){return!!Number.isNaN(1*e)&&e===e.toUpperCase()}function M(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==typeof t[e.toLowerCase()]?t[e.toLowerCase()]:null}function x(e){var t,n;if(0===e.indexOf("#"))n=e,t=N(e);else if(-1!==e.indexOf(","))t=y(e),n=R(t);else{if(n=h(e),null===n&&(n=M(e),null===n))throw new Error("Unknown color: ".concat(e));t=N(n)}return{rgb:t,hex:n,color:e}}function k(e,t,n){(null===e||null===t||n<1)&&console.warn("Bad colors: ".concat(e,", ").concat(t));for(var o,a,i,r=x(e).rgb,c=x(t).rgb,s=1/(n-1),l=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t,n){return e+(t-e)*n},i=[],r=Number((e.length-1)/(t-1)),c=a()(e,1);i[0]=c[0];for(var s=1;s0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}var F=new I["a"];F.inject(u["a"],d["a"],S["a"],c["a"],E["a"],f["a"],T["a"]);var Y=function(e){return e instanceof p["a"]&&(e=Object(c["b"])(e)),F.read(e)},W=function(e){return new m["a"](e).isValid()},G=function(e,t){return O["a"].union(e,t)};function j(e){var t=[];return O["a"].intersection(e,L.left)&&t.push(L.left),O["a"].intersection(e,L.right)&&t.push(L.right),t}function H(e){var t=j(e);if(0===t.length)return e;var n=e.getExteriorRing();t.forEach(function(e){n=O["a"].union(n,e)});var o=new A["a"];o.add(n);for(var a=o.getPolygons(),i=null,r=a.iterator();r.hasNext();){var c=r.next();if(!b["a"].contains(w,c)){for(var s=[],l=c.getCoordinates(),u=l.length,d=0;d0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return!1;var t=e.geometryTypes;return t&&"undefined"!==typeof t.find(function(e){return e===l["q"].TYPE_RASTER})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l["g"].HIST_MAX_LENGTH;e.push(t),e.length>n&&e.shift()},L=function(e,t){if(0===e.length)return null;if(void 0===t)return e[e.length-1];var n=s()(e).reverse().find(function(e){return e.type===t});return"undefined"!==typeof n?n:null},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if(e&&null!==t&&"function"===typeof n){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.children&&i.children.length>0?e(null,i.children):r};return a(null,e)}return null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(e,t,function(e,t){return e.id===t?e:null})},y=function(e){var t=null!==e.parentArtifactId||null!==e.parentId&&e.rootContextId!==e.parentId,n=null!==e.parentArtifactId?e.parentArtifactId:e.parentId,o=e.main;if(!o&&t){var a=P(d["a"].getters["data/tree"],n);null!==a&&(o=o||a.userNode)}return{node:r()({id:e.id,label:e.literalValue||e.label,observable:e.observable,type:e.shapeType,dynamic:e.dynamic||!1,needUpdate:!e.contextualized,viewerIdx:e.viewerIdx,viewerType:null!==e.viewerIdx?d["a"].getters["view/viewer"](e.viewerIdx).type:null,loading:!1,children:[],childrenCount:e.childrenCount,childrenLoaded:0,siblingsCount:e.siblingsCount,parentArtifactId:e.parentArtifactId,tickable:null!==e.viewerIdx&&!e.empty||e.isContainer||e.childrenCount>0,disabled:e.empty&&(!e.isContainer||0===e.childrenCount)||e.singleValue||e.observationType===l["A"].TYPE_PROCESS,empty:e.empty,actions:e.actions,header:e.isContainer?"folder":"default",main:e.main,userNode:o,isContainer:e.isContainer,exportFormats:e.exportFormats,rootContextId:e.rootContextId,contextId:e.contextId,observationType:e.observationType,noTick:e.singleValue||e.observationType===l["A"].TYPE_PROCESS},e.isContainer&&{childrenLoaded:0},e.siblingsCount&&{siblingsCount:e.siblingsCount},{parentId:n}),parentId:n}},D=function(e){return new Promise(function(t,n){var o=null;if(null!==e)if(o=Object(_["g"])(e),null===o){var a=e.substring(5);fetch("https://epsg.io/?format=json&q=".concat(a)).then(function(a){return a.json().then(function(a){var i=a.results;if(i&&i.length>0)for(var r=0,c=i.length;r0&&u&&u.length>0&&d&&4===d.length){var f="EPSG:".concat(l);v["a"].defs(f,u),Object(I["a"])(v["a"]),o=Object(_["g"])(f);var T=Object(_["i"])(E["d"].PROJ_EPSG_4326,o),p=Object(A["a"])([d[1],d[2],d[3],d[0]],T);o.setExtent(p),console.info("New projection registered: ".concat(f)),t(o)}else n(new Error("Some error in projection search result: ".concat(JSON.stringify(s))))}else n(new Error("Some error in projection search result: no results"))}else n(new Error("Unknown projection: ".concat(e)))})})}else t(o);else t(E["d"].PROJ_EPSG_4326)})};function M(e){return x.apply(this,arguments)}function x(){return x=a()(regeneratorRuntime.mark(function e(t){var n,o,a,i,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.spatialProjection,e.next=3,D(n);case 3:if(o=e.sent,a=t.encodedShape,a){e.next=7;break}return e.abrupt("return",null);case 7:return 0===a.indexOf("LINEARRING")&&(a=a.replace("LINEARRING","LINESTRING")),i=null,-1!==a.indexOf("POINT")?(r=R.readFeature(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),null!==r&&null!==r.getGeometry()&&(i=r.getGeometry().getFirstCoordinate())):i=R.readGeometry(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),t.id===t.rootContextId&&(t.zIndexOffset=0),e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),x.apply(this,arguments)}function k(e){return U.apply(this,arguments)}function U(){return U=a()(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.response?{status:t.response.data.status||t.response.status,message:t.response.data.message||t.response.data.error||t.response.data||(""!==t.response.statusText?t.response.statusText:"Unknown"),axiosError:t}:t.request?{status:t.request.status,message:t.message,axiosError:t}:{status:"UNKNOWN",message:t.message,axiosError:t},!(n instanceof Blob)){e.next=5;break}return e.next=4,n.text();case 4:n=e.sent;case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),U.apply(this,arguments)}var V=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_LOADING,{owner:e}),{root:!0}),N["a"].get(t,n).then(function(t){t&&o(t,function(){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_STOPPED,{owner:e}),{root:!0})})}).catch(function(){var t=a()(regeneratorRuntime.mark(function t(n){var o,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,k(n);case 2:if(o=t.sent,a=null,null!=o&&(a=o.message),d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:e,errorMessage:a}),{root:!0}),null===i){t.next=10;break}i(n),t.next=11;break;case 10:throw n;case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},F=function(e){if("RAMP"===e.type&&e.colors.length>1&&e.colors.length<256){for(var t=[],n=[],o=e.colors.length,a=Math.floor(256/o),i=a+(256-o*a),r=0;rl["q"].PARAM_VIEWPORT_MAX_SIZE&&(a=l["q"].PARAM_VIEWPORT_MAX_SIZE),P=L.getExtent(),y="".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(t.id),M=new b["a"]({projection:R,imageExtent:P,url:y,style:E["e"].POLYGON_OBSERVATION_STYLE,imageLoadFunction:function(e,n){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_LOADING,{owner:"".concat(n).concat(c)}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!0,observation:t}),N["a"].get(n,{params:r()({format:l["q"].TYPE_RASTER,viewport:a},-1!==A&&{locator:"T1(1){time=".concat(A,"}")}),responseType:"blob"}).then(function(o){if(o){var a=new FileReader;a.readAsDataURL(o.data),a.onload=function(){var o=e.getImage();o.src=a.result,d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_STOPPED,{owner:"".concat(n).concat(c)}),{root:!0}),t.tsImages.push("T".concat(c)),t.loaded=!0,d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),V("cm_".concat(t.id),y,{params:r()({format:l["q"].TYPE_COLORMAP},-1!==c&&{locator:"T1(1){time=".concat(c,"}")})},function(e,n){e&&e.data&&(t.colormap=F(e.data)),n()})},a.onerror=function(e){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e}),{root:!0})}}}).catch(function(e){throw d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e.message}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),e})}}),e.abrupt("return",new O["a"]({id:w,source:M}));case 19:return 0===g.indexOf("LINESTRING")||0===g.indexOf("MULTILINESTRING")?(x=E["e"].LNE_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_LINES):0===g.indexOf("POINT")||0===g.indexOf("MULTIPOINT")?(x=Object(f["d"])(E["e"].POINT_OBSERVATION_SVG_PARAM,t.label),t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POINTS):(x=E["e"].POLYGON_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POLYGONS),k=new m["a"]({geometry:L,name:t.label,id:w}),U=new p["a"]({id:w,source:new T["a"]({features:[k]}),style:x}),e.abrupt("return",U);case 23:case"end":return e.stop()}},e)})),W.apply(this,arguments)}function G(e,t){d["a"].$app.sendStompMessage(e(t,d["a"].state.data.session).body)}var j=function(e){switch(e){case"FORTHCOMING":return{icon:"mdi-airplane-landing",tooltip:"forthcoming"};case"EXPERIMENTAL":return{icon:"mdi-flask-outline",tooltip:"experimental"};case"NEW":return{icon:"mdi-new-box",tooltip:"new"};case"STABLE":return{icon:"mdi-check-circle-outline",tooltip:"stable"};case"BETA":return{icon:"mdi-radioactive",tooltip:"beta"};default:return{}}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e.id===t?e:null};if(e&&null!==t){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.components&&i.components.length>0?e(null,i.components):r};return a(null,e)}return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return H(s()(e.panels).concat(s()(e.leftPanels),s()(e.rightPanels),[e.header,e.footer]).filter(function(e){return null!==e}),t,n)};function B(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;V("dw_".concat(e),"".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(e),{params:r()({format:t,outputFormat:o.value,adapter:o.adapter},-1!==a&&{locator:"T1(1){time=".concat(a,"}")}),responseType:"blob"},function(e,t){var a=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.href=a,i.setAttribute("download","".concat(n,".").concat(o.extension)),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(a),t()})}function K(e,t){var n=[Object.assign({},e)];return delete n[0][t],e[t]&&e[t].length>0?n.concat(e[t].map(function(e){return K(e,t)}).reduce(function(e,t){return e.concat(t)},[])):n}}).call(this,n("b639").Buffer)},be3b:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n("bc3a"),a=n.n(o),i=n("7cca"),r=a.a.create();t["b"]=function(e){var t=e.Vue,n=e.store;localStorage.getItem(i["u"].TOKEN)&&(r.defaults.headers.common.Authorization="Bearer ".concat(localStorage.getItem(i["u"].TOKEN))),console.debug(n.state.data.session),n.state.data.session?r.defaults.headers.common[i["r"].KLAB_AUTHORIZATION]=n.state.data.session:console.warn("No session established en axios header, check it"),n.state.data.token&&(r.defaults.headers.common.Authentication=n.state.data.token),t.prototype.$axios=r}},d247:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return i});n("0d6d"),Object.freeze({SEARCH_TYPES:[{enumId:"CONCEPT",name:"CONCEPT",color:"#ff0000"},{enumId:"OPERATOR",name:"OPERATOR",color:"#ffff00"},{enumId:"OBSERVATION",name:"OBSERVATION",color:"#ff00ff"},{enumId:"MODEL",name:"MODEL",color:"#0000ff"}]});var o=Object.freeze({CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_SEARCH:"Search",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_NOTIFICATION:"Notification",CLASS_RUN:"Run",TYPE_REGIONOFINTEREST:"RegionOfInterest",TYPE_FEATUREADDED:"FeatureAdded",TYPE_PERIODOFINTEREST:"PeriodOfInterest",TYPE_SUBMITSEARCH:"SubmitSearch",TYPE_MATCHACTION:"MatchAction",TYPE_REQUESTOBSERVATION:"RequestObservation",TYPE_RESETCONTEXT:"ResetContext",TYPE_RECONTEXTUALIZE:"Recontextualize",TYPE_TASKINTERRUPTED:"TaskInterrupted",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_DATAFLOWNODEDETAIL:"DataflowNodeDetail",TYPE_DATAFLOWNODERATING:"DataflowNodeRating",TYPE_CHANGESETTING:"ChangeSetting",TYPE_USERINPUTPROVIDED:"UserInputProvided",TYPE_WATCHOBSERVATION:"WatchObservation",TYPE_ENGINEEVENT:"EngineEvent",TYPE_VIEWACTION:"ViewAction",TYPE_RUNAPP:"RunApp",TYPE_CONSOLECREATED:"ConsoleCreated",TYPE_CONSOLECLOSED:"ConsoleClosed",TYPE_COMMANDREQUEST:"CommandRequest",PAYLOAD_CLASS_SPATIALEXTENT:"SpatialExtent",PAYLOAD_CLASS_SPATIALLOCATION:"SpatialLocation",PAYLOAD_CLASS_TEMPORALEXTENT:"TemporalExtent",PAYLOAD_CLASS_SEARCHREQUEST:"SearchRequest",PAYLOAD_CLASS_SEARCHMATCHACTION:"SearchMatchAction",PAYLOAD_CLASS_OBSERVATIONREQUEST:"ObservationRequest",PAYLOAD_CLASS_INTERRUPTTASK:"InterruptTask",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST:"ContextualizationRequest",PAYLOAD_CLASS_SETTINGCHANGEREQUEST:"SettingChangeRequest",PAYLOAD_CLASS_USERINPUTRESPONSE:"UserInputResponse",PAYLOAD_CLASS_WATCHREQUEST:"WatchRequest",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_MENUACTION:"MenuAction",PAYLOAD_CLASS_LOADAPPLICATIONREQUEST:"LoadApplicationRequest",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification"}),a=Object.freeze({CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_QUERY:"Query",CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_NOTIFICATION:"Notification",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_AUTHORIZATION:"Authorization",CLASS_VIEWACTOR:"ViewActor",TYPE_DATAFLOWCOMPILED:"DataflowCompiled",TYPE_DATAFLOWSTATECHANGED:"DataflowStateChanged",TYPE_DATAFLOWDOCUMENTATION:"DataflowDocumentation",TYPE_NEWOBSERVATION:"NewObservation",TYPE_MODIFIEDOBSERVATION:"ModifiedObservation",TYPE_QUERYRESULT:"QueryResult",TYPE_RESETCONTEXT:"ResetContext",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_USERINPUTREQUESTED:"UserInputRequested",TYPE_USERPROJECTOPENED:"UserProjectOpened",TYPE_PROJECTFILEMODIFIED:"ProjectFileModified",TYPE_SCHEDULINGSTARTED:"SchedulingStarted",TYPE_SCHEDULINGFINISHED:"SchedulingFinished",TYPE_NETWORKSTATUS:"NetworkStatus",TYPE_CREATEVIEWCOMPONENT:"CreateViewComponent",TYPE_SCHEDULEADVANCED:"ScheduleAdvanced",TYPE_ENGINEEVENT:"EngineEvent",TYPE_SETUPINTERFACE:"SetupInterface",TYPE_VIEWACTION:"ViewAction",TYPE_VIEWAVAILABLE:"ViewAvailable",TYPE_VIEWSETTING:"ViewSetting",TYPE_COMMANDRESPONSE:"CommandResponse",TYPE_DOCUMENTATIONCHANGED:"DocumentationChanged",TYPE_CREATEMODALWINDOW:"CreateModalWindow",TYPE_AUTHORITYDOCUMENTATION:"AuthorityDocumentation",TYPE_PROVENANCECHANGED:"ProvenanceChanged",TYPE_TASKSTARTED:"TaskStarted",TYPE_TASKFINISHED:"TaskFinished",TYPE_TASKABORTED:"TaskAborted",TYPE_DEBUG:"Debug",TYPE_INFO:"Info",TYPE_WARNING:"Warning",TYPE_ERROR:"Error",PAYLOAD_CLASS_TASKREFERENCE:"TaskReference",PAYLOAD_CLASS_CONTEXTUALIZATIONNOTIFICATION:"ContextualizationNotification",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_OBSERVATIONREFERENCE:"ObservationReference",PAYLOAD_CLASS_SEARCHRESPONSE:"SearchResponse",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_USERINPUTREQUEST:"UserInputRequest",PAYLOAD_CLASS_SCHEDULERNOTIFICATION:"SchedulerNotification",PAYLOAD_CLASS_NETWORKREFERENCE:"NetworkReference",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWCOMPONENT:"ViewComponent",PAYLOAD_CLASS_ENGINEEVENT:"EngineEvent",PAYLOAD_CLASS_LAYOUT:"Layout",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_VIEWSETTING:"ViewSetting",PAYLOAD_CLASS_KNOWLEDGEVIEWREFERENCE:"KnowledgeViewReference",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification",PAYLOAD_CLASS_DOCUMENTATIONEVENT:"DocumentationEvent"}),i=Object.freeze({REST_STATUS:"".concat("/modeler","/engine/status"),REST_SESSION_INFO:"".concat("/modeler","/engine/session/info"),REST_SESSION_VIEW:"".concat("/modeler","/engine/session/view/"),REST_SESSION_OBSERVATION:"".concat("/modeler","/engine/session/observation/"),REST_UPLOAD:"".concat("/modeler","/resource/put"),REST_GET_PROJECT_RESOURCE:"".concat("/modeler","/engine/project/resource/get"),REST_API_LOGOUT:"".concat("/modeler/api/v2","/users/log-out"),REST_API_EXPORT:"".concat("/modeler/api/v2","/public/export")})},e7d8:function(e,t,n){"use strict";var o=n("2b0e"),a=n("a925"),i={label:{appTitle:"k.LAB Explorer EN",appRunning:"Running on Quasar v{version}",appClose:"Close",appOK:"Ok",appAccept:"Accept",appYES:"Yes",appNO:"No",appCancel:"Cancel",appRetry:"Retry",appNext:"Next",appPrevious:"Previous",appWarning:"Warning",appPlay:"Play",appReplay:"Replay",appPause:"Pause",appReload:"Reload",appPrint:"Print",appSetDefault:"Set as default",klabNoMessage:"No message",klabUnknownError:"Unknown error",klabNoDate:"No date",klabMessagesToSend:"There are one message in queue",modalNoConnection:"No connection, please wait",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observation",reconnect:"Reconnect",unknownLabel:"Unknown",context:"context",noContext:"",noContextPlaceholder:"",contextShape:"context shape",noObservation:"No observations available",searchPlaceholder:"Search knowledge",fuzzySearchPlaceholder:"Free search",askForObservation:"Observing {urn}",noTokenDescription:"No description available",btnContextReset:"Reset context",contextReset:"Context reset",itemCounter:"{loaded} of {total}",logTab:"Log",treeTab:"Tree",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Space & time:",mcMenuContext:"Context",mcMenuOption:"Options",mcMenuSettings:"Settings",mcMenuHelp:"Help",showTutorial:"Show tutorial",showHelp:"Show help",refreshSize:"Refresh window size",titleOutputFormat:"Download observation",askForOuputFormat:"Select format",titleChangeScale:"Change {type} scale",askForNewScale:"Select new scale",resolutionLabel:"Resolution value",unitLabel:"Unit value",clickToEditScale:"Click to edit",clickToLock:"Click to lock scale",clickToUnlock:"Click to unlock scale",scaleLocked:"{type} scale locked",spaceScale:"Space",timeScale:"Time",unitCentimeter:"Centimeters",unitMeter:"Meters",unitKilometer:"Kilometers",unitMillennium:"Millennium",unitCentury:"Century",unitDecade:"Decade",unitYear:"Year",unitMonth:"Month",unitWeek:"Week",unitDay:"Day",unitHour:"Hour",unitMinute:"Minute",unitSecond:"Second",unitMillisecond:"Millisecond",timeOrigin:"Initial time",labelTimeStart:"Start time",labelTimeEnd:"End time",labelSpatial:"spatial",labelTemporal:"temporal",newContext:"New context",previousContexts:"Previous contexts",drawCustomContext:"Draw context",eraseCustomContext:"Erase custom context",addToCustomContext:"Add shape",drawPoint:"Point",drawLineString:"Line",drawPolygon:"Polygon",drawCircle:"Circle",optionShowAll:"Show all",optionSaveLocation:"Remember location",saveDockedStatus:"Remember docked status",noNodes:"No observations",loadShowData:"Load and show data",interactiveMode:"Interactive mode",noInputSectionTitle:"No section title",cancelInputRequest:"Cancel run",resetInputRequest:"Use defaults",submitInputRequest:"Submit",IDLAlertTitle:"Warning!",recontextualization:"Set as context",rememberDecision:"Don't show again",titleCommentResource:"Comment on resource",sendComment:"Send",noTimeSet:"Initial state",timeResolutionMultiplier:"Multiplier",months:{m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December"},removeProposedContext:"Remove context",levelDebug:"Debug",levelInfo:"Info",levelWarning:"Warning",levelError:"Error",levelEngineEvent:"Engine event",userDetails:"User details",unknownUser:"Unknown user",userId:"Id:",userEmail:"Email:",userLastLogin:"Last login:",userGroups:"Groups:",appsList:"Available apps",appsClose:"Close app",appsLogout:"Logout",reloadApplications:"Reload applications",noLayoutLabel:"No title",noLayoutDescription:"No description",kwTable:"Table",kwChart:"Chart",openTerminal:"Open terminal",openDebugger:"Open debugger",titleSelectTerminalSize:"Select terminal size",terminalDeleteHistory:"Delete history",terminalResizeWindow:"Resize terminal window",terminalMinimize:"Minimize terminal",terminalMaximize:"Maximize terminal",terminalClose:"Close terminal",noDocumentation:"No elements available for this view",tableDownloadAsXSLX:"Download table as .xslx",tableCopy:"Copy table to clipboard",resettingContext:"Resetting context",reportTable:"Table",reportFigure:"Figure",viewCoordinates:"Show coordinates"},messages:{connectionClosed:"Connection closed",connectionWorking:"Trying to reconnect",connectionUnknown:"Starting...",noSpaceAllowedInSearch:"Spaces cannot be used in the search box",noSearchResults:"No search results",noActionForObservation:"No actions available",noTime:"no time",emptyReport:'
Empty report
',noLoadedReport:"No report loaded",copiedToClipboard:"Copied to clipboard",customCopyToClipboard:"{what} copied to clipboard",changeScaleResolutionError:"Resolution must be positive",updateScale:"{type} scale updated",updateNextScale:"New {type} scale have been stored, press refresh to update",invalidGeometry:"Polygon is not valid",geolocationWaitingTitle:"Enable geolocation?",geolocationWaitingText:"k.Explorer can detect your current location to initialize the geographical viewer.
In order to do so, you need to authorize geolocation.
This is merely for your convenience and does not affect operation.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Geolocation has not been authorized",geolocationErrorPositionUnavailable:"Location information is unavailable",geolocationErrorTimeout:"A request to get the user location timed out",geolocationErrorUnknown:"An unknown error occurred",unknownSearchObservation:"Previous observations results",noLogItems:"Empty log",noLevelSelected:"No levels selected",uploadComplete:"Upload of file {fileName} complete",IDLAlertText:"Actual view crossing the International Date Line. A drawn context is needed",lastTermAlertText:"No more terms allowed",parenthesisAlertText:"You have open parenthesis",emptyFreeTextSearch:"Empty search is not allowed",fuzzyModeOff:"Free search off",fuzzyModeOn:"Free search on",treeNoResult:"No results",treeNoNodes:"No data",treeNoResultUser:"No main observations",treeNoResultUserWaiting:"Computing...",treeNoResultNoUser:"No observations",treeNoMainSummary:"Other observations",thankComment:"Comment has been sent",confirmRescaleContext:"The context will be recreate with new resolution.\nAre you sure?",loadingChildren:"Loading children...",waitingLocation:"Searching for {location}...",waitingObservationInit:"Initializing observation...",availableInFuture:"This feature will be available soon",timeEndBeforeTimeStart:"End time cannot be before start time",timeEndModified:"Multiplier is not used because the end time was manually changed",pressToChangeSpeed:"Press to play
Hold to change speed
Actual speed x{multiplier}",resourcesValidating:"Engine is busy",presentationBlocked:'

Can\'t access online help resources: check your network connection

A browser extension may also be interfering

',noAppsAvailable:"No available apps",noGroupsAssigned:"No groups assigned",appLoading:"Loading app {app}",errorLoadingApp:"Error loading app {app}",reloadApp:"Reload application",errorLoggingOut:"Error logging out, contact support",terminalHello:"Welcome to k.LAB {type}",noDocumentation:"No documentation available",confirmExitPage:"Data will be lost if you leave the page, are you sure?",tableCopied:"Table copied to clipboard",invalidSession:"Invalid session",sessionClosed:"Session closed by server",unknownSessionError:"Problem with session",youHaveGOT:"Winter is coming"},tooltips:{treePane:"View tree",showLogPane:"View log",hideLogPane:"Hide log",resetContext:"Reset context",interruptTask:"Interrupt task {taskDescription}",dataViewer:"View data",reportViewer:"View report",documentationViewer:"View documentation",scenarios:"Scenarios",observers:"Observers",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report not available,\nno observations",noDocumentation:"Documentation not available,\nno observations",noDataflow:"Dataflow not availble",noDataflowInfo:"No details",dataflowViewer:"View data flow",provenanceViewer:"View provenance (will be...)",undock:"Undock",copyEncodedShapeToClipboard:"Copy context shape to clipboard",cancelInputRequest:"Cancel run",resetInputRequest:"Use default values",submitInputRequest:"Submit values",displayMainTree:"Display main tree",hideMainTree:"Hide main tree",rateIt:"Rate resource",commentIt:"Comment on resource",refreshScale:"Refresh context with new scale(s)",clickToEdit:"Click to edit {type} scale",palette:"No palette",unknown:"To be decided",noKnowledgeViews:"No knowledge views",knowledgeViews:"Knowledge views",uploadData:"Upload data (forthcoming)"},errors:{connectionError:"Connection error",searchTimeout:"Search timeout",uploadError:"Upload error for the file {fileName}"},engineEventLabels:{evtResourceValidation:"Resource validation"},langName:"English"},r={label:{appTitle:"k.LAB Explorer ES",appRunning:"Ejecutándose sobre Quasar v{version}",appClose:"Cerrar",appOK:"Ok",appCancel:"Cancelar",appRetry:"Reintentar",appNext:"Siguiente",appPrevious:"Precedente",klabNoMessage:"No hay ningún mensaje",klabUnknownError:"Error desconocido",klabNoDate:"No hay fecha",klabMessagesToSend:"Hay un mensaje en la cola",modalNoConnection:"No hay conexión, esperar",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observaciones",reconnect:"Reconectar",unknownLabel:"Desconocido",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"No hay observaciones",searchPlaceholder:"Buscar in k.LAB",fuzzySearchPlaceholder:"Buscar",askForObservation:"Pidiendo {urn}",noTokenDescription:"No hay descripción",btnContextReset:"Resetear contexto",contextReset:"Contexto reseteado",itemCounter:"{loaded} de {total}",logTab:"Log",treeTab:"Árbol",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Espacio y tiempo:",mcMenuContext:"Contexto",mcMenuOption:"Optciones",titleOutputFormat:"Download observación",askForOuputFormat:"Seleccionar un formato",titleChangeScale:"Cambiar escala",askForNewScale:"Seleccionar nueva escala",resolutionLabel:"Valor de la escala",unitLabel:"Unidad de la escala",clickToEditScale:"Click para modificar",clickToLock:"Click para bloquear la escala",clickToUnlock:"Click para desbloquear la escala",scaleLocked:"{type} escala bloqueada",spaceScale:"Espacio",timeScale:"Tiempo",labelCm:"Centimetros",labelM:"Metros",labelKm:"Kilometros",labelSpatial:"espacial",labelTemporal:"temporal",newContext:"Nuevo contexto",previousContexts:"Contextos prévios",drawCustomContext:"Dibujar contexto",eraseCustomContext:"Borrar contexto",addToCustomContext:"Añadir shape",drawPoint:"Punto",drawLineString:"Línea",drawPolygon:"Polígono",drawCircle:"Circulo",optionShowAll:"Ver todas",optionSaveLocation:"Recordar posición",noNodes:"No results: is waiting?",loadShowData:"Cargar y visualizar datos",interactiveMode:"Modo interactivo",noInputSectionTitle:"No section title",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar defaults",submitInputRequest:"Enviar",IDLAlertTitle:"Cuidado!",recontextualization:"Fijar como contexto",rememberDecision:"Recordar mi elección"},messages:{connectionClosed:"Conexión cerrada",connectionWorking:"Intentando reconectar",connectionUnknown:"Inicializando...",noSpaceAllowedInSearch:"No está permitido utilizar espacios en la búsqueda",noSearchResults:"No hay resultados",noActionForObservation:"No hay acciones disponibles",noTime:"sin información",emptyReport:'',noLoadedReport:"No se ha cargado ningun report",copiedToClipboard:"Copiado",customCopyToClipboard:"{what} copiado",changeScaleResolutionError:"La resolución tiene que ser positiva",updateScale:"Actualizada la escala {type}, nuevo valor {resolution} {unit}",invalidGeometry:"Polígono no válido",geolocationWaitingTitle:"¿Habilitar la geolocalización?",geolocationWaitingText:"k.Explorer puede detectar tu posición actual para inicializar la vista geográfica.
Para hacer eso, hay que autorizar la geolocalización.
Esto es solamente por comodidad yno afecta a la operatividad.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"No se ha autorizado la geolocalización",geolocationErrorPositionUnavailable:"No hay información de posicionamiento",geolocationErrorTimeout:"Se ha superado el tiempo de espera para la geolocalización",geolocationErrorUnknown:"Ha habido un error desconocido",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Resultado de observaciones previas",noLogItems:"No hay elementos en el log",uploadComplete:"Upload del file {fileName} completado",IDLAlertText:"La selección actual cruza la IDL. Sólo está permitido en caso de dibujar un contexto",lastTermAlertText:"No están permitidos mas tokens",parenthesisAlertText:"Parentesis no balanceadas",emptyFreeTextSearch:"Búsqueda vacía",fuzzyModeOff:"Búsqueda libre desactivada",fuzzyModeOn:"Búsqueda libre activada",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Ver árbol",logPane:"Ver log",resetContext:"Reset context",interruptTask:"Interrumpir proceso {taskDescription}",dataViewer:"Ver datos",reportViewer:"Ver report",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report no disponibile,\nno hay observaciones",noDataflow:"Dataflow no disponible",dataflowViewer:"Ver data flow",provenanceViewer:"Ver provenance (will be...)",undock:"Desacoplar",copyEncodedShapeToClipboard:"Copiar el contexto en el portapapeles",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar default",submitInputRequest:"Enviar"},errors:{connectionError:"Error de conexión",searchTimeout:"Tiempo de busqueda terminado",uploadError:"Error durante el upload del file {fileName}"},langName:"Español"},c={label:{appTitle:"k.LAB Explorer IT",appRunning:"Esecutandosi con Quasar v{version}",appClose:"Chiudi",appOK:"Ok",appCancel:"Cancellare",appRetry:"Riprovare",appNext:"Successiva",appPrevious:"Precedente",klabNoMessage:"Nessun messaggio",klabUnknownError:"Errore sconosciuto",klabNoDate:"Nessuna data",klabMessagesToSend:"C'è un messaggio in coda",modalNoConnection:"Non c'è connessione",appFooter:"k.LAB Explorer - 2018",treeTitle:"Osservazioni",reconnect:"Riconnettere",unknownLabel:"Sconosciuto",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"Nessuna osservazione disponibile",searchPlaceholder:"Cerca in k.LAB",fuzzySearchPlaceholder:"Cerca",askForObservation:"Chiedendo {urn}",noTokenDescription:"Descrizione non disponibile",btnContextReset:"Resettare il contesto",contextReset:"Contesto resettato",itemCounter:"{loaded} di {total}",logTab:"Log",treeTab:"Albero",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Spazio e tempo",mcMenuContext:"Contesto",mcMenuOption:"Optziono",titleOutputFormat:"Download osservazione",askForOuputFormat:"Selezionare un formato",titleChangeScale:"Cambiare scala",askForNewScale:"Seleccionar la nueva escala",resolutionLabel:"Valore della scala",unitLabel:"Unità della scala",clickToEditScale:"Click per modificare",clickToLock:"Click per bloccare la scala",clickToUnlock:"Click per sbloccare la scala",scaleLocked:"{type} scala bloccata",spaceScale:"Spacio",timeScale:"Tempo",labelCm:"Centimetri",labelM:"Metri",labelKm:"Kilometri",labelSpatial:"spaziale",labelTemporal:"temporale",newContext:"Constesto nuovo",previousContexts:"Contesti precedenti",drawCustomContext:"Disegnare contesto",eraseCustomContext:"Eliminare contesto",addToCustomContext:"Aggiungere shape",drawPoint:"Punto",drawLineString:"Linea",drawPolygon:"Poligono",drawCircle:"Cerchio",optionShowAll:"Vedere tutte",optionSaveLocation:"Ricordare posizione",noNodes:"No results: is waiting?",loadShowData:"Caricare e visualizzare dati",interactiveMode:"Modo interattivo",noInputSectionTitle:"Sezione senza titolo",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare defaults",submitInputRequest:"Inviare",IDLAlertTitle:"Attenzione!",recontextualization:"Settare come contesto",rememberDecision:"Ricordare la mia decisione"},messages:{connectionClosed:"Connessione chiusa",connectionWorking:"Cercando di riconnettere",connectionUnknown:"Inizializzando...",noSpaceAllowedInSearch:"Non è permesso utilizare spazi nella ricerca",noSearchResults:"Non esistono risultati",noActionForObservation:"Nessuna azione disponibile",noTime:"senza informazione di ora",emptyReport:'',noLoadedReport:"Non si è caricato nessun report",copiedToClipboard:"Copiato",customCopyToClipboard:"{what} copiato",changeScaleResolutionError:"La risoluzione deve essere positiva",updateScale:"Attualizata la scala {type}, nuovo valore {resolution} {unit}",invalidGeometry:"Poligono non valido",geolocationWaitingTitle:"Attivare la geolocalizzazione?",geolocationWaitingText:"k.Explorer può detettare la posizione per inizializzare la vista geografica.
Perché questo sia possibile, è necessario autorizzare la geolocalizzazione.
Quest'ultimo è esclusivamente per comodità e non influenza l'operatività.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Non si ha autorizzato la geolocalizzazione",geolocationErrorPositionUnavailable:"Posizione non disponibile",geolocationErrorTimeout:"Terminato il tempo di attesa per la geolocalizzazione",geolocationErrorUnknown:"Errore imprevisto",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Risultato di osservazioni previe",noLogItems:"Il log è vuoto",uploadComplete:"Upload del file {fileName} completato",IDLAlertText:"La selezione attuale incrocia la IDL. per poterlo fare è necessario disegnare un contesto",lastTermAlertText:"Non sono permessi altri token",parenthesisAlertText:"Paretesi sbilanciate",emptyFreeTextSearch:"Ricerca vuota",fuzzyModeOff:"Ricerca libers disattivata",fuzzyModeOn:"Ricerca libera attivata",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Albero",logPane:"Log",resetContext:"Reset context",interruptTask:"Interrompere processo {taskDescription}",dataViewer:"Vedere dati",reportViewer:"Vedere report",noReportTask:"Report non disponibile,\naspettare",noReportObservation:"Report non disponibile,\nnon ci sono osservazioni",noDataflow:"Dataflow non disponible",dataflowViewer:"Vedere data flow (will be...)",provenanceViewer:"Vedere provenance (will be...)",undock:"Sganciare",copyEncodedShapeToClipboard:"Copia il contesto negli appunti",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare default",submitInputRequest:"Inviare"},errors:{connectionError:"Errore di connessione",searchTimeout:"Tempo di ricerca terminato",uploadError:"Errore durante l'upload del file {fileName}"},langName:"Italiano"},s={en:i,es:r,it:c},l=n("741d"),u=n("7cca");n.d(t,"b",function(){return E});var d=null;function E(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||null===d){o["a"].use(a["a"]);var t="en";l["a"].has(u["R"].COOKIE_LANG)?(t=l["a"].get(u["R"].COOKIE_LANG),console.debug("Locale set from cookie to ".concat(t))):(l["a"].set(u["R"].COOKIE_LANG,t,{expires:30,path:"/",secure:!0}),console.debug("Lang cookie set to ".concat(t))),d=new a["a"]({locale:t,fallbackLocale:"en",messages:s})}return d}t["a"]=function(e){var t=e.app;t.i18n=E()}},fb1c:function(e,t,n){}},[[0,"runtime","vendor"]]]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("2f39")},"034f":function(e,t,n){"use strict";var o=n("fb1c"),a=n.n(o);a.a},1:function(e,t){},1442:function(e,t,n){"use strict";n.d(t,"d",function(){return A}),n.d(t,"f",function(){return I}),n.d(t,"e",function(){return v}),n.d(t,"c",function(){return N}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return R});n("ac6a"),n("7514"),n("48c0"),n("6c7b");var o=n("7cca"),a=n("480c"),i=n("5043"),r=n("d0e9"),c=n("2ef1"),s=n("6c77"),l=n("83a6"),u=n("8682"),d=n("8295"),E=n("6cbf"),f=n("bcf0"),T=n("4cdf"),p=n("ddaa"),S=n("8f3a"),m=n("256f"),O="pk.eyJ1Ijoiay1sYWIiLCJhIjoiY2prd2d2dWNxMHlvcDNxcDVsY3FncDBydiJ9.zMQE3gu-0qPpkLapVfVhnA",b='© Mapbox © OpenStreetMap Improve this map',A={BING_KEY:"",COORD_BC3:[-2.968226,43.332125],PROJ_EPSG_4326:Object(m["g"])("EPSG:4326"),PROJ_EPSG_3857:Object(m["g"])("EPSG:3857"),ZINDEX_TOP:1e4,ZINDEX_BASE:1e3,ZINDEX_MULTIPLIER_RASTER:0,ZINDEX_MULTIPLIER_POLYGONS:1,ZINDEX_MULTIPLIER_LINES:2,ZINDEX_MULTIPLIER_POINTS:3,DEFAULT_BASELAYER:"osm_layer"},_={MARKER_SVG:function(e){var t=e.fill,n=void 0===t?"yellow":t,o=e.stroke,a=void 0===o?"black":o,i=e.strokeWidth,r=void 0===i?"5":i;return'\n ')}},I={POINT_OBSERVATION_ICON:new E["a"]({anchor:[.5,1],src:"statics/maps/marker.png",opacity:.8,scale:.6}),POINT_OBSERVATION_SVG_ICON:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;return new E["a"]({opacity:1,src:"data:image/svg+xml;utf8,".concat(_.MARKER_SVG(e)),scale:t})},POINT_OBSERVATION_TEXT:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.offsetY,n=void 0===t?25:t,o=e.bold,a=void 0!==o&&o,i=e.size,r=void 0===i?"10px":i;return new d["a"]({textAlign:"center",textBaseline:"bottom",offsetY:n,font:"".concat(a?"bold":"normal"," ").concat(r," Roboto, sans-serif")})}},v={POLYGON_CONTEXT_STYLE:new s["c"]({fill:new l["a"]({color:"rgba(38, 166, 154, 0.2)"})}),POLYGON_PROPOSED_CONTEXT:new s["c"]({fill:new l["a"]({color:"rgba(255,255,255,0.5)"}),stroke:new f["a"]({width:8,pattern:"hatch",color:"#3187ca",offset:0,scale:.75,fill:new l["a"]({color:"#FFFFFF"}),size:2,spacing:5,angle:45})}),POLYGON_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2}),fill:new l["a"]({color:"rgba(255, 102, 0, 0.2)"})}),LNE_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2})}),POINT_OBSERVATION_SVG_PARAM:{fill:o["e"].MAIN_COLOR,stroke:"rgb(51,51,51)",strokeWidth:"4",scale:.3},POINT_CONTEXT_SVG_PARAM:{fill:"rgb(17, 170, 187)",stroke:"rgb(51,51,51)",strokeWidth:"5",scale:.5,offsetY:35,bold:!0,size:"14px"}},N={OSM_LAYER:new a["a"]({name:"osm_layer",title:"OpenStreetMap",type:"base",source:new r["a"]({attributions:'Map credits ©\n OSM\n contributors.'}),visible:!1}),CLEARMAP_TOPO_LAYER:new a["a"]({name:"clearmap_topo_layer",title:"UN Clear Map",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebTopo/MapServer/export"}),visible:!1}),CLEARMAP_PLAIN_LAYER:new a["a"]({name:"clearmap_plain_layer",title:"UN Clear Map Plain",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebPlain/MapServer/export"}),visible:!1}),CLEARMAP_DARK_LAYER:new a["a"]({name:"clearmap_dark_layer",title:"UN Clear Map Dark",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebDark/MapServer/export"}),visible:!1}),CLEARMAP_GRAY_LAYER:new a["a"]({name:"clearmap_gray_layer",title:"UN Clear Map Gray",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebGray/MapServer/export"}),visible:!1}),GOOGLE_HYBRID:new a["a"]({name:"google_hybrid",title:"Google Hybrid",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_STREET:new a["a"]({name:"google_street",title:"Google Street",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_TERRAIN:new a["a"]({name:"google_terrain",title:"Google Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://mt{0-3}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),MAPBOX_CALI_TERRAIN:new a["a"]({name:"mapbox_cali_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjkwh1z9z06ok2rrn9unfpn2n/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_MINIMO:new a["a"]({name:"mapbox_minimo",title:"Mapbox Minimo",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjm0l6i4g7ffj2sqk7xy5dv1m/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_TERRAIN:new a["a"]({name:"mapbox_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",format:"pbf",url:"https://api.mapbox.com/styles/v1/k-lab/cl1dgarpr005f15ntep34yq88/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_GOT:new a["a"]({name:"mapbox_got",title:"k.LAB Mapbox GOT",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjuihteg13toh1fmovvd6r80y/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),EMPTY_LAYER:new a["a"]({name:"empty_layer",title:"No background",type:"base",visible:!1})},h={controls:S["a"]({attribution:!1}).extend([]),target:"map",projection:A.PROJ_EPSG_4326,center:Object(m["l"])(A.COORD_BC3,A.PROJ_EPSG_4326,A.PROJ_EPSG_3857),zoom:13},R={layers:[N.EMPTY_LAYER,N.CLEARMAP_TOPO_LAYER,N.MAPBOX_MINIMO,N.MAPBOX_TERRAIN,N.OSM_LAYER],mask:null,hasMask:function(){return null!==this.mask},getBaseLayer:function(){return this.layers.find(function(e){return"base"===e.get("type")&&e.getVisible()})},setMask:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[38,38,38,.4];null!==this.mask&&this.removeMask(),this.mask=new p["a"]({feature:new T["a"]({geometry:e,name:"Context"}),inner:!1,active:!0,fill:new l["a"]({color:n})}),this.layers.forEach(function(e){e.addFilter(t.mask)})},removeMask:function(){var e=this;null!==this.mask&&this.layers.forEach(function(t){t.removeFilter(e.mask)}),this.mask=null}}},"17dc":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("ac6a"),n("cadf"),n("6b54"),n("c5f6");var o=n("3156"),a=n.n(o),i=n("278c"),r=n.n(i),c=n("2369"),s=n("c1df"),l=n.n(s),u=n("d247");function d(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=n!==u["b"].PAYLOAD_CLASS_EMPTY?c["b"].validateJsonSchema(o,n):o;return{validated:r,body:{messageClass:e,type:t,payloadClass:n,payload:o,identity:a,timestamp:l()().valueOf(),inResponseTo:i}}}var E={SPATIAL_EXTENT:function(e){var t=r()(e,4),n=t[0],o=t[1],a=t[2],i=t[3];return{south:o,west:n,north:i,east:a}}},f={REGION_OF_INTEREST:function(e,t){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_REGIONOFINTEREST,u["b"].PAYLOAD_CLASS_SPATIALEXTENT,E.SPATIAL_EXTENT(e),t)},SEARCH_REQUEST:function(e,t){var n=e.queryString,o=e.searchMode,i=e.requestId,r=e.contextId,c=void 0===r?null:r,s=e.matchTypes,l=void 0===s?null:s,E=e.cancelSearch,f=void 0!==E&&E,T=e.defaultResults,p=void 0!==T&&T,S=e.maxResults;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_SUBMITSEARCH,u["b"].PAYLOAD_CLASS_SEARCHREQUEST,a()({},null!==c&&{contextId:c},null!==l&&{matchTypes:l},{queryString:n,searchMode:o,requestId:i,cancelSearch:f,defaultResults:p,maxResults:S}),t)},SEARCH_MATCH:function(e,t){var n=e.contextId,o=e.matchId,a=e.matchIndex,i=e.added;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_MATCHACTION,u["b"].PAYLOAD_CLASS_SEARCHMATCHACTION,{contextId:n,matchId:o,matchIndex:a,added:i},t)},OBSERVATION_REQUEST:function(e,t){var n=e.urn,o=e.contextId,i=e.searchContextId,r=void 0===i?null:i,c=e.estimate,s=void 0!==c&&c,l=e.estimatedCost,E=void 0===l?0:l;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_REQUESTOBSERVATION,u["b"].PAYLOAD_CLASS_OBSERVATIONREQUEST,a()({urn:n},null!==o&&{contextId:o},null!==r&&{searchContextId:r},{estimate:s,estimatedCost:E}),t)},RESET_CONTEXT:function(e){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_RESETCONTEXT,u["b"].PAYLOAD_CLASS_EMPTY,"",e)},CONTEXTUALIZATION_REQUEST:function(e,t){var n=e.contextUrn,o=e.contextId,i=e.parentContext,r=e.contextQuery;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_RECONTEXTUALIZE,u["b"].PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST,a()({},"undefined"!==typeof n&&{contextUrn:n},"undefined"!==typeof o&&{contextId:o},"undefined"!==typeof i&&{parentContext:i},"undefined"!==typeof r&&{contextQuery:r}),t)},TASK_INTERRUPTED:function(e,t){var n=e.taskId,o=e.forceInterruption,a=void 0===o||o;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_TASKINTERRUPTED,u["b"].PAYLOAD_CLASS_INTERRUPTTASK,{taskId:n,forceInterruption:a},t)},SCALE_REFERENCE:function(e,t){var n=e.scaleReference,o=e.spaceResolution,i=e.spaceUnit,r=e.timeResolutionMultiplier,c=e.timeUnit,s=e.start,l=e.end,E=e.timeResolutionDescription,f=void 0===E?"":E,T=e.contextId,p=void 0===T?"":T,S=e.shape,m=void 0===S?"":S,O=e.timeType,b=void 0===O?"":O,A=e.timeGeometry,_=void 0===A?"":A,I=e.spaceGeometry,v=void 0===I?"":I;return d(u["b"].CLASS_USERCONTEXTDEFINITION,u["b"].TYPE_SCALEDEFINED,u["b"].PAYLOAD_CLASS_SCALEREFERENCE,a()({},n,{name:"",contextId:p,shape:m,timeType:b,timeGeometry:_,spaceGeometry:v,timeResolutionDescription:null===f?"":f},"undefined"!==typeof o&&{spaceResolution:o},"undefined"!==typeof i&&{spaceUnit:i},"undefined"!==typeof r&&{timeResolutionMultiplier:r},"undefined"!==typeof c&&{timeUnit:c},"undefined"!==typeof s&&{start:s},"undefined"!==typeof l&&{end:l}),t)},SPATIAL_LOCATION:function(e,t){var n=e.wktShape,o=e.contextId,i=void 0===o?null:o;return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_FEATUREADDED,u["b"].PAYLOAD_CLASS_SPATIALLOCATION,a()({easting:Number.MIN_VALUE,northing:Number.MIN_VALUE,wktShape:n},null!==i&&{contextId:i}),t)},DATAFLOW_NODE_DETAILS:function(e,t){var n=e.nodeId,o=e.contextId;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODEDETAIL,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,{nodeId:n,monitorable:!1,rating:-1,progress:0,contextId:o},t)},DATAFLOW_NODE_RATING:function(e,t){var n=e.nodeId,o=e.contextId,i=e.rating,r=e.comment,c=void 0===r?null:r;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODERATING,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,a()({nodeId:n,monitorable:!1,progress:0,rating:i},null!==c&&{comment:c},{contextId:o}),t)},SETTING_CHANGE_REQUEST:function(e,t){var n=e.setting,o=e.value;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CHANGESETTING,u["b"].PAYLOAD_CLASS_SETTINGCHANGEREQUEST,{setting:n,previousValue:(!o).toString(),newValue:o.toString()},t)},USER_INPUT_RESPONSE:function(e,t){var n=e.messageId,o=e.requestId,a=e.cancelRun,i=void 0!==a&&a,r=e.values,c=void 0===r?{}:r;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_USERINPUTPROVIDED,u["b"].PAYLOAD_CLASS_USERINPUTRESPONSE,{requestId:o,cancelRun:i,values:c},t,n)},WATCH_REQUEST:function(e,t){var n=e.active,o=e.eventType,i=e.observationId,r=e.rootContextId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_WATCHOBSERVATION,u["b"].PAYLOAD_CLASS_WATCHREQUEST,a()({active:n,observationId:i,rootContextId:r},o&&{eventType:o}),t)},WATCH_ENGINE_EVENT:function(e,t){var n=e.active,o=e.eventType;return d(u["b"].CLASS_NOTIFICATION,u["b"].TYPE_ENGINEEVENT,u["b"].PAYLOAD_CLASS_WATCHREQUEST,{active:n,eventType:o},t)},VIEW_ACTION:function(e,t){var n=e.component,o=e.componentTag,a=void 0===o?null:o,i=e.applicationId,r=void 0===i?null:i,c=e.booleanValue,s=void 0===c?null:c,l=e.doubleValue,E=void 0===l?null:l,f=e.intValue,T=void 0===f?null:f,p=e.stringValue,S=void 0===p?null:p,m=e.listValue,O=void 0===m?[]:m,b=e.dateValue,A=void 0===b?null:b,_=e.data,I=void 0===_?null:_;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_VIEWACTION,{component:n,componentTag:a,applicationId:r,booleanValue:s,doubleValue:E,intValue:T,stringValue:S,listValue:O,dateValue:A,data:I},t)},MENU_ACTION:function(e,t){var n=e.identity,o=e.applicationId,a=e.menuId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_MENUACTION,{identity:n,applicationId:o,menuId:a},t)},RUN_APPLICATION:function(e,t){var n=e.applicationId,o=e.test,a=void 0!==o&&o,i=e.stop,r=void 0!==i&&i;return d(u["b"].CLASS_RUN,u["b"].TYPE_RUNAPP,u["b"].PAYLOAD_CLASS_LOADAPPLICATIONREQUEST,{behavior:n,test:a,stop:r,parameters:{}},t)},CONSOLE_CREATED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECREATED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},CONSOLE_CLOSED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECLOSED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},COMMAND_REQUEST:function(e,t){var n=e.consoleId,o=e.consoleType,a=e.commandId,i=e.payload;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_COMMANDREQUEST,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o,commandId:a,payload:i},t)}}},"1e5d":function(e,t,n){},2369:function(e,t,n){"use strict";var o=n("278c"),a=n.n(o),i=(n("ffc1"),n("ac6a"),n("cadf"),n("456d"),n("7037")),r=n.n(i),c=n("970b"),s=n.n(c),l=n("5bc30"),u=n.n(l),d=n("be3b"),E=n("3b1b6"),f=n.n(E),T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{draft:"draft-04"};if(s()(this,e),void 0===t||""===t)throw Error("URL is mandatory");this.djvEnv=new f.a({version:n.draft}),this.initialized=!1,this.url=t,this.initTimeout=null,console.debug("Load schema(s) on creation"),this.initTimeout=setTimeout(this.init(t),2e3)}return u()(e,[{key:"validateJsonSchema",value:function(e,t){if(!this.initialized)return console.info("djvEnv not ready"),!1;if(this.djvEnv.resolve(t)){var n=this.djvEnv.validate(t,e);if("undefined"===typeof n)return!0;if("$ref"===n.keyword)return!0;throw Error(n)}throw Error("Schema not found: ".concat(t))}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;this.initialized||d["a"].get(t,{}).then(function(n){var o=n.data;if("object"!==r()(o))throw Error("Error asking for JsonSchema(s): no data");if(0===Object.keys(o).length)throw Error("Schema on url ".concat(t," is empty, check it"));for(var i=Object.entries(o),c=0;c-1))&&(a.splice(o,1),this.listeners.set(e,a),!0)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ze()(this,e),!t)throw new Error("Connection url is needed");this.connectionUrl=t,this.connectionHeaders=n;var a=o.stompOptions,i=void 0===a?{debug:!1}:a,r=o.sockJSOptions,c=void 0===r?{}:r,s=o.reconnection,l=void 0!==s&&s,u=o.reconnectionAttempts,d=void 0===u?1/0:u,E=o.reconnectionDelay,f=void 0===E?2e3:E,T=o.debug,p=void 0!==T&&T,S=o.store,m=void 0===S?null:S,O=o.storeNS,b=void 0===O?"":O;this.reconnection=l,this.reconnectionAttempts=d,this.reconnectionDelay=f,this.hasDebug=p,this.reconnectTimeoutId=-1,this.reconnectionCount=0,"undefined"!==typeof m&&null!==m&&(this.store=m,this.storeNS=b),this.stompOptions=i,this.sockJSOptions=c,this.connect()}return Ke()(e,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).debug.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=Xe()(this.connectionUrl,{},this.sockJSOptions);t.protocol=this.stompOptions.protocol||"",this.StompClient=Je.a.over(t,this.stompOptions),this.StompClient.connect(this.connectionHeaders,function(t){e.doOnEvent("onconnect",t)},function(t){return setTimeout(function(){e.doOnEvent("onerror",t)},1e3)})}},{key:"isConnected",value:function(){return this.StompClient&&this.StompClient.connected}},{key:"reconnect",value:function(){var e=this;this.reconnectionCount<=this.reconnectionAttempts?(this.reconnectionCount+=1,clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout(function(){e.doOnEvent("reconnect",e.reconnectionCount),e.connect()},this.reconnectionDelay)):this.store&&this.passToStore("stomp_onerror","Reconnection error")}},{key:"subscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){t.doOnEvent("onmessage",e)};if(e){var a=this.StompClient.subscribe(e,o,n);if(a)return this.doOnEvent("onsubscribe",a),a}return null}},{key:"unsubscribe",value:function(e,t){this.StompClient.unsubscribe(e,t)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isConnected()?(this.StompClient.send(e,JSON.stringify(t),n),this.doOnEvent("onsend",{headers:n,message:t}),!0):(this.doOnEvent("onerrorsend",{headers:n,message:t}),!1)}},{key:"doOnEvent",value:function(e,t){Ze.emit(e,t)||this.debug("No listener for ".concat(e)),this.store&&this.passToStore("stomp_".concat(e),t),this.reconnection&&"onoconnect"===e&&(this.reconnectionCount=0),this.reconnection&&"onerror"===e&&this.reconnect()}},{key:"passToStore",value:function(e,t){if(e.startsWith("stomp_")){var n="dispatch",o=[this.storeNS||"",e.toLowerCase()].filter(function(e){return!!e}).join("/"),a=t||null;t&&t.data&&(a=JSON.parse(t.data),a.mutation?o=[a.namespace||"",a.mutation].filter(function(e){return!!e}).join("/"):a.action&&(n="dispatch",o=[a.namespace||"",a.action].filter(function(e){return!!e}).join("/"))),this.store[n](o,a)}}},{key:"close",value:function(){this.StompClient&&(this.StompClient.disconnect(),this.doOnEvent("onclose")),this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId)}}]),e}(),tt={install:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new Error("[vue-stomp-client] cannot locate connection");var a=null;o.connectManually?(e.prototype.$connect=function(){a=new et(t,n,o),e.prototype.$stompClient=a.StompClient},e.prototype.$disconnect=function(){a&&a.reconnection&&(a.reconnection=!1),e.prototype.$stompClient&&(a.close(),delete e.prototype.$stompClient)}):(a=new et(t,n,o),e.prototype.$stompClient=a.StompClient),e.mixin({methods:{sendStompMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.defaultMessageDestination;a.send(n,e,t)?console.debug("Message sent: ".concat(JSON.stringify(e,null,4))):console.debug("Message not sent, still no connected:\n".concat(JSON.stringify(e,null,4)))},subscribe:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultSubscribeDestination;return a.subscribe("".concat(i,"/").concat(e),t,n)},unsubscribe:function(e){a.unsubscribe(e),console.debug("Unsubscribe the subscription with id ".concat(e))},reconnect:function(){a.StompClient&&!a.StompClient.connected&&(console.debug("Try to reconnect..."),a.reconnect())},disconnect:function(){a&&a.reconnection&&(a.reconnection=!1),a.close()}},created:function(){var e=this;if(this.$options.sockets){var t=this,n=this.$options.sockets;this.$options.sockets=new Proxy({},{set:function(e,n,o){return Ze.addListener(n,o,t),e[n]=o,!0},deleteProperty:function(e,n){return Ze.removeListener(n,t.$options.sockets[n],t),delete e.key,!0}}),n&&Object.keys(n).forEach(function(t){e.$options.sockets[t]=n[t]})}},beforeDestroy:function(){var e=this;if(this.$options.sockets){var t=this.$options.sockets;t&&Object.keys(t).forEach(function(t){console.debug("Remove listener ".concat(t)),Ze.removeListener(t,e.$options.sockets[t],e),delete e.$options.sockets[t]})}}})}},nt=function(e){var t=e.Vue,n=e.store,o=new URLSearchParams(window.location.search).get(Ie["R"].PARAMS_STOMP_DEBUG),a=!1;"true"===o&&(a=!0),t.use(tt,"/modeler/message",{},{stompOptions:{debug:a,protocol:"v12.stomp"},store:n,storeNS:"stomp",reconnection:!0,reconnectionAttempts:5,debug:a,defaultMessageDestination:"/klab/message",defaultSubscribeDestination:"/message"})},ot=De(),at=ot.app,it=ot.store,rt=ot.router;[Me["a"],xe["b"],We,Ge["a"],je["a"],nt].forEach(function(e){e({app:at,router:rt,store:it,Vue:o["a"],ssrContext:null})}),new o["a"](at)},4360:function(e,t,n){"use strict";var o,a=n("2b0e"),i=n("2f62"),r=(n("ac6a"),n("cadf"),n("f400"),n("7cca")),c=n("d247"),s={kexplorerLog:[],statusTexts:[],klabLog:[],dataViewers:[],mainDataViewerIdx:0,lastViewerId:0,mainViewer:void 0,treeVisible:!0,leftMenuContent:null,leftMenuState:r["w"].LEFTMENU_HIDDEN,mainControlDocked:!1,contextGeometry:null,spinner:r["J"].SPINNER_STOPPED,spinnerOwners:[],searchActive:!1,searchFocus:!1,searchLostChar:"",searchHistory:[],searchInApp:!1,flowchartSelected:r["g"].GRAPH_DATAFLOW,dataflowInfoOpen:!1,observationInfo:null,mapSelection:r["g"].EMPTY_MAP_SELECTION,exploreMapMode:!1,treeSelected:null,treeTicked:[],treeExpanded:[],topLayer:null,scaleEditing:{active:!1,type:null},drawMode:!1,customContext:!1,saveLocation:!0,saveDockedStatus:!1,modalMode:!1,inputRequests:[],waitingGeolocation:!0,helpShown:!1,modalSize:r["s"].DEFAULT_MODAL_SIZE,fuzzyMode:!1,largeMode:0,helpBaseUrl:null,timeRunning:!1,layout:null,windowSide:"left",dialogs:[],modalWindow:null,engineEvents:[],klabApp:null,levels:[c["a"].TYPE_INFO,c["a"].TYPE_WARNING,c["a"].TYPE_ERROR],showSettings:!0,notificationsParams:null,reloadViews:[],documentationView:r["n"].REPORT,documentationSelected:null,documentationCache:new Map,tableFontSize:12,textFontSize:10,viewCoordinates:!0},l=(n("7514"),n("7f7f"),n("6762"),n("2fdb"),n("448a")),u=n.n(l),d=n("b12a"),E=n("b0b2"),f={kexplorerLog:function(e){return e.kexplorerLog},lastKexplorerLog:function(e){return function(t){return Object(d["o"])(e.kexplorerLog,t)}},klabLog:function(e){return e.klabLog},lastKlabLog:function(e){return function(t){return Object(d["o"])(e.klabLog,t)}},klabLogReversedAndFiltered:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.klabLog.length)return[];var n=u()(e.klabLog).reverse();return 0===t.length?n:n.filter(function(e){return t.includes(e.type)})}},levels:function(e){return e.levels},statusTexts:function(e){return e.statusTexts},statusTextsLength:function(e){return e.statusTexts.length},statusTextsString:function(e){return e.statusTexts.length>0?e.statusTexts.map(function(e){return e.text}).join(" - "):""},mainViewer:function(e){return e.mainViewer},mainViewerName:function(e){return e.mainViewer?e.mainViewer.name:null},isTreeVisible:function(e){return e.treeVisible},leftMenuContent:function(e){return e.leftMenuContent},leftMenuState:function(e){return e.leftMenuState},isDocked:function(e){return e.leftMenuState!==r["w"].LEFTMENU_HIDDEN},hasMainControl:function(e){return e.mainViewer&&e.mainViewer.mainControl},isMainControlDocked:function(e){return e.mainControlDocked},admitSearch:function(e){return e.mainViewer&&e.mainViewer.hasSearch},contextGeometry:function(e){return e.contextGeometry},dataViewers:function(e){return e.dataViewers},mainDataViewer:function(e){return e.dataViewers.find(function(e){return e.main})},mainDataViewerIdx:function(e){return e.mainDataViewerIdx},lastViewerId:function(e){return e.lastViewerId},viewer:function(e){return function(t){return e.dataViewers.length>0?e.dataViewers.find(function(e){return e.idx===t}):null}},spinnerIsAnimated:function(e){return e.spinner.animated},spinner:function(e){return e.spinner},spinnerOwners:function(e){return e.spinnerOwners},spinnerColor:function(e){return"undefined"!==e.spinner&&null!==e.spinner?Object(E["e"])(e.spinner.color):null},spinnerErrorMessage:function(e){return"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null},searchIsActive:function(e){return e.searchActive},searchIsFocused:function(e){return e.searchFocus},searchLostChar:function(e){return e.searchLostChar},searchHistory:function(e){return e.searchHistory},searchInApp:function(e){return e.searchInApp},flowchartSelected:function(e){return e.flowchartSelected},dataflowInfoOpen:function(e){return e.dataflowInfoOpen},observationInfo:function(e){return e.observationInfo},mapSelection:function(e){return e.mapSelection},hasObservationInfo:function(e){return null!==e.observationInfo},exploreMode:function(e){return!!(null!==e.observationInfo&&Object(d["n"])(e.observationInfo)&&e.observationInfo.dataSummary.histogram.length>0&&e.observationInfo.visible&&e.observationInfo.top)},isScaleEditing:function(e){return e.scaleEditing.active},scaleEditingType:function(e){return e.scaleEditing.type},isDrawMode:function(e){return e.drawMode},hasCustomContext:function(e){return e.customContext},topLayer:function(e){return e.topLayer},topLayerId:function(e){return null!==e.topLayer?e.topLayer.id:null},inputRequests:function(e){return e.inputRequests},hasInputRequests:function(e){return 0!==e.inputRequests.length},isInModalMode:function(e){return e.modalMode},isHelpShown:function(e){return e.helpShown},modalSize:function(e){return e.modalSize},fuzzyMode:function(e){return e.fuzzyMode},largeMode:function(e){return e.largeMode},isTimeRunning:function(e){return e.timeRunning},layout:function(e){return e.layout},appStyle:function(e){return e.layout.style||"default"},modalWindow:function(e){return e.modalWindow},hasHeader:function(e){return e.layout&&(e.layout.header||e.layout.logo||e.layout.label||e.layout.description)},windowSide:function(e){return e.windowSide},isApp:function(e){return null!==e.klabApp},klabApp:function(e){return e.klabApp},activeDialogs:function(e){return e.dialogs.filter(function(e){return!e.dismiss})},engineEvents:function(e){return e.engineEvents},engineEventsCount:function(e){return e.engineEvents.length},hasShowSettings:function(e){return e.showSettings},notificationsParams:function(e){return e.notificationsParams},reloadViews:function(e){return e.reloadViews},documentationView:function(e){return e.documentationView},documentationSelected:function(e){return e.documentationSelected},documentationCache:function(e){return e.documentationCache},tableFontSize:function(e){return e.tableFontSize},textFontSize:function(e){return e.textFontSize},viewCoordinates:function(e){return e.viewCoordinates}},T=(n("f751"),n("3156")),p=n.n(T),S=(n("20d6"),n("741d")),m={ADD_TO_KEXPLORER_LOG:function(e,t){Object(d["p"])(e.kexplorerLog,t)},ADD_TO_KLAB_LOG:function(e,t){Object(d["p"])(e.klabLog,t)},SET_LEVELS:function(e,t){t&&(e.levels=t)},TOGGLE_LEVEL:function(e,t){var n=e.levels.indexOf(t);-1===n?e.levels.push(t):e.levels.splice(n,1)},ADD_TO_STATUS_TEXTS:function(e,t){var n=t.id,o=t.text;e.statusTexts.push({id:n,text:o})},REMOVE_FROM_STATUS_TEXTS:function(e,t){var n=e.statusTexts.findIndex(function(e){return e.id===t});-1!==n&&e.statusTexts.splice(n,1)},SET_CONTEXT_LAYER:function(e,t){e.dataViewers.splice(0,e.dataViewers.length),e.lastViewerId=0,e.contextGeometry=t,e.treeExpanded=[],e.treeTicked=[],e.statusTexts=[],e.treeSelected=null,e.topLayer=null,e.reloadViews.splice(0,e.reloadViews.length),e.documentationSelected=null,e.modalWindow=null},SET_MAIN_VIEWER:function(e,t){e.mainViewer=t},SET_TREE_VISIBLE:function(e,t){e.treeVisible=t},SET_LEFTMENU_CONTENT:function(e,t){e.leftMenuContent=t},SET_LEFTMENU_STATE:function(e,t){e.leftMenuState=t},SET_MAIN_DATA_VIEWER:function(e,t){var n=t.viewerIdx,o=t.visible;if(o)e.dataViewers.forEach(function(t){t.idx===n?(t.main=!0,e.mainDataViewerIdx=n):t.main=!1,t.visible=!t.type.hideable||t.idx===n||t.visible});else{var a=!1;e.dataViewers.forEach(function(t){a||t.type.hideable&&!t.visible?(t.main=!1,t.type.hideable&&t.idx===n&&(t.visible=!1)):(t.main=!0,e.mainDataViewerIdx=t.idx,a=!0)})}},RESET_MAIN_DATA_VIEWER:function(e){e.dataViewer=[],e.mainDataViewerIdx=0},SET_SAVE_DOCKED_STATUS:function(e,t){e.saveDockedStatus=t},SET_MAIN_CONTROL_DOCKED:function(e,t){e.mainControlDocked=t,e.saveDockedStatus&&S["a"].set(r["R"].COOKIE_DOCKED_STATUS,t,{expires:30,path:"/",secure:!0})},ADD_VIEWER_ELEMENT:function(e,t){var n=t.main,o=t.type,a=t.label,i=t.visible,r=t.callback;0===e.lastViewerId?n=!0:!0===n&&e.dataViewers.forEach(function(e){e.main=!1}),e.lastViewerId+=1,e.dataViewers.push({idx:e.lastViewerId,main:n,type:o,label:a,visible:i,observations:[]}),"function"===typeof r&&r(e.lastViewerId)},SET_SPINNER_ANIMATED:function(e,t){e.spinner.animated=t},SET_SPINNER_COLOR:function(e,t){e.spinner.color=t},SET_SPINNER:function(e,t){var n=t.animated,o=t.color,a=t.errorMessage,i=void 0===a?null:a;e.spinner={animated:n,color:o,errorMessage:i}},ADD_TO_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1===n&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1!==n&&e.spinnerOwners.splice(n,1)},SEARCH_ACTIVE:function(e,t){var n=t.active,o=t.char,a=void 0===o?"":o;e.searchActive!==n&&(e.searchLostChar=a,e.searchActive=n)},SEARCH_FOCUS:function(e,t){var n=t.focused,o=t.char,a=void 0===o?"":o;e.searchFocus!==n&&(e.searchLostChar=a,e.searchFocus=n)},SEARCH_INAPP:function(e,t){e.searchInApp=t},RESET_SEARCH_LOST_CHAR:function(e){e.searchLostChar=""},RESET_SEARCH:function(e){e.searchActive=!1,e.searchFocus=!1,e.searchLostChar=""},STORE_SEARCH:function(e,t){e.searchHistory.unshift(t)},SET_FLOWCHART_SELECTED:function(e,t){e.flowchartSelected=t},SET_DATAFLOW_INFO_OPEN:function(e,t){e.dataflowInfoOpen=t},SET_OBSERVATION_INFO:function(e,t){null===t?(e.treeSelected=null,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.observationInfo=null):null!==e.observationInfo&&t.id===e.observationInfo.id||(e.observationInfo=t,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.treeSelected=t.id)},SET_MAP_SELECTION:function(e,t){var n=t.pixelSelected,o=t.layerSelected,a=t.value,i=void 0===a?null:a,c=t.locked,s=void 0!==c&&c;e.mapSelection=null===t||null===n?r["g"].EMPTY_MAP_SELECTION:{pixelSelected:n,layerSelected:o,value:i,locked:s}},SET_SCALE_EDITING:function(e,t){var n=t.active,o=t.type;e.scaleEditing={active:n,type:o}},SET_DRAW_MODE:function(e,t){e.drawMode=t},SET_CUSTOM_CONTEXT:function(e,t){e.customContext=t},SET_SAVE_LOCATION:function(e,t){e.saveLocation=t},SET_TOP_LAYER:function(e,t){e.topLayer=t},SET_MODAL_MODE:function(e,t){e.modalMode=t},SET_INPUT_REQUEST:function(e,t){var n=t.payload,o=t.id;e.inputRequests.push(p()({messageId:o},n))},REMOVE_INPUT_REQUEST:function(e,t){if(e.inputRequests.length>0)if(null===t)e.inputRequests.splice(0,e.inputRequests.length);else{var n=e.inputRequests.findIndex(function(e){return e.messageId===t});-1!==n&&e.inputRequests.splice(n,1)}},SET_MODAL_SIZE:function(e,t){var n=t.width,o=t.height;e.modalSize={width:n,height:o}},SET_FUZZY_MODE:function(e,t){e.fuzzyMode=t},SET_LARGE_MODE:function(e,t){t<0?t=0:t>6&&(t=r["g"].MAX_SEARCHBAR_INCREMENTS),e.largeMode=t},SET_TIME_RUNNING:function(e,t){e.timeRunning=t},SET_LAYOUT:function(e,t){e.layout=t},SET_MODAL_WINDOW:function(e,t){e.modalWindow=t},SET_WINDOW_SIDE:function(e,t){e.windowSide=t},CREATE_VIEW_COMPONENT:function(e,t){if(t.type!==r["a"].ALERT&&t.type!==r["a"].CONFIRM){var n=e.layout&&(Object(d["d"])(e.layout,t.id)||e.modalWindow&&Object(d["d"])(e.modalWindow,t.id));if(n)console.log("Updating component: ",JSON.stringify(n,null,2)),Object.assign(n,t),console.log("Updated component: ",JSON.stringify(n,null,2));else{var o=Object(d["c"])(e.layout,t.parentId)||e.modalWindow&&Object(d["c"])(e.modalWindow,t.id);o&&(o.children.push(t),console.warn("Update parent: ",o))}}else e.dialogs.push(p()({},t,{dismiss:!1}))},SET_ENGINE_EVENT:function(e,t){if(null!==e.engineEvents)switch(t.type){case r["o"].RESOURCE_VALIDATION:var n=e.engineEvents.findIndex(function(e){return e.id===t.id});t.started?-1===n?e.engineEvents.push({id:t.id,timestamp:t.timestamp}):console.debug("Try to start an existing engine event",t):-1!==n?e.engineEvents.splice(n,1):console.debug("Try to stop an unregistered engine event",t),console.debug("Engine event with id ".concat(t.id," ").concat(t.started?"start":"stop"," / total engine events: ").concat(e.engineEvents.length));break;default:break}else console.debug("Receive an engine event before subscription")},VIEW_ACTION:function(e,t){if(null!==t.component){if(e.layout||e.modalWindow){var n=Object(d["d"])(e.layout,t.component.id)||null!==e.modalWindow&&Object(d["d"])(e.modalWindow,t.component.id);n&&(0===t.component.components.length&&0!==n.components.length&&delete t.component.components,Object.assign(n,t.component))}}else console.warn("Action component is null")},SHOW_SETTINGS:function(e,t){e.showSettings=t},SET_NOTIFICATIONS_PARAMS:function(e,t){e.notificationsParams=t},SET_DOCUMENTATION_VIEW:function(e,t){e.documentationView=t},SET_DOCUMENTATION_SELECTED:function(e,t){e.documentationSelected=t},SET_RELOAD_VIEWS:function(e,t){t&&t.forEach(function(t){-1===e.reloadViews.indexOf(t)&&e.reloadViews.push(t)})},REMOVE_RELOAD_VIEW:function(e,t){-1!==e.reloadViews.indexOf(t)&&e.reloadViews.splice(e.reloadViews.indexOf(t),1)},SET_TABLE_FONT_SIZE:function(e,t){e.tableFontSize=t},SET_TEXT_FONT_SIZE:function(e,t){e.textFontSize=t},SET_VIEW_COORDINATES:function(e,t){e.viewCoordinates=t}},O=n("7037"),b=n.n(O),A=(n("551c"),n("c1df")),_=n.n(A),I=n("4328"),v=n.n(I),N=n("8449"),h=n("256f"),R={addToKexplorerLog:function(e,t){var n=e.commit,o=t.type,a=t.payload,i=t.important,r=void 0!==i&&i;n("ADD_TO_KEXPLORER_LOG",{type:o,payload:a,important:r,time:_()()})},addToKlabLog:function(e,t){var n=e.commit,o=t.type,a=t.id,i=t.payload,r=t.timestamp;n("ADD_TO_KLAB_LOG",{type:o,id:a,payload:i,time:_()(r)})},setLevels:function(e,t){var n=e.commit;n("SET_LEVELS",t)},toggleLevel:function(e,t){var n=e.commit;n("TOGGLE_LEVEL",t)},addToStatusTexts:function(e,t){var n=e.commit,o=t.id,a=t.text;n("ADD_TO_STATUS_TEXTS",{id:o,text:a})},removeFromStatusTexts:function(e,t){var n=e.commit;n("REMOVE_FROM_STATUS_TEXTS",t)},setContextLayer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;Object(d["j"])(t).then(function(e){o("SET_CONTEXT_LAYER",e),o("RESET_SEARCH"),a("assignViewer",{observation:t,main:!0}),n.mainViewer.name===r["O"].DATA_VIEWER.name&&n.mainControlDocked&&a("setMainViewer",r["O"].DOCKED_DATA_VIEWER)})},resetContext:function(e){var t=e.commit;t("SET_CONTEXT_LAYER",null),t("RESET_SEARCH"),t("SET_OBSERVATION_INFO",null);var n=r["O"].DATA_VIEWER;t("SET_LEFTMENU_CONTENT",n.leftMenuContent),t("SET_LEFTMENU_STATE",n.leftMenuState),t("SET_MAIN_VIEWER",n),t("RESET_MAIN_DATA_VIEWER",null),t("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION),t("SET_FLOWCHART_SELECTED",r["g"].GRAPH_DATAFLOW)},setMainViewer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;t&&"undefined"!==typeof n.mainViewer&&(t.leftMenuContent===r["w"].DOCKED_DATA_VIEWER_COMPONENT?o("SET_MAIN_CONTROL_DOCKED",!0):t.leftMenuContent===r["w"].DATA_VIEWER_COMPONENT&&o("SET_MAIN_CONTROL_DOCKED",!1)),o("SET_MAIN_VIEWER",t),t&&(a("setLeftMenuState",t.leftMenuState),a("setLeftMenuContent",t.leftMenuContent))},setTreeVisible:function(e,t){var n=e.commit;n("SET_TREE_VISIBLE",t)},setLeftMenuContent:function(e,t){var n=e.commit;n("SET_LEFTMENU_CONTENT",t)},setLeftMenuState:function(e,t){var n=e.commit;n("SET_LEFTMENU_STATE",t)},setMainDataViewer:function(e,t){var n=e.commit,o=e.getters,a=t.viewerIdx,i=t.viewerType,r=void 0===i?null:i,c=t.visible,s=void 0===c||c;(s&&a!==o.mainDataViewerIdx||!s&&null!==r&&r.hideable)&&n("SET_MAIN_DATA_VIEWER",{viewerIdx:a,visible:s})},assignViewer:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=e.rootGetters,c=t.observation,s=t.main,l=void 0!==s&&s;return new Promise(function(e,t){var s,u=null,E=null;if(c.observationType)switch(c.observationType){case r["A"].TYPE_GROUP:case r["A"].TYPE_VIEW:case r["A"].TYPE_PROCESS:u=null;break;case r["A"].TYPE_STATE:var f;if(1===c.valueCount)u=null;else if(u=r["P"].VIEW_MAP,f=c.parentId===i["data/contextId"]?i["data/context"]:i["data/observations"].find(function(e){return e.id===c.parentId}),"undefined"!==typeof f){c.encodedShape=f.encodedShape;var T=f;E=T.label}else console.warn("Need parent of ".concat(c.id," but doesn't find it. Parent id is ").concat(c.parentId));break;case r["A"].TYPE_INITIAL:case r["A"].TYPE_RELATIONSHIP:u=r["P"].VIEW_MAP;var p=null;if(null!==c.parentId&&(p=Object(d["f"])(i["data/tree"],c.parentId),"undefined"===typeof p&&(console.warn("Observation with id ".concat(c.id," has an invalid unknown parent: ").concat(c.parentId)),p=null)),p){var S=p;E=S.label}else E=c.label;break;case r["A"].TYPE_SUBJECT:u=r["P"].VIEW_MAP;break;case r["A"].TYPE_CONFIGURATION:u=r["P"].VIEW_GRAPH,E=c.label;break;case r["A"].TYPE_EVENT:u=r["P"].VIEW_UNKNOWN;break;default:t(new Error("Unknown observation type in observation labeled ".concat(c.label,": ").concat(c.observationType)));break}null!==u?(console.debug("Need a viewer of type ".concat(u.component)),u.forceNew||(s=o.dataViewers.find(function(e){return e.type.component===u.component})),"undefined"===typeof s?(console.info("Create new viewer of type ".concat(u.component)),n("ADD_VIEWER_ELEMENT",{main:l,type:u,label:E&&null!==E?E:u.label,visible:!u.hideable,callback:function(t){e(t)}})):(l&&a("setMainDataViewer",{viewerIdx:s.idx}),e(s.idx))):e(null)})},setSpinner:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=t.animated,c=t.color,s=t.time,l=void 0===s?null:s,u=t.then,d=void 0===u?null:u,E=t.errorMessage,f=void 0===E?null:E,T=t.owner;return new Promise(function(e){if(!T||null===T)throw new Error("No spinner owner!");i?n("ADD_TO_SPINNER_OWNERS",T):(n("REMOVE_FROM_SPINNER_OWNERS",T),0!==o.spinnerOwners.length&&(i=!0,c!==r["J"].SPINNER_ERROR.color&&(c=r["J"].SPINNER_LOADING.color))),null!==f&&"object"===b()(f)&&(f=JSON.stringify(f)),n("SET_SPINNER",{animated:i,color:c,errorMessage:f}),null!==l&&null!==d&&setTimeout(function(){a("setSpinner",p()({},d,{owner:T}))},1e3*l),e()})},searchStart:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SEARCH_ACTIVE",{active:!0,char:n})},searchStop:function(e){var t=e.commit;t("SEARCH_ACTIVE",{active:!1})},searchFocus:function(e,t){var n=e.commit,o=t.focused,a=t.char,i=void 0===a?null:a;n("SEARCH_FOCUS",{focused:o,char:i})},resetSearchLostChar:function(e){var t=e.commit;t("RESET_SEARCH_LOST_CHAR")},storePreviousSearch:function(e,t){var n=e.commit;n("STORE_SEARCH",t)},searchInApp:function(e,t){var n=e.commit;n("SEARCH_INAPP",t)},setFlowchartSelected:function(e,t){var n=e.commit;n("SET_FLOWCHART_SELECTED",t)},setDataflowInfoOpen:function(e,t){var n=e.commit;n("SET_DATAFLOW_INFO_OPEN",t)},setObservationInfo:function(e,t){var n=e.commit;n("SET_OBSERVATION_INFO",t)},setMapSelection:function(e,t){var n=e.commit,o=e.state,a=t.pixelSelected,i=t.timestamp,s=void 0===i?-1:i,l=t.layerSelected,u=void 0===l?null:l,E=t.observationId,f=void 0===E?null:E,T=t.locked,p=void 0!==T&&T;if(null!==a){null===f&&(f=o.observationInfo.id);var S="".concat("").concat(c["c"].REST_SESSION_VIEW,"data/").concat(f),m=Object(h["l"])(a,"EPSG:3857","EPSG:4326"),O=-1!==s?"T1(1){time=".concat(s.toFixed(0),"}"):"";Object(d["h"])("pv_".concat(f),S,{params:{format:"SCALAR",locator:"".concat(O,"S0(1){latlon=[").concat(m[0]," ").concat(m[1],"]}")},paramsSerializer:function(e){return v.a.stringify(e,{arrayFormat:"repeat"})}},function(e,t){var o="No value";e&&"undefined"!==typeof e.data&&(o=e.data),n("SET_MAP_SELECTION",{pixelSelected:a,layerSelected:u,value:o,locked:p}),t()})}else n("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION)},setScaleEditing:function(e,t){var n=e.commit,o=t.active,a=t.type;n("SET_SCALE_EDITING",{active:o,type:a}),n("SET_MODAL_MODE",o)},setDrawMode:function(e,t){var n=e.commit;n("SET_DRAW_MODE",t),n("SET_MODAL_MODE",t)},setCustomContext:function(e,t){var n=e.commit;n("SET_CUSTOM_CONTEXT",t)},setTopLayer:function(e,t){var n=e.commit;n("SET_TOP_LAYER",t)},inputRequest:function(e,t){var n=e.commit;n("SET_INPUT_REQUEST",t),n("SET_MODAL_MODE",!0)},removeInputRequest:function(e,t){var n=e.commit,o=e.getters;n("REMOVE_INPUT_REQUEST",t),o.hasInputRequests||n("SET_MODAL_MODE",!1)},setModalMode:function(e,t){var n=e.commit;n("SET_MODAL_MODE",t)},setModalSize:function(e,t){var n=e.commit,o=t.width,a=t.height;n("SET_MODAL_SIZE",{width:o,height:a})},setFuzzyMode:function(e,t){var n=e.rootGetters,o=e.commit;n["data/hasContext"]||o("SET_FUZZY_MODE",t)},setLargeMode:function(e,t){var n=e.commit;n("SET_LARGE_MODE",t)},setTimeRunning:function(e,t){var n=e.commit;n("SET_TIME_RUNNING",t)},setLayout:function(e,t){var n=e.commit;if(null===t||"DESKTOP"!==t.platform&&"MOBILE"!==t.platform)if(n("SET_LAYOUT",null===t?null:p()({},t)),null!==t)localStorage.setItem(r["R"].LOCAL_STORAGE_APP_ID,t.name);else{var o=localStorage.getItem(r["R"].LOCAL_STORAGE_APP_ID);o&&localStorage.removeItem(r["R"].LOCAL_STORAGE_APP_ID)}else console.info("Received an app for another platform: ".concat(t.platform))},setModalWindow:function(e,t){var n=e.commit;n("SET_MODAL_WINDOW",t)},setWindowSide:function(e,t){var n=e.commit;n("SET_WINDOW_SIDE",t)},setEngineEvent:function(e,t){var n=e.commit;n("SET_ENGINE_EVENT",t)},createViewComponent:function(e,t){var n=e.commit;n("CREATE_VIEW_COMPONENT",t)},viewAction:function(e,t){var n=e.commit;n("VIEW_ACTION",t)},viewSetting:function(e,t){var n=e.getters,o=e.rootGetters,a=e.dispatch;if(t){var i=function(){N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.targetId,selected:t.operation===r["Q"].SHOW})};switch(t.target){case r["Q"].OBSERVATION:n.mainViewerName!==r["O"].DATA_VIEWER.name&&t.operation===r["Q"].SHOW?a("setMainViewer",r["O"].DATA_VIEWER).then(function(){i(),N["b"].$emit(r["h"].MAP_SIZE_CHANGED,{type:"changelayout"})}):i();break;case r["Q"].VIEW:i();break;case r["Q"].TREE:n.mainViewerName===r["O"].DATA_VIEWER.name&&o["data/hasContext"]&&a("setTreeVisible",t.operation===r["Q"].SHOW);break;case r["Q"].REPORT:n.mainViewerName===r["O"].REPORT_VIEWER.name&&t.operation===r["Q"].HIDE?a("setMainViewer",n.isMainControlDocked?r["O"].DOCKED_DATA_VIEWER:r["O"].DATA_VIEWER):n.mainViewerName!==r["O"].REPORT_VIEWER.name&&o["data/hasObservations"]&&t.operation===r["Q"].SHOW&&a("setMainViewer",r["O"].REPORT_VIEWER);break;case r["Q"].DATAFLOW:n.mainViewerName===r["O"].DATAFLOW_VIEWER.name&&t.operation===r["Q"].HIDE?a("setMainViewer",n.isMainControlDocked?r["O"].DOCKED_DATA_VIEWER:r["O"].DATA_VIEWER):n.mainViewerName!==r["O"].DATAFLOW_VIEWER.name&&o["data/hasContext"]&&t.operation===r["Q"].SHOW&&a("setMainViewer",r["O"].DATAFLOW_VIEWER);break;case r["Q"].URL:N["b"].$emit(r["h"].DOWNLOAD_URL,{url:t.targetId,parameters:t.parameters});break;default:break}}},setShowSettings:function(e,t){var n=e.commit;n("SHOW_SETTINGS",t)},setNotificationsParams:function(e,t){var n=e.commit;n("SET_NOTIFICATIONS_PARAMS",t)},setDocumentationView:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_VIEW",t)},setDocumentationSelected:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_SELECTED",t)},setDocumentation:function(e,t){var n=e.commit,o=e.rootGetters;if(!t.view){var a=o["data/documentationContent"].get(t.id);if(!a)return void console.debug("Try to show an unknown document: ".concat(t.id));t.view=r["m"][a.type]}n("SET_DOCUMENTATION_VIEW",t.view),n("SET_DOCUMENTATION_SELECTED",t.id),N["b"].$emit(r["h"].SHOW_DOCUMENTATION),N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.id,selected:!0})},changeInDocumentation:function(e,t){var n=e.commit;if(t.viewsAffected){var o=t.viewsAffected.filter(function(e){return e!==r["n"].REFERENCES&&e!==r["n"].MODELS});if(o.length>1&&o.includes(r["n"].TABLES)){var a=o.indexOf(r["n"].REPORT);-1!==a&&o.splice(a,1)}o.length>0&&n("SET_RELOAD_VIEWS",o)}},removeReloadView:function(e,t){var n=e.commit;n("REMOVE_RELOAD_VIEW",t)},setTableFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setTextFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setViewCoordinates:function(e,t){var n=e.commit;n("SET_VIEW_COORDINATES",t)}},C={namespaced:!0,state:s,getters:f,mutations:m,actions:R},g=(n("456d"),n("970b")),L=n.n(g),w=n("5bc30"),P=n.n(w),y=function(){function e(){L()(this,e),this.items=[]}return P()(e,[{key:"push",value:function(e){this.items.push(e)}},{key:"pop",value:function(e){if("undefined"!==typeof e&&e>0){if(e>this.size()-1)throw Error("Stack overflow");return this.items.splice(e+1),this.items.peek()}return this.items.pop()}},{key:"peek",value:function(){return 0===this.items.length?null:this.items[this.items.length-1]}},{key:"previous",value:function(){return this.items.length<=1?null:this.items[this.items.length-2]}},{key:"size",value:function(){return this.items.length}},{key:"findIndex",value:function(e){return this.items.findIndex(e)}},{key:"findItem",value:function(e){return this.items.find(function(t){return t.id===e})}},{key:"map",value:function(e){return this.items.map(e)}},{key:"empty",value:function(){this.items.splice(0)}},{key:"isEmpty",value:function(){return 0===this.items.length}},{key:"toArray",value:function(){return this.items}}]),e}(),D={sessionReference:null,tree:[],userTree:[],lasts:[],contexts:new y,contextCustomLabel:null,scaleReference:null,schedulingResolution:null,proposedContext:null,scaleLocked:{space:!1,time:!1},nextScale:null,observations:[],contextMenuObservationId:null,knowledgeViews:[],timeEvents:[],modificationsTask:null,timestamp:-1,engineTimestamp:-1,flowcharts:r["t"],dataflowStatuses:[],dataflowInfo:null,session:null,contextsHistory:[],waitingForReset:null,orphans:[],searchResult:null,childrenToAskFor:r["g"].CHILDREN_TO_ASK_FOR,interactiveMode:!1,crossingIDL:!1,capabilities:{},local:!1,token:null,packageVersion:"0.22.0",packageBuild:"0",terminalsCounter:0,terminals:[],terminalCommands:null!==localStorage.getItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS)?JSON.parse(localStorage.getItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS)):[],documentationTrees:Object.keys(r["n"]).map(function(e){return{view:e,tree:[]}}),documentationContent:new Map},M=(n("55dd"),{sessionReference:function(e){return e.sessionReference},isDeveloper:function(e){return e.sessionReference&&e.sessionReference.owner&&e.sessionReference.owner.groups&&-1!==e.sessionReference.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})},tree:function(e){return e.tree},treeNode:function(e){return function(t){return Object(d["f"])(e.tree,t)}},lasts:function(e){return e.lasts},hasTree:function(e){return e.tree.length>0},mainTreeHasNodes:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return null!==Object(d["e"])(e.tree,"",function(e){return e.userNode||t&&!e.ticked?null:e})}},userTree:function(e){return e.userTree},observations:function(e){return e.observations},observationsOfViewer:function(e){return function(t){return e.observations.filter(function(e){return e.viewerIdx===t})}},hasObservations:function(e){return 0!==e.observations.length},visibleObservations:function(e){return e.observations.filter(function(e){return e.visible})},observationsIdOnTop:function(e){return e.observations.filter(function(e){return e.top}).map(function(e){return e.id})},contextMenuObservationId:function(e){return e.contextMenuObservationId},knowledgeViews:function(e){return e.knowledgeViews},visibleKnowledgeView:function(e){return e.knowledgeViews.find(function(e){return e.show})},timeEvents:function(e){return e.timeEvents},timeEventsOfObservation:function(e){return function(t){return e.timeEvents.filter(function(e){return e.id===t})}},timeEventsUntil:function(e){return function(t){return e.timeEventsEvents.filter(function(e){return e.timestamp<=t})}},modificationsTask:function(e){return e.modificationsTask},visibleEvents:function(e){var t=e.observations.filter(function(e){return e.visible}).map(function(e){return e.id});return e.timeEvents.filter(function(e){return t.includes(e.id)})},timestamp:function(e){return e.timestamp},engineTimestamp:function(e){return e.engineTimestamp},flowcharts:function(e){return e.flowcharts},flowchart:function(e){return function(t){return e.flowcharts.find(function(e){return e.type===t})}},flowchartsUpdatable:function(e){return e.flowcharts.find(function(e){return e.updatable})},flowchartUpdatable:function(e){return function(t){var n=e.flowcharts.find(function(e){return e.type===t});return!!n&&n.updatable}},dataflowStatuses:function(e){return e.dataflowStatuses},dataflowInfo:function(e){return e.dataflowInfo},contextsId:function(e){return e.contexts.map(function(e){return e.id})},context:function(e){return e.contexts.peek()},contextsCount:function(e){return e.contexts.size()},previousContext:function(e){return e.contexts.previous()},contextById:function(e){return function(t){return e.contexts.findItem(t)}},proposedContext:function(e){return e.proposedContext},hasContext:function(e,t){return null!==t.context},contextLabel:function(e,t){return null!==t.context?t.context.label:null},contextCustomLabel:function(e){return null!==e.contextCustomLabel?e.contextCustomLabel:null},contextsLabels:function(e,t){return null!==t.context?e.contexts.map(function(e){return{label:e.label,contextId:e.id}}):[]},contextId:function(e,t){return null!==t.context?t.context.id:null},contextEncodedShape:function(e,t){return null!==t.context?"".concat(t.context.spatialProjection," ").concat(t.context.encodedShape):""},contextsHistory:function(e){return e.contextsHistory.length>0&&e.contextsHistory.sort(function(e,t){return e.creationTime===t.creationTime?0:e.creationTime>t.creationTime?-1:1}),e.contextsHistory},contextReloaded:function(e,t){return null!==t.context&&"undefined"!==typeof t.context.restored&&t.context.restored},contextHasTime:function(e,t){return null!==t.context&&t.context.scaleReference&&0!==t.context.scaleReference.end},session:function(e){return e.session},scaleReference:function(e,t){return null!==t.context?t.context.scaleReference:e.scaleReference},schedulingResolution:function(e){return e.schedulingResolution},isScaleLocked:function(e){return e.scaleLocked},nextScale:function(e){return e.nextScale},hasNextScale:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!==e.nextScale&&(null===t||t===r["D"].ST_SPACE&&e.nextScale.spaceChanged||t===r["D"].ST_SPACE&&e.nextScale.spaceChanged)}},capabilities:function(e){return e.capabilities},searchResult:function(e){return e.searchResult},interactiveMode:function(e){return e.interactiveMode},isCrossingIDL:function(e){return e.crossingIDL},isLocal:function(e){return e.local},terminals:function(e){return e.terminals},hasActiveTerminal:function(e){return-1!==e.terminals.findIndex(function(e){return e.active})},terminalCommands:function(e){return e.terminalCommands},documentationTrees:function(e){return e.documentationTrees},documentationContent:function(e){return e.documentationContent}}),x=n("9523"),k=n.n(x),U=n("1442"),V={SET_SESSION_REFERENCE:function(e,t){e.sessionReference=t},SET_CONTEXT:function(e,t){var n=t.context,o=void 0===n?null:n,a=t.isRecontext,i=void 0!==a&&a;if(null===o)e.contexts.empty();else{var c=e.contexts.findIndex(function(e){return e.id===o.id});if(-1===c){if(i){var s=e.contexts.peek();o.scaleReference=s.scaleReference}e.contexts.push(o)}else e.contexts.pop(c)}e.tree=[],e.userTree=[],e.lasts=[],e.observations=[],e.knowledgeViews=[],e.flowcharts.forEach(function(e){e.flowchart=null,e.graph=null,e.updatable=!1,e.visible=!1}),e.dataflowStatuses=[],e.dataflowInfo=null,e.nodeSelected=null,e.nextScale=null,e.crossingIDL=!1,e.contextCustomLabel=null,e.timeEvents=[],e.timestamp=-1,e.engineTimestamp=-1,e.proposedContext=null,e.documentationTrees.forEach(function(e){e.tree.splice(0,e.tree.length)}),e.documentationContent.clear(),e.documentationView=r["n"].REPORT,null===o?e.contextsHistory=[]:"undefined"===typeof o.restored&&(o.restored=!1),e.schedulingResolution=null},SET_CONTEXT_CUSTOM_LABEL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.contextCustomLabel=t},WAITING_FOR_RESET:function(e,t){e.waitingForReset=t},STORE_CONTEXT:function(e,t){var n=e.contextsHistory.find(function(e){return e.id===t.id});"undefined"===typeof n?(console.debug("Added new context in store with id ".concat(t.id)),e.contextsHistory.push(t)):console.debug("Context with id ".concat(t.id," yet exists in contextHistory"))},SET_RELOAD_FLOWCHART:function(e,t){e.flowcharts.filter(function(e){return null===t||e.target===t}).forEach(function(e){e.updatable=!0,e.visible=!1})},ADD_FLOWCHART:function(e,t){var n=t.flowchart,o=t.target,a=e.flowcharts.find(function(e){return e.type===o});a?(a.flowchart=n,a.updatable=!1):console.warn("Unknown target to add flowchart: ".concat(o))},SET_DATAFLOW_STATUS:function(e,t){var n=t.id,o=t.status,a=e.dataflowStatuses.find(function(e){return e.id===n});"undefined"!==typeof a?a.status=o:e.dataflowStatuses.push({id:n,status:o})},SET_DATAFLOW_INFO:function(e,t){e.dataflowInfo=t},UPDATE_TIME_EVENTS:function(e,t){t.timeEvents&&t.timeEvents.length>0&&(t.timeEvents.forEach(function(n){e.timeEvents.push({id:t.id,timestamp:n})}),console.debug("Added ".concat(t.timeEvents.length," events")))},ADD_OBSERVATION:function(e,t){var n=t.observation;e.observations.push(n),console.info("Added observation: ".concat(n.label)),console.debug("Observation content: ".concat(JSON.stringify(n,null,2)))},UPDATE_OBSERVATION:function(e,t){var n=t.observationIndex,o=t.newObservation,a=e.observations[n],i=p()({},a,o);e.observations.splice(n,1,i);var r=function(e){e?(e.needUpdate=!i.contextualized,e.dynamic=i.dynamic,e.childrenCount=i.childrenCount,e.children.forEach(function(e){e.siblingsCount=i.childrenCount}),e.tickable=null!==i.viewerIdx&&!i.empty||i.isContainer||i.childrenCount>0,e.exportFormats=i.exportFormats):console.warn("Node of ".concat(i.id," - ").concat(i.label," not found"))},c=Object(d["f"])(e.tree,i.id);r(c),c&&c.userNode&&r(Object(d["f"])(e.userTree,i.id))},SET_CONTEXTMENU_OBSERVATIONID:function(e,t){e.contextMenuObservationId=t},MOD_BRING_FORWARD:function(e,t){var n=e.observations.find(function(e){return e.id===t.id});n||console.warn("Receive a bring forward for an unknown observation: ".concat(t.id," - ").concat(t.label)),n.main=!0,t.main=!0},MOD_STRUCTURE_CHANGE:function(e,t){var n=t.node,o=t.modificationEvent,a=e.observations.find(function(e){return e.id===o.id});a.childrenCount=o.newSize,a.empty=!1,o.exportFormats&&(a.exportFormats=o.exportFormats);var i=function(e){e&&(e.childrenCount=o.newSize,o.exportFormats&&(e.exportFormats=o.exportFormats),e.children.forEach(function(e){e.siblingsCount=o.newSize}),e.tickable=!0,e.disabled=!1,e.empty=!1,e.needUpdate=!0)};i(n),n.userNode&&i(Object(d["f"])(e.userTree,n.id))},MOD_VALUE_CHANGE:function(e,t){if(t.dynamic=!0,t.needUpdate=!1,t.userNode){var n=Object(d["f"])(e.userTree,t.id);n?(n.dynamic=!0,n.needUpdate=!1):console.warn("Node theoretically in user tree but not found: ".concat(t.id," - ").concat(t.label))}},ADD_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.push(p()({},t,{show:!1}))},SHOW_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.forEach(function(e){e.viewId===t&&(e.show=!0)})},ADD_TIME_EVENT:function(e,t){var n=-1!==e.timeEvents.findIndex(function(e){return e.id===t.id&&e.timestamp===t.timestamp&&e.newAttributes===t.newAttributes&&e.newScale===t.newScale&&e.newName===t.newName&&e.newSemantics===t.newSemantics&&e.newSize===t.newSize});n?console.warn("Duplicated time event:\n ".concat(JSON.stringify(t,null,2))):e.timeEvents.push(t)},SET_MODIFICATIONS_TASK:function(e,t){e.modificationsTask=t},SET_TIMESTAMP:function(e,t){e.timestamp=t},SET_ENGINE_TIMESTAMP:function(e,t){e.engineTimestamp=t},SET_SCHEDULING_STATUS:function(e,t){if(null!==e.scaleReference)switch(t.type){case"TIME_ADVANCED":e.engineTimestamp=t.currentTime;break;case"STARTED":e.engineTimestamp=t.currentTime,e.schedulingResolution=t.resolution,N["b"].$emit(r["h"].NEW_SCHEDULING);break;case"FINISHED":e.engineTimestamp=e.scaleReference.end;break;default:console.warn("Unknown scheduling type: ".concat(t.type));break}else console.warn("Try to change scheduling type but no scaleReference")},ADD_NODE:function(e,t){var n=t.node,o=t.parentId,a=t.toUserTreeOnly,i=void 0!==a&&a,r=e.contexts.peek();if(null===r)return console.info("Context is null, it's just set or is a new observation of previous search for this session, so added to orphans. ID: ".concat(n.id)),void e.orphans.push(n);var c=r.id===r.rootContextId;if((c&&n.rootContextId!==r.id||!c&&n.contextId!==r.id)&&console.info("Subcontext or trying to add to tree an observation of other context. Actual: ".concat(r.id," / Node: ").concat(n.rootContextId)),r.id!==n.id)if(r.id===o){if(i||e.tree.push(n),n.userNode){var s=JSON.parse(JSON.stringify(n));e.userTree.push(s)}}else{var l=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=Object(d["f"])(t,o);null!==i?(i.children.length===i.childrenCount&&(i.childrenCount++,i.children.forEach(function(e){e.siblingsCount=i.childrenCount})),i.children.push(p()({},a,{idx:i.children.length,siblingsCount:i.childrenCount})),i.disabled=!1):(console.warn("Orphan founded with id ".concat(n.id)),e.orphans.push(n))};i||l(e.tree),n.userNode&&l(e.userTree,JSON.parse(JSON.stringify(n)))}else console.error("Try to add context to tree, check it!")},REMOVE_NODE:function(e,t){var n=t.id,o=t.fromMainTree,a=void 0!==o&&o,i=a?e.tree:e.userTree,r=function e(t,n){var o=t.findIndex(function(e){return e.id===n});-1===o?t.forEach(function(t){t.children&&0!==t.children.length&&e(t.children,n)}):(t.splice(o,1),console.debug("Find and delete node ".concat(n," from ").concat(a?"main tree":"user tree")))};r(i,n)},UPDATE_USER_NODE:function(e,t){var n=t.node,o=t.userNode,a=function e(t){t.userNode=o,t.children&&t.children.length>0&&t.children.forEach(function(t){return e(t)})};a(n)},SET_FOLDER_VISIBLE:function(e,t){var n=t.nodeId,o=t.visible,a=t.zIndexOffset;if(null!==a){e.observations.forEach(function(e){e.parentArtifactId===n||e.parentId===n?(e.visible=o,e.top=o):o&&e.zIndexOffset===a&&(e.top=!1)});var i=e.observations.find(function(e){return e.id===n});"undefined"!==typeof i&&(i.visible=o)}else console.info("Folder with id ".concat(n," has no loaded elements"));var r=function(e){var t=Object(d["f"])(e,n);"undefined"!==typeof t&&null!==t&&t.children.length>0&&(t.children.forEach(function(e){e.parentArtifactId===t.id&&(e.ticked=o)}),t.ticked=o)};r(e.tree),r(e.userTree)},SET_VISIBLE:function(e,t){var n=t.id,o=t.visible,a=e.observations.findIndex(function(e){return e.id===n}),i=e.observations[a];if("undefined"!==typeof i){var r=i.zIndexOffset;i.visible=o,i.top=o,o&&e.observations.forEach(function(e){e.id!==n&&e.zIndexOffset===r&&(e.top=!1)});var c=function(e){var t=Object(d["f"])(e,n);t&&(t.ticked=o)};c(e.tree),c(e.userTree),e.observations.splice(a,1,i)}else console.warn("Try to change visibility to no existing observations with id ".concat(n))},SET_LOADING_LAYERS:function(e,t){var n=t.loading,o=t.observation;if(o){o.loading=n;var a=Object(d["f"])(e.tree,o.id);if(a&&(a.loading=n,a.userNode)){var i=Object(d["f"])(e.userTree,o.id);i.loading=n}}},STORE_RAW_SEARCH_RESULT:function(e,t){e.searchResult=t},ADD_LAST:function(e,t){var n=t.parentId,o=t.observationId,a=t.offsetToAdd,i=t.total,r=e.lasts.findIndex(function(e){return n===e.parentId});if(-1!==r){var c=e.lasts[r];c.offset+a>=c.total?(e.lasts.splice(r,1),console.info("Folder ".concat(n," fully loaded"))):(c.observationId=o,c.offset+=a,console.info("Loaded more elements in folder ".concat(n,". New offset is ").concat(c.offset," ")))}else{if(a+1===i)return void console.info("Nothing to do in folder ".concat(n,". Offset is ").concat(a," and total is ").concat(i," "));e.lasts.push({parentId:n,observationId:o,offset:a,total:i}),console.debug("Added folder ".concat(n,". Offset is ").concat(a," "))}},SET_SCALE_REFERENCE:function(e,t){null===t.timeUnit&&(t.timeUnit=r["F"].YEAR),e.scaleReference=t,e.context||(null!==e.scaleReference.shape?e.proposedContext=d["a"].readGeometry(e.scaleReference.shape,{dataProjection:U["d"].PROJ_EPSG_4326,featureProjection:U["d"].PROJ_EPSG_3857}):e.proposedContext=null),console.info("Scale reference set: ".concat(JSON.stringify(t,null,2)))},UPDATE_SCALE_REFERENCE:function(e,t){var n,o=t.type,a=t.unit,i=t.timeResolutionMultiplier,c=t.start,s=t.end,l=t.next,u=void 0!==l&&l,d=t.spaceResolution;o===r["D"].ST_SPACE&&0!==d&&Math.round(d)!==d&&(d=d.toFixed(1));var E=p()({},e.scaleReference,(n={},k()(n,"".concat(o,"Unit"),a),k()(n,"".concat(o,"ResolutionDescription"),(d&&0!==d?"".concat(d," "):"")+a),n),o===r["D"].ST_SPACE&&{spaceResolution:d,spaceResolutionConverted:d},o===r["D"].ST_TIME&&{timeResolutionMultiplier:i,start:c,end:s});u?e.nextScale=p()({},E,{spaceChanged:o===r["D"].ST_SPACE,timeChanged:o===r["D"].ST_TIME}):e.scaleReference=E},SET_SCALE_LOCKED:function(e,t){var n=t.scaleType,o=t.scaleLocked;"all"===n?(e.scaleLocked.space=o,e.scaleLocked.time=o):Object.prototype.hasOwnProperty.call(e.scaleLocked,n)?(console.info("Set ".concat(o," to ").concat(n," scale type")),e.scaleLocked[n]=o):console.error("Try to set locked to unknow scale type: ".concat(n))},SET_INTERACTIVE_MODE:function(e,t){e.interactiveMode=t},SET_CROSSING_IDL:function(e,t){e.crossingIDL=t},ADD_TERMINAL:function(e,t){e.terminals.push(t)},REMOVE_TERMINAL:function(e,t){var n=e.terminals.findIndex(function(e){return e.id===t});-1!==n?e.terminals.splice(n,1):console.warn("Trying to remove unknown terminal ".concat(t))},ADD_TERMINAL_COMMAND:function(e,t){e.terminalCommands.push(t),localStorage.setItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},CLEAR_TERMINAL_COMMANDS:function(e){e.terminalCommands.splice(0,e.terminalCommands.length),localStorage.setItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},SET_DOCUMENTATION:function(e,t){var n=t.view,o=t.tree,a=e.documentationTrees.findIndex(function(e){return e.view===n});-1===a?console.warn("Unknown documentation view: ".concat(n)):e.documentationTrees[a].tree=o},ADD_DOCUMENTATION:function(e,t){t.forEach(function(t){e.documentationContent.set(t.id,t)})}},F=(n("28a5"),n("f559"),n("ffc1"),n("96cf"),n("c973")),Y=n.n(F),W=n("be3b"),G=n("17dc"),j=n("e7d8"),H=void 0,z={loadSessionReference:function(e){var t=e.commit;return new Promise(function(e,n){W["a"].get("".concat("").concat(c["c"].REST_SESSION_INFO),{maxRedirects:0}).then(function(n){var o=n.data;o&&(t("SET_SESSION_REFERENCE",o),e())}).catch(function(e){e.response&&403===e.response.status?n(new Error("Invalid session")):n(new Error("Error retrieving session: ".concat(e)))})})},setContext:function(e,t){var n=t.context,o=t.isRecontext,a=e.commit,i=e.getters,r=e.dispatch;null!==i.context&&i.context.id===n.id||(a("SET_CONTEXT",{context:n,isRecontext:o}),o&&r("view/resetContext",null,{root:!0}),r("view/setContextLayer",n,{root:!0}),console.debug("Send start watch context ".concat(n.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!0,observationId:n.id,rootContextId:n.rootContextId}))},resetContext:function(e){var t=e.commit,n=e.dispatch,o=e.state,a=e.getters,i=a.context;if(null!==i){var s={id:i.id,rootContextId:i.rootContextId};t("SET_CONTEXT",{}),n("getSessionContexts"),n("view/resetContext",null,{root:!0}),null!==o.waitingForReset?(n("loadContext",o.waitingForReset),o.waitingForReset=null):n("addObservation",{observation:r["C"],main:!0}),n("view/addToKlabLog",{type:c["a"].TYPE_INFO,payload:{message:"Context reset",separator:!0}},{root:!0}),console.debug("Send stop watch context ".concat(s.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!1,observationId:s.id,rootContextId:s.rootContextId})}else console.info("Try to reset null context, is initial reset?")},setWaitinForReset:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("WAITING_FOR_RESET",n)},loadContext:function(e,t){var n=e.commit,o=e.dispatch;console.info("Ask for context to restore ".concat(t)),W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(t),{params:{childLevel:1}}).then(function(){var e=Y()(regeneratorRuntime.mark(function e(a){var i,c,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=a.data,i.restored=!0,e.next=4,o("setContext",{context:p()({},i,{children:[]})});case 4:if(n("data/SET_RELOAD_FLOWCHART",{target:null},{root:!0}),console.debug("Context received with id ".concat(i.id)),!(i.children.length>0)){e.next=12;break}return c=[],s=i.children,s.forEach(function(e){null!==e.taskId&&(-1===c.indexOf(e.taskId)&&c.push(e.taskId),o("addObservation",{observation:e,restored:!0}))}),e.next=12,Promise.all(c);case 12:o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t}),{root:!0});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw o("view/setSpinner",p()({},r["J"].SPINNER_ERROR,{owner:t,errorMessage:e}),{root:!0}),e})},getSessionContexts:function(e){var t=e.getters,n=e.commit;return new Promise(function(e,o){if(null!==t.session){var a="".concat("").concat(c["c"].REST_STATUS);Object(d["h"])(t.session,a,{transformRequest:[function(e,t){return delete t.common[r["r"].KLAB_AUTHORIZATION],e}]},function(a,i){var r=a.data;if(console.debug("Contexts history:\n".concat(JSON.stringify(r,null,4))),r&&r.sessions&&r.sessions.length>0){var c=r.sessions.find(function(e){return e.id===t.session});if("undefined"!==typeof c){var s=c.rootObservations;if(null===s||0===Object.keys(s).length&&s.constructor===Object)console.debug("No root observation founded"),e(0);else{console.debug("Find ".concat(Object.keys(s).length," root observations for this session"));var l=0;Object.entries(s).forEach(function(e){n("STORE_CONTEXT",e[1]),l+=1}),e(l)}}else console.warn("No information for session ".concat(t.session,", isn't valid session?")),o(new Error("No information for session ".concat(t.session,", disconnect")))}i()})}else o(new Error("No session established, no useful engine available, disconnect"))})},setContextCustomLabel:function(e,t){var n=e.commit;n("SET_CONTEXT_CUSTOM_LABEL",t)},addObservation:function(e,t){var n=e.commit,o=e.rootGetters,a=e.state,i=e.dispatch,c=t.observation,s=t.toTree,l=void 0===s||s,u=t.visible,E=void 0!==u&&u,f=t.restored,T=void 0!==f&&f,S=t.updated,m=void 0!==S&&S;return new Promise(function(e){var t=a.observations.findIndex(function(e){return e.id===c.id});return-1!==t?(m?(n("UPDATE_OBSERVATION",{observationIndex:t,newObservation:c}),n("UPDATE_TIME_EVENTS",c),console.debug("Observation$ ".concat(c.label," updated"))):i("view/addToKexplorerLog",{type:r["y"].TYPE_WARNING,payload:{message:"Existing observation received: ".concat(c.label)},important:!0},{root:!0}),e()):(i("view/assignViewer",{observation:c},{root:!0}).then(function(t){if(c.viewerIdx=t,c.visible=E,c.top=!1,c.zIndex=0,c.layerOpacity=c.layerOpacity||1,c.colormap=c.colormap||null,c.tsImages=[],c.isContainer=c.observationType===r["A"].TYPE_GROUP||c.observationType===r["A"].TYPE_VIEW,c.singleValue=c.observationType===r["A"].TYPE_STATE&&1===c.valueCount,c.loading=!1,c.loaded=!0,null===c.contextId){var a=o["stomp/tasks"].find(function(e){return c.taskId.startsWith(e.id)});if(a){var s=a.contextId;c.contextId=s}else c.contextId=c.rootContextId}if(n("ADD_OBSERVATION",{observation:p()({},c,{children:[]}),restored:T}),n("UPDATE_TIME_EVENTS",c),c.observationType===r["A"].TYPE_INITIAL)return e();if(c.children.length>0&&(c.disabled=!1,c.children.forEach(function(e){i("addObservation",{observation:e})})),l){var u=Object(d["l"])(c);if(n("ADD_NODE",u),c.childrenCount>0&&0===c.children.length){var f=u.node;i("addStub",f)}}return e()}),null)})},updateObservation:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.observationId,r=t.exportFormats,s=a.observations.findIndex(function(e){return e.id===i});-1!==s?W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(i),{params:{childLevel:0}}).then(function(e){var t=e.data;if(t){if(r&&(t.exportFormats=r),n("UPDATE_OBSERVATION",{observationIndex:s,newObservation:t}),t.childrenCount>0){var c=Object(d["f"])(a.tree,t.id),l=c.children,u=l.length>0;u&&1===l.length&&(u=!l[0].id.startsWith("STUB")),u&&o("askForChildren",{parentId:i,count:Math.max(l.length,a.childrenToAskFor),total:t.childrenCount,updated:!0})}}else console.warn("Ask for update observation ".concat(i," but nothing found in engine"))}):console.warn("Try to update a not existing observation: ".concat(i))},addStub:function(e,t){var n=e.commit;n("ADD_NODE",{node:p()({},t,{id:"STUB-".concat(t.id),observable:"",label:"",children:[],childrenCount:0,childrenLoaded:0,siblingsCount:t.childrenCount,parentArtifactId:t.id,tickable:!1,disabled:!0,empty:!0,actions:{},header:"stub",main:!1,isContainer:!1,exportFormats:{},observationType:r["A"].TYPE_INITIAL,noTick:!0,parentId:t.id,dynamic:!1},t.userNode&&{userNode:t.userNode}),parentId:t.id}),n("ADD_LAST",{parentId:t.id,observationId:"STUB-".concat(t.id),offsetToAdd:0,total:t.childrenCount})},addKnowledgeView:function(e,t){var n=e.commit;n("ADD_KNOWLEDGE_VIEW",t)},showKnowledgeView:function(e,t){var n=e.commit;n("SHOW_KNOWLEDGE_VIEW",t)},addModificationEvent:function(e,t){var n=e.rootGetters,o=e.state,a=e.commit,i=e.dispatch,c=Object(d["f"])(o.tree,t.id);if(c)switch(t.type){case r["z"].BRING_FORWARD:a("MOD_BRING_FORWARD",c),i("changeTreeOfNode",{id:t.id,isUserTree:!0});break;case r["z"].VALUE_CHANGE:a("MOD_VALUE_CHANGE",c),a("ADD_TIME_EVENT",t),null===o.modificationsTask&&i("setModificationsTask",n["stomp/lastActiveTask"]());break;case r["z"].STRUCTURE_CHANGE:a("MOD_STRUCTURE_CHANGE",{node:c,modificationEvent:t}),c.childrenCount>0&&0===c.children.length&&i("addStub",c);break;case r["z"].CONTEXTUALIZATION_COMPLETED:i("updateObservation",{observationId:t.id,exportFormats:t.exportFormats});break;default:console.warn("Unknown modification event: ".concat(t.type));break}else t.id!==t.contextId?console.debug("Modification event for a not existing node, probably still not loaded",t):console.debug("Modification event for context",t)},setModificationsTask:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SET_MODIFICATIONS_TASK",n)},setTimestamp:function(e,t){var n=e.commit;t&&-1!==t&&(t=Math.round(t)),n("SET_TIMESTAMP",t)},setScheduling:function(e,t){var n=e.commit,o=e.getters;o.context&&t.contextId===o.context.id?n("SET_SCHEDULING_STATUS",t):console.debug("Received a scheduling of other context: ".concat(t.contextId))},askForChildren:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.parentId,s=t.total,l=t.offset,u=void 0===l?0:l,E=t.count,f=void 0===E?a.childrenToAskFor:E,T=t.toTree,S=void 0===T||T,m=t.visible,O=void 0!==m&&m,b=t.notified,A=void 0===b||b,_=t.updated,I=void 0!==_&&_;return new Promise(function(e){console.debug("Ask for children of node ".concat(i,": count:").concat(f," / offset ").concat(u)),o("view/setSpinner",p()({},r["J"].SPINNER_LOADING,{owner:i}),{root:!0}).then(function(){W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"children/").concat(i),{params:{count:f,offset:u}}).then(function(t){var c=t.data;c&&c.length>0?c.forEach(function(t,l,u){t.notified=A,t.siblingsCount=s,o("addObservation",{observation:t,toTree:S,visible:O,updated:I}).then(function(){if(l===u.length-1){S&&n("ADD_LAST",{parentId:i,observationId:t.id,offsetToAdd:c.length,total:s});var E=function(e){var t=Object(d["f"])(e,i);t&&null!==t&&(t.childrenLoaded+=c.length)};E(a.tree),E(a.userTree),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:i}),{root:!0}),e()}})}):(o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:i}),{root:!0}),e())})})})},addChildrenToTree:function(e,t){var n=e.dispatch,o=e.commit,a=e.state,i=t.parent,r=t.count,c=void 0===r?a.childrenToAskFor:r;if(i&&null!==i)for(var s=a.observations.filter(function(e){return e.parentArtifactId===i.id||e.parentId===i.id}),l=s.length,u=i.children.length,E=u,f=0;E0&&0===T.children.length&&n("addStub",p.node),f!==c-1&&E!==l-1||o("ADD_LAST",{parentId:i.id,observationId:T.id,offsetToAdd:f+1,total:i.childrenLoaded})}},changeTreeOfNode:function(e,t){var n=e.commit,o=e.state,a=t.id,i=t.isUserTree,r=Object(d["f"])(o.tree,a);i?null===Object(d["f"])(o.userTree,a)?(n("UPDATE_USER_NODE",{node:r,userNode:!0}),n("ADD_NODE",{node:r,parentId:r.parentArtifactId||r.parentId,toUserTreeOnly:!0})):console.warn("Try to move to user tree an existing node: ".concat(a," - ").concat(r.label)):(n("UPDATE_USER_NODE",{node:r,userNode:!1}),n("REMOVE_NODE",{id:a}))},setVisibility:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.node,r=t.visible;if(i.isContainer){if(0!==i.childrenCount&&null===i.viewerIdx){var c=a.observations.find(function(e){return e.parentArtifactId===i.id||e.parentId===i.id});if("undefined"!==typeof c){var s=c.viewerIdx,l=c.viewerType,u=c.zIndexOffset;i.viewerIdx=s,i.viewerType=l,i.zIndexOffset=u}else i.zIndexOffset=null}null!==i.viewerIdx&&o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_FOLDER_VISIBLE",{nodeId:i.id,visible:r,zIndexOffset:i.zIndexOffset})}else o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_VISIBLE",{id:i.id,visible:r})},putObservationOnTop:function(e,t){var n=e.commit;n("SET_VISIBLE",{id:t,visible:!0})},setContextMenuObservationId:function(e,t){var n=e.commit;n("SET_CONTEXTMENU_OBSERVATIONID",t)},selectNode:function(e,t){var n=e.dispatch,o=e.state;if(null===t)n("view/setObservationInfo",null,{root:!0});else{var a=o.observations.find(function(e){return e.id===t});a&&(a.visible&&!a.top&&n("setVisibility",{node:a,visible:!0}),n("view/setObservationInfo",a,{root:!0}))}},setLoadingLayers:function(e,t){var n=e.commit,o=t.loading,a=t.observation;a&&n("SET_LOADING_LAYERS",{loading:o,observation:a})},loadFlowchart:function(e){var t=e.commit,n=e.getters,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r["g"].GRAPH_DATAFLOW;return new Promise(function(e,a){console.info("Ask for flowchart ".concat(o)),W["a"].get("".concat("").concat(c["c"].REST_API_EXPORT,"/").concat(o,"/").concat(n.contextId),{headers:{Accept:"application/json"}}).then(function(i){var r=i.data;if("undefined"!==typeof r&&null!==r)try{r.restored=n.context.restored,t("ADD_FLOWCHART",{flowchart:r,target:o}),e()}catch(e){a(new Error("Error in dataflow layout for the context ".concat(H.contextId,": ").concat(e)))}else a(new Error("Dataflow in context ".concat(H.contextId," has no layout")))}).catch(function(e){a(e)})})},setReloadFlowchart:function(e,t){var n=e.commit,o=t.target;n("SET_RELOAD_FLOWCHART",o)},setDataflowStatus:function(e,t){var n=e.commit,o=t.id,a=t.status;n("SET_DATAFLOW_STATUS",{id:o,status:a})},setDataflowInfo:function(e,t){var n=e.commit;if(null===t)n("SET_DATAFLOW_INFO",null);else{var o=t.id,a=t.html,i=t.rateable,r=t.rating,c=t.averageRating;if(null!==o&&""!==o){var s=o.split("."),l=s[s.length-1],u=s.slice(0,s.length-1);n("SET_DATAFLOW_INFO",{elementId:l,elementTypes:u,html:a,rateable:i,rating:r,averageRating:c})}}},storeSearchResult:function(e,t){var n=e.commit;n("STORE_RAW_SEARCH_RESULT",t)},setScaleReference:function(e,t){var n=e.commit;n("SET_SCALE_REFERENCE",t)},updateScaleReference:function(e,t){var n=e.commit;n("UPDATE_SCALE_REFERENCE",t)},setScaleLocked:function(e,t){var n=e.commit,o=t.scaleType,a=t.scaleLocked;n("SET_SCALE_LOCKED",{scaleType:o,scaleLocked:a})},setInteractiveMode:function(e,t){var n=e.commit;n("SET_INTERACTIVE_MODE",t)},setCrossingIDL:function(e,t){var n=e.commit;n("SET_CROSSING_IDL",t)},addTerminal:function(e,t){var n=e.state,o=e.commit,a=t.id,i=t.active,c=t.type;if(a){var s=n.terminals.findIndex(function(e){return e.id===a});-1!==s?console.warn("Terminal already exists"):n.terminals[s].active=!0}else a="".concat(n.session,"-").concat(++n.terminalsCounter),o("ADD_TERMINAL",{id:a,active:"undefined"===typeof i||i,type:c||r["M"].CONSOLE})},removeTerminal:function(e,t){var n=e.commit;n("REMOVE_TERMINAL",t)},addTerminalCommand:function(e,t){var n=e.commit;n("ADD_TERMINAL_COMMAND",t)},clearTerminalCommands:function(e){var t=e.commit;t("CLEAR_TERMINAL_COMMANDS")},loadDocumentation:function(e){var t=e.dispatch,n=e.getters,o=e.rootGetters,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(e,i){if(null===n.contextId)return console.warn("Ask documentation without context"),void i(new Error("Ask documentation without context"));null===a&&(a=o["view/documentationView"],null===a&&console.warn("No view selected")),W["a"].get("".concat("").concat(c["c"].REST_SESSION_OBSERVATION,"documentation/").concat(a,"/").concat(n.contextId),{}).then(function(n){var o=n.data;""===o?(console.warn("Empty report"),e(!1)):t("refreshDocumentation",{view:a,documentation:o}).then(function(){t("view/removeReloadView",a,{root:!0}).then(function(){e(!0)})})}).catch(function(e){i(e)})})},refreshDocumentation:function(e,t){var n=e.commit,o=t.view,a=t.documentation,i=[],c=[],s=new Map,l=function e(t,n,o,a){var i,l;switch(n.type===r["l"].SECTION?l=null===o?"".concat(a,"."):"".concat(o).concat(a,"."):(l=s.has(n.type)?s.get(n.type)+1:1,s.set(n.type,l)),n.type){case r["l"].SECTION:i="".concat(l," ").concat(n.title);break;case r["l"].TABLE:i="".concat(Object(j["b"])().tc("label.reportTable")," ").concat(l,". ").concat(n.bodyText);break;case r["l"].RESOURCE:i=n.title;break;case r["l"].MODEL:i=n.id;break;case r["l"].REFERENCE:i=n.id;break;case r["l"].FIGURE:i="".concat(Object(j["b"])().tc("label.reportFigure")," ").concat(l,". ").concat(n.figure.label);break;default:i=n.type}var u={type:n.type,id:n.id,idx:l,parentId:n.parentId,previousId:n.previousId,nextId:n.nextId,label:i,children:[]},d=0;n.children.forEach(function(t){var n=-1;t.type===r["l"].SECTION&&(n=++d),e(u.children,t,l,n)}),t.push(u),c.push({id:n.id,idx:l,label:i,type:n.type,title:n.title,subtitle:n.subtitle,bodyText:n.bodyText,model:n.model,section:n.section,resource:n.resource,table:n.table,figure:n.figure,reference:n.reference})},u=0;a.forEach(function(e,t){l(i,e,null,e.type===r["l"].SECTION?++u:t)}),n("SET_DOCUMENTATION",{view:o,tree:i}),n("ADD_DOCUMENTATION",c)}},B={namespaced:!0,state:D,getters:M,mutations:V,actions:z},K={stompClient:null,connectionState:r["f"].CONNECTION_UNKNOWN,reconnectionsAttempt:0,subscriber:null,sentMessages:[],receivedMessages:[],queuedMessage:null,tasks:[],subscriptions:[]},Q={connectionDown:function(e){return e.connectionState!==r["f"].CONNECTION_UP},lastError:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["y"].TYPE_ERROR}).slice(-1);return 1===t.length?t[0]:null},lastMessage:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["y"].TYPE_MESSAGE}).slice(-1);return 1===t.length?t[0]:null},lastReceivedMessage:function(e){return e.receivedMessages.length>0?e.receivedMessages.slice(-1)[0]:null},lastSendedMessage:function(e){return e.sentMessages.length>0?e.sentMessages.slice(-1)[0]:null},subscriberId:function(e){return null!==e.subscriber?e.subscriber.id:null},queuedMessage:function(e){return e.queuedMessage},connectionState:function(e){return e.connectionState},connectionUp:function(e){return e.connectionState===r["f"].CONNECTION_UP},tasks:function(e){return e.tasks},taskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.id===t&&e.alive})}},taskOfContextIsAlive:function(e,t,n,o){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===o["data/contextId"]&&e.alive})},contextTaskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===t&&e.alive})}},hasTasks:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return-1!==e.tasks.findIndex(function(e){return e.alive&&(null===t||e.contextId===t)})}},lastActiveTask:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e.tasks.filter(function(e){return e.alive&&(null===t||e.contextId===t)});return n.length>0?n.pop():null}}},X={STOMP_CONNECTION_STATE:function(e,t){e.connectionState=t},STOMP_ERROR:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["y"].TYPE_ERROR,message:t})},STOMP_MESSAGE:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["y"].TYPE_MESSAGE,message:t})},STOMP_SEND_MESSAGE:function(e,t){Object(d["p"])(e.sentMessages,p()({date:_()().format("HH:mm:ss")},t))},STOMP_SUBSCRIBED:function(e,t){e.subscriber=t},STOMP_RECONNECTIONS_ATTEMPT:function(e,t){e.reconnectionsAttempt=t},STOMP_RECONNECTIONS_ATTEMPT_RESET:function(e){e.reconnectionsAttempt=0},STOMP_QUEUE_MESSAGE:function(e,t){e.queuedMessage=t},STOMP_CLEAN_QUEUE:function(e){e.queuedMessage=null},TASK_START:function(e,t){var n=t.id,o=t.contextId,a=t.description;-1!==e.tasks.findIndex(function(e){return e.id===n})?console.debug("Received duplicated start task id: ".concat(n," - ").concat(a)):e.tasks.push({id:n,contextId:o,description:a,alive:!0})},TASK_END:function(e,t){var n=t.id,o=e.tasks.findIndex(function(e){return e.id===n});if(-1!==o){var a=e.tasks[o];a.alive=!1,e.tasks.splice(o,1,a)}else console.debug("Task with id = ".concat(n," not founded or is not alive"))}};function q(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e("view/addToKexplorerLog",{type:t,payload:{message:n,attach:o},important:a},{root:!0})}var J=(o={},k()(o,c["a"].TYPE_TASKSTARTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskStart",n,{root:!0}),q(o,r["y"].TYPE_DEBUG,"Started task with id ".concat(n.id)),o("view/addToStatusTexts",{id:n.id,text:n.description},{root:!0})}),k()(o,c["a"].TYPE_TASKABORTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskAbort",n,{root:!0}),q(o,r["y"].TYPE_ERROR,"Aborted task with id ".concat(n.id),n),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_TASKFINISHED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskEnd",n,{root:!0}),q(o,r["y"].TYPE_DEBUG,"Ended task with id ".concat(n.id)),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_PROVENANCECHANGED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["y"].TYPE_INFO,"Provenance of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["y"].TYPE_DEBUG,"Provenance available in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWCOMPILED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["y"].TYPE_INFO,"Dataflow of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["y"].TYPE_DEBUG,"Dataflow compiled in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWSTATECHANGED,function(e,t){var n,o=e.payload,a=t.dispatch;n="STARTED"===o.status?r["i"].PROCESSING:"FINISHED"===o.status?r["i"].PROCESSED:"ABORTED"===o.status?r["i"].ABORTED:r["i"].WAITING,a("data/setDataflowStatus",{id:o.nodeId,status:n},{root:!0})}),k()(o,c["a"].TYPE_DATAFLOWDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;n&&n.dataflowId&&n.htmlDescription?(q(o,r["y"].TYPE_DEBUG,"Dataflow element info received",n),o("data/setDataflowInfo",{id:n.dataflowId,html:n.htmlDescription,rateable:n.rateable,rating:n.rating,averageRating:n.averageRating},{root:!0})):q(o,r["y"].TYPE_WARNING,"Strange payload of dataflow element info received",n)}),k()(o,c["a"].TYPE_NEWOBSERVATION,function(e,t){var n=e.payload,o=t.rootState,a=t.rootGetters,i=t.dispatch,c=o.stomp.tasks.find(function(e){return e.id===n.taskId});"undefined"===typeof c&&-1!==o.data.contextsHistory.findIndex(function(e){return e.id===n.contextId})&&(i("stomp/taskStart",{id:n.taskId,description:r["p"].UNKNOWN_SEARCH_OBSERVATION,contextId:n.contextId},{root:!0}),i("view/addToStatusTexts",{id:n.taskId,text:r["p"].UNKNOWN_SEARCH_OBSERVATION},{root:!0}),q(i,r["y"].TYPE_INFO,"Received an observation of previous context with no task associated. Session was been reloaded?",n)),null===n.parentId?null===a["data/context"]?(q(i,r["y"].TYPE_DEBUG,"New context received with id ".concat(n.id),n),i("data/setContext",{context:n},{root:!0}),"undefined"!==typeof n.scaleReference&&null!==n.scaleReference&&i("data/setScaleReference",n.scaleReference,{root:!0})):q(i,r["y"].TYPE_ERROR,"Strange behaviour: observation with no parent in existing context: ".concat(n.id," - ").concat(n.label),n):null!==a["data/context"]&&(a["data/context"].id===n.rootContextId||c&&a["data/context"].id===c.contextId)?(q(i,r["y"].TYPE_INFO,"New observation received with id ".concat(n.id,", rootContextId ").concat(n.rootContextId," and contextId ").concat(n.contextId),n),n.notified=!0,i("data/addObservation",{observation:n},{root:!0})):q(i,r["y"].TYPE_INFO,"Received an observation of different context",n,null,4)}),k()(o,c["a"].TYPE_MODIFIEDOBSERVATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_DEBUG,"Received a modification event",n),o("data/addModificationEvent",n,{root:!0})}),k()(o,c["a"].TYPE_QUERYRESULT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received search results",n),o("data/storeSearchResult",n,{root:!0})}),k()(o,c["a"].TYPE_RESETCONTEXT,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Received context reset"),N["b"].$emit(r["h"].RESET_CONTEXT),n("data/resetContext",null,{root:!0})}),k()(o,c["a"].TYPE_SCALEDEFINED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scale reference",n),o("data/setScaleReference",n,{root:!0})}),k()(o,c["a"].TYPE_USERINPUTREQUESTED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Received input request",e.payload),n("view/inputRequest",e,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULEADVANCED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received schedule advanced",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGSTARTED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scheduling started",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGFINISHED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scheduling finished",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_ENGINEEVENT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Engine event received",n),o("view/setEngineEvent",n,{root:!0})}),k()(o,c["a"].TYPE_DEBUG,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_DEBUG,n)}),k()(o,c["a"].TYPE_INFO,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,n)}),k()(o,c["a"].TYPE_WARNING,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_WARNING,n)}),k()(o,c["a"].TYPE_ERROR,function(e,t){var n=e.payload,o=t.dispatch;n===r["f"].UNKNOWN_IDENTITY?N["b"].$emit(r["h"].SESSION_CUT):q(o,r["y"].TYPE_ERROR,n)}),k()(o,c["a"].TYPE_USERPROJECTOPENED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Project opened in k.Modeler")}),k()(o,c["a"].TYPE_PROJECTFILEMODIFIED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Project modified in k.Modeler")}),k()(o,c["a"].TYPE_NETWORKSTATUS,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Network status received",n)}),k()(o,c["a"].TYPE_AUTHORITYDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Authority documentation message received",n)}),k()(o,c["a"].TYPE_SETUPINTERFACE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setLayout",n,{root:!0}),q(o,r["y"].TYPE_INFO,"App ".concat(n.name," loaded"),n,!0)}),k()(o,c["a"].TYPE_CREATEMODALWINDOW,function(e,t){var n=e.payload,o=t.dispatch;o("view/setModalWindow",n,{root:!0}),q(o,r["y"].TYPE_INFO,"Modal ".concat(n.name," loaded"),n)}),k()(o,c["a"].TYPE_CREATEVIEWCOMPONENT,function(e,t){var n=e.payload,o=t.dispatch;o("view/createViewComponent",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New create view component received",n)}),k()(o,c["a"].TYPE_VIEWACTION,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewAction",n,{root:!0}),N["b"].$emit(r["h"].VIEW_ACTION),q(o,r["y"].TYPE_INFO,"New view action received",n)}),k()(o,c["a"].TYPE_VIEWSETTING,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewSetting",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New view setting received",n)}),k()(o,c["a"].TYPE_VIEWAVAILABLE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setDocumentation",{id:n.viewId,view:n.viewClass},{root:!0}),q(o,r["y"].TYPE_INFO,"New documentation available",n)}),k()(o,c["a"].TYPE_DOCUMENTATIONCHANGED,function(e,t){var n=e.payload,o=t.dispatch;o("view/changeInDocumentation",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New change in documentation",n)}),k()(o,c["a"].TYPE_COMMANDRESPONSE,function(e,t){var n=e.payload,o=t.dispatch;N["b"].$emit(r["h"].COMMAND_RESPONSE,n),q(o,r["y"].TYPE_INFO,"Command response received",n)}),o),$=function(e){var t=e.body,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=JSON.parse(t),a=n.dispatch;return o.messageClass===c["a"].CLASS_NOTIFICATION&&a("view/addToKlabLog",o,{root:!0}),Object.prototype.hasOwnProperty.call(J,o.type)?J[o.type](o,n):(console.warn("Unknown parser ".concat(o.type)),!1)},Z={stomp_onconnect:function(e,t){var n=e.commit;n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_UP),n("STOMP_RECONNECTIONS_ATTEMPT_RESET"),n("STOMP_MESSAGE",t)},stomp_onclose:function(e){var t=e.commit;t("STOMP_CONNECTION_STATE",r["f"].CONNECTION_DOWN)},stomp_onerror:function(e,t){var n=e.dispatch;n("setConnectionState",{state:r["f"].CONNECTION_ERROR,message:t})},setConnectionState:function(e,t){var n=e.commit,o=t.state,a=t.message;n("STOMP_CONNECTION_STATE",o),n("STOMP_ERROR",a)},stomp_onmessage:function(e,t){var n=e.commit;n("STOMP_MESSAGE",t),$(t,e)},stomp_onsubscribe:function(e,t){var n=e.commit;n("STOMP_SUBSCRIBED",t)},stomp_reconnect:function(e,t){var n=e.commit;n("STOMP_RECONNECTIONS_ATTEMPT",t),n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_WORKING)},stomp_onsend:function(e,t){var n=e.commit,o=t.message;n("STOMP_SEND_MESSAGE",o)},stomp_onerrorsend:function(e,t){var n=e.commit;n("STOMP_QUEUE_MESSAGE",t)},stomp_cleanqueue:function(e){var t=e.commit;t("STOMP_CLEAN_QUEUE")},taskStart:function(e,t){var n=e.commit,o=e.dispatch;o("view/setSpinner",p()({},r["J"].SPINNER_LOADING,{owner:t.id}),{root:!0}),n("TASK_START",t)},taskAbort:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t.id}),{root:!0})},taskEnd:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t.id}),{root:!0})}},ee={namespaced:!0,state:K,getters:Q,mutations:X,actions:Z};a["a"].use(i["a"]);var te=new i["a"].Store({modules:{view:C,data:B,stomp:ee}});t["a"]=te},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d833","./ar-tn.js":"6d833","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="4678"},"7cca":function(e,t,n){"use strict";n.d(t,"g",function(){return l}),n.d(t,"t",function(){return u}),n.d(t,"w",function(){return d}),n.d(t,"O",function(){return E}),n.d(t,"P",function(){return f}),n.d(t,"x",function(){return T}),n.d(t,"H",function(){return p}),n.d(t,"S",function(){return S}),n.d(t,"f",function(){return m}),n.d(t,"y",function(){return O}),n.d(t,"A",function(){return b}),n.d(t,"C",function(){return A}),n.d(t,"q",function(){return _}),n.d(t,"R",function(){return I}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return N}),n.d(t,"J",function(){return R}),n.d(t,"p",function(){return C}),n.d(t,"i",function(){return g}),n.d(t,"h",function(){return L}),n.d(t,"D",function(){return w}),n.d(t,"F",function(){return P}),n.d(t,"E",function(){return y}),n.d(t,"z",function(){return D}),n.d(t,"N",function(){return M}),n.d(t,"G",function(){return x}),n.d(t,"I",function(){return k}),n.d(t,"s",function(){return U}),n.d(t,"B",function(){return F}),n.d(t,"v",function(){return Y}),n.d(t,"Q",function(){return W}),n.d(t,"o",function(){return G}),n.d(t,"a",function(){return j}),n.d(t,"c",function(){return H}),n.d(t,"b",function(){return z}),n.d(t,"k",function(){return K}),n.d(t,"j",function(){return Q}),n.d(t,"M",function(){return X}),n.d(t,"L",function(){return q}),n.d(t,"n",function(){return J}),n.d(t,"l",function(){return $}),n.d(t,"m",function(){return Z}),n.d(t,"r",function(){return ee}),n.d(t,"K",function(){return te}),n.d(t,"u",function(){return ne});var o,a=n("9523"),i=n.n(a),r=(n("f559"),n("cadf"),n("456d"),n("ac6a"),n("3156")),c=n.n(r),s=n("e7d8"),l={EMPTY_MAP_SELECTION:{pixelSelected:null,layerSelected:null,value:null,locked:!1},HIST_MAX_LENGTH:50,CHILDREN_TO_ASK_FOR:25,SEARCHBAR_SIZE:512,SEARCHBAR_INCREMENT:128,MAX_SEARCHBAR_INCREMENTS:6,TARGET_DATAFLOW:"DATAFLOW",TARGET_PROVENANCE:"PROVENANCE",GRAPH_DATAFLOW:"dataflow",GRAPH_PROVENANCE_FULL:"provenance_full",GRAPH_PROVENANCE_SIMPLIFIED:"provenance_simplified"},u=[{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_DATAFLOW,type:l.GRAPH_DATAFLOW,label:"Dataflow"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_FULL,label:"Provenance full"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_SIMPLIFIED,label:"Provenance simplified"}],d={LEFTMENU_MAXSIZE:512,LEFTMENU_MINSIZE:80,LEFTMENU_DOCUMENTATION_SIZE:320,LEFTMENU_MAXIMIZED:"max",LEFTMENU_MINIMIZED:"min",LEFTMENU_HIDDEN:"hidden",DATA_VIEWER_COMPONENT:"klab-main-control",DOCKED_DATA_VIEWER_COMPONENT:"docked-main-control",REPORT_VIEWER_COMPONENT:"reports-details",DOCUMENTATION_VIEWER_COMPONENT:"documentation-tree",DATAFLOW_VIEWER_COMPONENT:"dataflow-details",DATAFLOW_INFO_COMPONENT:"dataflow-info",PROVENANCE_VIEWER_COMPONENT:"provenance-details",LOG_COMPONENT:"klab-log-pane"},E={DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_HIDDEN,leftMenuContent:d.DATA_VIEWER_COMPONENT,mainControl:!0,hasSearch:!0},DOCKED_DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_MAXIMIZED,leftMenuContent:d.DOCKED_DATA_VIEWER_COMPONENT,mainControl:!1,hasSearch:!0},DOCUMENTATION_VIEWER:{name:"KlabDocumentation",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DOCUMENTATION_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},REPORT_VIEWER:{name:"ReportViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.REPORT_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},DATAFLOW_VIEWER:{name:"DataflowViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DATAFLOW_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},PROVENANCE_VIEWER:{name:"ProvenanceViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.PROVENANCE_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1}},f={VIEW_MAP:{component:"MapViewer",label:"Maps",hideable:!1,forceNew:!1},VIEW_CHART:{component:"ChartViewer",label:"Chart",hideable:!0,forceNew:!0},VIEW_GRAPH:{component:"GraphViewer",label:"Graph",hideable:!0,forceNew:!0},VIEW_BLOB:{component:"BlobViewer",label:"Blob",hideable:!1,forceNew:!1},VIEW_UNKNOWN:{component:"UnknownViewer",label:"Under construction",hideable:!1,forceNew:!1}},T={CONCEPT:{label:"Concept",symbol:"C",color:"sem-types",rgb:"rgb(38, 50, 56)"},PREFIX_OPERATOR:{label:"Prefix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},INFIX_OPERATOR:{label:"Infix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},OBSERVATION:{label:"Observation",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODEL:{label:"Model",symbol:"M",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODIFIER:{label:"Modifier",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},PRESET_OBSERVABLE:{label:"Preset observable",symbol:"O",color:"sem-preset-observable",rgb:"rgb(240, 240, 240)"},SEPARATOR:{label:"Separator",symbol:"S",color:"sem-separator",rgb:"rgb(10, 10, 10)"},NEXT_TOKENS:{TOKEN:"TOKEN",TEXT:"TEXT",INTEGER:"INTEGER",DOUBLE:"DOUBLE",BOOLEAN:"BOOLEAN",UNIT:"UNIT",CURRENCY:"CURRENCY"}},p={QUALITY:{label:"Quality",symbol:"Q",color:"sem-quality",rgb:"rgb(0, 153, 0)"},SUBJECT:{label:"Subject",symbol:"S",color:"sem-subject",rgb:"rgb(153, 76, 0)"},IDENTITY:{label:"identity",symbol:"Id",color:"sem-identity",rgb:"rgb(0, 102, 204)"},ATTRIBUTE:{label:"Attribute",symbol:"A",color:"sem-attribute",rgb:"rgb(0, 102, 204)"},REALM:{label:"Realm",symbol:"R",color:"sem-realm",rgb:"rgb(0, 102, 204)"},TRAIT:{label:"Trait",symbol:"T",color:"sem-trait",rgb:"rgb(0, 102, 204)"},EVENT:{label:"Event",symbol:"E",color:"sem-event",rgb:"rgb(53, 153, 0)"},RELATIONSHIP:{label:"Relationship",symbol:"R",color:"sem-relationship",rgb:"rgb(210, 170, 0)"},PROCESS:{label:"Process",symbol:"P",color:"sem-process",rgb:"rgb(204, 0, 0)"},ROLE:{label:"Role",symbol:"R",color:"sem-role",rgb:"rgb(0, 86, 163)"},CONFIGURATION:{label:"Configuration",symbol:"C",color:"sem-configuration",rgb:"rgb(98, 98, 98)"},DOMAIN:{label:"Domain",symbol:"D",color:"sem-domain",rgb:"rgb(240, 240, 240)"}},S={nodes:[],links:[],showMenu:!1,selected:{},showSelection:!1,linksSelected:{},options:{canvas:!1,size:{w:500,h:500},force:350,offset:{x:0,y:0},nodeSize:20,linkWidth:1,nodeLabels:!0,linkLabels:!1,strLinks:!0}},m={CONNECTION_UNKNOWN:"UNKNOWN",CONNECTION_UP:"UP",CONNECTION_DOWN:"DOWN",CONNECTION_WORKING:"WORKING",CONNECTION_ERROR:"ERROR",UNKNOWN_IDENTITY:"UNKNOWN_IDENTITY"},O={TYPE_DEBUG:"debug",TYPE_WARNING:"warning",TYPE_ERROR:"error",TYPE_INFO:"info",TYPE_MESSAGE:"MSG",TYPE_ALL:"ALL"},b={TYPE_PROCESS:"PROCESS",TYPE_STATE:"STATE",TYPE_SUBJECT:"SUBJECT",TYPE_CONFIGURATION:"CONFIGURATION",TYPE_EVENT:"EVENT",TYPE_RELATIONSHIP:"RELATIONSHIP",TYPE_GROUP:"GROUP",TYPE_VIEW:"VIEW",TYPE_INITIAL:"INITIAL"},A={shapeType:"POINT",encodedShape:"POINT (40.299841 9.343971)",id:null,label:"DEFAULT",parentId:-1,visible:!0,spatialProjection:"EPSG:4326",observationType:b.TYPE_INITIAL},_={TYPE_RASTER:"RASTER",TYPE_SHAPE:"SHAPE",TYPE_SCALAR:"SCALAR",TYPE_TIMESERIES:"TIMESERIES",TYPE_NETWORK:"NETWORK",TYPE_PROPORTIONS:"PROPORTIONS",TYPE_COLORMAP:"COLORMAP",SHAPE_POLYGON:"POLYGON",SHAPE_POINT:"POINT",PARAM_VIEWPORT_SIZE:800,PARAM_VIEWPORT_MAX_SIZE:7680,PARAM_VIEWPORT_MULTIPLIER:1},I={PARAMS_MODE:"mode",PARAMS_MODE_IDE:"ide",PARAMS_MODE_STANDALONE:"standalone",PARAMS_SESSION:"session",PARAMS_LOG:"log",PARAMS_LOG_HIDDEN:"hidden",PARAMS_LOG_VISIBLE:"visible",PARAMS_LOCAL_HELP:"localhelp",PARAMS_APP:"app",PARAMS_DEBUG_REMOTE:"remote-debug",PARAMS_STOMP_DEBUG:"stomp-debug",PARAMS_TOKEN:"token",COOKIE_LANG:"klab_exp_lang",COOKIE_SESSION:"klab_session",COOKIE_MODE:"klab_mode",COOKIE_LOG:"klab_log",COOKIE_BASELAYER:"klab_baselayer",COOKIE_MAPDEFAULT:"klab_mapdefault",COOKIE_SAVELOCATION:"klab_saveLocation",COOKIE_HELP_ON_START:"klab_helponstart",COOKIE_DOCKED_STATUS:"klab_dockedstatus",COOKIE_NOTIFICATIONS:"klab_notifications",COOKIE_TERMINAL_SIZE:"klab_terminalsize",COOKIE_VIEW_COORDINATES:"klab_coordinates",LOCAL_STORAGE_APP_ID:"klab:appId",LOCAL_STORAGE_TERMINAL_COMMANDS:"klab:terminalCommands"},v={NOTIFICATIONS_URL:"".concat("https://integratedmodelling.org","/statics/notifications/index.php")},N={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED_HEX:"#ff6464",MAIN_COLOR_HEX:"#11aabb",MAIN_GREEN_HEX:"#e7ffdb",MAIN_CYAN_HEX:"#e4fdff",MAIN_YELLOW_HEX:"#ffc300",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#DA1F26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning"},h={SPINNER_STOPPED_COLOR:N.MAIN_COLOR,SPINNER_LOADING_COLOR:N.MAIN_YELLOW,SPINNER_MC_RED:N.MAIN_RED,SPINNER_ERROR_COLOR:N.NEGATIVE_NAME},R={SPINNER_LOADING:{color:h.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:h.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:h.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:h.SPINNER_STOPPED_COLOR,animated:!1}}},C={UNKNOWN_SEARCH_OBSERVATION:"$$UNKNOWN_SEARCH_OBSERVATION$$"},g={WAITING:"waiting",PROCESSING:"processing",PROCESSED:"processed",ABORTED:"aborted"},L={MAP_SIZE_CHANGED:"mapsizechanged",UPDATE_FOLDER:"updatefolder",GRAPH_NODE_SELECTED:"graphnodeselected",SPINNER_DOUBLE_CLICK:"spinnerdoubleclick",SHOW_NODE:"shownode",ASK_FOR_UNDOCK:"askforundock",ASK_FOR_SUGGESTIONS:"askforsuggestions",NEED_FIT_MAP:"needfitmap",TREE_VISIBLE:"treevisible",VIEWER_CLICK:"viewerclick",VIEWER_SELECTED:"viewerselected",VIEWER_CLOSED:"viewerclosed",OBSERVATION_INFO_CLOSED:"observationinfoclosed",SEND_REGION_OF_INTEREST:"sendregionofinterest",NEED_HELP:"needhelp",OBSERVATION_BY_TIME:"observationbytime",NEED_LAYER_BUFFER:"needlayerbuffer",COMPONENT_ACTION:"componentaction",LAYOUT_CHANGED:"layoutchanged",SELECT_ELEMENT:"selectelement",PROPOSED_CONTEXT_CHANGE:"proposedcontextchange",NEW_SCHEDULING:"newscheduling",SHOW_NOTIFICATIONS:"shownotifications",TERMINAL_FOCUSED:"terminalfocused",COMMAND_RESPONSE:"commandresponse",REFRESH_DOCUMENTATION:"refreshdocumentation",PRINT_DOCUMENTATION:"printdocumentation",SHOW_DOCUMENTATION:"showdowcumentation",FONT_SIZE_CHANGE:"fontsizechange",DOWNLOAD_URL:"downloadurl",RESET_CONTEXT:"resetcontext",VIEW_ACTION:"viewaction",SESSION_CUT:"sessioncut",SHOW_DATA_INFO:"showdatainfo"},w={ST_SPACE:"space",ST_TIME:"time"},P={CENTIMETERS:"cm",METERS:"m",KILOMETERS:"km",MILLENNIUM:"MILLENNIUM",CENTURY:"CENTURY",DECADE:"DECADE",YEAR:"YEAR",MONTH:"MONTH",WEEK:"WEEK",DAY:"DAY",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND"},y=[{i18nlabel:"unitCentimeter",type:w.ST_SPACE,value:P.CENTIMETERS,selectable:!0},{i18nlabel:"unitMeter",type:w.ST_SPACE,value:P.METERS,selectable:!0},{i18nlabel:"unitKilometer",type:w.ST_SPACE,value:P.KILOMETERS,selectable:!0},{i18nlabel:"unitMillennium",type:w.ST_TIME,value:P.MILLENNIUM,selectable:!1,momentShorthand:"y",momentMultiplier:1e3,index:0},{i18nlabel:"unitCentury",type:w.ST_TIME,value:P.CENTURY,selectable:!0,momentShorthand:"y",momentMultiplier:100,index:1},{i18nlabel:"unitDecade",type:w.ST_TIME,value:P.DECADE,selectable:!0,momentShorthand:"y",momentMultiplier:10,index:2},{i18nlabel:"unitYear",type:w.ST_TIME,value:P.YEAR,selectable:!0,momentShorthand:"y",momentMultiplier:1,index:3},{i18nlabel:"unitMonth",type:w.ST_TIME,value:P.MONTH,selectable:!0,momentShorthand:"M",momentMultiplier:1,index:4},{i18nlabel:"unitWeek",type:w.ST_TIME,value:P.WEEK,selectable:!0,momentShorthand:"W",momentMultiplier:1,index:5},{i18nlabel:"unitDay",type:w.ST_TIME,value:P.DAY,selectable:!0,momentShorthand:"d",momentMultiplier:1,index:6},{i18nlabel:"unitHour",type:w.ST_TIME,value:P.HOUR,selectable:!0,momentShorthand:"h",momentMultiplier:1,index:7},{i18nlabel:"unitMinute",type:w.ST_TIME,value:P.MINUTE,selectable:!0,momentShorthand:"m",momentMultiplier:1,index:8},{i18nlabel:"unitSecond",type:w.ST_TIME,value:P.SECOND,selectable:!1,momentShorthand:"s",momentMultiplier:1,index:9},{i18nlabel:"unitMillisecond",type:w.ST_TIME,value:P.MILLISECOND,selectable:!1,momentShorthand:"ms",momentMultiplier:1,index:10}],D={SPATIAL_TRANSLATION:"SpatialTranslation",SPATIAL_CHANGE:"SpatialChange",TERMINATION:"Termination",STRUCTURE_CHANGE:"StructureChange",NAME_CHANGE:"NameChange",ATTRIBUTE_CHANGE:"AttributeChange",VALUE_CHANGE:"ValueChange",BRING_FORWARD:"BringForward",CONTEXTUALIZATION_COMPLETED:"ContextualizationCompleted"},M={DEFAULT_STEP:864e5,DEFAULT_INTERVAL:100,PIXEL_TIME_MULTIPLIER:1,MIN_PLAY_TIME:6e4,MAX_PLAY_TIME:6e4},x={SEMANTIC:"SEMANTIC",FREETEXT:"FREETEXT"},k={INTERACTIVE_MODE:"InteractiveMode",LOCK_SPACE:"LockSpace",LOCK_TIME:"LockTime"},U={DEFAULT_MODAL_SIZE:{width:1024,height:768},DEFAULT_PROPORTIONS:{width:4,height:3},DEFAULT_WIDTH_PERCENTAGE:90,DEFAULT_HEIGHT_PERCENTAGE:90,DEFAULT_HELP_BASE_URL:"https://integratedmodelling.org/statics/help"},V={actionLabel:null,actionId:null,downloadUrl:null,downloadFileExtension:null,enabled:!1,separator:!1,submenu:[]},F={SEPARATOR_ITEM:c()({},V,{enabled:!0,separator:!0}),RECONTEXTUALIZATION_ITEM:c()({},V,{actionId:"Recontextualization",actionLabel:Object(s["b"])().tc("label.recontextualization"),enabled:!0})},Y=[{viewClass:"table",label:Object(s["b"])().tc("label.kwTable"),icon:"mdi-table",exportIcons:[{type:"xlsx",icon:"mdi-file-excel"}]},{viewClass:"chart",label:Object(s["b"])().tc("label.kwChart"),icon:"mdi-chart-bar",exportIcons:[]}],W={OBSERVATION:"Observation",VIEW:"View",TREE:"Tree",REPORT:"Report",DATAFLOW:"Dataflow",SHOW:"Show",HIDE:"Hide",URL:"Url",DOWNLOAD:"Download"},G={RESOURCE_VALIDATION:"ResourceValidation"},j={PANEL:"Panel",ALERT:"Alert",PUSH_BUTTON:"PushButton",CHECK_BUTTON:"CheckButton",RADIO_BUTTON:"RadioButton",TEXT_INPUT:"TextInput",COMBO:"Combo",GROUP:"Group",MAP:"Map",TREE:"Tree",TREE_ITEM:"TreeItem",CONFIRM:"Confirm",VIEW:"View",CONTAINER:"Container",MULTICONTAINER:"MultiContainer",LABEL:"Label",TEXT:"Text",TABLE:"Table",NOTIFICATION:"Notification",INPUT_GROUP:"InputGroup",SEPARATOR:"Separator",MODAL_WINDOW:"ModalWindow",WINDOW:"Window",BROWSER:"Browser",IMAGE:"Image"},H={USER_ACTION:"UserAction",ENABLE:"Enable",HIDE:"Hide",UPDATE:"Update",MENU_ACTION:"MenuAction"},z={LABEL_MIN_WIDTH:"150px",DEFAULT_LOGO:"statics/klab-logo.png"},B=/^\d+\D{1,2}/,K=function(e){var t={};return Object.keys(e.attributes).forEach(function(n){var o=e.attributes[n];switch(n){case"hidden":t.display="none";break;case"width":"content"===o?t["flex-basis"]="0":o.startsWith("col")?t["flex-grow"]=o.substring(3):t.width="".concat(o).concat(B.test(o)?"":"px");break;case"height":t.height="".concat(o).concat(B.test(o)?"":"px");break;case"hfill":e.attributes.hbox&&(t["flex-wrap"]="nowrap"),t.width="100%";break;case"vfill":t["flex-grow"]=1;break;case"top":case"bottom":case"middle":e.attributes.parentAttributes&&(e.attributes.parentAttributes.hbox||e.attributes.parentAttributes.vbox)?t["align-self"]="top"===n?"flex-start":"bottom"===n?"flex-end":"center":e.attributes.hbox||e.attributes.vbox?t["justify-content"]=n:t["vertical-align"]=n;break;case"hbox":case"vbox":t["flex-direction"]="hbox"===n?"row":"column",e.attributes.center&&(t["align-items"]="center");break;case"left":case"right":t["text-align"]=n;break;default:break}}),t},Q={dark:{"main-color":"white","positive-color":"rgb(116, 212, 116)","negative-color":"rgb(250, 117, 117)","background-color":"rgb(18, 18, 18)","alt-background":"rgb(99,99,99)","text-color":"white","control-text-color":"black","title-color":"white","alt-color":"rgb(0, 204, 204)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},light:{"main-color":"black","background-color":"white","alt-background":"rgb(233,233,233)","text-color":"black","control-text-color":"white","title-color":"black","alt-color":"rgb(0,138,150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},worst:{"main-color":"green","background-color":"yellow","alt-background":"fuchsia","text-color":"red","control-text-color":"yellow","title-color":"indigo","alt-color":"blue","font-family":"comics","font-size":"1.2em","title-size":"32px","subtitle-size":"20px","line-height":"1.2em"},default:{"main-color":"rgb(0, 92, 129)","background-color":"rgb(250, 250, 250)","alt-background":"rgb(222, 222, 222)","text-color":"rgb(0, 92, 129)","control-text-color":"rgb(250, 250, 250)","title-color":"rgb(0, 92, 129)","alt-color":"rgb(0, 138, 150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"}},X={DEBUGGER:"Debugger",CONSOLE:"Console"},q=[{value:"80x24",label:"80x24",cols:80,rows:24},{value:"80x43",label:"80x43",cols:80,rows:43},{value:"132x24",label:"132x24",cols:132,rows:24},{value:"132x43",label:"132x43",cols:132,rows:43}],J={REPORT:"REPORT",FIGURES:"FIGURES",TABLES:"TABLES",RESOURCES:"RESOURCES",MODELS:"MODELS",PROVENANCE:"PROVENANCE",REFERENCES:"REFERENCES"},$={REPORT:"Report",SECTION:"Section",PARAGRAPH:"Paragraph",TABLE:"Table",CHART:"Chart",FIGURE:"Figure",RESOURCE:"Resource",MODEL:"Model",REFERENCE:"Reference",CITATION:"Citation",VIEW:"View",LINK:"Link",ANCHOR:"Anchor"},Z=(o={},i()(o,$.REPORT,J.REPORT),i()(o,$.SECTION,J.REPORT),i()(o,$.PARAGRAPH,J.REPORT),i()(o,$.TABLE,J.TABLES),i()(o,$.CHART,J.REPORT),i()(o,$.FIGURE,J.FIGURES),i()(o,$.RESOURCE,J.RESOURCES),i()(o,$.MODEL,J.MODELS),i()(o,$.REFERENCE,J.REPORT),i()(o,$.CITATION,J.REPORT),i()(o,$.VIEW,J.REPORT),i()(o,$.LINK,J.REPORT),i()(o,$.ANCHOR,J.REPORT),o),ee={KLAB_AUTHORIZATION:"klab-authorization"},te={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",CONCEPT:"CONCEPT",PROCESS:"PROCESS",EVENT:"EVENT",OBJECT:"OBJECT",TEXT:"TEXT",VALUE:"VALUE",RANGE:"RANGE",ENUM:"ENUM",EXTENT:"EXTENT",TEMPORALEXTENT:"TEMPORALEXTENT",SPATIALEXTENT:"SPATIALEXTENT",ANNOTATION:"ANNOTATION",LIST:"LIST",VOID:"VOID",MAP:"MAP",TABLE:"TABLE"},ne={URL:__ENV__.KEYCLOAK_URL,REALM:"im",CLIENT_ID:"k.Explorer",TOKEN:"vue-token",REFRESH_TOKEN:"vue-refresh-token",BEARER:"Bearer "}},"7e6d":function(e,t,n){},8449:function(e,t,n){"use strict";n.d(t,"b",function(){return d});n("ac6a"),n("cadf"),n("456d");var o=n("7037"),a=n.n(o),i=(n("386d"),n("7cca")),r=n("1442"),c=n("8fec"),s=n("be3b"),l=n("741d"),u=n("2b0e"),d=new u["a"];t["a"]=function(e){var t,n=e.store,o=new URLSearchParams(window.location.search),E=o.get(i["R"].PARAMS_SESSION)||l["a"].get(i["R"].COOKIE_SESSION),f=o.get(i["R"].PARAMS_MODE)||l["a"].get(i["R"].COOKIE_MODE)||i["R"].PARAMS_MODE_IDE,T=o.get(i["R"].PARAMS_LOG)||l["a"].get(i["R"].COOKIE_LOG)||i["R"].PARAMS_LOG_HIDDEN,p=l["a"].get(i["R"].COOKIE_BASELAYER)||r["d"].DEFAULT_BASELAYER,S=l["a"].get(i["R"].COOKIE_MAPDEFAULT)||{center:r["b"].center,zoom:r["b"].zoom},m=!l["a"].has(i["R"].COOKIE_SAVELOCATION)||l["a"].get(i["R"].COOKIE_SAVELOCATION),O=l["a"].has(i["R"].COOKIE_DOCKED_STATUS),b=o.get(i["R"].PARAMS_DEBUG_REMOTE);if(b)t="true"!==b;else{var A=window.location.hostname.toLowerCase();t=-1===A.indexOf("integratedmodelling.org")&&-1===A.indexOf("klab.officialstatistics.org")}t="engine.remote "===__ENV__.ACTIVE_PROFILE;var _=o.get(i["R"].PARAMS_TOKEN);u["a"].mixin({methods:{hexToRgbValues:function(e){if("undefined"!==typeof e){var t=c["b"](e);return"".concat(t.r,", ").concat(t.g,", ").concat(t.b)}return"black"},isAcceptedKey:function(e){var t="abcdefghijklmnopqrstuvwxyz0123456789.<>=!()+-*/^";return e=e.toLowerCase(),-1!==t.indexOf(e)}}}),u["a"].prototype.$eventBus=d,n.state.data.session=E,u["a"].prototype.$mode=f,l["a"].set(i["R"].COOKIE_MODE,f,{expires:30,path:"/",secure:!0}),u["a"].prototype.$logVisibility=T,l["a"].set(i["R"].COOKIE_LOG,T,{expires:30,path:"/",secure:!0}),u["a"].prototype.$baseLayer=p,l["a"].set(i["R"].COOKIE_BASELAYER,p,{expires:30,path:"/",secure:!0}),u["a"].prototype.$mapDefaults=S,n.state.view.saveLocation=m,l["a"].set(i["R"].COOKIE_SAVELOCATION,m,{expires:30,path:"/",secure:!0}),n.state.view.saveDockedStatus=O,O&&(n.state.view.mainControlDocked=l["a"].get(i["R"].COOKIE_DOCKED_STATUS)),n.state.view.viewCoordinates=l["a"].has(i["R"].COOKIE_VIEW_COORDINATES)&&l["a"].get(i["R"].COOKIE_VIEW_COORDINATES),n.state.data.local=t,n.state.data.token=_,console.info("Session: ".concat(E," / mode: ").concat(f));var I=o.get(i["R"].PARAMS_LOCAL_HELP);n.state.view.helpBaseUrl=I?"http://".concat(I):i["s"].DEFAULT_HELP_BASE_URL;var v=o.get(i["R"].PARAMS_APP);v&&(n.state.view.klabApp=v),s["a"].get("".concat("").concat("/modeler","/capabilities"),{}).then(function(e){var t=e.data;if("object"!==a()(t))throw Error("Error asking for capabilities: no data");if(0===Object.keys(t).length)throw Error("Capabilities are empty, check it");n.state.data.capabilities=t}).catch(function(e){console.error("Error trying to retrieve capabilities: ".concat(e))})}},"8fec":function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return s});n("c5f6"),n("ee1d"),n("a481"),n("6b54");var o=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function a(e){var t=e.r,n=e.g,o=e.b,a=e.a,i=void 0!==a;if(t=Math.round(t),n=Math.round(n),o=Math.round(o),t>255||n>255||o>255||i&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=i?(256|Math.round(255*a/100)).toString(16).slice(1):"","#".concat((o|n<<8|t<<16|1<<24).toString(16).slice(1)).concat(a)}function i(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=e.replace(/ /g,""),n=o.exec(t);if(null===n)return i(t);var a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){var r=parseFloat(n[5]);a.a=100*Math.min(1,!0===Number.isNaN(r)?1:r)}return a}function c(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");var n=r(e),o=t<0?0:255,a=Math.abs(t)/100,i=n.r,c=n.g,s=n.b;return"#".concat((16777216+65536*(Math.round((o-i)*a)+i)+256*(Math.round((o-c)*a)+c)+(Math.round((o-s)*a)+s)).toString(16).slice(1))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if("string"!==typeof e)throw new TypeError("Expected a string as color");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue("--q-color-".concat(e)).trim()||null}},b0b2:function(e,t,n){"use strict";n.d(t,"a",function(){return P}),n.d(t,"h",function(){return D}),n.d(t,"e",function(){return x}),n.d(t,"f",function(){return k}),n.d(t,"g",function(){return U}),n.d(t,"b",function(){return V}),n.d(t,"k",function(){return F}),n.d(t,"j",function(){return Y}),n.d(t,"i",function(){return W}),n.d(t,"l",function(){return G}),n.d(t,"c",function(){return H}),n.d(t,"d",function(){return z});n("4917"),n("28a5"),n("48c0"),n("6c7b"),n("ac6a");var o=n("278c"),a=n.n(o),i=(n("c5f6"),n("ee1d"),n("8fec")),r=n("256f"),c=n("5bc3"),s=n("6c77"),l=n("1442"),u=n("f403"),d=n("7a09"),E=n("9a44"),f=n("47e4"),T=n("88da"),p=n("f822"),S=n("049d"),m=n("c4c8"),O=n("c7e3"),b=n("f384"),A=n("01ae"),_=n("7f68"),I=n("881a"),v=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/,N=i["b"],h=i["a"],R=i["d"],C={topLeft:Object(r["l"])([-180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomLeft:Object(r["l"])([-180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),topRight:Object(r["l"])([180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomRight:Object(r["l"])([180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857)},g=new _["b"],L={left:g.createLineString([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1])]),right:g.createLineString([new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1])])},w=g.createPolygon([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1]),new _["a"](C.topLeft[0],C.topLeft[1])]);function P(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function y(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=v.exec(e);if(t){var n={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(n.a=parseFloat(t[4])),n}return N(e)}function D(e){return!!Number.isNaN(1*e)&&e===e.toUpperCase()}function M(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==typeof t[e.toLowerCase()]?t[e.toLowerCase()]:null}function x(e){var t,n;if(0===e.indexOf("#"))n=e,t=N(e);else if(-1!==e.indexOf(","))t=y(e),n=R(t);else{if(n=h(e),null===n&&(n=M(e),null===n))throw new Error("Unknown color: ".concat(e));t=N(n)}return{rgb:t,hex:n,color:e}}function k(e,t,n){(null===e||null===t||n<1)&&console.warn("Bad colors: ".concat(e,", ").concat(t));for(var o,a,i,r=x(e).rgb,c=x(t).rgb,s=1/(n-1),l=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t,n){return e+(t-e)*n},i=[],r=Number((e.length-1)/(t-1)),c=a()(e,1);i[0]=c[0];for(var s=1;s0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}var F=new I["a"];F.inject(u["a"],d["a"],S["a"],c["a"],E["a"],f["a"],T["a"]);var Y=function(e){return e instanceof p["a"]&&(e=Object(c["b"])(e)),F.read(e)},W=function(e){return new m["a"](e).isValid()},G=function(e,t){return O["a"].union(e,t)};function j(e){var t=[];return O["a"].intersection(e,L.left)&&t.push(L.left),O["a"].intersection(e,L.right)&&t.push(L.right),t}function H(e){var t=j(e);if(0===t.length)return e;var n=e.getExteriorRing();t.forEach(function(e){n=O["a"].union(n,e)});var o=new A["a"];o.add(n);for(var a=o.getPolygons(),i=null,r=a.iterator();r.hasNext();){var c=r.next();if(!b["a"].contains(w,c)){for(var s=[],l=c.getCoordinates(),u=l.length,d=0;d0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return!1;var t=e.geometryTypes;return t&&"undefined"!==typeof t.find(function(e){return e===l["q"].TYPE_RASTER})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l["g"].HIST_MAX_LENGTH;e.push(t),e.length>n&&e.shift()},L=function(e,t){if(0===e.length)return null;if(void 0===t)return e[e.length-1];var n=s()(e).reverse().find(function(e){return e.type===t});return"undefined"!==typeof n?n:null},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if(e&&null!==t&&"function"===typeof n){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.children&&i.children.length>0?e(null,i.children):r};return a(null,e)}return null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(e,t,function(e,t){return e.id===t?e:null})},y=function(e){var t=null!==e.parentArtifactId||null!==e.parentId&&e.rootContextId!==e.parentId,n=null!==e.parentArtifactId?e.parentArtifactId:e.parentId,o=e.main;if(!o&&t){var a=P(d["a"].getters["data/tree"],n);null!==a&&(o=o||a.userNode)}return{node:r()({id:e.id,label:e.literalValue||e.label,observable:e.observable,type:e.shapeType,dynamic:e.dynamic||!1,needUpdate:!e.contextualized,viewerIdx:e.viewerIdx,viewerType:null!==e.viewerIdx?d["a"].getters["view/viewer"](e.viewerIdx).type:null,loading:!1,children:[],childrenCount:e.childrenCount,childrenLoaded:0,siblingsCount:e.siblingsCount,parentArtifactId:e.parentArtifactId,tickable:null!==e.viewerIdx&&!e.empty||e.isContainer||e.childrenCount>0,disabled:e.empty&&(!e.isContainer||0===e.childrenCount)||e.singleValue||e.observationType===l["A"].TYPE_PROCESS,empty:e.empty,actions:e.actions,header:e.isContainer?"folder":"default",main:e.main,userNode:o,isContainer:e.isContainer,exportFormats:e.exportFormats,rootContextId:e.rootContextId,contextId:e.contextId,observationType:e.observationType,noTick:e.singleValue||e.observationType===l["A"].TYPE_PROCESS},e.isContainer&&{childrenLoaded:0},e.siblingsCount&&{siblingsCount:e.siblingsCount},{parentId:n}),parentId:n}},D=function(e){return new Promise(function(t,n){var o=null;if(null!==e)if(o=Object(_["g"])(e),null===o){var a=e.substring(5);fetch("https://epsg.io/?format=json&q=".concat(a)).then(function(a){return a.json().then(function(a){var i=a.results;if(i&&i.length>0)for(var r=0,c=i.length;r0&&u&&u.length>0&&d&&4===d.length){var f="EPSG:".concat(l);v["a"].defs(f,u),Object(I["a"])(v["a"]),o=Object(_["g"])(f);var T=Object(_["i"])(E["d"].PROJ_EPSG_4326,o),p=Object(A["a"])([d[1],d[2],d[3],d[0]],T);o.setExtent(p),console.info("New projection registered: ".concat(f)),t(o)}else n(new Error("Some error in projection search result: ".concat(JSON.stringify(s))))}else n(new Error("Some error in projection search result: no results"))}else n(new Error("Unknown projection: ".concat(e)))})})}else t(o);else t(E["d"].PROJ_EPSG_4326)})};function M(e){return x.apply(this,arguments)}function x(){return x=a()(regeneratorRuntime.mark(function e(t){var n,o,a,i,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.spatialProjection,e.next=3,D(n);case 3:if(o=e.sent,a=t.encodedShape,a){e.next=7;break}return e.abrupt("return",null);case 7:return 0===a.indexOf("LINEARRING")&&(a=a.replace("LINEARRING","LINESTRING")),i=null,-1!==a.indexOf("POINT")?(r=R.readFeature(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),null!==r&&null!==r.getGeometry()&&(i=r.getGeometry().getFirstCoordinate())):i=R.readGeometry(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),t.id===t.rootContextId&&(t.zIndexOffset=0),e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),x.apply(this,arguments)}function k(e){return U.apply(this,arguments)}function U(){return U=a()(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.response?{status:t.response.data.status||t.response.status,message:t.response.data.message||t.response.data.error||t.response.data||(""!==t.response.statusText?t.response.statusText:"Unknown"),axiosError:t}:t.request?{status:t.request.status,message:t.message,axiosError:t}:{status:"UNKNOWN",message:t.message,axiosError:t},!(n instanceof Blob)){e.next=5;break}return e.next=4,n.text();case 4:n=e.sent;case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),U.apply(this,arguments)}var V=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_LOADING,{owner:e}),{root:!0}),N["a"].get(t,n).then(function(t){t&&o(t,function(){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_STOPPED,{owner:e}),{root:!0})})}).catch(function(){var t=a()(regeneratorRuntime.mark(function t(n){var o,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,k(n);case 2:if(o=t.sent,a=null,null!=o&&(a=o.message),d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:e,errorMessage:a}),{root:!0}),null===i){t.next=10;break}i(n),t.next=11;break;case 10:throw n;case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},F=function(e){if("RAMP"===e.type&&e.colors.length>1&&e.colors.length<256){for(var t=[],n=[],o=e.colors.length,a=Math.floor(256/o),i=a+(256-o*a),r=0;rl["q"].PARAM_VIEWPORT_MAX_SIZE&&(a=l["q"].PARAM_VIEWPORT_MAX_SIZE),P=L.getExtent(),y="".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(t.id),M=new b["a"]({projection:R,imageExtent:P,url:y,style:E["e"].POLYGON_OBSERVATION_STYLE,imageLoadFunction:function(e,n){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_LOADING,{owner:"".concat(n).concat(c)}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!0,observation:t}),N["a"].get(n,{params:r()({format:l["q"].TYPE_RASTER,viewport:a},-1!==A&&{locator:"T1(1){time=".concat(A,"}")}),responseType:"blob"}).then(function(o){if(o){var a=new FileReader;a.readAsDataURL(o.data),a.onload=function(){var o=e.getImage();o.src=a.result,d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_STOPPED,{owner:"".concat(n).concat(c)}),{root:!0}),t.tsImages.push("T".concat(c)),t.loaded=!0,d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),V("cm_".concat(t.id),y,{params:r()({format:l["q"].TYPE_COLORMAP},-1!==c&&{locator:"T1(1){time=".concat(c,"}")})},function(e,n){e&&e.data&&(t.colormap=F(e.data)),n()})},a.onerror=function(e){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e}),{root:!0})}}}).catch(function(e){throw d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e.message}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),e})}}),e.abrupt("return",new O["a"]({id:w,source:M}));case 19:return 0===g.indexOf("LINESTRING")||0===g.indexOf("MULTILINESTRING")?(x=E["e"].LNE_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_LINES):0===g.indexOf("POINT")||0===g.indexOf("MULTIPOINT")?(x=Object(f["d"])(E["e"].POINT_OBSERVATION_SVG_PARAM,t.label),t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POINTS):(x=E["e"].POLYGON_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POLYGONS),k=new m["a"]({geometry:L,name:t.label,id:w}),U=new p["a"]({id:w,source:new T["a"]({features:[k]}),style:x}),e.abrupt("return",U);case 23:case"end":return e.stop()}},e)})),W.apply(this,arguments)}function G(e,t){d["a"].$app.sendStompMessage(e(t,d["a"].state.data.session).body)}var j=function(e){switch(e){case"FORTHCOMING":return{icon:"mdi-airplane-landing",tooltip:"forthcoming"};case"EXPERIMENTAL":return{icon:"mdi-flask-outline",tooltip:"experimental"};case"NEW":return{icon:"mdi-new-box",tooltip:"new"};case"STABLE":return{icon:"mdi-check-circle-outline",tooltip:"stable"};case"BETA":return{icon:"mdi-radioactive",tooltip:"beta"};default:return{}}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e.id===t?e:null};if(e&&null!==t){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.components&&i.components.length>0?e(null,i.components):r};return a(null,e)}return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return H(s()(e.panels).concat(s()(e.leftPanels),s()(e.rightPanels),[e.header,e.footer]).filter(function(e){return null!==e}),t,n)};function B(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;V("dw_".concat(e),"".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(e),{params:r()({format:t,outputFormat:o.value,adapter:o.adapter},-1!==a&&{locator:"T1(1){time=".concat(a,"}")}),responseType:"blob"},function(e,t){var a=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.href=a,i.setAttribute("download","".concat(n,".").concat(o.extension)),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(a),t()})}function K(e,t){var n=[Object.assign({},e)];return delete n[0][t],e[t]&&e[t].length>0?n.concat(e[t].map(function(e){return K(e,t)}).reduce(function(e,t){return e.concat(t)},[])):n}}).call(this,n("b639").Buffer)},be3b:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n("bc3a"),a=n.n(o),i=n("7cca"),r=a.a.create();t["b"]=function(e){var t=e.Vue,n=e.store;localStorage.getItem(i["u"].TOKEN)&&(r.defaults.headers.common.Authorization="Bearer ".concat(localStorage.getItem(i["u"].TOKEN))),console.debug(n.state.data.session),n.state.data.session?r.defaults.headers.common[i["r"].KLAB_AUTHORIZATION]=n.state.data.session:console.warn("No session established en axios header, check it"),n.state.data.token&&(r.defaults.headers.common.Authentication=n.state.data.token),t.prototype.$axios=r}},d247:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return i});n("0d6d"),Object.freeze({SEARCH_TYPES:[{enumId:"CONCEPT",name:"CONCEPT",color:"#ff0000"},{enumId:"OPERATOR",name:"OPERATOR",color:"#ffff00"},{enumId:"OBSERVATION",name:"OBSERVATION",color:"#ff00ff"},{enumId:"MODEL",name:"MODEL",color:"#0000ff"}]});var o=Object.freeze({CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_SEARCH:"Search",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_NOTIFICATION:"Notification",CLASS_RUN:"Run",TYPE_REGIONOFINTEREST:"RegionOfInterest",TYPE_FEATUREADDED:"FeatureAdded",TYPE_PERIODOFINTEREST:"PeriodOfInterest",TYPE_SUBMITSEARCH:"SubmitSearch",TYPE_MATCHACTION:"MatchAction",TYPE_REQUESTOBSERVATION:"RequestObservation",TYPE_RESETCONTEXT:"ResetContext",TYPE_RECONTEXTUALIZE:"Recontextualize",TYPE_TASKINTERRUPTED:"TaskInterrupted",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_DATAFLOWNODEDETAIL:"DataflowNodeDetail",TYPE_DATAFLOWNODERATING:"DataflowNodeRating",TYPE_CHANGESETTING:"ChangeSetting",TYPE_USERINPUTPROVIDED:"UserInputProvided",TYPE_WATCHOBSERVATION:"WatchObservation",TYPE_ENGINEEVENT:"EngineEvent",TYPE_VIEWACTION:"ViewAction",TYPE_RUNAPP:"RunApp",TYPE_CONSOLECREATED:"ConsoleCreated",TYPE_CONSOLECLOSED:"ConsoleClosed",TYPE_COMMANDREQUEST:"CommandRequest",PAYLOAD_CLASS_SPATIALEXTENT:"SpatialExtent",PAYLOAD_CLASS_SPATIALLOCATION:"SpatialLocation",PAYLOAD_CLASS_TEMPORALEXTENT:"TemporalExtent",PAYLOAD_CLASS_SEARCHREQUEST:"SearchRequest",PAYLOAD_CLASS_SEARCHMATCHACTION:"SearchMatchAction",PAYLOAD_CLASS_OBSERVATIONREQUEST:"ObservationRequest",PAYLOAD_CLASS_INTERRUPTTASK:"InterruptTask",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST:"ContextualizationRequest",PAYLOAD_CLASS_SETTINGCHANGEREQUEST:"SettingChangeRequest",PAYLOAD_CLASS_USERINPUTRESPONSE:"UserInputResponse",PAYLOAD_CLASS_WATCHREQUEST:"WatchRequest",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_MENUACTION:"MenuAction",PAYLOAD_CLASS_LOADAPPLICATIONREQUEST:"LoadApplicationRequest",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification"}),a=Object.freeze({CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_QUERY:"Query",CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_NOTIFICATION:"Notification",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_AUTHORIZATION:"Authorization",CLASS_VIEWACTOR:"ViewActor",TYPE_DATAFLOWCOMPILED:"DataflowCompiled",TYPE_DATAFLOWSTATECHANGED:"DataflowStateChanged",TYPE_DATAFLOWDOCUMENTATION:"DataflowDocumentation",TYPE_NEWOBSERVATION:"NewObservation",TYPE_MODIFIEDOBSERVATION:"ModifiedObservation",TYPE_QUERYRESULT:"QueryResult",TYPE_RESETCONTEXT:"ResetContext",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_USERINPUTREQUESTED:"UserInputRequested",TYPE_USERPROJECTOPENED:"UserProjectOpened",TYPE_PROJECTFILEMODIFIED:"ProjectFileModified",TYPE_SCHEDULINGSTARTED:"SchedulingStarted",TYPE_SCHEDULINGFINISHED:"SchedulingFinished",TYPE_NETWORKSTATUS:"NetworkStatus",TYPE_CREATEVIEWCOMPONENT:"CreateViewComponent",TYPE_SCHEDULEADVANCED:"ScheduleAdvanced",TYPE_ENGINEEVENT:"EngineEvent",TYPE_SETUPINTERFACE:"SetupInterface",TYPE_VIEWACTION:"ViewAction",TYPE_VIEWAVAILABLE:"ViewAvailable",TYPE_VIEWSETTING:"ViewSetting",TYPE_COMMANDRESPONSE:"CommandResponse",TYPE_DOCUMENTATIONCHANGED:"DocumentationChanged",TYPE_CREATEMODALWINDOW:"CreateModalWindow",TYPE_AUTHORITYDOCUMENTATION:"AuthorityDocumentation",TYPE_PROVENANCECHANGED:"ProvenanceChanged",TYPE_TASKSTARTED:"TaskStarted",TYPE_TASKFINISHED:"TaskFinished",TYPE_TASKABORTED:"TaskAborted",TYPE_DEBUG:"Debug",TYPE_INFO:"Info",TYPE_WARNING:"Warning",TYPE_ERROR:"Error",PAYLOAD_CLASS_TASKREFERENCE:"TaskReference",PAYLOAD_CLASS_CONTEXTUALIZATIONNOTIFICATION:"ContextualizationNotification",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_OBSERVATIONREFERENCE:"ObservationReference",PAYLOAD_CLASS_SEARCHRESPONSE:"SearchResponse",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_USERINPUTREQUEST:"UserInputRequest",PAYLOAD_CLASS_SCHEDULERNOTIFICATION:"SchedulerNotification",PAYLOAD_CLASS_NETWORKREFERENCE:"NetworkReference",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWCOMPONENT:"ViewComponent",PAYLOAD_CLASS_ENGINEEVENT:"EngineEvent",PAYLOAD_CLASS_LAYOUT:"Layout",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_VIEWSETTING:"ViewSetting",PAYLOAD_CLASS_KNOWLEDGEVIEWREFERENCE:"KnowledgeViewReference",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification",PAYLOAD_CLASS_DOCUMENTATIONEVENT:"DocumentationEvent"}),i=Object.freeze({REST_STATUS:"".concat("/modeler","/engine/status"),REST_SESSION_INFO:"".concat("/modeler","/engine/session/info"),REST_SESSION_VIEW:"".concat("/modeler","/engine/session/view/"),REST_SESSION_OBSERVATION:"".concat("/modeler","/engine/session/observation/"),REST_UPLOAD:"".concat("/modeler","/resource/put"),REST_GET_PROJECT_RESOURCE:"".concat("/modeler","/engine/project/resource/get"),REST_API_LOGOUT:"".concat("/modeler/api/v2","/users/log-out"),REST_API_EXPORT:"".concat("/modeler/api/v2","/public/export")})},e7d8:function(e,t,n){"use strict";var o=n("2b0e"),a=n("a925"),i={label:{appTitle:"k.LAB Explorer EN",appRunning:"Running on Quasar v{version}",appClose:"Close",appOK:"Ok",appAccept:"Accept",appYES:"Yes",appNO:"No",appCancel:"Cancel",appRetry:"Retry",appNext:"Next",appPrevious:"Previous",appWarning:"Warning",appPlay:"Play",appReplay:"Replay",appPause:"Pause",appReload:"Reload",appPrint:"Print",appSetDefault:"Set as default",klabNoMessage:"No message",klabUnknownError:"Unknown error",klabNoDate:"No date",klabMessagesToSend:"There are one message in queue",modalNoConnection:"No connection, please wait",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observation",reconnect:"Reconnect",unknownLabel:"Unknown",context:"context",noContext:"",noContextPlaceholder:"",contextShape:"context shape",noObservation:"No observations available",searchPlaceholder:"Search knowledge",fuzzySearchPlaceholder:"Free search",askForObservation:"Observing {urn}",noTokenDescription:"No description available",btnContextReset:"Reset context",contextReset:"Context reset",itemCounter:"{loaded} of {total}",logTab:"Log",treeTab:"Tree",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Space & time:",mcMenuContext:"Context",mcMenuOption:"Options",mcMenuSettings:"Settings",mcMenuHelp:"Help",showTutorial:"Show tutorial",showHelp:"Show help",refreshSize:"Refresh window size",titleOutputFormat:"Download observation",askForOuputFormat:"Select format",titleChangeScale:"Change {type} scale",askForNewScale:"Select new scale",resolutionLabel:"Resolution value",unitLabel:"Unit value",clickToEditScale:"Click to edit",clickToLock:"Click to lock scale",clickToUnlock:"Click to unlock scale",scaleLocked:"{type} scale locked",spaceScale:"Space",timeScale:"Time",unitCentimeter:"Centimeters",unitMeter:"Meters",unitKilometer:"Kilometers",unitMillennium:"Millennium",unitCentury:"Century",unitDecade:"Decade",unitYear:"Year",unitMonth:"Month",unitWeek:"Week",unitDay:"Day",unitHour:"Hour",unitMinute:"Minute",unitSecond:"Second",unitMillisecond:"Millisecond",timeOrigin:"Initial time",labelTimeStart:"Start time",labelTimeEnd:"End time",labelSpatial:"spatial",labelTemporal:"temporal",newContext:"New context",previousContexts:"Previous contexts",drawCustomContext:"Draw context",eraseCustomContext:"Erase custom context",addToCustomContext:"Add shape",drawPoint:"Point",drawLineString:"Line",drawPolygon:"Polygon",drawCircle:"Circle",optionShowAll:"Show all",optionSaveLocation:"Remember location",saveDockedStatus:"Remember docked status",noNodes:"No observations",loadShowData:"Load and show data",interactiveMode:"Interactive mode",noInputSectionTitle:"No section title",cancelInputRequest:"Cancel run",resetInputRequest:"Use defaults",submitInputRequest:"Submit",IDLAlertTitle:"Warning!",recontextualization:"Set as context",rememberDecision:"Don't show again",titleCommentResource:"Comment on resource",sendComment:"Send",noTimeSet:"Initial state",timeResolutionMultiplier:"Multiplier",months:{m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December"},removeProposedContext:"Remove context",levelDebug:"Debug",levelInfo:"Info",levelWarning:"Warning",levelError:"Error",levelEngineEvent:"Engine event",userDetails:"User details",unknownUser:"Unknown user",userId:"Id:",userEmail:"Email:",userLastLogin:"Last login:",userGroups:"Groups:",appsList:"Available apps",appsClose:"Close app",appsLogout:"Logout",reloadApplications:"Reload applications",noLayoutLabel:"No title",noLayoutDescription:"No description",kwTable:"Table",kwChart:"Chart",openTerminal:"Open terminal",openDebugger:"Open debugger",titleSelectTerminalSize:"Select terminal size",terminalDeleteHistory:"Delete history",terminalResizeWindow:"Resize terminal window",terminalMinimize:"Minimize terminal",terminalMaximize:"Maximize terminal",terminalClose:"Close terminal",noDocumentation:"No elements available for this view",tableDownloadAsXSLX:"Download table as .xslx",tableCopy:"Copy table to clipboard",resettingContext:"Resetting context",reportTable:"Table",reportFigure:"Figure",viewCoordinates:"Show coordinates"},messages:{connectionClosed:"Connection closed",connectionWorking:"Trying to reconnect",connectionUnknown:"Starting...",noSpaceAllowedInSearch:"Spaces cannot be used in the search box",noSearchResults:"No search results",noActionForObservation:"No actions available",noTime:"no time",emptyReport:'
Empty report
',noLoadedReport:"No report loaded",copiedToClipboard:"Copied to clipboard",customCopyToClipboard:"{what} copied to clipboard",changeScaleResolutionError:"Resolution must be positive",updateScale:"{type} scale updated",updateNextScale:"New {type} scale have been stored, press refresh to update",invalidGeometry:"Polygon is not valid",geolocationWaitingTitle:"Enable geolocation?",geolocationWaitingText:"k.Explorer can detect your current location to initialize the geographical viewer.
In order to do so, you need to authorize geolocation.
This is merely for your convenience and does not affect operation.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Geolocation has not been authorized",geolocationErrorPositionUnavailable:"Location information is unavailable",geolocationErrorTimeout:"A request to get the user location timed out",geolocationErrorUnknown:"An unknown error occurred",unknownSearchObservation:"Previous observations results",noLogItems:"Empty log",noLevelSelected:"No levels selected",uploadComplete:"Upload of file {fileName} complete",IDLAlertText:"Actual view crossing the International Date Line. A drawn context is needed",lastTermAlertText:"No more terms allowed",parenthesisAlertText:"You have open parenthesis",emptyFreeTextSearch:"Empty search is not allowed",fuzzyModeOff:"Free search off",fuzzyModeOn:"Free search on",treeNoResult:"No results",treeNoNodes:"No data",treeNoResultUser:"No main observations",treeNoResultUserWaiting:"Computing...",treeNoResultNoUser:"No observations",treeNoMainSummary:"Other observations",thankComment:"Comment has been sent",confirmRescaleContext:"The context will be recreate with new resolution.\nAre you sure?",loadingChildren:"Loading children...",waitingLocation:"Searching for {location}...",waitingObservationInit:"Initializing observation...",availableInFuture:"This feature will be available soon",timeEndBeforeTimeStart:"End time cannot be before start time",timeEndModified:"Multiplier is not used because the end time was manually changed",pressToChangeSpeed:"Press to play
Hold to change speed
Actual speed x{multiplier}",resourcesValidating:"Engine is busy",presentationBlocked:'

Can\'t access online help resources: check your network connection

A browser extension may also be interfering

',noAppsAvailable:"No available apps",noGroupsAssigned:"No groups assigned",appLoading:"Loading app {app}",errorLoadingApp:"Error loading app {app}",reloadApp:"Reload application",errorLoggingOut:"Error logging out, contact support",terminalHello:"Welcome to k.LAB {type}",noDocumentation:"No documentation available",confirmExitPage:"Data will be lost if you leave the page, are you sure?",tableCopied:"Table copied to clipboard",invalidSession:"Invalid session",sessionClosed:"Session closed by server",unknownSessionError:"Problem with session",youHaveGOT:"Winter is coming"},tooltips:{treePane:"View tree",showLogPane:"View log",hideLogPane:"Hide log",resetContext:"Reset context",interruptTask:"Interrupt task {taskDescription}",dataViewer:"View data",reportViewer:"View report",documentationViewer:"View documentation",scenarios:"Scenarios",observers:"Observers",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report not available,\nno observations",noDocumentation:"Documentation not available,\nno observations",noDataflow:"Dataflow not availble",noDataflowInfo:"No details",dataflowViewer:"View data flow",provenanceViewer:"View provenance (will be...)",undock:"Undock",copyEncodedShapeToClipboard:"Copy context shape to clipboard",cancelInputRequest:"Cancel run",resetInputRequest:"Use default values",submitInputRequest:"Submit values",displayMainTree:"Display main tree",hideMainTree:"Hide main tree",rateIt:"Rate resource",commentIt:"Comment on resource",refreshScale:"Refresh context with new scale(s)",clickToEdit:"Click to edit {type} scale",palette:"No palette",unknown:"To be decided",noKnowledgeViews:"No knowledge views",knowledgeViews:"Knowledge views",uploadData:"Upload data (forthcoming)"},errors:{connectionError:"Connection error",searchTimeout:"Search timeout",uploadError:"Upload error for the file {fileName}"},engineEventLabels:{evtResourceValidation:"Resource validation"},langName:"English"},r={label:{appTitle:"k.LAB Explorer ES",appRunning:"Ejecutándose sobre Quasar v{version}",appClose:"Cerrar",appOK:"Ok",appCancel:"Cancelar",appRetry:"Reintentar",appNext:"Siguiente",appPrevious:"Precedente",klabNoMessage:"No hay ningún mensaje",klabUnknownError:"Error desconocido",klabNoDate:"No hay fecha",klabMessagesToSend:"Hay un mensaje en la cola",modalNoConnection:"No hay conexión, esperar",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observaciones",reconnect:"Reconectar",unknownLabel:"Desconocido",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"No hay observaciones",searchPlaceholder:"Buscar in k.LAB",fuzzySearchPlaceholder:"Buscar",askForObservation:"Pidiendo {urn}",noTokenDescription:"No hay descripción",btnContextReset:"Resetear contexto",contextReset:"Contexto reseteado",itemCounter:"{loaded} de {total}",logTab:"Log",treeTab:"Árbol",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Espacio y tiempo:",mcMenuContext:"Contexto",mcMenuOption:"Optciones",titleOutputFormat:"Download observación",askForOuputFormat:"Seleccionar un formato",titleChangeScale:"Cambiar escala",askForNewScale:"Seleccionar nueva escala",resolutionLabel:"Valor de la escala",unitLabel:"Unidad de la escala",clickToEditScale:"Click para modificar",clickToLock:"Click para bloquear la escala",clickToUnlock:"Click para desbloquear la escala",scaleLocked:"{type} escala bloqueada",spaceScale:"Espacio",timeScale:"Tiempo",labelCm:"Centimetros",labelM:"Metros",labelKm:"Kilometros",labelSpatial:"espacial",labelTemporal:"temporal",newContext:"Nuevo contexto",previousContexts:"Contextos prévios",drawCustomContext:"Dibujar contexto",eraseCustomContext:"Borrar contexto",addToCustomContext:"Añadir shape",drawPoint:"Punto",drawLineString:"Línea",drawPolygon:"Polígono",drawCircle:"Circulo",optionShowAll:"Ver todas",optionSaveLocation:"Recordar posición",noNodes:"No results: is waiting?",loadShowData:"Cargar y visualizar datos",interactiveMode:"Modo interactivo",noInputSectionTitle:"No section title",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar defaults",submitInputRequest:"Enviar",IDLAlertTitle:"Cuidado!",recontextualization:"Fijar como contexto",rememberDecision:"Recordar mi elección"},messages:{connectionClosed:"Conexión cerrada",connectionWorking:"Intentando reconectar",connectionUnknown:"Inicializando...",noSpaceAllowedInSearch:"No está permitido utilizar espacios en la búsqueda",noSearchResults:"No hay resultados",noActionForObservation:"No hay acciones disponibles",noTime:"sin información",emptyReport:'',noLoadedReport:"No se ha cargado ningun report",copiedToClipboard:"Copiado",customCopyToClipboard:"{what} copiado",changeScaleResolutionError:"La resolución tiene que ser positiva",updateScale:"Actualizada la escala {type}, nuevo valor {resolution} {unit}",invalidGeometry:"Polígono no válido",geolocationWaitingTitle:"¿Habilitar la geolocalización?",geolocationWaitingText:"k.Explorer puede detectar tu posición actual para inicializar la vista geográfica.
Para hacer eso, hay que autorizar la geolocalización.
Esto es solamente por comodidad yno afecta a la operatividad.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"No se ha autorizado la geolocalización",geolocationErrorPositionUnavailable:"No hay información de posicionamiento",geolocationErrorTimeout:"Se ha superado el tiempo de espera para la geolocalización",geolocationErrorUnknown:"Ha habido un error desconocido",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Resultado de observaciones previas",noLogItems:"No hay elementos en el log",uploadComplete:"Upload del file {fileName} completado",IDLAlertText:"La selección actual cruza la IDL. Sólo está permitido en caso de dibujar un contexto",lastTermAlertText:"No están permitidos mas tokens",parenthesisAlertText:"Parentesis no balanceadas",emptyFreeTextSearch:"Búsqueda vacía",fuzzyModeOff:"Búsqueda libre desactivada",fuzzyModeOn:"Búsqueda libre activada",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Ver árbol",logPane:"Ver log",resetContext:"Reset context",interruptTask:"Interrumpir proceso {taskDescription}",dataViewer:"Ver datos",reportViewer:"Ver report",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report no disponibile,\nno hay observaciones",noDataflow:"Dataflow no disponible",dataflowViewer:"Ver data flow",provenanceViewer:"Ver provenance (will be...)",undock:"Desacoplar",copyEncodedShapeToClipboard:"Copiar el contexto en el portapapeles",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar default",submitInputRequest:"Enviar"},errors:{connectionError:"Error de conexión",searchTimeout:"Tiempo de busqueda terminado",uploadError:"Error durante el upload del file {fileName}"},langName:"Español"},c={label:{appTitle:"k.LAB Explorer IT",appRunning:"Esecutandosi con Quasar v{version}",appClose:"Chiudi",appOK:"Ok",appCancel:"Cancellare",appRetry:"Riprovare",appNext:"Successiva",appPrevious:"Precedente",klabNoMessage:"Nessun messaggio",klabUnknownError:"Errore sconosciuto",klabNoDate:"Nessuna data",klabMessagesToSend:"C'è un messaggio in coda",modalNoConnection:"Non c'è connessione",appFooter:"k.LAB Explorer - 2018",treeTitle:"Osservazioni",reconnect:"Riconnettere",unknownLabel:"Sconosciuto",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"Nessuna osservazione disponibile",searchPlaceholder:"Cerca in k.LAB",fuzzySearchPlaceholder:"Cerca",askForObservation:"Chiedendo {urn}",noTokenDescription:"Descrizione non disponibile",btnContextReset:"Resettare il contesto",contextReset:"Contesto resettato",itemCounter:"{loaded} di {total}",logTab:"Log",treeTab:"Albero",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Spazio e tempo",mcMenuContext:"Contesto",mcMenuOption:"Optziono",titleOutputFormat:"Download osservazione",askForOuputFormat:"Selezionare un formato",titleChangeScale:"Cambiare scala",askForNewScale:"Seleccionar la nueva escala",resolutionLabel:"Valore della scala",unitLabel:"Unità della scala",clickToEditScale:"Click per modificare",clickToLock:"Click per bloccare la scala",clickToUnlock:"Click per sbloccare la scala",scaleLocked:"{type} scala bloccata",spaceScale:"Spacio",timeScale:"Tempo",labelCm:"Centimetri",labelM:"Metri",labelKm:"Kilometri",labelSpatial:"spaziale",labelTemporal:"temporale",newContext:"Constesto nuovo",previousContexts:"Contesti precedenti",drawCustomContext:"Disegnare contesto",eraseCustomContext:"Eliminare contesto",addToCustomContext:"Aggiungere shape",drawPoint:"Punto",drawLineString:"Linea",drawPolygon:"Poligono",drawCircle:"Cerchio",optionShowAll:"Vedere tutte",optionSaveLocation:"Ricordare posizione",noNodes:"No results: is waiting?",loadShowData:"Caricare e visualizzare dati",interactiveMode:"Modo interattivo",noInputSectionTitle:"Sezione senza titolo",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare defaults",submitInputRequest:"Inviare",IDLAlertTitle:"Attenzione!",recontextualization:"Settare come contesto",rememberDecision:"Ricordare la mia decisione"},messages:{connectionClosed:"Connessione chiusa",connectionWorking:"Cercando di riconnettere",connectionUnknown:"Inizializzando...",noSpaceAllowedInSearch:"Non è permesso utilizare spazi nella ricerca",noSearchResults:"Non esistono risultati",noActionForObservation:"Nessuna azione disponibile",noTime:"senza informazione di ora",emptyReport:'',noLoadedReport:"Non si è caricato nessun report",copiedToClipboard:"Copiato",customCopyToClipboard:"{what} copiato",changeScaleResolutionError:"La risoluzione deve essere positiva",updateScale:"Attualizata la scala {type}, nuovo valore {resolution} {unit}",invalidGeometry:"Poligono non valido",geolocationWaitingTitle:"Attivare la geolocalizzazione?",geolocationWaitingText:"k.Explorer può detettare la posizione per inizializzare la vista geografica.
Perché questo sia possibile, è necessario autorizzare la geolocalizzazione.
Quest'ultimo è esclusivamente per comodità e non influenza l'operatività.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Non si ha autorizzato la geolocalizzazione",geolocationErrorPositionUnavailable:"Posizione non disponibile",geolocationErrorTimeout:"Terminato il tempo di attesa per la geolocalizzazione",geolocationErrorUnknown:"Errore imprevisto",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Risultato di osservazioni previe",noLogItems:"Il log è vuoto",uploadComplete:"Upload del file {fileName} completato",IDLAlertText:"La selezione attuale incrocia la IDL. per poterlo fare è necessario disegnare un contesto",lastTermAlertText:"Non sono permessi altri token",parenthesisAlertText:"Paretesi sbilanciate",emptyFreeTextSearch:"Ricerca vuota",fuzzyModeOff:"Ricerca libers disattivata",fuzzyModeOn:"Ricerca libera attivata",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Albero",logPane:"Log",resetContext:"Reset context",interruptTask:"Interrompere processo {taskDescription}",dataViewer:"Vedere dati",reportViewer:"Vedere report",noReportTask:"Report non disponibile,\naspettare",noReportObservation:"Report non disponibile,\nnon ci sono osservazioni",noDataflow:"Dataflow non disponible",dataflowViewer:"Vedere data flow (will be...)",provenanceViewer:"Vedere provenance (will be...)",undock:"Sganciare",copyEncodedShapeToClipboard:"Copia il contesto negli appunti",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare default",submitInputRequest:"Inviare"},errors:{connectionError:"Errore di connessione",searchTimeout:"Tempo di ricerca terminato",uploadError:"Errore durante l'upload del file {fileName}"},langName:"Italiano"},s={en:i,es:r,it:c},l=n("741d"),u=n("7cca");n.d(t,"b",function(){return E});var d=null;function E(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||null===d){o["a"].use(a["a"]);var t="en";l["a"].has(u["R"].COOKIE_LANG)?(t=l["a"].get(u["R"].COOKIE_LANG),console.debug("Locale set from cookie to ".concat(t))):(l["a"].set(u["R"].COOKIE_LANG,t,{expires:30,path:"/",secure:!0}),console.debug("Lang cookie set to ".concat(t))),d=new a["a"]({locale:t,fallbackLocale:"en",messages:s})}return d}t["a"]=function(e){var t=e.app;t.i18n=E()}},fb1c:function(e,t,n){}},[[0,"runtime","vendor"]]]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/runtime.5d4b968f.js b/klab.engine/src/main/resources/static/ui/js/runtime.5d4b968f.js new file mode 100644 index 000000000..090f24d79 --- /dev/null +++ b/klab.engine/src/main/resources/static/ui/js/runtime.5d4b968f.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