diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e1851ad..fd7a6eb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,11 @@ on: push: branches: - master + - 0.3.x pull_request: branches: - master + - 0.3.x env: PYTHONIOENCODING: utf-8 diff --git a/.gitignore b/.gitignore index 6387bbe5..e56aa353 100644 --- a/.gitignore +++ b/.gitignore @@ -157,10 +157,6 @@ py_src/ipyelk/labextension/*.tgz # ------------- **/coverage/ -# generated files -py_src/ipyelk/schema/*.json -py_src/ipyelk/labextension/ - # editors .idea/ .vscode/ diff --git a/.readthedocs.yml b/.readthedocs.yml index 71f48d50..cd84d48f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -2,7 +2,6 @@ version: 2 sphinx: configuration: docs/conf.py - conda: environment: docs/rtd.yml diff --git a/docs/index.md b/docs/index.md index 676d062e..abf63fb0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,3 +6,10 @@ changelog contributing ``` + +```{toctree} +:maxdepth: 1 +:hidden: +:titlesonly: +reference/index +``` diff --git a/docs/reference/index.md b/docs/reference/index.md new file mode 100644 index 00000000..6199eac5 --- /dev/null +++ b/docs/reference/index.md @@ -0,0 +1,9 @@ +# API Reference + +This page describe the overall API for ipyelk. + +```{toctree} +:maxdepth: 2 +widgets +transformers +``` diff --git a/docs/reference/transformers.md b/docs/reference/transformers.md new file mode 100644 index 00000000..42c34a86 --- /dev/null +++ b/docs/reference/transformers.md @@ -0,0 +1,24 @@ +# Transformers + +The goal of transformers is to take some generalized source and generate valid elk json +to pass to an ElkDiagram widget for layout. + +## Transformer + +```{eval-rst} +.. currentmodule:: ipyelk.transform +.. autoclass:: EdgeMap +.. autoclass:: ElkTransformer + :members: +``` + +## NetworkX Transformer + +```{eval-rst} +.. currentmodule:: ipyelk.nx.transformer + + +.. autoclass:: XELK + :show-inheritance: + :members: +``` diff --git a/docs/reference/widgets.md b/docs/reference/widgets.md new file mode 100644 index 00000000..e08373c0 --- /dev/null +++ b/docs/reference/widgets.md @@ -0,0 +1,25 @@ +# Widgets + +## Diagram Widget + +```{eval-rst} +.. currentmodule:: ipyelk.diagram.elk_widget +.. autoclass:: ipyelk.diagram.elk_widget.ElkDiagram + :members: +``` + +## App Widget + +```{eval-rst} +.. currentmodule:: ipyelk.app +.. autoclass:: ipyelk.app.Elk + :members: +``` + +## Layout Widget + +```{eval-rst} +.. currentmodule:: ipyelk.layouting.elkjs +.. autoclass:: ipyelk.layouting.elkjs.ElkJS + :members: +``` diff --git a/docs/rtd.yml b/docs/rtd.yml index eaaaf2f3..b93336f7 100644 --- a/docs/rtd.yml +++ b/docs/rtd.yml @@ -10,3 +10,5 @@ dependencies: - python >=3.7,<3.8 - sphinx - sphinx-autodoc-typehints + - pip: + - -e .. diff --git a/dodo.py b/dodo.py index bd390c63..ff26bf5b 100644 --- a/dodo.py +++ b/dodo.py @@ -142,7 +142,7 @@ def task_binder(): def task_env(): """prepare project envs""" - envs = ["default", "atest"] + envs = ["default", "atest", "docs"] for i, env in enumerate(envs): file_dep = [P.PROJ_LOCK, P.OK_PREFLIGHT_CONDA] if P.FORCE_SERIAL_ENV_PREP and i: @@ -231,6 +231,19 @@ def task_setup(): P.OK_LABEXT, ) +def task_setup_docs(): + _install = ["--no-deps", "--ignore-installed", "-vv", "-e", "."] + yield _ok( + dict( + name="docs py setup", + file_dep=[P.OK_ENV["docs"]], + actions=[ + [*P.APR, "docs", *P.PIP, "install", *_install], + [*P.APR, "docs", *P.PIP, "check"], + ], + ), + P.OK_DOCS_PIP_INSTALL + ) if not P.TESTING_IN_CI: @@ -583,7 +596,7 @@ def task_docs(): """build the docs (mostly as readthedocs would)""" yield dict( name="sphinx", - file_dep=[P.DOCS_CONF, *P.ALL_PY_SRC, *P.ALL_MD], + file_dep=[P.DOCS_CONF, *P.ALL_PY_SRC, *P.ALL_MD, P.OK_DOCS_PIP_INSTALL], targets=[P.DOCS_BUILDINFO], actions=[[*P.APR_DOCS, "docs"]], ) @@ -594,7 +607,7 @@ def task_watch_docs(): yield dict( uptodate=[lambda: False], name="sphinx-autobuild", - file_dep=[P.DOCS_BUILDINFO, *P.ALL_MD], + file_dep=[P.DOCS_BUILDINFO, *P.ALL_MD, P.OK_DOCS_PIP_INSTALL], actions=[ LongRunning( [*P.APR_DOCS, "sphinx-autobuild", P.DOCS, P.DOCS_BUILD], shell=False diff --git a/py_src/ipyelk/app.py b/py_src/ipyelk/app.py index 6a1b2a05..ddfb7308 100644 --- a/py_src/ipyelk/app.py +++ b/py_src/ipyelk/app.py @@ -11,7 +11,19 @@ class Elk(W.VBox, StyledWidget): - """ An Elk diagramming widget """ + """An Elk diagramming widget to help coordinate the + :py:class:`~ipyelk.diagram.elk_widget.ElkDiagram` and + :py:class:`~ipyelk.transform.ElkTransformer` + + Attributes + ---------- + + transformer: :py:class:`~ipyelk.diagram.elk_widget.ElkDiagram` + Transformer to convert source objects into valid elk json value + diagram: :py:class:`~ipyelk.diagram.elk_widget.ElkDiagram` + + :param toolbar: Toolar for widget + """ transformer: ElkTransformer = T.Instance(ElkTransformer) diagram: ElkDiagram = T.Instance(ElkDiagram) diff --git a/py_src/ipyelk/diagram/elk_widget.py b/py_src/ipyelk/diagram/elk_widget.py index 5589fe37..309741ad 100644 --- a/py_src/ipyelk/diagram/elk_widget.py +++ b/py_src/ipyelk/diagram/elk_widget.py @@ -3,7 +3,7 @@ # Copyright (c) 2021 Dane Freeman. # Distributed under the terms of the Modified BSD License. -from typing import List +from typing import Dict, List, Tuple import traitlets as T from ipywidgets import CallbackDispatcher, DOMWidget, widget_serialization @@ -16,7 +16,28 @@ class ElkDiagram(DOMWidget): - """Jupyterlab widget for interacting with ELK diagrams""" + """Jupyterlab widget for displaying and interacting with diagrams generated + from elk json. + + Setting the instance's `value` traitlet to valid `elk json + `_ will call the `elkjs layout method + `_ and display the returned `mark_layout` + using `sprotty `_. + + :ivar value: Input elk json + :vartype value: Dict + :ivar mark_layout: Resulting layout from current layouter e.g. elkjs + :vartype mark_layout: Dict + :ivar selected: elk ids of selected marks + :vartype selected: Tuple[str] + :ivar hovered: elk id of currently hovered mark + :vartype hovered: str + :ivar layouter: A layouter to add position and sizes to marks in the incoming + elk json + :vartype layouter: ElkJS + + """ _model_name = T.Unicode("ELKDiagramModel").tag(sync=True) _model_module = T.Unicode(EXTENSION_NAME).tag(sync=True) @@ -29,10 +50,10 @@ class ElkDiagram(DOMWidget): defs = T.Dict(value_trait=T.Instance(Def), kw={}).tag( sync=True, **def_serialization ) - mark_layout = T.Dict().tag(sync=True) - selected = T.Tuple().tag(sync=True) - hovered = T.Unicode(allow_none=True, default_value=None).tag(sync=True) - layouter = T.Instance(ElkJS, kw={}).tag(sync=True, **widget_serialization) + mark_layout: Dict = T.Dict().tag(sync=True) + selected: Tuple = T.Tuple().tag(sync=True) + hovered: str = T.Unicode(allow_none=True, default_value=None).tag(sync=True) + layouter: ElkJS = T.Instance(ElkJS, kw={}).tag(sync=True, **widget_serialization) def __init__(self, *value, **kwargs): if value: diff --git a/py_src/ipyelk/labextension/package.json b/py_src/ipyelk/labextension/package.json new file mode 100644 index 00000000..2d0c4556 --- /dev/null +++ b/py_src/ipyelk/labextension/package.json @@ -0,0 +1,88 @@ +{ + "name": "@jupyrdf/jupyter-elk", + "version": "1.0.1", + "description": "ElkJS widget for Jupyter", + "keywords": [ + "jupyter", + "jupyterlab", + "jupyterlab-extension", + "widgets" + ], + "homepage": "https://github.com/jupyrdf/ipyelk", + "bugs": { + "url": "https://github.com/jupyrdf/ipyelk/issues" + }, + "license": "BSD-3-Clause", + "author": "Dane Freeman", + "files": [ + "{lib,style,src}/**/*.{.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf,css}", + "LICENSE.txt", + "COPYRIGHT.md", + "third-party/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "repository": { + "type": "git", + "url": "https://github.com/jupyrdf/ipyelk" + }, + "prettier": { + "singleQuote": true, + "proseWrap": "always", + "printWidth": 88 + }, + "scripts": { + "bootstrap": "jlpm --prefer-offline --ignore-optional --ignore-scripts && jlpm clean && jlpm schema && jlpm lint && jlpm build", + "build": "jlpm build:ts && jlpm build:ext", + "build:ts": "tsc -b", + "build:ext": "jupyter labextension build .", + "clean": "rimraf ./lib ./py_src/ipyelk/schema/elkschema.json ./py_src/ipyelk/labextension", + "watch": "jlpm build:ts --watch --preserveWatchOutput", + "schema": "ts-json-schema-generator --tsconfig ./tsconfig.json --type AnyElkNode --no-type-check --expose all --path ./src/elkschema.ts -o ./py_src/ipyelk/schema/elkschema.json", + "lint": "jlpm lint:prettier", + "lint:prettier": "prettier --write --list-different \"*.{json,yml,md}\" \"{src,style,py_src,.github,examples,docs}/**/*.{ts,tsx,js,jsx,css,json,md,yml}\"" + }, + "dependencies": { + "reflect-metadata": "^0.1.13", + "sprotty-elk": "0.9.0" + }, + "devDependencies": { + "@jupyter-widgets/base": "4", + "@jupyter-widgets/controls": "3", + "@jupyter-widgets/jupyterlab-manager": "3", + "@jupyterlab/application": "3", + "@jupyterlab/builder": "^3.0.1", + "@jupyterlab/theme-dark-extension": "3", + "@jupyterlab/theme-light-extension": "3", + "@types/lodash": "^4.14.162", + "prettier": "^1.9.1", + "rimraf": "^3.0.2", + "snabbdom": "~0.6.6", + "ts-json-schema-generator": "^0.83.2", + "typescript": "~4.1.3" + }, + "peerDependencies": { + "@jupyter-widgets/base": "4", + "@jupyter-widgets/controls": "3", + "@jupyter-widgets/jupyterlab-manager": "3" + }, + "sideEffects": [ + "style/*.css" + ], + "jupyterlab": { + "extension": "lib/plugin", + "outputDir": "py_src/ipyelk/labextension", + "sharedPackages": { + "@jupyter-widgets/base": { + "bundled": false, + "singleton": true + } + }, + "_build": { + "load": "static/remoteEntry.71cdf6b00b374443398e.js", + "extension": "./extension", + "style": "./style" + } + } +} diff --git a/py_src/ipyelk/labextension/static/365.a06eed5dbe07cc2f6f27.worker.js b/py_src/ipyelk/labextension/static/365.a06eed5dbe07cc2f6f27.worker.js new file mode 100644 index 00000000..7b89e099 --- /dev/null +++ b/py_src/ipyelk/labextension/static/365.a06eed5dbe07cc2f6f27.worker.js @@ -0,0 +1 @@ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[365],{365:(e,l,s)=>{"use strict";s.r(l),s.d(l,{ELK_CSS:()=>r,ELK_DEBUG:()=>k,NAME:()=>p,VERSION:()=>_});const p="@jupyrdf/jupyter-elk",_="1.0.1",k=window.location.hash.indexOf("ELK_DEBUG")>-1,r={label:"elklabel",widget_class:"jp-ElkView",sizer_class:"jp-ElkSizer"}}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/478.e3c0096a462aa05ff5c2.js b/py_src/ipyelk/labextension/static/478.e3c0096a462aa05ff5c2.js new file mode 100644 index 00000000..0e514917 --- /dev/null +++ b/py_src/ipyelk/labextension/static/478.e3c0096a462aa05ff5c2.js @@ -0,0 +1 @@ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[478],{7338:function(t){t.exports=function(){"use strict";return function(t){var e,n,o=document,r=o.createElement("div"),i=r.style,a=navigator.userAgent,s=-1!==a.indexOf("Firefox")&&-1!==a.indexOf("Mobile"),c=t.debounceWaitMs||0,u=t.preventSubmit||!1,d=s?"input":"keyup",l=[],p="",f=2,h=t.showOnFocus,y=0;if(void 0!==t.minLength&&(f=t.minLength),!t.input)throw new Error("input undefined");var g=t.input;function v(){n&&window.clearTimeout(n)}function m(){return!!r.parentNode}function b(){var t;y++,l=[],p="",e=void 0,(t=r.parentNode)&&t.removeChild(r)}function _(){for(;r.firstChild;)r.removeChild(r.firstChild);var n=function(t,e){var n=o.createElement("div");return n.textContent=t.label||"",n};t.render&&(n=t.render);var a=function(t,e){var n=o.createElement("div");return n.textContent=t,n};t.renderGroup&&(a=t.renderGroup);var s=o.createDocumentFragment(),c="#9?$";if(l.forEach((function(o){if(o.group&&o.group!==c){c=o.group;var r=a(o.group,p);r&&(r.className+=" group",s.appendChild(r))}var i=n(o,p);i&&(i.addEventListener("click",(function(e){t.onSelect(o,g),b(),e.preventDefault(),e.stopPropagation()})),o===e&&(i.className+=" selected"),s.appendChild(i))})),r.appendChild(s),l.length<1){if(!t.emptyMsg)return void b();var u=o.createElement("div");u.className="empty",u.textContent=t.emptyMsg,r.appendChild(u)}r.parentNode||o.body.appendChild(r),function(){if(m()){i.height="auto",i.width=g.offsetWidth+"px";var e=g.getBoundingClientRect(),n=e.top+g.offsetHeight,o=window.innerHeight-n;o<0&&(o=0),i.top=n+"px",i.bottom="",i.left=e.left+"px",i.maxHeight=o+"px",t.customize&&t.customize(g,e,r,o)}}(),function(){var t=r.getElementsByClassName("selected");if(t.length>0){var e=t[0],n=e.previousElementSibling;if(n&&-1!==n.className.indexOf("group")&&!n.previousElementSibling&&(e=n),e.offsetTopi&&(r.scrollTop+=o-i)}}}()}function w(){m()&&_()}function P(){w()}function S(t){t.target!==r?w():t.preventDefault()}function O(t){for(var e=t.which||t.keyCode||0,n=0,o=[38,13,27,39,37,16,17,18,20,91,9];n0;t--)if(e===l[t]||1===t){e=l[t-1];break}}():function(){if(l.length<1&&(e=void 0),e&&e!==l[l.length-1]){for(var t=0;t=f||1===o?(v(),n=window.setTimeout((function(){t.fetch(i,(function(t){y===r&&t&&(p=i,e=(l=t).length>0?l[0]:void 0,_())}),0)}),0===o?c:0)):b()}function I(){setTimeout((function(){o.activeElement!==g&&b()}),200)}return r.className="autocomplete "+(t.className||""),i.position="fixed",r.addEventListener("mousedown",(function(t){t.stopPropagation(),t.preventDefault()})),g.addEventListener("keydown",E),g.addEventListener(d,O),g.addEventListener("blur",I),g.addEventListener("focus",x),window.addEventListener("resize",P),o.addEventListener("scroll",S,!0),{destroy:function(){g.removeEventListener("focus",x),g.removeEventListener("keydown",E),g.removeEventListener(d,O),g.removeEventListener("blur",I),window.removeEventListener("resize",P),o.removeEventListener("scroll",S,!0),v(),b(),y++}}}}()},3162:function(t,e,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";function e(t,e,n){var o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){a(o.response,e,n)},o.onerror=function(){console.error("could not download file")},o.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(t,n,a){var s=i.URL||i.webkitURL,c=document.createElement("a");n=n||t.name||"download",c.download=n,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?r(c):o(c.href)?e(t,n,a):r(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){r(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,i){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,i),n);else if(o(t))e(t,n,i);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout((function(){r(a)}))}}:function(t,n,o,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,o);var a="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=i.URL||i.webkitURL,l=d.createObjectURL(t);r?r.location=l:location.href=l,r=null,setTimeout((function(){d.revokeObjectURL(l)}),4e4)}});i.saveAs=a.saveAs=a,t.exports=a})?o.apply(e,[]):o)||(t.exports=r)},8073:(t,e,n)=>{var o=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,r=n(1739);t.exports=function(t){var e,n=0,i=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return t.replace(o,(function(o){if("="===o)return i=!0,void n++;i?0===n?((r[o]||"/"===t.charAt(t.length-2))&&(a.voidElement=!0),a.name=o):(a.attrs[e]=o.replace(/^['"]|['"]$/g,""),e=void 0):(e&&(a.attrs[e]=e),e=o),n++,i=!1})),a}},3039:(t,e,n)=>{var o=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,r=n(8073),i=Object.create?Object.create(null):{};function a(t,e,n,o,r){var i=e.indexOf("<",o),a=e.slice(o,-1===i?void 0:i);/^\s*$/.test(a)&&(a=" "),(!r&&i>-1&&n+t.length>=0||" "!==a)&&t.push({type:"text",content:a})}t.exports=function(t,e){e||(e={}),e.components||(e.components=i);var n,s=[],c=-1,u=[],d={},l=!1;return t.replace(o,(function(o,i){if(l){if(o!=="")return;l=!1}var p,f="/"!==o.charAt(1),h=0===o.indexOf("\x3c!--"),y=i+o.length,g=t.charAt(y);f&&!h&&(c++,"tag"===(n=r(o)).type&&e.components[n.name]&&(n.type="component",l=!0),n.voidElement||l||!g||"<"===g||a(n.children,t,c,y,e.ignoreWhitespace),d[n.tagName]=n,0===c&&s.push(n),(p=u[c-1])&&p.children.push(n),u[c]=n),(h||!f||n.voidElement)&&(h||c--,!l&&"<"!==g&&g&&a(p=-1===c?s:u[c].children,t,c,y,e.ignoreWhitespace))})),!s.length&&t.length&&a(s,t,0,0,e.ignoreWhitespace),s}},9934:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=n(6867);function i(t,e,n,r,i){var a={},s="number"==typeof i,c=void 0!==i&&s?i.toString():n;if(s&&void 0!==n)throw new Error(o.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(t,e)&&(a=Reflect.getMetadata(t,e));var u=a[c];if(Array.isArray(u))for(var d=0,l=u;d{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=n(6867),i=n(7738),a=n(9934),s=function(){function t(t){this._cb=t}return t.prototype.unwrap=function(){return this._cb()},t}();e.LazyServiceIdentifer=s,e.inject=function(t){return function(e,n,s){if(void 0===t)throw new Error(o.UNDEFINED_INJECT_ANNOTATION(e.name));var c=new i.Metadata(r.INJECT_TAG,t);"number"==typeof s?a.tagParameter(e,n,s,c):a.tagProperty(e,n,c)}}},4315:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=n(6867);e.injectable=function(){return function(t){if(Reflect.hasOwnMetadata(r.PARAM_TYPES,t))throw new Error(o.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(r.DESIGN_PARAM_TYPES,t)||[];return Reflect.defineMetadata(r.PARAM_TYPES,e,t),t}}},1693:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=n(7738),i=n(9934);e.multiInject=function(t){return function(e,n,a){var s=new r.Metadata(o.MULTI_INJECT_TAG,t);"number"==typeof a?i.tagParameter(e,n,a,s):i.tagProperty(e,n,s)}}},8085:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=n(7738),i=n(9934);e.named=function(t){return function(e,n,a){var s=new r.Metadata(o.NAMED_TAG,t);"number"==typeof a?i.tagParameter(e,n,a,s):i.tagProperty(e,n,s)}}},6515:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=n(7738),i=n(9934);e.optional=function(){return function(t,e,n){var a=new r.Metadata(o.OPTIONAL_TAG,!0);"number"==typeof n?i.tagParameter(t,e,n,a):i.tagProperty(t,e,a)}}},7014:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=n(6867),i=n(7738);e.postConstruct=function(){return function(t,e,n){var a=new i.Metadata(r.POST_CONSTRUCT,e);if(Reflect.hasOwnMetadata(r.POST_CONSTRUCT,t.constructor))throw new Error(o.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(r.POST_CONSTRUCT,a,t.constructor)}}},2052:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(7738),r=n(9934);e.tagged=function(t,e){return function(n,i,a){var s=new o.Metadata(t,e);"number"==typeof a?r.tagParameter(n,i,a,s):r.tagProperty(n,i,s)}}},5638:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=n(7738),i=n(9934);e.targetName=function(t){return function(e,n,a){var s=new r.Metadata(o.NAME_TAG,t);i.tagParameter(e,n,a,s)}}},6757:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=n(7738),i=n(9934);e.unmanaged=function(){return function(t,e,n){var a=new r.Metadata(o.UNMANAGED_TAG,!0);i.tagParameter(t,e,n,a)}}},4290:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8421),r=n(7791),i=function(){function t(t,e){this.id=r.id(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=o.BindingTypeEnum.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return t.prototype.clone=function(){var e=new t(this.serviceIdentifier,this.scope);return e.activated=!1,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.cache=this.cache,e},t}();e.Binding=i},3184:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},6674:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",e.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",e.NULL_ARGUMENT="NULL argument",e.KEY_NOT_FOUND="Key Not Found",e.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",e.CANNOT_UNBIND="Could not unbind serviceIdentifier:",e.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",e.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",e.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",e.UNDEFINED_INJECT_ANNOTATION=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},e.CIRCULAR_DEPENDENCY="Circular dependency found:",e.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",e.INVALID_BINDING_TYPE="Invalid binding type:",e.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",e.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",e.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",e.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",e.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",e.ARGUMENTS_LENGTH_MISMATCH=function(){for(var t=[],e=0;e= than the number of constructor arguments of its base class."},e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",e.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",e.POST_CONSTRUCT_ERROR=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},e.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},e.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},6867:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NAMED_TAG="named",e.NAME_TAG="name",e.UNMANAGED_TAG="unmanaged",e.OPTIONAL_TAG="optional",e.INJECT_TAG="inject",e.MULTI_INJECT_TAG="multi_inject",e.TAGGED="inversify:tagged",e.TAGGED_PROP="inversify:tagged_props",e.PARAM_TYPES="inversify:paramtypes",e.DESIGN_PARAM_TYPES="design:paramtypes",e.POST_CONSTRUCT="post_construct"},1389:function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(a,s)}c((o=o.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=o[2&i[0]?"return":i[0]?"throw":"next"])&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[0,r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(7791);e.ContainerModule=function(t){this.id=o.id(),this.registry=t};e.AsyncContainerModule=function(t){this.id=o.id(),this.registry=t}},5700:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.of=function(e,n){var o=new t;return o.bindings=e,o.middleware=n,o},t}();e.ContainerSnapshot=n},175:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=function(){function t(){this._map=new Map}return t.prototype.getMap=function(){return this._map},t.prototype.add=function(t,e){if(null==t)throw new Error(o.NULL_ARGUMENT);if(null==e)throw new Error(o.NULL_ARGUMENT);var n=this._map.get(t);void 0!==n?(n.push(e),this._map.set(t,n)):this._map.set(t,[e])},t.prototype.get=function(t){if(null==t)throw new Error(o.NULL_ARGUMENT);var e=this._map.get(t);if(void 0!==e)return e;throw new Error(o.KEY_NOT_FOUND)},t.prototype.remove=function(t){if(null==t)throw new Error(o.NULL_ARGUMENT);if(!this._map.delete(t))throw new Error(o.KEY_NOT_FOUND)},t.prototype.removeByCondition=function(t){var e=this;this._map.forEach((function(n,o){var r=n.filter((function(e){return!t(e)}));r.length>0?e._map.set(o,r):e._map.delete(o)}))},t.prototype.hasKey=function(t){if(null==t)throw new Error(o.NULL_ARGUMENT);return this._map.has(t)},t.prototype.clone=function(){var e=new t;return this._map.forEach((function(t,n){t.forEach((function(t){return e.add(n,t.clone())}))})),e},t.prototype.traverse=function(t){this._map.forEach((function(e,n){t(n,e)}))},t}();e.Lookup=r},6700:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867);e.METADATA_KEY=o;var r=n(1389);e.Container=r.Container;var i=n(8421);e.BindingScopeEnum=i.BindingScopeEnum,e.BindingTypeEnum=i.BindingTypeEnum,e.TargetTypeEnum=i.TargetTypeEnum;var a=n(3244);e.AsyncContainerModule=a.AsyncContainerModule,e.ContainerModule=a.ContainerModule;var s=n(4315);e.injectable=s.injectable;var c=n(2052);e.tagged=c.tagged;var u=n(8085);e.named=u.named;var d=n(5744);e.inject=d.inject,e.LazyServiceIdentifer=d.LazyServiceIdentifer;var l=n(6515);e.optional=l.optional;var p=n(6757);e.unmanaged=p.unmanaged;var f=n(1693);e.multiInject=f.multiInject;var h=n(5638);e.targetName=h.targetName;var y=n(7014);e.postConstruct=y.postConstruct;var g=n(1377);e.MetadataReader=g.MetadataReader;var v=n(7791);e.id=v.id;var m=n(9934);e.decorate=m.decorate;var b=n(758);e.traverseAncerstors=b.traverseAncerstors,e.taggedConstraint=b.taggedConstraint,e.namedConstraint=b.namedConstraint,e.typeConstraint=b.typeConstraint;var _=n(5800);e.getServiceIdentifierAsString=_.getServiceIdentifierAsString;var w=n(600);e.multiBindToService=w.multiBindToService},5228:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(7791),r=function(){function t(t){this.id=o.id(),this.container=t}return t.prototype.addPlan=function(t){this.plan=t},t.prototype.setCurrentRequest=function(t){this.currentRequest=t},t}();e.Context=r},7738:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.toString=function(){return this.key===o.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},t}();e.Metadata=r},1377:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=function(){function t(){}return t.prototype.getConstructorMetadata=function(t){return{compilerGeneratedMetadata:Reflect.getMetadata(o.PARAM_TYPES,t),userGeneratedMetadata:Reflect.getMetadata(o.TAGGED,t)||{}}},t.prototype.getPropertiesMetadata=function(t){return Reflect.getMetadata(o.TAGGED_PROP,t)||[]},t}();e.MetadataReader=r},5314:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Plan=function(t,e){this.parentContext=t,this.rootRequest=e}},6311:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(3184),r=n(6674),i=n(8421),a=n(6867),s=n(4623),c=n(5800),u=n(5228),d=n(7738),l=n(5314),p=n(2068),f=n(6748),h=n(8924);function y(t){return t._bindingDictionary}function g(t,e,n,i,a){var s,u=m(n.container,a.serviceIdentifier);return u.length===o.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof a.serviceIdentifier&&t.getConstructorMetadata(a.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(a.serviceIdentifier).toSelf(),u=m(n.container,a.serviceIdentifier)),s=e?u:u.filter((function(t){var e=new f.Request(t.serviceIdentifier,n,i,t,a);return t.constraint(e)})),function(t,e,n,i){switch(e.length){case o.BindingCount.NoBindingsAvailable:if(n.isOptional())return e;var a=c.getServiceIdentifierAsString(t),s=r.NOT_REGISTERED;throw s+=c.listMetadataForTarget(a,n),s+=c.listRegisteredBindingsForServiceIdentifier(i,a,m),new Error(s);case o.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return e;case o.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return e;throw a=c.getServiceIdentifierAsString(t),s=r.AMBIGUOUS_MATCH+" "+a,s+=c.listRegisteredBindingsForServiceIdentifier(i,a,m),new Error(s)}}(a.serviceIdentifier,s,a,n.container),s}function v(t,e,n,o,a,s){var c,u;if(null===a){c=g(t,e,o,null,s),u=new f.Request(n,o,null,c,s);var d=new l.Plan(o,u);o.addPlan(d)}else c=g(t,e,o,a,s),u=a.addChildRequest(s.serviceIdentifier,c,s);c.forEach((function(e){var n=null;if(s.isArray())n=u.addChildRequest(e.serviceIdentifier,e,s);else{if(e.cache)return;n=u}if(e.type===i.BindingTypeEnum.Instance&&null!==e.implementationType){var a=p.getDependencies(t,e.implementationType);if(!o.container.options.skipBaseClassChecks){var c=p.getBaseClassDependencyCount(t,e.implementationType);if(a.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.str=t}return t.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},t.prototype.endsWith=function(t){var e,n=t.split("").reverse().join("");return e=this.str.split("").reverse().join(""),this.startsWith.call({str:e},n)},t.prototype.contains=function(t){return-1!==this.str.indexOf(t)},t.prototype.equals=function(t){return this.str===t},t.prototype.value=function(){return this.str},t}();e.QueryableString=n},2068:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5744),r=n(6674),i=n(8421),a=n(6867),s=n(5800);e.getFunctionName=s.getFunctionName;var c=n(8924);function u(t,e,n,o){var i=t.getConstructorMetadata(n),a=i.compilerGeneratedMetadata;if(void 0===a){var s=r.MISSING_INJECTABLE_ANNOTATION+" "+e+".";throw new Error(s)}var c=i.userGeneratedMetadata,u=Object.keys(c),p=function(t,e,n,o,r){for(var i=[],a=0;a0?u.length:n.length),f=l(t,n);return p.concat(f)}function d(t,e,n,a,s){var u=s[t.toString()]||[],d=p(u),l=!0!==d.unmanaged,f=a[t];if((f=d.inject||d.multiInject||f)instanceof o.LazyServiceIdentifer&&(f=f.unwrap()),l){if(!e&&(f===Object||f===Function||void 0===f)){var h=r.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".";throw new Error(h)}var y=new c.Target(i.TargetTypeEnum.ConstructorArgument,d.targetName,f);return y.metadata=u,y}return null}function l(t,e){for(var n=t.getPropertiesMetadata(e),o=[],r=0,a=Object.keys(n);r0?d:t(e,o)}return 0}},6748:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(7791),r=function(){function t(t,e,n,r,i){this.id=o.id(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=n,this.target=i,this.childRequests=[],this.bindings=Array.isArray(r)?r:[r],this.requestScope=null===n?new Map:null}return t.prototype.addChildRequest=function(e,n,o){var r=new t(e,this.parentContext,this,n,o);return this.childRequests.push(r),r},t}();e.Request=r},8924:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=n(7791),i=n(7738),a=n(8460),s=function(){function t(t,e,n,s){this.id=r.id(),this.type=t,this.serviceIdentifier=n,this.name=new a.QueryableString(e||""),this.metadata=new Array;var c=null;"string"==typeof s?c=new i.Metadata(o.NAMED_TAG,s):s instanceof i.Metadata&&(c=s),null!==c&&this.metadata.push(c)}return t.prototype.hasTag=function(t){for(var e=0,n=this.metadata;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=n(8421),i=n(6867);e.resolveInstance=function(t,e,n){var a,s,c=null;e.length>0?(s=e.filter((function(t){return null!==t.target&&t.target.type===r.TargetTypeEnum.ConstructorArgument})).map(n),c=function(t,e,n){var o=e.filter((function(t){return null!==t.target&&t.target.type===r.TargetTypeEnum.ClassProperty})),i=o.map(n);return o.forEach((function(e,n){var o;o=e.target.name.value();var r=i[n];t[o]=r})),t}(c=new((a=t).bind.apply(a,[void 0].concat(s))),e,n)):c=new t;return function(t,e){if(Reflect.hasMetadata(i.POST_CONSTRUCT,t)){var n=Reflect.getMetadata(i.POST_CONSTRUCT,t);try{e[n.value]()}catch(e){throw new Error(o.POST_CONSTRUCT_ERROR(t.name,e.message))}}}(t,c),c}},1927:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=n(8421),i=n(4623),a=n(5800),s=n(2279),c=function(t,e,n){try{return n()}catch(n){throw i.isStackOverflowExeption(n)?new Error(o.CIRCULAR_DEPENDENCY_IN_FACTORY(t,e.toString())):n}},u=function(t){return function(e){e.parentContext.setCurrentRequest(e);var n=e.bindings,i=e.childRequests,d=e.target&&e.target.isArray(),l=!(e.parentRequest&&e.parentRequest.target&&e.target&&e.parentRequest.target.matchesArray(e.target.serviceIdentifier));if(d&&l)return i.map((function(e){return u(t)(e)}));var p=null;if(!e.target.isOptional()||0!==n.length){var f=n[0],h=f.scope===r.BindingScopeEnum.Singleton,y=f.scope===r.BindingScopeEnum.Request;if(h&&f.activated)return f.cache;if(y&&null!==t&&t.has(f.id))return t.get(f.id);if(f.type===r.BindingTypeEnum.ConstantValue)p=f.cache;else if(f.type===r.BindingTypeEnum.Function)p=f.cache;else if(f.type===r.BindingTypeEnum.Constructor)p=f.implementationType;else if(f.type===r.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)p=c("toDynamicValue",f.serviceIdentifier,(function(){return f.dynamicValue(e.parentContext)}));else if(f.type===r.BindingTypeEnum.Factory&&null!==f.factory)p=c("toFactory",f.serviceIdentifier,(function(){return f.factory(e.parentContext)}));else if(f.type===r.BindingTypeEnum.Provider&&null!==f.provider)p=c("toProvider",f.serviceIdentifier,(function(){return f.provider(e.parentContext)}));else{if(f.type!==r.BindingTypeEnum.Instance||null===f.implementationType){var g=a.getServiceIdentifierAsString(e.serviceIdentifier);throw new Error(o.INVALID_BINDING_TYPE+" "+g)}p=s.resolveInstance(f.implementationType,i,u(t))}return"function"==typeof f.onActivation&&(p=f.onActivation(e.parentContext,p)),h&&(f.cache=p,f.activated=!0),y&&null!==t&&!t.has(f.id)&&t.set(f.id,p),p}}};e.resolve=function(t){return u(t.plan.rootRequest.requestScope)(t.plan.rootRequest)}},3366:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8421),r=n(1325),i=function(){function t(t){this._binding=t}return t.prototype.inRequestScope=function(){return this._binding.scope=o.BindingScopeEnum.Request,new r.BindingWhenOnSyntax(this._binding)},t.prototype.inSingletonScope=function(){return this._binding.scope=o.BindingScopeEnum.Singleton,new r.BindingWhenOnSyntax(this._binding)},t.prototype.inTransientScope=function(){return this._binding.scope=o.BindingScopeEnum.Transient,new r.BindingWhenOnSyntax(this._binding)},t}();e.BindingInSyntax=i},9812:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(3366),r=n(1811),i=n(8370),a=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding),this._bindingInSyntax=new o.BindingInSyntax(t)}return t.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},t.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},t.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingInWhenOnSyntax=a},1811:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8370),r=function(){function t(t){this._binding=t}return t.prototype.onActivation=function(t){return this._binding.onActivation=t,new o.BindingWhenSyntax(this._binding)},t}();e.BindingOnSyntax=r},1860:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674),r=n(8421),i=n(9812),a=n(1325),s=function(){function t(t){this._binding=t}return t.prototype.to=function(t){return this._binding.type=r.BindingTypeEnum.Instance,this._binding.implementationType=t,new i.BindingInWhenOnSyntax(this._binding)},t.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+o.INVALID_TO_SELF_VALUE);var t=this._binding.serviceIdentifier;return this.to(t)},t.prototype.toConstantValue=function(t){return this._binding.type=r.BindingTypeEnum.ConstantValue,this._binding.cache=t,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toDynamicValue=function(t){return this._binding.type=r.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=t,this._binding.implementationType=null,new i.BindingInWhenOnSyntax(this._binding)},t.prototype.toConstructor=function(t){return this._binding.type=r.BindingTypeEnum.Constructor,this._binding.implementationType=t,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFactory=function(t){return this._binding.type=r.BindingTypeEnum.Factory,this._binding.factory=t,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFunction=function(t){if("function"!=typeof t)throw new Error(o.INVALID_FUNCTION_BINDING);var e=this.toConstantValue(t);return this._binding.type=r.BindingTypeEnum.Function,e},t.prototype.toAutoFactory=function(t){return this._binding.type=r.BindingTypeEnum.Factory,this._binding.factory=function(e){return function(){return e.container.get(t)}},new a.BindingWhenOnSyntax(this._binding)},t.prototype.toProvider=function(t){return this._binding.type=r.BindingTypeEnum.Provider,this._binding.provider=t,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toService=function(t){this.toDynamicValue((function(e){return e.container.get(t)}))},t}();e.BindingToSyntax=s},1325:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1811),r=n(8370),i=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new r.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new o.BindingOnSyntax(this._binding)}return t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingWhenOnSyntax=i},8370:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1811),r=n(758),i=function(){function t(t){this._binding=t}return t.prototype.when=function(t){return this._binding.constraint=t,new o.BindingOnSyntax(this._binding)},t.prototype.whenTargetNamed=function(t){return this._binding.constraint=r.namedConstraint(t),new o.BindingOnSyntax(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new o.BindingOnSyntax(this._binding)},t.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=r.taggedConstraint(t)(e),new o.BindingOnSyntax(this._binding)},t.prototype.whenInjectedInto=function(t){return this._binding.constraint=function(e){return r.typeConstraint(t)(e.parentRequest)},new o.BindingOnSyntax(this._binding)},t.prototype.whenParentNamed=function(t){return this._binding.constraint=function(e){return r.namedConstraint(t)(e.parentRequest)},new o.BindingOnSyntax(this._binding)},t.prototype.whenParentTagged=function(t,e){return this._binding.constraint=function(n){return r.taggedConstraint(t)(e)(n.parentRequest)},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorIs=function(t){return this._binding.constraint=function(e){return r.traverseAncerstors(e,r.typeConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorIs=function(t){return this._binding.constraint=function(e){return!r.traverseAncerstors(e,r.typeConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorNamed=function(t){return this._binding.constraint=function(e){return r.traverseAncerstors(e,r.namedConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorNamed=function(t){return this._binding.constraint=function(e){return!r.traverseAncerstors(e,r.namedConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._binding.constraint=function(n){return r.traverseAncerstors(n,r.taggedConstraint(t)(e))},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorTagged=function(t,e){return this._binding.constraint=function(n){return!r.traverseAncerstors(n,r.taggedConstraint(t)(e))},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorMatches=function(t){return this._binding.constraint=function(e){return r.traverseAncerstors(e,t)},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorMatches=function(t){return this._binding.constraint=function(e){return!r.traverseAncerstors(e,t)},new o.BindingOnSyntax(this._binding)},t}();e.BindingWhenSyntax=i},758:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6867),r=n(7738),i=function(t,e){var n=t.parentRequest;return null!==n&&(!!e(n)||i(n,e))};e.traverseAncerstors=i;var a=function(t){return function(e){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(t)(e)};return n.metaData=new r.Metadata(t,e),n}};e.taggedConstraint=a;var s=a(o.NAMED_TAG);e.namedConstraint=s,e.typeConstraint=function(t){return function(e){var n=null;if(null!==e){if(n=e.bindings[0],"string"==typeof t)return n.serviceIdentifier===t;var o=e.bindings[0].implementationType;return t===o}return!1}}},600:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=function(t){return function(e){return function(){for(var n=[],o=0;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674);e.isStackOverflowExeption=function(t){return t instanceof RangeError||t.message===o.STACK_OVERFLOW}},7791:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=0;e.id=function(){return n++}},5800:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6674);function r(t){return"function"==typeof t?t.name:"symbol"==typeof t?t.toString():t}function i(t,e){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===e||i(t.parentRequest,e))}function a(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+e}e.getServiceIdentifierAsString=r,e.listRegisteredBindingsForServiceIdentifier=function(t,e,n){var o="",r=n(t,e);return 0!==r.length&&(o="\nRegistered bindings:",r.forEach((function(t){var e="Object";null!==t.implementationType&&(e=a(t.implementationType)),o=o+"\n "+e,t.constraint.metaData&&(o=o+" - "+t.constraint.metaData)}))),o},e.circularDependencyToException=function t(e){e.childRequests.forEach((function(e){if(i(e,e.serviceIdentifier)){var n=function(t){return function t(e,n){void 0===n&&(n=[]);var o=r(e.serviceIdentifier);return n.push(o),null!==e.parentRequest?t(e.parentRequest,n):n}(t).reverse().join(" --\x3e ")}(e);throw new Error(o.CIRCULAR_DEPENDENCY+" "+n)}t(e)}))},e.listMetadataForTarget=function(t,e){if(e.isTagged()||e.isNamed()){var n="",o=e.getNamedTag(),r=e.getCustomTags();return null!==o&&(n+=o.toString()+"\n"),null!==r&&r.forEach((function(t){n+=t.toString()+"\n"}))," "+t+"\n "+t+" - "+n}return" "+t},e.getFunctionName=a},1989:(t,e,n)=>{var o=n(1789),r=n(401),i=n(7667),a=n(1327),s=n(1866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e{var o=n(7040),r=n(4125),i=n(2117),a=n(7518),s=n(4705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e{var o=n(852)(n(5639),"Map");t.exports=o},3369:(t,e,n)=>{var o=n(4785),r=n(1285),i=n(6e3),a=n(9916),s=n(5265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e{var o=n(3369),r=n(619),i=n(2385);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o;++e{var o=n(5639).Symbol;t.exports=o},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7443:(t,e,n)=>{var o=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&o(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var o=-1,r=null==t?0:t.length;++o{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n{t.exports=function(t,e){for(var n=-1,o=e.length,r=t.length;++n{var o=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}},731:(t,e,n)=>{var o=n(8668),r=n(7443),i=n(1196),a=n(9932),s=n(1717),c=n(4757);t.exports=function(t,e,n,u){var d=-1,l=r,p=!0,f=t.length,h=[],y=e.length;if(!f)return h;n&&(e=a(e,s(n))),u?(l=i,p=!1):e.length>=200&&(l=c,p=!1,e=new o(e));t:for(;++d{t.exports=function(t,e,n,o){for(var r=t.length,i=n+(o?1:-1);o?i--:++i{var o=n(2488),r=n(7285);t.exports=function t(e,n,i,a,s){var c=-1,u=e.length;for(i||(i=r),s||(s=[]);++c0&&i(d)?n>1?t(d,n-1,i,a,s):o(s,d):a||(s[s.length]=d)}return s}},4239:(t,e,n)=>{var o=n(2705),r=n(9607),i=n(2333),a=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):i(t)}},2118:(t,e,n)=>{var o=n(1848),r=n(2722),i=n(2351);t.exports=function(t,e,n){return e==e?i(t,e,n):o(t,r,n)}},9454:(t,e,n)=>{var o=n(4239),r=n(7005);t.exports=function(t){return r(t)&&"[object Arguments]"==o(t)}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var o=n(3560),r=n(5346),i=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,l=u.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||r(t))&&(o(t)?p:s).test(a(t))}},5976:(t,e,n)=>{var o=n(6557),r=n(5357),i=n(61);t.exports=function(t,e){return i(r(t,e,o),t+"")}},6560:(t,e,n)=>{var o=n(5703),r=n(8777),i=n(6557),a=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:o(e),writable:!0})}:i;t.exports=a},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4429:(t,e,n)=>{var o=n(5639)["__core-js_shared__"];t.exports=o},8777:(t,e,n)=>{var o=n(852),r=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},1957:(t,e,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},5050:(t,e,n)=>{var o=n(7019);t.exports=function(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:(t,e,n)=>{var o=n(8458),r=n(7801);t.exports=function(t,e){var n=r(t,e);return o(n)?n:void 0}},9607:(t,e,n)=>{var o=n(2705),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,s=o?o.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var o=!0}catch(t){}var r=a.call(t);return o&&(e?t[s]=n:delete t[s]),r}},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},1789:(t,e,n)=>{var o=n(4536);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var o=n(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(o){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var o=n(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return o?void 0!==e[t]:r.call(e,t)}},1866:(t,e,n)=>{var o=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?"__lodash_hash_undefined__":e,this}},7285:(t,e,n)=>{var o=n(2705),r=n(5694),i=n(1469),a=o?o.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||r(t)||!!(a&&t&&t[a])}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var o,r=n(4429),i=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!i&&i in t}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var o=n(8470),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=o(e,t);return!(n<0||(n==e.length-1?e.pop():r.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var o=n(8470);t.exports=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var o=n(8470);t.exports=function(t){return o(this.__data__,t)>-1}},4705:(t,e,n)=>{var o=n(8470);t.exports=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},4785:(t,e,n)=>{var o=n(1989),r=n(8407),i=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||r),string:new o}}},1285:(t,e,n)=>{var o=n(5050);t.exports=function(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var o=n(5050);t.exports=function(t){return o(this,t).get(t)}},9916:(t,e,n)=>{var o=n(5050);t.exports=function(t){return o(this,t).has(t)}},5265:(t,e,n)=>{var o=n(5050);t.exports=function(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},4536:(t,e,n)=>{var o=n(852)(Object,"create");t.exports=o},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5357:(t,e,n)=>{var o=n(6874),r=Math.max;t.exports=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=r(i.length-e,0),c=Array(s);++a{var o=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},61:(t,e,n)=>{var o=n(6560),r=n(1275)(o);t.exports=r},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,o=0;return function(){var r=e(),i=16-(r-o);if(o=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},2351:t=>{t.exports=function(t,e,n){for(var o=n-1,r=t.length;++o{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5703:t=>{t.exports=function(t){return function(){return t}}},1966:(t,e,n)=>{var o=n(731),r=n(1078),i=n(5976),a=n(9246),s=i((function(t,e){return a(t)?o(t,r(e,1,a,!0)):[]}));t.exports=s},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var o=n(9454),r=n(7005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return r(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var o=n(3560),r=n(1780);t.exports=function(t){return null!=t&&r(t.length)&&!o(t)}},9246:(t,e,n)=>{var o=n(8612),r=n(7005);t.exports=function(t){return r(t)&&o(t)}},3560:(t,e,n)=>{var o=n(4239),r=n(3218);t.exports=function(t){if(!r(t))return!1;var e=o(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2388:t=>{"use strict";var e=["hook","on","style","class","props","attrs","dataset"],n=Array.prototype.slice;function o(t,e,n,o){for(var r={ns:e},i=0,a=o.length;i0?d(c.slice(0,u),c.slice(u+1),t[c]):r[c]||d(n,c,t[c])}return r;function d(t,e,n){(r[t]||(r[t]={}))[e]=n}}function r(t,e,n){for(var o=e,i=t.length;o3||!Array.isArray(c))&&(c=n.call(arguments,2)),i(t,o||"props",r||e,a,s,c)}}t.exports={html:a(void 0),svg:a("http://www.w3.org/2000/svg","attrs"),JSX:a}},1977:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6700),a=n(1826),s=n(3136),c=n(1194),u=n(1198),d=n(2125),l=n(6404),p=n(152),f=function(){function t(){this.postponedActions=[],this.requests=new Map}return t.prototype.initialize=function(){var t=this;return this.initialized||(this.initialized=this.actionHandlerRegistryProvider().then((function(e){t.actionHandlerRegistry=e,t.handleAction(new d.SetModelAction(c.EMPTY_ROOT))}))),this.initialized},t.prototype.dispatch=function(t){var e=this;return this.initialize().then((function(){return void 0!==e.blockUntil?e.handleBlocked(t,e.blockUntil):e.diagramLocker.isAllowed(t)?e.handleAction(t):void 0}))},t.prototype.dispatchAll=function(t){var e=this;return Promise.all(t.map((function(t){return e.dispatch(t)})))},t.prototype.request=function(t){if(!t.requestId)return Promise.reject(new Error("Request without requestId"));var e=new s.Deferred;return this.requests.set(t.requestId,e),this.dispatch(t),e.promise},t.prototype.handleAction=function(t){if(t.kind===l.UndoAction.KIND)return this.commandStack.undo().then((function(){}));if(t.kind===l.RedoAction.KIND)return this.commandStack.redo().then((function(){}));if(p.isResponseAction(t)){if(void 0!==(o=this.requests.get(t.responseId))){if(this.requests.delete(t.responseId),t.kind===p.RejectAction.KIND){var e=t;o.reject(new Error(e.message)),this.logger.warn(this,"Request with id "+t.responseId+" failed.",e.message,e.detail)}else o.resolve(t);return Promise.resolve()}this.logger.log(this,"No matching request for response",t)}var n=this.actionHandlerRegistry.get(t.kind);if(0===n.length){this.logger.warn(this,"Missing handler for action",t);var o,r=new Error("Missing handler for action '"+t.kind+"'");return p.isRequestAction(t)&&void 0!==(o=this.requests.get(t.requestId))&&(this.requests.delete(t.requestId),o.reject(r)),Promise.reject(r)}this.logger.log(this,"Handle",t);for(var i=[],a=0,s=n;a=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1826),d=n(6530),l=n(3392),p=function(t){function e(e,n){var o=t.call(this)||this;return e.forEach((function(t){return o.register(t.actionKind,t.factory())})),n.forEach((function(t){return o.initializeActionHandler(t)})),o}return r(e,t),e.prototype.initializeActionHandler=function(t){t.initialize(this)},i([c.injectable(),s(0,c.multiInject(u.TYPES.ActionHandlerRegistration)),s(0,c.optional()),s(1,c.multiInject(u.TYPES.IActionHandlerInitializer)),s(1,c.optional()),a("design:paramtypes",[Array,Array])],e)}(d.MultiInstanceRegistry);e.ActionHandlerRegistry=p,e.configureActionHandler=function(t,e,n){if("function"==typeof n){if(!l.isInjectable(n))throw new Error("Action handlers should be @injectable: "+n.name);t.isBound(n)||t.bind(n).toSelf()}t.bind(u.TYPES.ActionHandlerRegistration).toDynamicValue((function(t){return{actionKind:e,factory:function(){return t.container.get(n)}}}))}},152:(t,e)=>{"use strict";function n(t){return void 0!==t&&t.hasOwnProperty("kind")&&"string"==typeof t.kind}Object.defineProperty(e,"__esModule",{value:!0}),e.isAction=n,e.isRequestAction=function(t){return n(t)&&t.hasOwnProperty("requestId")&&"string"==typeof t.requestId};var o=1;e.generateRequestId=function(){return(o++).toString()},e.isResponseAction=function(t){return n(t)&&t.hasOwnProperty("responseId")&&"string"==typeof t.responseId&&""!==t.responseId};var r=function(){function t(e,n,o){this.message=e,this.responseId=n,this.detail=o,this.kind=t.KIND}return t.KIND="rejectRequest",t}();e.RejectAction=r;e.LabeledAction=function(t,e,n){this.label=t,this.actions=e,this.icon=n},e.isLabeledAction=function(t){return void 0!==t&&void 0!==t.label&&void 0!==t.actions}},3083:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(6700),i=function(){function t(){}return t.prototype.isAllowed=function(t){return!0},o([r.injectable()],t)}();e.DefaultDiagramLocker=i},1198:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(6700),i=function(){function t(){this.tasks=[],this.endTasks=[],this.triggered=!1}return t.prototype.isAvailable=function(){return"function"==typeof requestAnimationFrame},t.prototype.onNextFrame=function(t){this.tasks.push(t),this.trigger()},t.prototype.onEndOfNextFrame=function(t){this.endTasks.push(t),this.trigger()},t.prototype.trigger=function(){var t=this;this.triggered||(this.triggered=!0,this.isAvailable()?requestAnimationFrame((function(e){return t.run(e)})):setTimeout((function(e){return t.run(e)})))},t.prototype.run=function(t){var e=this.tasks,n=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],e.forEach((function(e){return e.call(void 0,t)})),n.forEach((function(e){return e.call(void 0,t)}))},o([r.injectable()],t)}();e.AnimationFrameSyncer=i},6692:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(4370),a=function(){function t(t,e){void 0===e&&(e=i.easeInOut),this.context=t,this.ease=e}return t.prototype.start=function(){var t=this;return new Promise((function(e,n){var o=void 0,r=0,i=function(n){var a;r++,void 0===o?(o=n,a=0):a=n-o;var s=Math.min(1,a/t.context.duration),c=t.tween(t.ease(s),t.context);t.context.modelChanged.update(c),1===s?(t.context.logger.log(t,1e3*r/t.context.duration+" fps"),e(c)):t.context.syncer.onNextFrame(i)};if(t.context.syncer.isAvailable())t.context.syncer.onNextFrame(i);else{var a=t.tween(1,t.context);e(a)}}))},t}();e.Animation=a;var s=function(t){function e(e,n,o,r){void 0===o&&(o=[]),void 0===r&&(r=i.easeInOut);var a=t.call(this,n,r)||this;return a.model=e,a.context=n,a.components=o,a.ease=r,a}return r(e,t),e.prototype.include=function(t){return this.components.push(t),this},e.prototype.tween=function(t,e){for(var n=0,o=this.components;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.easeInOut=function(t){return t<.5?t*t*2:1-(1-t)*(1-t)*2}},2857:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(3392),c=n(1826),u=function(){function t(t){this.commandRegistration=t}return t.prototype.handle=function(t){return this.commandRegistration.factory(t)},t}();e.CommandActionHandler=u;var d=function(){function t(t){this.registrations=t}return t.prototype.initialize=function(t){this.registrations.forEach((function(e){return t.register(e.kind,new u(e))}))},o([a.injectable(),i(0,a.multiInject(c.TYPES.CommandRegistration)),i(0,a.optional()),r("design:paramtypes",[Array])],t)}();e.CommandActionHandlerInitializer=d,e.configureCommand=function(t,e){if(!s.isInjectable(e))throw new Error("Commands should be @injectable: "+e.name);t.isBound(e)||t.bind(e).toSelf(),t.bind(c.TYPES.CommandRegistration).toDynamicValue((function(t){return{kind:e.KIND,factory:function(n){var o=new a.Container;return o.parent=t.container,o.bind(c.TYPES.Action).toConstantValue(n),o.get(e)}}}))}},6990:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1826);e.overrideCommandStackOptions=function(t,e){var n=t.get(o.TYPES.CommandStackOptions);for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}},7901:function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(1826),c=n(1194),u=n(6771),d=n(1198),l=n(1864),p=function(){function t(){this.undoStack=[],this.redoStack=[],this.offStack=[]}return t.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(t.prototype,"currentModel",{get:function(){return this.currentPromise.then((function(t){return t.main.model}))},enumerable:!0,configurable:!0}),t.prototype.executeAll=function(t){var e=this;return t.forEach((function(t){e.logger.log(e,"Executing",t),e.handleCommand(t,t.execute,e.mergeOrPush)})),this.thenUpdate()},t.prototype.execute=function(t){return this.logger.log(this,"Executing",t),this.handleCommand(t,t.execute,this.mergeOrPush),this.thenUpdate()},t.prototype.undo=function(){var t=this;this.undoOffStackSystemCommands(),this.undoPreceedingSystemCommands();var e=this.undoStack[this.undoStack.length-1];return void 0===e||this.isBlockUndo(e)||(this.undoStack.pop(),this.logger.log(this,"Undoing",e),this.handleCommand(e,e.undo,(function(e,n){t.redoStack.push(e)}))),this.thenUpdate()},t.prototype.redo=function(){var t=this;this.undoOffStackSystemCommands();var e=this.redoStack.pop();return void 0!==e&&(this.logger.log(this,"Redoing",e),this.handleCommand(e,e.redo,(function(e,n){t.pushToUndoStack(e)}))),this.redoFollowingSystemCommands(),this.thenUpdate()},t.prototype.handleCommand=function(t,e,n){var o=this;this.currentPromise=this.currentPromise.then((function(r){return new Promise((function(i){var a;a=t instanceof l.HiddenCommand?"hidden":t instanceof l.PopupCommand?"popup":"main";var s,c=o.createContext(r.main.model);try{s=e.call(t,c)}catch(t){o.logger.error(o,"Failed to execute command:",t),s=r[a].model}var d=f(r);s instanceof Promise?s.then((function(e){"main"===a&&n.call(o,t,c),d[a]={model:e,modelChanged:!0},i(d)})):s instanceof u.SModelRoot?("main"===a&&n.call(o,t,c),d[a]={model:s,modelChanged:!0},i(d)):("main"===a&&n.call(o,t,c),d[a]={model:s.model,modelChanged:r[a].modelChanged||s.modelChanged,cause:s.cause},i(d))}))}))},t.prototype.pushToUndoStack=function(t){this.undoStack.push(t),this.options.undoHistoryLimit>=0&&this.undoStack.length>this.options.undoHistoryLimit&&this.undoStack.splice(0,this.undoStack.length-this.options.undoHistoryLimit)},t.prototype.thenUpdate=function(){var t=this;return this.currentPromise=this.currentPromise.then((function(e){var n=f(e);return e.hidden.modelChanged&&(t.updateHidden(e.hidden.model,e.hidden.cause),n.hidden.modelChanged=!1,n.hidden.cause=void 0),e.main.modelChanged&&(t.update(e.main.model,e.main.cause),n.main.modelChanged=!1,n.main.cause=void 0),e.popup.modelChanged&&(t.updatePopup(e.popup.model,e.popup.cause),n.popup.modelChanged=!1,n.popup.cause=void 0),n})),this.currentModel},t.prototype.update=function(t,e){void 0===this.modelViewer&&(this.modelViewer=this.viewerProvider.modelViewer),this.modelViewer.update(t,e)},t.prototype.updateHidden=function(t,e){void 0===this.hiddenModelViewer&&(this.hiddenModelViewer=this.viewerProvider.hiddenModelViewer),this.hiddenModelViewer.update(t,e)},t.prototype.updatePopup=function(t,e){void 0===this.popupModelViewer&&(this.popupModelViewer=this.viewerProvider.popupModelViewer),this.popupModelViewer.update(t,e)},t.prototype.mergeOrPush=function(t,e){var n=this;if(this.isBlockUndo(t))return this.undoStack=[],this.redoStack=[],this.offStack=[],void this.pushToUndoStack(t);if(this.isPushToOffStack(t)&&this.redoStack.length>0){if(this.offStack.length>0&&(o=this.offStack[this.offStack.length-1])instanceof l.MergeableCommand&&o.merge(t,e))return;this.offStack.push(t)}else if(this.isPushToUndoStack(t)){var o;if(this.offStack.forEach((function(t){return n.undoStack.push(t)})),this.offStack=[],this.redoStack=[],this.undoStack.length>0&&(o=this.undoStack[this.undoStack.length-1])instanceof l.MergeableCommand&&o.merge(t,e))return;this.pushToUndoStack(t)}},t.prototype.undoOffStackSystemCommands=function(){for(var t=this.offStack.pop();void 0!==t;)this.logger.log(this,"Undoing off-stack",t),this.handleCommand(t,t.undo,(function(){})),t=this.offStack.pop()},t.prototype.undoPreceedingSystemCommands=function(){for(var t=this,e=this.undoStack[this.undoStack.length-1];void 0!==e&&this.isPushToOffStack(e);)this.undoStack.pop(),this.logger.log(this,"Undoing",e),this.handleCommand(e,e.undo,(function(e,n){t.redoStack.push(e)})),e=this.undoStack[this.undoStack.length-1]},t.prototype.redoFollowingSystemCommands=function(){for(var t=this,e=this.redoStack[this.redoStack.length-1];void 0!==e&&this.isPushToOffStack(e);)this.redoStack.pop(),this.logger.log(this,"Redoing ",e),this.handleCommand(e,e.redo,(function(e,n){t.pushToUndoStack(e)})),e=this.redoStack[this.redoStack.length-1]},t.prototype.createContext=function(t){return{root:t,modelChanged:this,modelFactory:this.modelFactory,duration:this.options.defaultDuration,logger:this.logger,syncer:this.syncer}},t.prototype.isPushToOffStack=function(t){return t instanceof l.SystemCommand},t.prototype.isPushToUndoStack=function(t){return!(t instanceof l.HiddenCommand)},t.prototype.isBlockUndo=function(t){return t instanceof l.ResetCommand},r([a.inject(s.TYPES.IModelFactory),i("design:type",Object)],t.prototype,"modelFactory",void 0),r([a.inject(s.TYPES.IViewerProvider),i("design:type",Object)],t.prototype,"viewerProvider",void 0),r([a.inject(s.TYPES.ILogger),i("design:type",Object)],t.prototype,"logger",void 0),r([a.inject(s.TYPES.AnimationFrameSyncer),i("design:type",d.AnimationFrameSyncer)],t.prototype,"syncer",void 0),r([a.inject(s.TYPES.CommandStackOptions),i("design:type",Object)],t.prototype,"options",void 0),r([a.postConstruct(),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],t.prototype,"initialize",null),r([a.injectable()],t)}();function f(t){return{main:o({},t.main),hidden:o({},t.hidden),popup:o({},t.popup)}}e.CommandStack=p},1864:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=function(){function t(){}return i([a.injectable()],t)}();e.Command=s;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.merge=function(t,e){return!1},i([a.injectable()],e)}(s);e.MergeableCommand=c;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.undo=function(t){return t.logger.error(this,"Cannot undo a hidden command"),t.root},e.prototype.redo=function(t){return t.logger.error(this,"Cannot redo a hidden command"),t.root},i([a.injectable()],e)}(s);e.HiddenCommand=u;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),i([a.injectable()],e)}(s);e.PopupCommand=d;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),i([a.injectable()],e)}(s);e.SystemCommand=l;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),i([a.injectable()],e)}(s);e.ResetCommand=p},9470:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var s=n(6700),c=n(1826),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.execute=function(t){var e=this.retrieveResult(t);return this.actionDispatcher.dispatch(e),{model:t.root,modelChanged:!1}},e.prototype.undo=function(t){return{model:t.root,modelChanged:!1}},e.prototype.redo=function(t){return{model:t.root,modelChanged:!1}},i([s.inject(c.TYPES.IActionDispatcher),a("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([s.injectable()],e)}(n(1864).SystemCommand);e.ModelRequestCommand=u},2635:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(5917),a=n(8049),s=n(1977),c=n(6529),u=n(7901),d=n(1194),l=n(1198),p=n(9600),f=n(2233),h=n(6589),y=n(6004),g=n(5055),v=n(6708),m=n(6265),b=n(5509),_=n(6143),w=n(2857),P=n(6714),S=n(9888),O=n(3075),E=n(2125),x=n(8842),R=n(3083),I=new o.ContainerModule((function(t,e,n){t(r.TYPES.ILogger).to(a.NullLogger).inSingletonScope(),t(r.TYPES.LogLevel).toConstantValue(a.LogLevel.warn),t(r.TYPES.SModelRegistry).to(d.SModelRegistry).inSingletonScope(),t(c.ActionHandlerRegistry).toSelf().inSingletonScope(),t(r.TYPES.ActionHandlerRegistryProvider).toProvider((function(t){return function(){return new Promise((function(e){e(t.container.get(c.ActionHandlerRegistry))}))}})),t(r.TYPES.ViewRegistry).to(v.ViewRegistry).inSingletonScope(),t(r.TYPES.IModelFactory).to(d.SModelFactory).inSingletonScope(),t(r.TYPES.IActionDispatcher).to(s.ActionDispatcher).inSingletonScope(),t(r.TYPES.IActionDispatcherProvider).toProvider((function(t){return function(){return new Promise((function(e){e(t.container.get(r.TYPES.IActionDispatcher))}))}})),t(r.TYPES.IDiagramLocker).to(R.DefaultDiagramLocker).inSingletonScope(),t(r.TYPES.IActionHandlerInitializer).to(w.CommandActionHandlerInitializer),t(r.TYPES.ICommandStack).to(u.CommandStack).inSingletonScope(),t(r.TYPES.ICommandStackProvider).toProvider((function(t){return function(){return new Promise((function(e){e(t.container.get(r.TYPES.ICommandStack))}))}})),t(r.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),t(p.ModelViewer).toSelf().inSingletonScope(),t(p.HiddenModelViewer).toSelf().inSingletonScope(),t(p.PopupModelViewer).toSelf().inSingletonScope(),t(r.TYPES.ModelViewer).toDynamicValue((function(t){var e=t.container.createChild();return e.bind(r.TYPES.IViewer).toService(p.ModelViewer),e.bind(m.ViewerCache).toSelf(),e.get(m.ViewerCache)})).inSingletonScope(),t(r.TYPES.PopupModelViewer).toDynamicValue((function(t){var e=t.container.createChild();return e.bind(r.TYPES.IViewer).toService(p.PopupModelViewer),e.bind(m.ViewerCache).toSelf(),e.get(m.ViewerCache)})).inSingletonScope(),t(r.TYPES.HiddenModelViewer).toService(p.HiddenModelViewer),t(r.TYPES.IViewerProvider).toDynamicValue((function(t){return{get modelViewer(){return t.container.get(r.TYPES.ModelViewer)},get hiddenModelViewer(){return t.container.get(r.TYPES.HiddenModelViewer)},get popupModelViewer(){return t.container.get(r.TYPES.PopupModelViewer)}}})),t(r.TYPES.ViewerOptions).toConstantValue(f.defaultViewerOptions()),t(r.TYPES.PatcherProvider).to(p.PatcherProvider).inSingletonScope(),t(r.TYPES.DOMHelper).to(b.DOMHelper).inSingletonScope(),t(r.TYPES.ModelRendererFactory).toFactory((function(t){return function(e,n){var o=t.container.get(r.TYPES.ViewRegistry);return new p.ModelRenderer(o,e,n)}})),t(_.IdPostprocessor).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(_.IdPostprocessor),t(r.TYPES.HiddenVNodePostprocessor).toService(_.IdPostprocessor),t(P.CssClassPostprocessor).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(P.CssClassPostprocessor),t(r.TYPES.HiddenVNodePostprocessor).toService(P.CssClassPostprocessor),t(h.MouseTool).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(h.MouseTool),t(y.KeyTool).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(y.KeyTool),t(g.FocusFixPostprocessor).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(g.FocusFixPostprocessor),t(r.TYPES.PopupVNodePostprocessor).toService(_.IdPostprocessor),t(h.PopupMouseTool).toSelf().inSingletonScope(),t(r.TYPES.PopupVNodePostprocessor).toService(h.PopupMouseTool),t(r.TYPES.AnimationFrameSyncer).to(l.AnimationFrameSyncer).inSingletonScope();var o={bind:t,isBound:n};w.configureCommand(o,i.InitializeCanvasBoundsCommand),t(i.CanvasBoundsInitializer).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(i.CanvasBoundsInitializer),w.configureCommand(o,E.SetModelCommand),t(r.TYPES.IToolManager).to(S.ToolManager).inSingletonScope(),t(r.TYPES.KeyListener).to(S.DefaultToolsEnablingKeyListener),t(S.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(o,O.EnableDefaultToolsAction.KIND,S.ToolManagerActionHandler),c.configureActionHandler(o,O.EnableToolsAction.KIND,S.ToolManagerActionHandler),t(r.TYPES.UIExtensionRegistry).to(x.UIExtensionRegistry).inSingletonScope(),w.configureCommand(o,x.SetUIExtensionVisibilityCommand),t(h.MousePositionTracker).toSelf().inSingletonScope(),t(r.TYPES.MouseListener).toService(h.MousePositionTracker)}));e.default=I},5917:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1826),d=n(7073),l=n(6771),p=n(1864),f=n(5824),h=function(){function t(){}return t.prototype.decorate=function(t,e){return e instanceof l.SModelRoot&&!d.isValidDimension(e.canvasBounds)&&(this.rootAndVnode=[e,t]),t},t.prototype.postUpdate=function(){if(void 0!==this.rootAndVnode){var t=this.rootAndVnode[1].elm,e=this.rootAndVnode[0].canvasBounds;if(void 0!==t){var n=this.getBoundsInPage(t);d.almostEquals(n.x,e.x)&&d.almostEquals(n.y,e.y)&&d.almostEquals(n.width,e.width)&&d.almostEquals(n.height,e.width)||this.actionDispatcher.dispatch(new y(n))}this.rootAndVnode=void 0}},t.prototype.getBoundsInPage=function(t){var e=t.getBoundingClientRect(),n=f.getWindowScroll();return{x:e.left+n.x,y:e.top+n.y,width:e.width,height:e.height}},i([c.inject(u.TYPES.IActionDispatcher),a("design:type",Object)],t.prototype,"actionDispatcher",void 0),i([c.injectable()],t)}();e.CanvasBoundsInitializer=h;var y=function(){function t(e){this.newCanvasBounds=e,this.kind=t.KIND}return t.KIND="initializeCanvasBounds",t}();e.InitializeCanvasBoundsAction=y;var g=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){return this.newCanvasBounds=this.action.newCanvasBounds,t.root.canvasBounds=this.newCanvasBounds,t.root},e.prototype.undo=function(t){return t.root},e.prototype.redo=function(t){return t.root},e.KIND=y.KIND,i([c.injectable(),s(0,c.inject(u.TYPES.Action)),a("design:paramtypes",[y])],e)}(p.SystemCommand);e.InitializeCanvasBoundsCommand=g},2125:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(152),d=n(1864),l=n(1826),p=n(5917),f=function(){function t(e,n){void 0===n&&(n=""),this.options=e,this.requestId=n,this.kind=t.KIND}return t.create=function(e){return new t(e,u.generateRequestId())},t.KIND="requestModel",t}();e.RequestModelAction=f;var h=function(){function t(e,n){void 0===n&&(n=""),this.newRoot=e,this.responseId=n,this.kind=t.KIND}return t.KIND="setModel",t}();e.SetModelAction=h;var y=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){return this.oldRoot=t.modelFactory.createRoot(t.root),this.newRoot=t.modelFactory.createRoot(this.action.newRoot),this.newRoot},e.prototype.undo=function(t){return this.oldRoot},e.prototype.redo=function(t){return this.newRoot},Object.defineProperty(e.prototype,"blockUntil",{get:function(){return function(t){return t.kind===p.InitializeCanvasBoundsCommand.KIND}},enumerable:!0,configurable:!0}),e.KIND=h.KIND,i([c.injectable(),s(0,c.inject(l.TYPES.Action)),a("design:paramtypes",[h])],e)}(d.ResetCommand);e.SetModelCommand=y},1194:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1826),d=n(6530),l=n(6771),p=function(){function t(){}return t.prototype.createElement=function(t,e){var n;if(this.registry.hasKey(t.type)){var o=this.registry.get(t.type,void 0);if(!(o instanceof l.SChildElement))throw new Error("Element with type "+t.type+" was expected to be an SChildElement.");n=o}else n=new l.SChildElement;return this.initializeChild(n,t,e)},t.prototype.createRoot=function(t){var e;if(this.registry.hasKey(t.type)){var n=this.registry.get(t.type,void 0);if(!(n instanceof l.SModelRoot))throw new Error("Element with type "+t.type+" was expected to be an SModelRoot.");e=n}else e=new l.SModelRoot;return this.initializeRoot(e,t)},t.prototype.createSchema=function(t){var e=this,n={};for(var o in t)if(!this.isReserved(t,o)){var r=t[o];"function"!=typeof r&&(n[o]=r)}return t instanceof l.SParentElement&&(n.children=t.children.map((function(t){return e.createSchema(t)}))),n},t.prototype.initializeElement=function(t,e){for(var n in e)if(!this.isReserved(t,n)){var o=e[n];"function"!=typeof o&&(t[n]=o)}return t},t.prototype.isReserved=function(t,e){if(["children","parent","index"].indexOf(e)>=0)return!0;var n=t;do{var o=Object.getOwnPropertyDescriptor(n,e);if(void 0!==o)return void 0!==o.get;n=Object.getPrototypeOf(n)}while(n);return!1},t.prototype.initializeParent=function(t,e){var n=this;return this.initializeElement(t,e),l.isParent(e)&&(t.children=e.children.map((function(e){return n.createElement(e,t)}))),t},t.prototype.initializeChild=function(t,e,n){return this.initializeParent(t,e),void 0!==n&&(t.parent=n),t},t.prototype.initializeRoot=function(t,e){return this.initializeParent(t,e),t.index.add(t),t},i([c.inject(u.TYPES.SModelRegistry),a("design:type",f)],t.prototype,"registry",void 0),i([c.injectable()],t)}();e.SModelFactory=p,e.EMPTY_ROOT=Object.freeze({type:"NONE",id:"EMPTY"});var f=function(t){function e(e){var n=t.call(this)||this;return e.forEach((function(t){var e=n.getDefaultFeatures(t.constr);if(!e&&t.features&&t.features.enable&&(e=[]),e){var o=h(e,t.features);n.register(t.type,(function(){var e=new t.constr;return e.features=o,e}))}else n.register(t.type,(function(){return new t.constr}))})),n}return r(e,t),e.prototype.getDefaultFeatures=function(t){var e=t;do{var n=e.DEFAULT_FEATURES;if(n)return n;e=Object.getPrototypeOf(e)}while(e)},i([c.injectable(),s(0,c.multiInject(u.TYPES.SModelElementRegistration)),s(0,c.optional()),a("design:paramtypes",[Array])],e)}(d.FactoryRegistry);function h(t,e){var n=new Set(t);if(e&&e.enable)for(var o=0,r=e.enable;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1826),r=n(6771);function i(t,e,n){if(e!==n){for(;e instanceof r.SChildElement;)if(t=e.localToParent(t),(e=e.parent)===n)return t;for(var o=[];n instanceof r.SChildElement;)o.push(n),n=n.parent;if(e!==n)throw new Error("Incompatible source and target: "+e.id+", "+n.id);for(var i=o.length-1;i>=0;i--)t=o[i].parentToLocal(t)}return t}e.registerModelElement=function(t,e,n,r){t.bind(o.TYPES.SModelElementRegistration).toConstantValue({type:e,constr:n,features:r})},e.getBasicType=function(t){if(!t.type)return"";var e=t.type.indexOf(":");return e>=0?t.type.substring(0,e):t.type},e.getSubType=function(t){if(!t.type)return"";var e=t.type.indexOf(":");return e>=0?t.type.substring(e+1):t.type},e.findElement=function t(e,n){if(e.id===n)return e;if(void 0!==e.children)for(var o=0,r=e.children;othis.children.length)throw new Error("Child index "+e+" out of bounds (0.."+n.length+")");n.splice(e,0,t)}t.parent=this,this.index.add(t)},e.prototype.remove=function(t){var e=this.children,n=e.indexOf(t);if(n<0)throw new Error("No such child "+t.id);e.splice(n,1),delete t.parent,this.index.remove(t)},e.prototype.removeAll=function(t){var e=this,n=this.children;if(void 0!==t){for(var o=n.length-1;o>=0;o--)if(t(n[o])){var r=n.splice(o,1)[0];delete r.parent,this.index.remove(r)}}else n.forEach((function(t){delete t.parent,e.index.remove(t)})),n.splice(0,n.length)},e.prototype.move=function(t,e){var n=this.children,o=n.indexOf(t);if(-1===o)throw new Error("No such child "+t.id);if(e<0||e>n.length-1)throw new Error("Child index "+e+" out of bounds (0.."+n.length+")");n.splice(o,1),n.splice(e,0,t)},e.prototype.localToParent=function(t){return i.isBounds(t)?t:{x:t.x,y:t.y,width:-1,height:-1}},e.prototype.parentToLocal=function(t){return i.isBounds(t)?t:{x:t.x,y:t.y,width:-1,height:-1}},e}(s);e.SParentElement=c;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(c);e.SChildElement=u;var d=function(t){function e(e){void 0===e&&(e=new f);var n=t.call(this)||this;return n.canvasBounds=i.EMPTY_BOUNDS,Object.defineProperty(n,"index",{value:e,writable:!1}),n}return r(e,t),e}(c);e.SModelRoot=d;var l="0123456789abcdefghijklmnopqrstuvwxyz";function p(t){void 0===t&&(t=8);for(var e="",n=0;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var s=n(6700),c=n(1826),u=n(3075),d=n(6004),l=n(8611),p=function(){function t(){this.tools=[],this.defaultTools=[],this.actives=[]}return Object.defineProperty(t.prototype,"managedTools",{get:function(){return this.defaultTools.concat(this.tools)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTools",{get:function(){return this.actives},enumerable:!0,configurable:!0}),t.prototype.disableActiveTools=function(){this.actives.forEach((function(t){return t.disable()})),this.actives.splice(0,this.actives.length)},t.prototype.enableDefaultTools=function(){this.enable(this.defaultTools.map((function(t){return t.id})))},t.prototype.enable=function(t){var e=this;this.disableActiveTools(),t.map((function(t){return e.tool(t)})).forEach((function(t){void 0!==t&&(t.enable(),e.actives.push(t))}))},t.prototype.tool=function(t){return this.managedTools.find((function(e){return e.id===t}))},t.prototype.registerDefaultTools=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(e){this.toolIds=e,this.kind=t.KIND}return t.KIND="enable-tools",t}();e.EnableToolsAction=n;var o=function(){function t(){this.kind=t.KIND}return t.KIND="enable-default-tools",t}();e.EnableDefaultToolsAction=o},1826:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TYPES={Action:Symbol("Action"),IActionDispatcher:Symbol("IActionDispatcher"),IActionDispatcherProvider:Symbol("IActionDispatcherProvider"),IActionHandlerInitializer:Symbol("IActionHandlerInitializer"),ActionHandlerRegistration:Symbol("ActionHandlerRegistration"),ActionHandlerRegistryProvider:Symbol("ActionHandlerRegistryProvider"),IAnchorComputer:Symbol("IAnchor"),AnimationFrameSyncer:Symbol("AnimationFrameSyncer"),IButtonHandler:Symbol("IButtonHandler"),ICommandPaletteActionProvider:Symbol("ICommandPaletteActionProvider"),ICommandPaletteActionProviderRegistry:Symbol("ICommandPaletteActionProviderRegistry"),CommandRegistration:Symbol("CommandRegistration"),ICommandStack:Symbol("ICommandStack"),CommandStackOptions:Symbol("CommandStackOptions"),ICommandStackProvider:Symbol("ICommandStackProvider"),IContextMenuItemProvider:Symbol.for("IContextMenuProvider"),IContextMenuProviderRegistry:Symbol.for("IContextMenuProviderRegistry"),IContextMenuService:Symbol.for("IContextMenuService"),IContextMenuServiceProvider:Symbol.for("IContextMenuServiceProvider"),DOMHelper:Symbol("DOMHelper"),IDiagramLocker:Symbol("IDiagramLocker"),IEdgeRouter:Symbol("IEdgeRouter"),IEditLabelValidationDecorator:Symbol("IEditLabelValidationDecorator"),IEditLabelValidator:Symbol("IEditLabelValidator"),HiddenModelViewer:Symbol("HiddenModelViewer"),HiddenVNodePostprocessor:Symbol("HiddenVNodeDecorator"),HoverState:Symbol("HoverState"),KeyListener:Symbol("KeyListener"),LayoutRegistry:Symbol("LayoutRegistry"),Layouter:Symbol("Layouter"),LogLevel:Symbol("LogLevel"),ILogger:Symbol("ILogger"),IModelFactory:Symbol("IModelFactory"),IModelLayoutEngine:Symbol("IModelLayoutEngine"),ModelRendererFactory:Symbol("ModelRendererFactory"),ModelSource:Symbol("ModelSource"),ModelSourceProvider:Symbol("ModelSourceProvider"),ModelViewer:Symbol("ModelViewer"),MouseListener:Symbol("MouseListener"),PatcherProvider:Symbol("PatcherProvider"),IPopupModelProvider:Symbol("IPopupModelProvider"),PopupModelViewer:Symbol("PopupModelViewer"),PopupMouseListener:Symbol("PopupMouseListener"),PopupVNodePostprocessor:Symbol("PopupVNodeDecorator"),SModelElementRegistration:Symbol("SModelElementRegistration"),SModelRegistry:Symbol("SModelRegistry"),ISnapper:Symbol("ISnapper"),SvgExporter:Symbol("SvgExporter"),IToolManager:Symbol("IToolManager"),IUIExtension:Symbol("IUIExtension"),UIExtensionRegistry:Symbol("UIExtensionRegistry"),IVNodePostprocessor:Symbol("IVNodePostprocessor"),ViewRegistration:Symbol("ViewRegistration"),ViewRegistry:Symbol("ViewRegistry"),IViewer:Symbol("IViewer"),ViewerOptions:Symbol("ViewerOptions"),IViewerProvider:Symbol("IViewerProvider")}},8842:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}},c=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(4626),i=n(6700),a=n(8558),s=function(){function t(){}return t.prototype.decorate=function(t,e){if(e.cssClasses)for(var n=0,o=e.cssClasses;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6700),a=n(1826),s=function(){function t(){}return t.prototype.getPrefix=function(){return void 0!==this.viewerOptions&&void 0!==this.viewerOptions.baseDiv?this.viewerOptions.baseDiv+"_":""},t.prototype.createUniqueDOMElementId=function(t){return this.getPrefix()+t.id},t.prototype.findSModelIdByDOMElement=function(t){return t.id.replace(this.getPrefix(),"")},o([i.inject(a.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"viewerOptions",void 0),o([i.injectable()],t)}();e.DOMHelper=s},6143:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6700),a=n(1826),s=n(5509),c=n(4626),u=function(){function t(){}return t.prototype.decorate=function(t,e){var n=c.getAttrs(t);return void 0!==n.id&&this.logger.warn(t,"Overriding id of vnode ("+n.id+"). Make sure not to set it manually in view."),n.id=this.domHelper.createUniqueDOMElementId(e),t.key||(t.key=e.id),t},t.prototype.postUpdate=function(){},o([i.inject(a.TYPES.ILogger),r("design:type",Object)],t.prototype,"logger",void 0),o([i.inject(a.TYPES.DOMHelper),r("design:type",s.DOMHelper)],t.prototype,"domHelper",void 0),o([i.injectable()],t)}();e.IdPostprocessor=u},6004:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(1826),c=n(6771),u=n(4626),d=function(){function t(t){void 0===t&&(t=[]),this.keyListeners=t}return t.prototype.register=function(t){this.keyListeners.push(t)},t.prototype.deregister=function(t){var e=this.keyListeners.indexOf(t);e>=0&&this.keyListeners.splice(e,1)},t.prototype.handleEvent=function(t,e,n){var o=this.keyListeners.map((function(o){return o[t].apply(o,[e,n])})).reduce((function(t,e){return t.concat(e)}));o.length>0&&(n.preventDefault(),this.actionDispatcher.dispatchAll(o))},t.prototype.keyDown=function(t,e){this.handleEvent("keyDown",t,e)},t.prototype.keyUp=function(t,e){this.handleEvent("keyUp",t,e)},t.prototype.focus=function(){},t.prototype.decorate=function(t,e){return e instanceof c.SModelRoot&&(u.on(t,"focus",this.focus.bind(this),e),u.on(t,"keydown",this.keyDown.bind(this),e),u.on(t,"keyup",this.keyUp.bind(this),e)),t},t.prototype.postUpdate=function(){},o([a.inject(s.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),o([a.injectable(),i(0,a.multiInject(s.TYPES.KeyListener)),i(0,a.optional()),r("design:paramtypes",[Array])],t)}();e.KeyTool=d;var l=function(){function t(){}return t.prototype.keyDown=function(t,e){return[]},t.prototype.keyUp=function(t,e){return[]},o([a.injectable()],t)}();e.KeyListener=l},6589:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(152),d=n(6771),l=n(1826),p=n(5509),f=n(4626),h=function(){function t(t){void 0===t&&(t=[]),this.mouseListeners=t}return t.prototype.register=function(t){this.mouseListeners.push(t)},t.prototype.deregister=function(t){var e=this.mouseListeners.indexOf(t);e>=0&&this.mouseListeners.splice(e,1)},t.prototype.getTargetElement=function(t,e){for(var n=e.target,o=t.index;n;){if(n.id){var r=o.getById(this.domHelper.findSModelIdByDOMElement(n));if(void 0!==r)return r}n=n.parentNode}},t.prototype.handleEvent=function(t,e,n){var o=this;this.focusOnMouseEvent(t,e);var r=this.getTargetElement(e,n);if(r){var i=this.mouseListeners.map((function(e){return e[t].apply(e,[r,n])})).reduce((function(t,e){return t.concat(e)}));if(i.length>0){n.preventDefault();for(var a=0,s=i;a=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(1008),i=n(6700),a=function(){function t(){}return t.prototype.render=function(t,e){var n=this;return r.h(this.selector(t),{key:t.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return n.renderAndDecorate(t,e)},args:this.watchedArgs(t),thunk:!0})},t.prototype.renderAndDecorate=function(t,e){var n=this.doRender(t,e);return e.decorate(n,t),n},t.prototype.copyToThunk=function(t,e){e.elm=t.elm,t.data.fn=e.data.fn,t.data.args=e.data.args,e.data=t.data,e.children=t.children,e.text=t.text,e.elm=t.elm},t.prototype.init=function(t){var e=t.data,n=e.fn.apply(void 0,e.args);this.copyToThunk(n,t)},t.prototype.prepatch=function(t,e){var n=t.data,o=e.data;this.equals(n.args,o.args)?this.copyToThunk(t,e):this.copyToThunk(o.fn.apply(void 0,o.args),e)},t.prototype.equals=function(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(var n=0;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(2388),u=n(6700),d=n(1826),l=n(6530),p=n(7073),f=n(3392),h=n(1194),y=n(8558),g=function(t){function e(e){var n=t.call(this)||this;return n.registerDefaults(),e.forEach((function(t){return n.register(t.type,t.factory())})),n}return r(e,t),e.prototype.registerDefaults=function(){this.register(h.EMPTY_ROOT.type,new m)},e.prototype.missing=function(t){return new b},i([u.injectable(),s(0,u.multiInject(d.TYPES.ViewRegistration)),s(0,u.optional()),a("design:paramtypes",[Array])],e)}(l.InstanceRegistry);function v(t,e,n){if("function"==typeof n){if(!f.isInjectable(n))throw new Error("Views should be @injectable: "+n.name);t.isBound(n)||t.bind(n).toSelf()}t.bind(d.TYPES.ViewRegistration).toDynamicValue((function(t){return{type:e,factory:function(){return t.container.get(n)}}}))}e.ViewRegistry=g,e.configureModelElement=function(t,e,n,o,r){y.registerModelElement(t,e,n,r),v(t,e,o)},e.configureView=v;var m=function(){function t(){}return t.prototype.render=function(t,e){return c.svg("svg",{"class-sprotty-empty":!0})},i([u.injectable()],t)}();e.EmptyView=m;var b=function(){function t(){}return t.prototype.render=function(t,e){var n=t.position||p.ORIGIN_POINT;return c.svg("text",{"class-sprotty-missing":!0,x:n.x,y:n.y},"?",t.id,"?")},i([u.injectable()],t)}();e.MissingView=b},6265:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6700),a=n(1826),s=n(1198),c=function(){function t(){}return t.prototype.update=function(t,e){if(void 0!==e)this.delegate.update(t,e),this.cachedModel=void 0;else{var n=void 0===this.cachedModel;this.cachedModel=t,n&&this.scheduleUpdate()}},t.prototype.scheduleUpdate=function(){var t=this;this.syncer.onEndOfNextFrame((function(){t.cachedModel&&(t.delegate.update(t.cachedModel),t.cachedModel=void 0)}))},o([i.inject(a.TYPES.IViewer),r("design:type",Object)],t.prototype,"delegate",void 0),o([i.inject(a.TYPES.AnimationFrameSyncer),r("design:type",s.AnimationFrameSyncer)],t.prototype,"syncer",void 0),o([i.injectable()],t)}();e.ViewerCache=c},2233:function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(2388),s=n(1008),c=n(4958),u=n(6436),d=n(4548),l=n(4767),p=n(5542),f=n(6700),h=n(1826),y=n(5824),g=n(5917),v=n(4626),m=n(1677),b=n(1194),_=function(){function t(t,e,n){this.viewRegistry=t,this.targetKind=e,this.postprocessors=n}return t.prototype.decorate=function(t,e){return m.isThunk(t)?t:this.postprocessors.reduce((function(t,n){return n.decorate(t,e)}),t)},t.prototype.renderElement=function(t,e){var n=this.viewRegistry.get(t.type).render(t,this,e);return n?this.decorate(n,t):void 0},t.prototype.renderChildren=function(t,e){var n=this;return t.children.map((function(t){return n.renderElement(t,e)})).filter((function(t){return void 0!==t}))},t.prototype.postUpdate=function(t){this.postprocessors.forEach((function(e){return e.postUpdate(t)}))},t}();e.ModelRenderer=_;var w=function(){function t(){this.patcher=s.init(this.createModules())}return t.prototype.createModules=function(){return[c.propsModule,u.attributesModule,p.classModule,d.styleModule,l.eventListenersModule]},o([f.injectable(),r("design:paramtypes",[])],t)}();e.PatcherProvider=w;var P=function(){function t(t,e,n){var o=this;this.onWindowResize=function(t){var e=document.getElementById(o.options.baseDiv);if(null!==e){var n=o.getBoundsInPage(e);o.actiondispatcher.dispatch(new g.InitializeCanvasBoundsAction(n))}},this.renderer=t("main",n),this.patcher=e.patcher}return t.prototype.update=function(t,e){var n=this;this.logger.log(this,"rendering",t);var o=a.html("div",{id:this.options.baseDiv},this.renderer.renderElement(t));if(void 0!==this.lastVDOM){var r=this.hasFocus();v.copyClassesFromVNode(this.lastVDOM,o),this.lastVDOM=this.patcher.call(this,this.lastVDOM,o),this.restoreFocus(r)}else if("undefined"!=typeof document){var i=document.getElementById(this.options.baseDiv);null!==i?("undefined"!=typeof window&&window.addEventListener("resize",(function(){n.onWindowResize(o)})),v.copyClassesFromElement(i,o),v.setClass(o,this.options.baseClass,!0),this.lastVDOM=this.patcher.call(this,i,o)):this.logger.error(this,"element not in DOM:",this.options.baseDiv)}this.renderer.postUpdate(e)},t.prototype.hasFocus=function(){if("undefined"!=typeof document&&document.activeElement&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var t=this.lastVDOM.children[0];if("object"==typeof t){var e=t.elm;return document.activeElement===e}}return!1},t.prototype.restoreFocus=function(t){if(t&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var e=this.lastVDOM.children[0];if("object"==typeof e){var n=e.elm;n&&"function"==typeof n.focus&&n.focus()}}},t.prototype.getBoundsInPage=function(t){var e=t.getBoundingClientRect(),n=y.getWindowScroll();return{x:e.left+n.x,y:e.top+n.y,width:e.width,height:e.height}},o([f.inject(h.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),o([f.inject(h.TYPES.ILogger),r("design:type",Object)],t.prototype,"logger",void 0),o([f.inject(h.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actiondispatcher",void 0),o([f.injectable(),i(0,f.inject(h.TYPES.ModelRendererFactory)),i(1,f.inject(h.TYPES.PatcherProvider)),i(2,f.multiInject(h.TYPES.IVNodePostprocessor)),i(2,f.optional()),r("design:paramtypes",[Function,w,Array])],t)}();e.ModelViewer=P;var S=function(){function t(t,e,n){this.hiddenRenderer=t("hidden",n),this.patcher=e.patcher}return t.prototype.update=function(t,e){var n;if(this.logger.log(this,"rendering hidden"),t.type===b.EMPTY_ROOT.type)n=a.html("div",{id:this.options.hiddenDiv});else{var o=this.hiddenRenderer.renderElement(t);o&&v.setAttr(o,"opacity",0),n=a.html("div",{id:this.options.hiddenDiv},o)}if(void 0!==this.lastHiddenVDOM)v.copyClassesFromVNode(this.lastHiddenVDOM,n),this.lastHiddenVDOM=this.patcher.call(this,this.lastHiddenVDOM,n);else{var r=document.getElementById(this.options.hiddenDiv);null===r?(r=document.createElement("div"),document.body.appendChild(r)):v.copyClassesFromElement(r,n),v.setClass(n,this.options.baseClass,!0),v.setClass(n,this.options.hiddenClass,!0),this.lastHiddenVDOM=this.patcher.call(this,r,n)}this.hiddenRenderer.postUpdate(e)},o([f.inject(h.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),o([f.inject(h.TYPES.ILogger),r("design:type",Object)],t.prototype,"logger",void 0),o([f.injectable(),i(0,f.inject(h.TYPES.ModelRendererFactory)),i(1,f.inject(h.TYPES.PatcherProvider)),i(2,f.multiInject(h.TYPES.HiddenVNodePostprocessor)),i(2,f.optional()),r("design:paramtypes",[Function,w,Array])],t)}();e.HiddenModelViewer=S;var O=function(){function t(t,e,n){this.modelRendererFactory=t,this.popupRenderer=this.modelRendererFactory("popup",n),this.patcher=e.patcher}return t.prototype.update=function(t,e){this.logger.log(this,"rendering popup",t);var n,o=t.type===b.EMPTY_ROOT.type;if(o)n=a.html("div",{id:this.options.popupDiv});else{var r=t.canvasBounds,i={top:r.y+"px",left:r.x+"px"};n=a.html("div",{id:this.options.popupDiv,style:i},this.popupRenderer.renderElement(t))}if(void 0!==this.lastPopupVDOM)v.copyClassesFromVNode(this.lastPopupVDOM,n),v.setClass(n,this.options.popupClosedClass,o),this.lastPopupVDOM=this.patcher.call(this,this.lastPopupVDOM,n);else if("undefined"!=typeof document){var s=document.getElementById(this.options.popupDiv);null===s?(s=document.createElement("div"),document.body.appendChild(s)):v.copyClassesFromElement(s,n),v.setClass(n,this.options.popupClass,!0),v.setClass(n,this.options.popupClosedClass,o),this.lastPopupVDOM=this.patcher.call(this,s,n)}this.popupRenderer.postUpdate(e)},o([f.inject(h.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),o([f.inject(h.TYPES.ILogger),r("design:type",Object)],t.prototype,"logger",void 0),o([f.injectable(),i(0,f.inject(h.TYPES.ModelRendererFactory)),i(1,f.inject(h.TYPES.PatcherProvider)),i(2,f.multiInject(h.TYPES.PopupVNodePostprocessor)),i(2,f.optional()),r("design:paramtypes",[Function,w,Array])],t)}();e.PopupModelViewer=O},5055:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(6700),i=n(4626),a=function(){function t(){}return t.prototype.decorate=function(t,e){return t.sel&&t.sel.startsWith("svg")&&i.setAttr(t,"tabindex",0),t},t.prototype.postUpdate=function(){},o([r.injectable()],t)}();e.FocusFixPostprocessor=a},4626:function(t,e){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,o=arguments.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(7073),r=n(6771),i=n(9046),a=function(){function t(){}return t.prototype.layout=function(t,e){var n=e.getBoundsData(t),o=this.getLayoutOptions(t),r=this.getChildrenSize(t,o,e),i=o.paddingFactor*(o.resizeContainer?r.width:Math.max(0,this.getFixedContainerBounds(t,o,e).width)-o.paddingLeft-o.paddingRight),a=o.paddingFactor*(o.resizeContainer?r.height:Math.max(0,this.getFixedContainerBounds(t,o,e).height)-o.paddingTop-o.paddingBottom);if(i>0&&a>0){var s=this.layoutChildren(t,e,o,i,a);n.bounds=this.getFinalContainerBounds(t,s,o,i,a),n.boundsChanged=!0}},t.prototype.getFinalContainerBounds=function(t,e,n,o,r){return{x:t.bounds.x,y:t.bounds.y,width:Math.max(n.minWidth,o+n.paddingLeft+n.paddingRight),height:Math.max(n.minHeight,r+n.paddingTop+n.paddingBottom)}},t.prototype.getFixedContainerBounds=function(t,e,n){for(var a=t;;){if(i.isBoundsAware(a)){var s=a.bounds;if(i.isLayoutContainer(a)&&e.resizeContainer&&n.log.error(a,"Resizable container found while detecting fixed bounds"),o.isValidDimension(s))return s}if(!(a instanceof r.SChildElement))return n.log.error(a,"Cannot detect fixed bounds"),o.EMPTY_BOUNDS;a=a.parent}},t.prototype.layoutChildren=function(t,e,n,r,a){var s=this,c={x:n.paddingLeft+.5*(r-r/n.paddingFactor),y:n.paddingTop+.5*(a-a/n.paddingFactor)};return t.children.forEach((function(t){if(i.isLayoutableChild(t)){var u=e.getBoundsData(t),d=u.bounds,l=s.getChildLayoutOptions(t,n);void 0!==d&&o.isValidDimension(d)&&(c=s.layoutChild(t,u,d,l,n,c,r,a))}})),c},t.prototype.getDx=function(t,e,n){switch(t){case"left":return 0;case"center":return.5*(n-e.width);case"right":return n-e.width}},t.prototype.getDy=function(t,e,n){switch(t){case"top":return 0;case"center":return.5*(n-e.height);case"bottom":return n-e.height}},t.prototype.getChildLayoutOptions=function(t,e){var n=t.layoutOptions;return void 0===n?e:this.spread(e,n)},t.prototype.getLayoutOptions=function(t){for(var e=this,n=t,o=[];void 0!==n;){var i=n.layoutOptions;if(void 0!==i&&o.push(i),!(n instanceof r.SChildElement))break;n=n.parent}return o.reverse().reduce((function(t,n){return e.spread(t,n)}),this.getDefaultLayoutOptions())},t}();e.AbstractLayout=a},1403:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var u=n(6700),d=n(152),l=n(1864),p=n(1826),f=n(9046),h=function(){function t(e){this.bounds=e,this.kind=t.KIND}return t.KIND="setBounds",t}();e.SetBoundsAction=h;var y=function(){function t(e,n){void 0===n&&(n=""),this.newRoot=e,this.requestId=n,this.kind=t.KIND}return t.create=function(e){return new t(e,d.generateRequestId())},t.KIND="requestBounds",t}();e.RequestBoundsAction=y;var g=function(){function t(e,n,o,r){void 0===r&&(r=""),this.bounds=e,this.revision=n,this.alignments=o,this.responseId=r,this.kind=t.KIND}return t.KIND="computedBounds",t}();e.ComputedBoundsAction=g;var v=function(){function t(){this.kind=t.KIND}return t.KIND="layout",t}();e.LayoutAction=v;var m=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.bounds=[],n}return r(e,t),e.prototype.execute=function(t){var e=this;return this.action.bounds.forEach((function(n){var o=t.root.index.getById(n.elementId);o&&f.isBoundsAware(o)&&e.bounds.push({element:o,oldBounds:o.bounds,newPosition:n.newPosition,newSize:n.newSize})})),this.redo(t)},e.prototype.undo=function(t){return this.bounds.forEach((function(t){return t.element.bounds=t.oldBounds})),t.root},e.prototype.redo=function(t){return this.bounds.forEach((function(t){t.newPosition?t.element.bounds=i(i({},t.newPosition),t.newSize):t.element.bounds=i({x:t.element.bounds.x,y:t.element.bounds.y},t.newSize)})),t.root},e.KIND=h.KIND,a([u.injectable(),c(0,u.inject(p.TYPES.Action)),s("design:paramtypes",[h])],e)}(l.SystemCommand);e.SetBoundsCommand=m;var b=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){return{model:t.modelFactory.createRoot(this.action.newRoot),modelChanged:!0,cause:this.action}},Object.defineProperty(e.prototype,"blockUntil",{get:function(){return function(t){return t.kind===g.KIND}},enumerable:!0,configurable:!0}),e.KIND=y.KIND,a([u.injectable(),c(0,u.inject(p.TYPES.Action)),s("design:paramtypes",[y])],e)}(l.HiddenCommand);e.RequestBoundsCommand=b},4760:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(1403),a=n(2463),s=n(1771),c=n(2857),u=new o.ContainerModule((function(t,e,n){c.configureCommand({bind:t,isBound:n},i.SetBoundsCommand),c.configureCommand({bind:t,isBound:n},i.RequestBoundsCommand),t(a.HiddenBoundsUpdater).toSelf().inSingletonScope(),t(r.TYPES.HiddenVNodePostprocessor).toService(a.HiddenBoundsUpdater),t(r.TYPES.Layouter).to(s.Layouter).inSingletonScope(),t(r.TYPES.LayoutRegistry).to(s.LayoutRegistry).inSingletonScope()}));e.default=u},7015:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6700),a=n(7073),s=n(6771),c=n(1826),u=n(1403),d=n(1771),l=n(9046);e.BoundsData=function(){};var p=function(){function t(){this.element2boundsData=new Map}return t.prototype.decorate=function(t,e){return(l.isSizeable(e)||l.isLayoutContainer(e))&&this.element2boundsData.set(e,{vnode:t,bounds:e.bounds,boundsChanged:!1,alignmentChanged:!1}),e instanceof s.SModelRoot&&(this.root=e),t},t.prototype.postUpdate=function(t){if(void 0!==t&&t.kind===u.RequestBoundsAction.KIND){var e=t;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var n=[],o=[];this.element2boundsData.forEach((function(t,e){if(t.boundsChanged&&void 0!==t.bounds){var r={elementId:e.id,newSize:{width:t.bounds.width,height:t.bounds.height}};e instanceof s.SChildElement&&l.isLayoutContainer(e.parent)&&(r.newPosition={x:t.bounds.x,y:t.bounds.y}),n.push(r)}t.alignmentChanged&&void 0!==t.alignment&&o.push({elementId:e.id,newAlignment:t.alignment})}));var r=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new u.ComputedBoundsAction(n,r,o,e.requestId)),this.element2boundsData.clear()}},t.prototype.getBoundsFromDOM=function(){var t=this;this.element2boundsData.forEach((function(e,n){if(e.bounds&&l.isSizeable(n)){var o=e.vnode;if(o&&o.elm){var r=t.getBounds(o.elm,n);!l.isAlignable(n)||a.almostEquals(r.x,0)&&a.almostEquals(r.y,0)||(e.alignment={x:-r.x,y:-r.y},e.alignmentChanged=!0);var i={x:n.bounds.x,y:n.bounds.y,width:r.width,height:r.height};a.almostEquals(i.x,n.bounds.x)&&a.almostEquals(i.y,n.bounds.y)&&a.almostEquals(i.width,n.bounds.width)&&a.almostEquals(i.height,n.bounds.height)||(e.bounds=i,e.boundsChanged=!0)}}}))},t.prototype.getBounds=function(t,e){if("function"!=typeof t.getBBox)return this.logger.error(this,"Not an SVG element:",t),a.EMPTY_BOUNDS;var n=t.getBBox();return{x:n.x,y:n.y,width:n.width,height:n.height}},o([i.inject(c.TYPES.ILogger),r("design:type",Object)],t.prototype,"logger",void 0),o([i.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),o([i.inject(c.TYPES.Layouter),r("design:type",d.Layouter)],t.prototype,"layouter",void 0),o([i.injectable()],t)}();e.HiddenBoundsUpdater=p},1771:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var s=n(6700),c=n(1826),u=n(6530),d=n(7073),l=n(9046),p=n(594),f=n(7015),h=n(7987),y=function(t){function e(){var e=t.call(this)||this;return e.register(p.VBoxLayouter.KIND,new p.VBoxLayouter),e.register(f.HBoxLayouter.KIND,new f.HBoxLayouter),e.register(h.StackLayouter.KIND,new h.StackLayouter),e}return r(e,t),e}(u.InstanceRegistry);e.LayoutRegistry=y;var g=function(){function t(){}return t.prototype.layout=function(t){new v(t,this.layoutRegistry,this.logger).layout()},i([s.inject(c.TYPES.LayoutRegistry),a("design:type",y)],t.prototype,"layoutRegistry",void 0),i([s.inject(c.TYPES.ILogger),a("design:type",Object)],t.prototype,"logger",void 0),i([s.injectable()],t)}();e.Layouter=g;var v=function(){function t(t,e,n){var o=this;this.element2boundsData=t,this.layoutRegistry=e,this.log=n,this.toBeLayouted=[],t.forEach((function(t,e){l.isLayoutContainer(e)&&o.toBeLayouted.push(e)}))}return t.prototype.getBoundsData=function(t){var e=this.element2boundsData.get(t),n=t.bounds;return l.isLayoutContainer(t)&&this.toBeLayouted.indexOf(t)>=0&&(n=this.doLayout(t)),e||(e={bounds:n,boundsChanged:!1,alignmentChanged:!1},this.element2boundsData.set(t,e)),e},t.prototype.layout=function(){for(;this.toBeLayouted.length>0;){var t=this.toBeLayouted[0];this.doLayout(t)}},t.prototype.doLayout=function(t){var e=this.toBeLayouted.indexOf(t);e>=0&&this.toBeLayouted.splice(e,1);var n=this.layoutRegistry.get(t.layout);n&&n.layout(t,this);var o=this.element2boundsData.get(t);return void 0!==o&&void 0!==o.bounds?o.bounds:(this.log.error(t,"Layout failed"),d.EMPTY_BOUNDS)},t}();e.StatefulLayouter=v},9046:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6771),a=n(8558),s=n(7073),c=n(5824);function u(t){return"bounds"in t}function d(t,e,n){t.children.forEach((function(t){if(u(t)&&s.includes(t.bounds,e)&&n.push(t),t instanceof i.SParentElement){var o=t.parentToLocal(e);d(t,o,n)}}))}e.boundsFeature=Symbol("boundsFeature"),e.layoutContainerFeature=Symbol("layoutContainerFeature"),e.layoutableChildFeature=Symbol("layoutableChildFeature"),e.alignFeature=Symbol("alignFeature"),e.isBoundsAware=u,e.isLayoutContainer=function(t){return u(t)&&t.hasFeature(e.layoutContainerFeature)&&"layout"in t},e.isLayoutableChild=function(t){return u(t)&&t.hasFeature(e.layoutableChildFeature)},e.isSizeable=function(t){return t.hasFeature(e.boundsFeature)&&u(t)},e.isAlignable=function(t){return t.hasFeature(e.alignFeature)&&"alignment"in t},e.getAbsoluteBounds=function(t){var e=a.findParentByFeature(t,u);if(void 0!==e){for(var n=e.bounds,o=e;o instanceof i.SChildElement;){var r=o.parent;n=r.localToParent(n),o=r}return n}if(t instanceof i.SModelRoot){var c=t.canvasBounds;return{x:0,y:0,width:c.width,height:c.height}}return s.EMPTY_BOUNDS},e.getAbsoluteClientBounds=function(t,e,n){var o=0,r=0,i=0,a=0,s=e.createUniqueDOMElementId(t),u=document.getElementById(s);if(u){var d=u.getBoundingClientRect(),l=c.getWindowScroll();o=d.left+l.x,r=d.top+l.y,i=d.width,a=d.height}var p=document.getElementById(n.baseDiv);if(p)for(;p.offsetParent instanceof HTMLElement&&(p=p.offsetParent);)o-=p.offsetLeft,r-=p.offsetTop;return{x:o,y:r,width:i,height:a}},e.findChildrenAtPosition=function(t,e){var n=[];return d(t,e,n),n};var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.position=s.ORIGIN_POINT,e.size=s.EMPTY_DIMENSION,e}return r(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return{x:this.position.x,y:this.position.y,width:this.size.width,height:this.size.height}},set:function(t){this.position={x:t.x,y:t.y},this.size={width:t.width,height:t.height}},enumerable:!0,configurable:!0}),e.prototype.localToParent=function(t){var e={x:t.x+this.position.x,y:t.y+this.position.y,width:-1,height:-1};return s.isBounds(t)&&(e.width=t.width,e.height=t.height),e},e.prototype.parentToLocal=function(t){var e={x:t.x-this.position.x,y:t.y-this.position.y,width:-1,height:-1};return s.isBounds(t)&&(e.width=t.width,e.height=t.height),e},e}(i.SChildElement);e.SShapeElement=l},7138:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,n,o,r){void 0===r&&(r=!1);var i=t.call(this,o)||this;return i.model=e,i.elementResizes=n,i.reverse=r,i}return r(e,t),e.prototype.tween=function(t){var e=this;return this.elementResizes.forEach((function(n){var o=n.element,r=e.reverse?{width:(1-t)*n.toDimension.width+t*n.fromDimension.width,height:(1-t)*n.toDimension.height+t*n.fromDimension.height}:{width:(1-t)*n.fromDimension.width+t*n.toDimension.width,height:(1-t)*n.fromDimension.height+t*n.toDimension.height};o.bounds={x:o.bounds.x,y:o.bounds.y,width:r.width,height:r.height}})),this.model},e}(n(6692).Animation);e.ResizeAnimation=i},7987:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(6700),i=n(7073),a=n(9046),s=function(){function t(){}return t.prototype.isVisible=function(t,e){if("hidden"===e.targetKind)return!0;if(!i.isValidDimension(t.bounds))return!0;var n=a.getAbsoluteBounds(t),o=t.root.canvasBounds;return n.x<=o.width&&n.x+n.width>=0&&n.y<=o.height&&n.y+n.height>=0},o([r.injectable()],t)}();e.ShapeView=s},1842:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6530),u=n(6700),d=n(1826),l=function(t){function e(e){var n=t.call(this)||this;return e.forEach((function(t){return n.register(t.TYPE,new t)})),n}return r(e,t),i([u.injectable(),s(0,u.multiInject(d.TYPES.IButtonHandler)),s(0,u.optional()),a("design:paramtypes",[Array])],e)}(c.InstanceRegistry);e.ButtonHandlerRegistry=l},1992:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1842),i=new o.ContainerModule((function(t){t(r.ButtonHandlerRegistry).toSelf().inSingletonScope()}));e.default=i},2011:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(9046),a=n(6793),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.enabled=!0,e}return r(e,t),e.DEFAULT_FEATURES=[i.boundsFeature,i.layoutableChildFeature,a.fadeFeature],e}(i.SShapeElement);e.SButton=s},8681:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(152),c=n(1826),u=n(9140),d=n(5989),l=n(9774),p=n(7872),f=function(){function t(t){void 0===t&&(t=[]),this.actionProviders=t}return t.prototype.getActions=function(t,e,n,o){var r=this.actionProviders.map((function(r){return r.getActions(t,e,n,o)}));return Promise.all(r).then((function(t){return t.reduce((function(t,e){return void 0!==e?t.concat(e):t}))}))},o([a.injectable(),i(0,a.multiInject(c.TYPES.ICommandPaletteActionProvider)),i(0,a.optional()),r("design:paramtypes",[Array])],t)}();e.CommandPaletteActionProviderRegistry=f;var h=function(){function t(t){this.logger=t}return t.prototype.getActions=function(t,e,n,o){return void 0!==o&&o%2==0?Promise.resolve(this.createSelectActions(t)):Promise.resolve([new s.LabeledAction("Select all",[new l.SelectAllAction])])},t.prototype.createSelectActions=function(t){return u.toArray(t.index.all().filter((function(t){return d.isNameable(t)}))).map((function(t){return new s.LabeledAction("Reveal "+d.name(t),[new l.SelectAction([t.id]),new p.CenterAction([t.id])],"fa-eye")}))},o([a.injectable(),i(0,a.inject(c.TYPES.ILogger)),r("design:paramtypes",[Object])],t)}();e.RevealNamedElementActionProvider=h},2019:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e"+t+""})),n},e.prototype.renderIcon=function(t,e){t.innerHTML+=''},e.prototype.filterActions=function(t,e){return y.toArray(e.filter((function(e){var n=e.label.toLowerCase();return t.split(" ").every((function(t){return-1!==n.indexOf(t.toLowerCase())}))})))},e.prototype.customizeSuggestionContainer=function(t,e,n){this.containerElement&&this.containerElement.appendChild(t)},e.prototype.hide=function(){t.prototype.hide.call(this),this.autoCompleteResult&&this.autoCompleteResult.destroy()},e.prototype.executeAction=function(t){var e=this;this.actionDispatcherProvider().then((function(e){return e.dispatchAll(function(t){return u.isLabeledAction(t)?t.actions:u.isAction(t)?[t]:[]}(t))})).catch((function(t){return e.logger.error(e,"No action dispatcher available to execute command palette action",t)}))},e.ID="command-palette",e.isInvokePaletteKey=function(t){return g.matchesKeystroke(t,"Space","ctrl")},i([c.inject(d.TYPES.IActionDispatcherProvider),a("design:type",Function)],e.prototype,"actionDispatcherProvider",void 0),i([c.inject(d.TYPES.ICommandPaletteActionProviderRegistry),a("design:type",b.CommandPaletteActionProviderRegistry)],e.prototype,"actionProviderRegistry",void 0),i([c.inject(d.TYPES.ViewerOptions),a("design:type",Object)],e.prototype,"viewerOptions",void 0),i([c.inject(d.TYPES.DOMHelper),a("design:type",f.DOMHelper)],e.prototype,"domHelper",void 0),i([c.inject(_.MousePositionTracker),a("design:type",_.MousePositionTracker)],e.prototype,"mousePositionTracker",void 0),n=i([c.injectable()],e)}(l.AbstractUIExtension);e.CommandPalette=P;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.keyDown=function(t,e){if(g.matchesKeystroke(e,"Escape"))return[new p.SetUIExtensionVisibilityAction(P.ID,!1,[])];if(P.isInvokePaletteKey(e)){var n=y.toArray(t.index.all().filter((function(t){return m.isSelectable(t)&&t.selected})).map((function(t){return t.id})));return[new p.SetUIExtensionVisibilityAction(P.ID,!0,n)]}return[]},e}(h.KeyListener);e.CommandPaletteKeyListener=S},5408:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(8681),a=n(2019),s=new o.ContainerModule((function(t){t(a.CommandPalette).toSelf().inSingletonScope(),t(r.TYPES.IUIExtension).toService(a.CommandPalette),t(r.TYPES.KeyListener).to(a.CommandPaletteKeyListener),t(i.CommandPaletteActionProviderRegistry).toSelf().inSingletonScope(),t(r.TYPES.ICommandPaletteActionProviderRegistry).toService(i.CommandPaletteActionProviderRegistry)}));e.default=s},187:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toAnchor=function(t){return t instanceof HTMLElement?{x:t.offsetLeft,y:t.offsetTop}:t}},2783:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(2200),i=n(7854),a=n(1826),s=new o.ContainerModule((function(t){t(a.TYPES.IContextMenuServiceProvider).toProvider((function(t){return function(){return new Promise((function(e,n){t.container.isBound(a.TYPES.IContextMenuService)?e(t.container.get(a.TYPES.IContextMenuService)):n()}))}})),t(a.TYPES.MouseListener).to(i.ContextMenuMouseListener),t(a.TYPES.IContextMenuProviderRegistry).to(r.ContextMenuProviderRegistry)}));e.default=s},2200:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(1826),c=n(3344),u=n(1982),d=function(){function t(t){void 0===t&&(t=[]),this.menuProviders=t}return t.prototype.getItems=function(t,e){var n=this.menuProviders.map((function(n){return n.getItems(t,e)}));return Promise.all(n).then(this.flattenAndRestructure)},t.prototype.flattenAndRestructure=function(t){for(var e=t.reduce((function(t,e){return void 0!==e?t.concat(e):t}),[]),n=function(t){if(t.parentId){for(var n=t.parentId.split("."),o=void 0,r=e,i=function(t){(o=r.find((function(e){return t===e.id})))&&o.children&&(r=o.children)},a=0,s=n;a0}}])},o([a.injectable()],t)}();e.DeleteContextMenuItemProvider=l},7854:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}},c=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6700),a=n(6771),s=n(9294),c=n(4626),u=n(7073),d=n(9046),l=n(6283),p=n(4096),f=function(){function t(){}return t.prototype.decorate=function(t,e){if(s.isDecoration(e)){var n=this.getPosition(e),o="translate("+n.x+", "+n.y+")";c.setAttr(t,"transform",o)}return t},t.prototype.getPosition=function(t){if(t instanceof a.SChildElement&&t.parent instanceof l.SRoutableElement){var e=this.edgeRouterRegistry.get(t.parent.routerKind).route(t.parent);if(e.length>1){var n=Math.floor(.5*(e.length-1)),o=d.isSizeable(t)?{x:-.5*t.bounds.width,y:-.5*t.bounds.width}:u.ORIGIN_POINT;return{x:.5*(e[n].x+e[n+1].x)+o.x,y:.5*(e[n].y+e[n+1].y)+o.y}}}return d.isSizeable(t)?{x:-.666*t.bounds.width,y:-.666*t.bounds.height}:u.ORIGIN_POINT},t.prototype.postUpdate=function(){},o([i.inject(p.EdgeRouterRegistry),r("design:type",p.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),o([i.injectable()],t)}();e.DecorationPlacer=f},2849:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6708),r=n(6700),i=n(9294),a=n(2380),s=n(1826),c=n(5714),u=new r.ContainerModule((function(t,e,n){o.configureModelElement({bind:t,isBound:n},"marker",i.SIssueMarker,a.IssueMarkerView),t(c.DecorationPlacer).toSelf().inSingletonScope(),t(s.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)}));e.default=u},9294:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6211),a=n(9046);e.decorationFeature=Symbol("decorationFeature"),e.isDecoration=function(t){return t.hasFeature(e.decorationFeature)};var s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.DEFAULT_FEATURES=[e.decorationFeature,a.boundsFeature,i.hoverFeedbackFeature,i.popupFeature],n}(a.SShapeElement);e.SDecoration=s;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s);e.SIssueMarker=c;e.SIssue=function(){}},2380:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(2388),i=n(4626),a=n(6700),s=function(){function t(){}return t.prototype.render=function(t,e){var n=this.getMaxSeverity(t),o=r.svg("g",{"class-sprotty-issue":!0},r.svg("g",{transform:"scale(0.008928571428571428, 0.008928571428571428)"},r.svg("path",{d:this.getPath(n)})));return i.setClass(o,"sprotty-"+n,!0),o},t.prototype.getMaxSeverity=function(t){for(var e="info",n=0,o=t.issues.map((function(t){return t.severity}));n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(1022),a=new o.ContainerModule((function(t){t(i.EdgeLayoutPostprocessor).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(i.EdgeLayoutPostprocessor),t(r.TYPES.HiddenVNodePostprocessor).toService(i.EdgeLayoutPostprocessor)}));e.default=a},1022:function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(6771),c=n(4626),u=n(6054),d=n(7073),l=n(9046),p=n(8971),f=n(4096),h=function(){function t(){}return t.prototype.decorate=function(t,e){if(p.isEdgeLayoutable(e)&&e.parent instanceof u.SEdge&&e.bounds!==d.EMPTY_BOUNDS){var n=this.getEdgePlacement(e),o=e.parent,r=Math.min(1,Math.max(0,n.position)),i=this.edgeRouterRegistry.get(o.routerKind),a=i.pointAt(o,r),s=i.derivativeAt(o,r),l="";if(a&&s){l+="translate("+a.x+", "+a.y+")";var f=d.toDegrees(Math.atan2(s.y,s.x));if(n.rotate){var h=f;Math.abs(f)>90&&(f<0?h+=180:f>0&&(h-=180)),l+=" rotate("+h+")",l+=" translate("+(y=this.getRotatedAlignment(e,n,h!==f)).x+", "+y.y+")"}else{var y;l+=" translate("+(y=this.getAlignment(e,n,f)).x+", "+y.y+")"}c.setAttr(t,"transform",l)}}return t},t.prototype.getRotatedAlignment=function(t,e,n){var o=l.isAlignable(t)?t.alignment.x:0,r=l.isAlignable(t)?t.alignment.y:0,i=t.bounds;if("on"===e.side)return{x:o-.5*i.height,y:r-.5*i.height};if(n)switch(e.position<.3333333?o-=i.width+e.offset:e.position<.6666666?o-=.5*i.width:o+=e.offset,e.side){case"left":case"bottom":r-=e.offset+i.height;break;case"right":case"top":r+=e.offset}else switch(e.position<.3333333?o+=e.offset:e.position<.6666666?o-=.5*i.width:o-=i.width+e.offset,e.side){case"right":case"bottom":r+=-e.offset-i.height;break;case"left":case"top":r+=e.offset}return{x:o,y:r}},t.prototype.getEdgePlacement=function(t){for(var e=t,n=[];void 0!==e;){var r=e.edgePlacement;if(void 0!==r&&n.push(r),!(e instanceof s.SChildElement))break;e=e.parent}return n.reverse().reduce((function(t,e){return o(o({},t),e)}),p.DEFAULT_EDGE_PLACEMENT)},t.prototype.getAlignment=function(t,e,n){var o=t.bounds,r=l.isAlignable(t)?t.alignment.x-o.width:0,i=l.isAlignable(t)?t.alignment.y-o.height:0;if("on"===e.side)return{x:r+.5*o.height,y:i+.5*o.height};var a=this.getQuadrant(n),s={x:e.offset,y:i+.5*o.height},c={x:e.offset,y:i+o.height+e.offset},u={x:-o.width-e.offset,y:i+o.height+e.offset},p={x:-o.width-e.offset,y:i+.5*o.height},f={x:-o.width-e.offset,y:i-e.offset},h={x:e.offset,y:i-e.offset};switch(e.side){case"left":switch(a.orientation){case"west":return d.linear(c,u,a.position);case"north":return d.linear(u,f,a.position);case"east":return d.linear(f,h,a.position);case"south":return d.linear(h,c,a.position)}break;case"right":switch(a.orientation){case"west":return d.linear(f,h,a.position);case"north":return d.linear(h,c,a.position);case"east":return d.linear(c,u,a.position);case"south":return d.linear(u,f,a.position)}break;case"top":switch(a.orientation){case"west":return d.linear(f,h,a.position);case"north":return this.linearFlip(h,s,p,f,a.position);case"east":return d.linear(f,h,a.position);case"south":return this.linearFlip(h,s,p,f,a.position)}break;case"bottom":switch(a.orientation){case"west":return d.linear(c,u,a.position);case"north":return this.linearFlip(u,p,s,c,a.position);case"east":return d.linear(c,u,a.position);case"south":return this.linearFlip(u,p,s,c,a.position)}}return{x:0,y:0}},t.prototype.getQuadrant=function(t){return Math.abs(t)>135?{orientation:"west",position:(t>0?t-135:t+225)/90}:t<-45?{orientation:"north",position:(t+135)/90}:t<45?{orientation:"east",position:(t+45)/90}:{orientation:"south",position:(t-45)/90}},t.prototype.linearFlip=function(t,e,n,o,r){return r<.5?d.linear(t,e,2*r):d.linear(n,o,2*r-1)},t.prototype.postUpdate=function(){},r([a.inject(f.EdgeRouterRegistry),i("design:type",f.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([a.injectable()],t)}();e.EdgeLayoutPostprocessor=h},8971:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6771),a=n(9046),s=n(6283);e.edgeLayoutFeature=Symbol("edgeLayout"),e.isEdgeLayoutable=function(t){return t instanceof i.SChildElement&&t.parent instanceof s.SRoutableElement&&"edgePlacement"in t&&a.isBoundsAware(t)&&t.hasFeature(e.edgeLayoutFeature)};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(Object);e.EdgePlacement=c,e.DEFAULT_EDGE_PLACEMENT={rotate:!0,side:"top",position:.5,offset:7}},6077:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.creatingOnDragFeature=Symbol("creatingOnDragFeature"),e.isCreatingOnDrag=function(t){return t.hasFeature(e.creatingOnDragFeature)&&void 0!==t.createAction}},3235:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(1864),u=n(6771),d=n(6700),l=n(1826),p=function(){function t(e,n){this.containerId=e,this.elementSchema=n,this.kind=t.KIND}return t.KIND="createElement",t}();e.CreateElementAction=p;var f=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){var e=t.root.index.getById(this.action.containerId);return e instanceof u.SParentElement&&(this.container=e,this.newElement=t.modelFactory.createElement(this.action.elementSchema),this.container.add(this.newElement)),t.root},e.prototype.undo=function(t){return this.container.remove(this.newElement),t.root},e.prototype.redo=function(t){return this.container.add(this.newElement),t.root},e.KIND=p.KIND,i([d.injectable(),s(0,d.inject(l.TYPES.Action)),a("design:paramtypes",[p])],e)}(c.Command);e.CreateElementCommand=f},3344:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(1864),u=n(6771),d=n(1826),l=n(6700);function p(t){return t instanceof u.SChildElement&&t.hasFeature(e.deletableFeature)}e.deletableFeature=Symbol("deletableFeature"),e.isDeletable=p;var f=function(){function t(e){this.elementIds=e,this.kind=t.KIND}return t.KIND="delete",t}();e.DeleteElementAction=f;e.ResolvedDelete=function(){};var h=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.resolvedDeletes=[],n}return r(e,t),e.prototype.execute=function(t){for(var e=t.root.index,n=0,o=this.action.elementIds;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(2857),a=n(6529),s=n(6708),c=n(6283),u=n(9779),d=n(3344),l=n(5149),p=n(2628),f=n(3011),h=n(9142);e.edgeEditModule=new o.ContainerModule((function(t,e,n){var o={bind:t,isBound:n};i.configureCommand(o,f.SwitchEditModeCommand),i.configureCommand(o,h.ReconnectCommand),i.configureCommand(o,d.DeleteElementCommand),s.configureModelElement(o,"dangling-anchor",c.SDanglingAnchor,u.EmptyGroupView)})),e.labelEditModule=new o.ContainerModule((function(t,e,n){t(r.TYPES.MouseListener).to(l.EditLabelMouseListener),t(r.TYPES.KeyListener).to(l.EditLabelKeyListener),i.configureCommand({bind:t,isBound:n},l.ApplyLabelEditCommand)})),e.labelEditUiModule=new o.ContainerModule((function(t,e,n){var o={bind:t,isBound:n};a.configureActionHandler(o,l.EditLabelAction.KIND,p.EditLabelActionHandler),t(p.EditLabelUI).toSelf().inSingletonScope(),t(r.TYPES.IUIExtension).toService(p.EditLabelUI)}))},2628:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},c=this&&this.__generator||function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(152),d=n(1864),l=n(1826),p=n(6589),f=n(6004),h=n(8611),y=n(1982),g=n(9140),v=n(4446),m=function(){function t(e){this.labelId=e,this.kind=t.KIND}return t.KIND="EditLabel",t}();e.EditLabelAction=m,e.isEditLabelAction=function(t){return u.isAction(t)&&t.kind===m.KIND&&"labelId"in t};var b=function(){function t(e,n){this.labelId=e,this.text=n,this.kind=t.KIND}return t.KIND="applyLabelEdit",t}();e.ApplyLabelEditAction=b;e.ResolvedLabelEdit=function(){};var _=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){var e=t.root.index.getById(this.action.labelId);return e&&v.isEditableLabel(e)&&(this.resolvedLabelEdit={label:e,oldLabel:e.text,newLabel:this.action.text},e.text=this.action.text),t.root},e.prototype.undo=function(t){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.oldLabel),t.root},e.prototype.redo=function(t){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.newLabel),t.root},e.KIND=b.KIND,i([s(0,c.inject(l.TYPES.Action)),a("design:paramtypes",[b])],e)}(d.Command);e.ApplyLabelEditCommand=_;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.doubleClick=function(t,e){var n=S(t);return n?[new m(n.id)]:[]},e}(p.MouseListener);e.EditLabelMouseListener=w;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.keyDown=function(t,e){if(h.matchesKeystroke(e,"F2")){var n=g.toArray(t.index.all().filter((function(t){return y.isSelectable(t)&&t.selected}))).map(S).filter((function(t){return void 0!==t}));if(1===n.length)return[new m(n[0].id)]}return[]},e}(f.KeyListener);function S(t){return v.isEditableLabel(t)?t:v.isWithEditableLabel(t)&&t.editableLabel?t.editableLabel:void 0}e.EditLabelKeyListener=P,e.getEditableLabel=S},3011:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1864),d=n(6771),l=n(1826),p=n(6283),f=n(4096),h=n(4446),y=function(){function t(e,n){void 0===e&&(e=[]),void 0===n&&(n=[]),this.elementsToActivate=e,this.elementsToDeactivate=n,this.kind=t.KIND}return t.KIND="switchEditMode",t}();e.SwitchEditModeAction=y;var g=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.elementsToActivate=[],n.elementsToDeactivate=[],n.handlesToRemove=[],n}return r(e,t),e.prototype.execute=function(t){var e=this,n=t.root.index;return this.action.elementsToActivate.forEach((function(t){var o=n.getById(t);void 0!==o&&e.elementsToActivate.push(o)})),this.action.elementsToDeactivate.forEach((function(t){var o=n.getById(t);if(void 0!==o&&e.elementsToDeactivate.push(o),o instanceof p.SRoutingHandle&&o.parent instanceof p.SRoutableElement){var r=o.parent;e.shouldRemoveHandle(o,r)&&(e.handlesToRemove.push({handle:o,parent:r}),e.elementsToDeactivate.push(r),e.elementsToActivate.push(r))}})),this.doExecute(t)},e.prototype.doExecute=function(t){var e=this;return this.handlesToRemove.forEach((function(t){t.point=t.parent.routingPoints.splice(t.handle.pointIndex,1)[0]})),this.elementsToDeactivate.forEach((function(t){t instanceof p.SRoutableElement?t.removeAll((function(t){return t instanceof p.SRoutingHandle})):t instanceof p.SRoutingHandle&&(t.editMode=!1,t.danglingAnchor&&t.parent instanceof p.SRoutableElement&&t.danglingAnchor.original&&(t.parent.source===t.danglingAnchor?t.parent.sourceId=t.danglingAnchor.original.id:t.parent.target===t.danglingAnchor&&(t.parent.targetId=t.danglingAnchor.original.id),t.danglingAnchor.parent.remove(t.danglingAnchor),t.danglingAnchor=void 0))})),this.elementsToActivate.forEach((function(t){h.canEditRouting(t)&&t instanceof d.SParentElement?e.edgeRouterRegistry.get(t.routerKind).createRoutingHandles(t):t instanceof p.SRoutingHandle&&(t.editMode=!0)})),t.root},e.prototype.shouldRemoveHandle=function(t,e){return"junction"===t.kind&&void 0===this.edgeRouterRegistry.get(e.routerKind).route(e).find((function(e){return e.pointIndex===t.pointIndex}))},e.prototype.undo=function(t){var e=this;return this.handlesToRemove.forEach((function(t){void 0!==t.point&&t.parent.routingPoints.splice(t.handle.pointIndex,0,t.point)})),this.elementsToActivate.forEach((function(t){t instanceof p.SRoutableElement?t.removeAll((function(t){return t instanceof p.SRoutingHandle})):t instanceof p.SRoutingHandle&&(t.editMode=!1)})),this.elementsToDeactivate.forEach((function(t){h.canEditRouting(t)?e.edgeRouterRegistry.get(t.routerKind).createRoutingHandles(t):t instanceof p.SRoutingHandle&&(t.editMode=!0)})),t.root},e.prototype.redo=function(t){return this.doExecute(t)},e.KIND=y.KIND,i([c.inject(f.EdgeRouterRegistry),a("design:type",f.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),i([c.injectable(),s(0,c.inject(l.TYPES.Action)),a("design:paramtypes",[y])],e)}(u.Command);e.SwitchEditModeCommand=g},4446:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6283);e.editFeature=Symbol("editFeature"),e.canEditRouting=function(t){return t instanceof o.SRoutableElement&&t.hasFeature(e.editFeature)},e.editLabelFeature=Symbol("editLabelFeature"),e.isEditableLabel=function(t){return"text"in t&&t.hasFeature(e.editLabelFeature)},e.withEditLabelFeature=Symbol("withEditLabelFeature"),e.isWithEditableLabel=function(t){return"editableLabel"in t&&t.hasFeature(e.withEditLabelFeature)}},9142:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1864),d=n(1826),l=n(6283),p=n(4096),f=function(){function t(e,n,o){this.routableId=e,this.newSourceId=n,this.newTargetId=o,this.kind=t.KIND}return t.KIND="reconnect",t}();e.ReconnectAction=f;var h=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){return this.doExecute(t),t.root},e.prototype.doExecute=function(t){var e=t.root.index.getById(this.action.routableId);if(e instanceof l.SRoutableElement){var n=this.edgeRouterRegistry.get(e.routerKind),o=n.takeSnapshot(e);n.applyReconnect(e,this.action.newSourceId,this.action.newTargetId);var r=n.takeSnapshot(e);this.memento={edge:e,before:o,after:r}}},e.prototype.undo=function(t){return this.memento&&this.edgeRouterRegistry.get(this.memento.edge.routerKind).applySnapshot(this.memento.edge,this.memento.before),t.root},e.prototype.redo=function(t){return this.memento&&this.edgeRouterRegistry.get(this.memento.edge.routerKind).applySnapshot(this.memento.edge,this.memento.after),t.root},e.KIND=f.KIND,i([c.inject(p.EdgeRouterRegistry),a("design:type",p.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),i([c.injectable(),s(0,c.inject(d.TYPES.Action)),a("design:paramtypes",[f])],e)}(u.Command);e.ReconnectCommand=h},443:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(6609),a=new o.ContainerModule((function(t){t(r.TYPES.IButtonHandler).toConstructor(i.ExpandButtonHandler)}));e.default=a},6609:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(8558),i=n(9391),a=n(6700),s=function(){function t(e,n){this.expandIds=e,this.collapseIds=n,this.kind=t.KIND}return t.KIND="collapseExpand",t}();e.CollapseExpandAction=s;var c=function(){function t(e){void 0===e&&(e=!0),this.expand=e,this.kind=t.KIND}return t.KIND="collapseExpandAll",t}();e.CollapseExpandAllAction=c;var u=function(){function t(){}return t.prototype.buttonPressed=function(t){var e=r.findParentByFeature(t,i.isExpandable);return void 0!==e?[new s(e.expanded?[]:[e.id],e.expanded?[e.id]:[])]:[]},t.TYPE="button:expand",o([a.injectable()],t)}();e.ExpandButtonHandler=u},9391:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expandFeature=Symbol("expandFeature"),e.isExpandable=function(t){return t.hasFeature(e.expandFeature)&&"expanded"in t}},8948:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(2388),i=n(9391),a=n(8558),s=n(6700),c=function(){function t(){}return t.prototype.render=function(t,e){var n=a.findParentByFeature(t,i.isExpandable),o=void 0!==n&&n.expanded?"M 1,5 L 8,12 L 15,5 Z":"M 1,8 L 8,15 L 8,1 Z";return r.svg("g",{"class-sprotty-button":"{true}","class-enabled":"{button.enabled}"},r.svg("rect",{x:0,y:0,width:16,height:16,opacity:0}),r.svg("path",{d:o}))},o([s.injectable()],t)}();e.ExpandButtonView=c},5853:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(33),a=n(4350),s=n(2857),c=new o.ContainerModule((function(t,e,n){t(r.TYPES.KeyListener).to(i.ExportSvgKeyListener).inSingletonScope(),t(r.TYPES.HiddenVNodePostprocessor).to(i.ExportSvgPostprocessor).inSingletonScope(),s.configureCommand({bind:t,isBound:n},i.ExportSvgCommand),t(r.TYPES.SvgExporter).to(a.SvgExporter).inSingletonScope()}));e.default=c},33:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1864),d=n(1982),l=n(152),p=n(6771),f=n(6004),h=n(8611),y=n(4965),g=n(4350),v=n(7740),m=n(6211),b=n(1826),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.keyDown=function(t,e){return h.matchesKeystroke(e,"KeyE","ctrlCmd","shift")?[new w]:[]},i([c.injectable()],e)}(f.KeyListener);e.ExportSvgKeyListener=_;var w=function(){function t(e){void 0===e&&(e=""),this.requestId=e,this.kind=t.KIND}return t.create=function(){return new t(l.generateRequestId())},t.KIND="requestExportSvg",t}();e.RequestExportSvgAction=w;var P=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){if(y.isExportable(t.root)){var e=t.modelFactory.createRoot(t.root);if(y.isExportable(e))return v.isViewport(e)&&(e.zoom=1,e.scroll={x:0,y:0}),e.index.all().forEach((function(t){d.isSelectable(t)&&t.selected&&(t.selected=!1),m.isHoverable(t)&&t.hoverFeedback&&(t.hoverFeedback=!1)})),{model:e,modelChanged:!0,cause:this.action}}return{model:t.root,modelChanged:!1}},e.KIND=w.KIND,i([s(0,c.inject(b.TYPES.Action)),a("design:paramtypes",[w])],e)}(u.HiddenCommand);e.ExportSvgCommand=P;var S=function(){function t(){}return t.prototype.decorate=function(t,e){return e instanceof p.SModelRoot&&(this.root=e),t},t.prototype.postUpdate=function(t){this.root&&void 0!==t&&t.kind===w.KIND&&this.svgExporter.export(this.root,t)},i([c.inject(b.TYPES.SvgExporter),a("design:type",g.SvgExporter)],t.prototype,"svgExporter",void 0),i([c.injectable()],t)}();e.ExportSvgPostprocessor=S},4965:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exportFeature=Symbol("exportFeature"),e.isExportable=function(t){return t.hasFeature(e.exportFeature)}},4350:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(9046),a=n(1977),s=n(1826),c=n(7073),u=n(6700),d=function(){function t(e,n){void 0===n&&(n=""),this.svg=e,this.responseId=n,this.kind=t.KIND}return t.KIND="exportSvg",t}();e.ExportSvgAction=d;var l=function(){function t(){}return t.prototype.export=function(t,e){if("undefined"!=typeof document){var n=document.getElementById(this.options.hiddenDiv);if(null!==n&&n.firstElementChild&&"svg"===n.firstElementChild.tagName){var o=n.firstElementChild,r=this.createSvg(o,t);this.actionDispatcher.dispatch(new d(r,e?e.requestId:""))}}},t.prototype.createSvg=function(t,e){var n=new XMLSerializer,o=n.serializeToString(t),r=document.createElement("iframe");if(document.body.appendChild(r),!r.contentWindow)throw new Error("IFrame has no contentWindow");var i=r.contentWindow.document;i.open(),i.write(o),i.close();var a=i.getElementById(t.id);a.removeAttribute("opacity"),this.copyStyles(t,a,["width","height","opacity"]),a.setAttribute("version","1.1");var s=this.getBounds(e);a.setAttribute("viewBox",s.x+" "+s.y+" "+s.width+" "+s.height);var c=n.serializeToString(a);return document.body.removeChild(r),c},t.prototype.copyStyles=function(t,e,n){for(var o=getComputedStyle(t),r=getComputedStyle(e),i="",a=0;a{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(3906),a=new o.ContainerModule((function(t){t(r.TYPES.IVNodePostprocessor).to(i.ElementFader).inSingletonScope()}));e.default=a},3906:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(6692),c=n(6771),u=n(4626),d=n(6793),l=function(t){function e(e,n,o,r){void 0===r&&(r=!1);var i=t.call(this,o)||this;return i.model=e,i.elementFades=n,i.removeAfterFadeOut=r,i}return r(e,t),e.prototype.tween=function(t,e){for(var n=0,o=this.elementFades;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeFeature=Symbol("fadeFeature"),e.isFadeable=function(t){return t.hasFeature(e.fadeFeature)&&void 0!==t.opacity}},7999:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(8099),a=n(6034),s=n(2857),c=n(6529),u=n(7872),d=n(7053),l=n(3249),p=new o.ContainerModule((function(t,e,n){t(r.TYPES.PopupVNodePostprocessor).to(a.PopupPositionUpdater).inSingletonScope(),t(r.TYPES.MouseListener).to(i.HoverMouseListener),t(r.TYPES.PopupMouseListener).to(i.PopupHoverMouseListener),t(r.TYPES.KeyListener).to(i.HoverKeyListener),t(r.TYPES.HoverState).toConstantValue({mouseOverTimer:void 0,mouseOutTimer:void 0,popupOpen:!1,previousPopupElement:void 0}),t(i.ClosePopupActionHandler).toSelf().inSingletonScope();var o={bind:t,isBound:n};s.configureCommand(o,i.HoverFeedbackCommand),s.configureCommand(o,i.SetPopupModelCommand),c.configureActionHandler(o,i.SetPopupModelCommand.KIND,i.ClosePopupActionHandler),c.configureActionHandler(o,u.FitToScreenCommand.KIND,i.ClosePopupActionHandler),c.configureActionHandler(o,u.CenterCommand.KIND,i.ClosePopupActionHandler),c.configureActionHandler(o,d.SetViewportCommand.KIND,i.ClosePopupActionHandler),c.configureActionHandler(o,l.MoveCommand.KIND,i.ClosePopupActionHandler)}));e.default=p},8099:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(8611),d=n(7073),l=n(1826),p=n(6771),f=n(6589),h=n(152),y=n(1864),g=n(1194),v=n(6004),m=n(8558),b=n(9046),_=n(6211),w=function(){function t(e,n){this.mouseoverElement=e,this.mouseIsOver=n,this.kind=t.KIND}return t.KIND="hoverFeedback",t}();e.HoverFeedbackAction=w;var P=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){var e=t.root.index.getById(this.action.mouseoverElement);return e&&_.isHoverable(e)&&(e.hoverFeedback=this.action.mouseIsOver),this.redo(t)},e.prototype.undo=function(t){return t.root},e.prototype.redo=function(t){return t.root},e.KIND=w.KIND,i([c.injectable(),s(0,c.inject(l.TYPES.Action)),a("design:paramtypes",[w])],e)}(y.SystemCommand);e.HoverFeedbackCommand=P;var S=function(){function t(e,n,o){void 0===o&&(o=""),this.elementId=e,this.bounds=n,this.requestId=o,this.kind=t.KIND}return t.create=function(e,n){return new t(e,n,h.generateRequestId())},t.KIND="requestPopupModel",t}();e.RequestPopupModelAction=S;var O=function(){function t(e,n){void 0===n&&(n=""),this.newRoot=e,this.responseId=n,this.kind=t.KIND}return t.KIND="setPopupModel",t}();e.SetPopupModelAction=O;var E=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){return this.oldRoot=t.root,this.newRoot=t.modelFactory.createRoot(this.action.newRoot),this.newRoot},e.prototype.undo=function(t){return this.oldRoot},e.prototype.redo=function(t){return this.newRoot},e.KIND=O.KIND,i([c.injectable(),s(0,c.inject(l.TYPES.Action)),a("design:paramtypes",[O])],e)}(y.PopupCommand);e.SetPopupModelCommand=E;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.mouseDown=function(t,e){return this.mouseIsDown=!0,[]},e.prototype.mouseUp=function(t,e){return this.mouseIsDown=!1,[]},e.prototype.stopMouseOutTimer=function(){void 0!==this.state.mouseOutTimer&&(window.clearTimeout(this.state.mouseOutTimer),this.state.mouseOutTimer=void 0)},e.prototype.startMouseOutTimer=function(){var t=this;return this.stopMouseOutTimer(),new Promise((function(e){t.state.mouseOutTimer=window.setTimeout((function(){t.state.popupOpen=!1,t.state.previousPopupElement=void 0,e(new O({type:g.EMPTY_ROOT.type,id:g.EMPTY_ROOT.id}))}),t.options.popupCloseDelay)}))},e.prototype.stopMouseOverTimer=function(){void 0!==this.state.mouseOverTimer&&(window.clearTimeout(this.state.mouseOverTimer),this.state.mouseOverTimer=void 0)},i([c.inject(l.TYPES.ViewerOptions),a("design:type",Object)],e.prototype,"options",void 0),i([c.inject(l.TYPES.HoverState),a("design:type",Object)],e.prototype,"state",void 0),e}(f.MouseListener);e.AbstractHoverMouseListener=x;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.computePopupBounds=function(t,e){var n={x:-5,y:20},o=b.getAbsoluteBounds(t),r=t.root.canvasBounds,i=d.translate(o,r),a=i.x+i.width-e.x,s=i.y+i.height-e.y;s<=a&&this.allowSidePosition(t,"below",s)?n={x:-5,y:Math.round(s+5)}:a<=s&&this.allowSidePosition(t,"right",a)&&(n={x:Math.round(a+5),y:-5});var c=e.x+n.x,u=r.x+r.width;c>u&&(c=u);var l=e.y+n.y,p=r.y+r.height;return l>p&&(l=p),{x:c,y:l,width:-1,height:-1}},e.prototype.allowSidePosition=function(t,e,n){return!(t instanceof p.SModelRoot)&&n<=150},e.prototype.startMouseOverTimer=function(t,e){var n=this;return this.stopMouseOverTimer(),new Promise((function(o){n.state.mouseOverTimer=window.setTimeout((function(){var r=n.computePopupBounds(t,{x:e.pageX,y:e.pageY});o(new S(t.id,r)),n.state.popupOpen=!0,n.state.previousPopupElement=t}),n.options.popupOpenDelay)}))},e.prototype.mouseOver=function(t,e){var n=[];if(!this.mouseIsDown){var o=m.findParent(t,_.hasPopupFeature);this.state.popupOpen&&(void 0===o||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id!==o.id)?n.push(this.startMouseOutTimer()):(this.stopMouseOverTimer(),this.stopMouseOutTimer()),void 0===o||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===o.id||n.push(this.startMouseOverTimer(o,e)),this.lastHoverFeedbackElementId&&(n.push(new w(this.lastHoverFeedbackElementId,!1)),this.lastHoverFeedbackElementId=void 0);var r=m.findParentByFeature(t,_.isHoverable);void 0!==r&&(n.push(new w(r.id,!0)),this.lastHoverFeedbackElementId=r.id)}return n},e.prototype.mouseOut=function(t,e){var n=[];if(!this.mouseIsDown){var o=document.elementFromPoint(e.x,e.y);if(!this.isSprottyPopup(o)){if(this.state.popupOpen){var r=m.findParent(t,_.hasPopupFeature);void 0!==this.state.previousPopupElement&&void 0!==r&&this.state.previousPopupElement.id===r.id&&n.push(this.startMouseOutTimer())}this.stopMouseOverTimer();var i=m.findParentByFeature(t,_.isHoverable);void 0!==i&&(n.push(new w(i.id,!1)),this.lastHoverFeedbackElementId=void 0)}}return n},e.prototype.isSprottyPopup=function(t){return!!t&&(t.id===this.options.popupDiv||!!t.parentElement&&this.isSprottyPopup(t.parentElement))},e.prototype.mouseMove=function(t,e){var n=[];if(!this.mouseIsDown){void 0!==this.state.previousPopupElement&&this.closeOnMouseMove(this.state.previousPopupElement,e)&&n.push(this.startMouseOutTimer());var o=m.findParent(t,_.hasPopupFeature);void 0===o||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===o.id||n.push(this.startMouseOverTimer(o,e))}return n},e.prototype.closeOnMouseMove=function(t,e){return t instanceof p.SModelRoot},i([c.inject(l.TYPES.ViewerOptions),a("design:type",Object)],e.prototype,"options",void 0),i([c.injectable()],e)}(x);e.HoverMouseListener=R;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.mouseOut=function(t,e){return[this.startMouseOutTimer()]},e.prototype.mouseOver=function(t,e){return this.stopMouseOutTimer(),this.stopMouseOverTimer(),[]},i([c.injectable()],e)}(x);e.PopupHoverMouseListener=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.keyDown=function(t,e){return u.matchesKeystroke(e,"Escape")?[new O({type:g.EMPTY_ROOT.type,id:g.EMPTY_ROOT.id})]:[]},e}(v.KeyListener);e.HoverKeyListener=T;var M=function(){function t(){this.popupOpen=!1}return t.prototype.handle=function(t){if(t.kind===E.KIND)this.popupOpen=t.newRoot.type!==g.EMPTY_ROOT.type;else if(this.popupOpen)return new O({id:g.EMPTY_ROOT.id,type:g.EMPTY_ROOT.type})},i([c.injectable()],t)}();e.ClosePopupActionHandler=M},6211:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hoverFeedbackFeature=Symbol("hoverFeedbackFeature"),e.isHoverable=function(t){return t.hasFeature(e.hoverFeedbackFeature)},e.popupFeature=Symbol("popupFeature"),e.hasPopupFeature=function(t){return t.hasFeature(e.popupFeature)}},6034:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6700),a=n(1826),s=function(){function t(){}return t.prototype.decorate=function(t,e){return t},t.prototype.postUpdate=function(){var t=document.getElementById(this.options.popupDiv);if(null!==t&&"undefined"!=typeof window){var e=t.getBoundingClientRect();window.innerHeight{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(3249),a=n(2857),s=new o.ContainerModule((function(t,e,n){t(r.TYPES.MouseListener).to(i.MoveMouseListener),a.configureCommand({bind:t,isBound:n},i.MoveCommand),t(i.LocationPostprocessor).toSelf().inSingletonScope(),t(r.TYPES.IVNodePostprocessor).toService(i.LocationPostprocessor),t(r.TYPES.HiddenVNodePostprocessor).toService(i.LocationPostprocessor)}));e.default=s},1026:(t,e)=>{"use strict";function n(t){return void 0!==t.position}Object.defineProperty(e,"__esModule",{value:!0}),e.moveFeature=Symbol("moveFeature"),e.isLocateable=n,e.isMoveable=function(t){return t.hasFeature(e.moveFeature)&&n(t)}},3249:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var u=n(6700),d=n(6692),l=n(1864),p=n(6771),f=n(8558),h=n(1826),y=n(6589),g=n(4626),v=n(6054),m=n(3280),b=n(7073),_=n(9046),w=n(6077),P=n(3344),S=n(3011),O=n(9142),E=n(6283),x=n(4096),R=n(8971),I=n(1982),T=n(9774),M=n(7740),A=n(1026),j=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.moves=t,this.animate=e,this.finished=n,this.kind=C.KIND};e.MoveAction=j;var C=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.resolvedMoves=new Map,n.edgeMementi=[],n}var n;return r(e,t),n=e,e.prototype.execute=function(t){var e=this,n=t.root.index,o=new Map,r=new Map;return this.action.moves.forEach((function(t){var i=n.getById(t.elementId);if(i instanceof E.SRoutingHandle&&e.edgeRouterRegistry){var a=i.parent;if(a instanceof E.SRoutableElement){var s=e.resolveHandleMove(i,a,t);if(s){var c=o.get(a);c||(c=[],o.set(a,c)),c.push(s)}}}else if(i&&A.isLocateable(i)){var u=e.resolveElementMove(i,t);u&&(e.resolvedMoves.set(u.element.id,u),e.edgeRouterRegistry&&n.getAttachedElements(i).forEach((function(t){if(t instanceof E.SRoutableElement){var e=r.get(t),n=b.subtract(u.toPosition,u.fromPosition),o=e?b.linear(e,n,.5):n;r.set(t,o)}})))}})),this.doMove(o,r),this.action.animate?(this.undoMove(),new d.CompoundAnimation(t.root,t,[new D(t.root,this.resolvedMoves,t,!1),new N(t.root,this.edgeMementi,t,!1)]).start()):t.root},e.prototype.resolveHandleMove=function(t,e,n){var o=n.fromPosition;if(!o){var r=this.edgeRouterRegistry.get(e.routerKind);o=r.getHandlePosition(e,r.route(e),t)}if(o)return{handle:t,fromPosition:o,toPosition:n.toPosition}},e.prototype.resolveElementMove=function(t,e){return{element:t,fromPosition:e.fromPosition||{x:t.position.x,y:t.position.y},toPosition:e.toPosition}},e.prototype.doMove=function(t,e){var n=this;this.resolvedMoves.forEach((function(t){t.element.position=t.toPosition})),t.forEach((function(t,e){var o=n.edgeRouterRegistry.get(e.routerKind),r=o.takeSnapshot(e);o.applyHandleMoves(e,t);var i=o.takeSnapshot(e);n.edgeMementi.push({edge:e,before:r,after:i})})),e.forEach((function(e,o){if(!t.get(o)){var r=n.edgeRouterRegistry.get(o.routerKind),i=r.takeSnapshot(o);if(o.source&&o.target&&n.resolvedMoves.get(o.source.id)&&n.resolvedMoves.get(o.target.id))o.routingPoints=o.routingPoints.map((function(t){return b.add(t,e)}));else{var a=I.isSelectable(o)&&o.selected;r.cleanupRoutingPoints(o,o.routingPoints,a,n.action.finished)}var s=r.takeSnapshot(o);n.edgeMementi.push({edge:o,before:i,after:s})}}))},e.prototype.undoMove=function(){var t=this;this.resolvedMoves.forEach((function(t){t.element.position=t.fromPosition})),this.edgeMementi.forEach((function(e){t.edgeRouterRegistry.get(e.edge.routerKind).applySnapshot(e.edge,e.before)}))},e.prototype.undo=function(t){return new d.CompoundAnimation(t.root,t,[new D(t.root,this.resolvedMoves,t,!0),new N(t.root,this.edgeMementi,t,!0)]).start()},e.prototype.redo=function(t){return new d.CompoundAnimation(t.root,t,[new D(t.root,this.resolvedMoves,t,!1),new N(t.root,this.edgeMementi,t,!1)]).start()},e.prototype.merge=function(t,e){var o=this;if(!this.action.animate&&t instanceof n)return t.resolvedMoves.forEach((function(t,e){var n=o.resolvedMoves.get(e);n?n.toPosition=t.toPosition:o.resolvedMoves.set(e,t)})),t.edgeMementi.forEach((function(t){var e=o.edgeMementi.find((function(e){return e.edge.id===t.edge.id}));e?e.after=t.after:o.edgeMementi.push(t)})),!0;if(t instanceof O.ReconnectCommand){var r=t.memento;if(r){var i=this.edgeMementi.find((function(t){return t.edge.id===r.edge.id}));i?i.after=r.after:this.edgeMementi.push(r)}return!0}return!1},e.KIND="move",a([u.inject(x.EdgeRouterRegistry),u.optional(),s("design:type",x.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),n=a([u.injectable(),c(0,u.inject(h.TYPES.Action)),s("design:paramtypes",[j])],e)}(l.MergeableCommand);e.MoveCommand=C;var D=function(t){function e(e,n,o,r){void 0===r&&(r=!1);var i=t.call(this,o)||this;return i.model=e,i.elementMoves=n,i.reverse=r,i}return r(e,t),e.prototype.tween=function(t){var e=this;return this.elementMoves.forEach((function(n){e.reverse?n.element.position={x:(1-t)*n.toPosition.x+t*n.fromPosition.x,y:(1-t)*n.toPosition.y+t*n.fromPosition.y}:n.element.position={x:(1-t)*n.fromPosition.x+t*n.toPosition.x,y:(1-t)*n.fromPosition.y+t*n.toPosition.y}})),this.model},e}(d.Animation);e.MoveAnimation=D;var N=function(t){function e(e,n,o,r){void 0===r&&(r=!1);var i=t.call(this,o)||this;return i.model=e,i.reverse=r,i.expanded=[],n.forEach((function(t){var e=i.reverse?t.after:t.before,n=i.reverse?t.before:t.after,o=e.routedPoints,r=n.routedPoints,a=Math.max(o.length,r.length);i.expanded.push({startExpandedRoute:i.growToSize(o,a),endExpandedRoute:i.growToSize(r,a),memento:t})})),i}return r(e,t),e.prototype.midPoint=function(t){var e=t.edge,n=t.edge.source,o=t.edge.target;return b.linear(f.translatePoint(b.center(n.bounds),n.parent,e.parent),f.translatePoint(b.center(o.bounds),o.parent,e.parent),.5)},e.prototype.start=function(){return this.expanded.forEach((function(t){t.memento.edge.removeAll((function(t){return t instanceof E.SRoutingHandle}))})),t.prototype.start.call(this)},e.prototype.tween=function(t){var e=this;return 1===t?this.expanded.forEach((function(t){var n=t.memento;e.reverse?n.before.router.applySnapshot(n.edge,n.before):n.after.router.applySnapshot(n.edge,n.after)})):this.expanded.forEach((function(e){for(var n=[],o=1;o(a+u)*r;)++u;a+=u;for(var d=0;d0?new j(r,!1,n):void 0}},e.prototype.snap=function(t,e,n){return n&&this.snapper?this.snapper.snap(t,e):t},e.prototype.getHandlePosition=function(t){if(this.edgeRouterRegistry){var e=t.parent;if(!(e instanceof E.SRoutableElement))return;var n=this.edgeRouterRegistry.get(e.routerKind),o=n.route(e);return n.getHandlePosition(e,o,t)}},e.prototype.mouseEnter=function(t,e){return t instanceof p.SModelRoot&&0===e.buttons&&this.mouseUp(t,e),[]},e.prototype.mouseUp=function(t,e){var n=this,o=[],r=!1;if(this.startDragPosition){var i=this.getElementMoves(t,e,!0);i&&o.push(i),t.root.index.all().forEach((function(e){if(e instanceof E.SRoutingHandle){var i=e.parent;if(i instanceof E.SRoutableElement&&e.danglingAnchor){var a=n.getHandlePosition(e);if(a){var s=f.translatePoint(a,e.parent,e.root),c=_.findChildrenAtPosition(t.root,s).find((function(t){return E.isConnectable(t)&&t.canConnect(i,e.kind)}));c&&n.hasDragged&&(o.push(new O.ReconnectAction(e.parent.id,"source"===e.kind?c.id:i.sourceId,"target"===e.kind?c.id:i.targetId)),r=!0)}}e.editMode&&o.push(new S.SwitchEditModeAction([],[e.id]))}}))}if(!r){var a=t.root.index.getById(E.edgeInProgressID);if(a instanceof p.SChildElement){var s=[];s.push(E.edgeInProgressID),a.children.forEach((function(t){t instanceof E.SRoutingHandle&&t.danglingAnchor&&s.push(t.danglingAnchor.id)})),o.push(new P.DeleteElementAction(s))}}return this.hasDragged&&o.push(new m.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),o},e.prototype.decorate=function(t,e){return t},a([u.inject(x.EdgeRouterRegistry),u.optional(),s("design:type",x.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),a([u.inject(h.TYPES.ISnapper),u.optional(),s("design:type",Object)],e.prototype,"snapper",void 0),e}(y.MouseListener);e.MoveMouseListener=L;var F=function(){function t(){}return t.prototype.decorate=function(t,e){if(R.isEdgeLayoutable(e)&&e.parent instanceof v.SEdge)return t;var n="";if(A.isLocateable(e)&&e instanceof p.SChildElement&&void 0!==e.parent){var o=e.position;0===o.x&&0===o.y||(n="translate("+o.x+", "+o.y+")")}if(_.isAlignable(e)){var r=e.alignment;0===r.x&&0===r.y||(n.length>0&&(n+=" "),n+="translate("+r.x+", "+r.y+")")}return n.length>0&&g.setAttr(t,"transform",n),t},t.prototype.postUpdate=function(){},a([u.injectable()],t)}();e.LocationPostprocessor=F},1528:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(6700),i=n(9046),a=function(){function t(){}return Object.defineProperty(t.prototype,"gridX",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridY",{get:function(){return 10},enumerable:!0,configurable:!0}),t.prototype.snap=function(t,e){return e&&i.isBoundsAware(e)?{x:Math.round((t.x+.5*e.bounds.width)/this.gridX)*this.gridX-.5*e.bounds.width,y:Math.round((t.y+.5*e.bounds.height)/this.gridY)*this.gridY-.5*e.bounds.height}:{x:Math.round(t.x/this.gridX)*this.gridX,y:Math.round(t.y/this.gridY)*this.gridY}},o([r.injectable()],t)}();e.CenterGridSnapper=a},5989:(t,e)=>{"use strict";function n(t){return t.hasFeature(e.nameFeature)}Object.defineProperty(e,"__esModule",{value:!0}),e.nameFeature=Symbol("nameableFeature"),e.isNameable=n,e.name=function(t){return n(t)?t.name:void 0}},8997:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(6777),a=new o.ContainerModule((function(t){t(r.TYPES.MouseListener).to(i.OpenMouseListener)}));e.default=a},1271:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.openFeature=Symbol("openFeature"),e.isOpenable=function(t){return t.hasFeature(e.openFeature)}},6777:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6589),a=n(8558),s=n(1271),c=function(){function t(e){this.elementId=e,this.kind=t.KIND}return t.KIND="open",t}();e.OpenAction=c;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.doubleClick=function(t,e){var n=a.findParentByFeature(t,s.isOpenable);return void 0!==n?[new c(n.id)]:[]},e}(i.MouseListener);e.OpenMouseListener=u},9220:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1826),d=n(6530);e.DIAMOND_ANCHOR_KIND="diamond",e.ELLIPTIC_ANCHOR_KIND="elliptic",e.RECTANGULAR_ANCHOR_KIND="rectangular";var l=function(t){function n(e){var n=t.call(this)||this;return e.forEach((function(t){return n.register(t.kind,t)})),n}return r(n,t),Object.defineProperty(n.prototype,"defaultAnchorKind",{get:function(){return e.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),n.prototype.get=function(e,n){return t.prototype.get.call(this,e+":"+(n||this.defaultAnchorKind))},i([c.injectable(),s(0,c.multiInject(u.TYPES.IAnchorComputer)),a("design:paramtypes",[Array])],n)}(d.InstanceRegistry);e.AnchorComputerRegistry=l},6149:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(5329),a=n(3104),s=n(6782),c=n(3289),u=n(9220),d=n(4096),l=new o.ContainerModule((function(t){t(d.EdgeRouterRegistry).toSelf().inSingletonScope(),t(u.AnchorComputerRegistry).toSelf().inSingletonScope(),t(i.ManhattanEdgeRouter).toSelf().inSingletonScope(),t(r.TYPES.IEdgeRouter).toService(i.ManhattanEdgeRouter),t(r.TYPES.IAnchorComputer).to(s.ManhattanEllipticAnchor).inSingletonScope(),t(r.TYPES.IAnchorComputer).to(s.ManhattanRectangularAnchor).inSingletonScope(),t(r.TYPES.IAnchorComputer).to(s.ManhattanDiamondAnchor).inSingletonScope(),t(a.PolylineEdgeRouter).toSelf().inSingletonScope(),t(r.TYPES.IEdgeRouter).toService(a.PolylineEdgeRouter),t(r.TYPES.IAnchorComputer).to(c.EllipseAnchor),t(r.TYPES.IAnchorComputer).to(c.RectangleAnchor),t(r.TYPES.IAnchorComputer).to(c.DiamondAnchor)}));e.default=l},7478:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e1)){var n=this.route(t);if(!(n.length<2)){for(var o=[],r=0,i=0;i1e-8&&c>=s){var d=Math.max(0,s-a)/o[i];return{segmentStart:n[i],segmentEnd:n[i+1],lambda:d}}a=c}return{segmentEnd:n.pop(),segmentStart:n.pop(),lambda:1}}}},t.prototype.addHandle=function(t,e,n,o){var r=new d.SRoutingHandle;return r.kind=e,r.pointIndex=o,r.type=n,"target"===e&&t.id===d.edgeInProgressID&&(r.id=d.edgeInProgressTargetHandleID),t.add(r),r},t.prototype.getHandlePosition=function(t,e,n){switch(n.kind){case"source":return t.source instanceof d.SDanglingAnchor?t.source.position:e[0];case"target":return t.target instanceof d.SDanglingAnchor?t.target.position:e[e.length-1];default:var o=this.getInnerHandlePosition(t,e,n);if(void 0!==o)return o;if(n.pointIndex>=0&&n.pointIndexi(o))&&(o=c),u>n&&(void 0===r||u0&&this.applyInnerHandleMoves(t,n),this.cleanupRoutingPoints(t,t.routingPoints,!0,!0)},t.prototype.cleanupRoutingPoints=function(t,e,n,o){var r=new f(t.source,t.parent,"source"),i=new f(t.target,t.parent,"target");this.resetRoutingPointsOnReconnect(t,e,n,r,i)},t.prototype.resetRoutingPointsOnReconnect=function(t,e,n,o,r){if(0===e.length||t.source instanceof d.SDanglingAnchor||t.target instanceof d.SDanglingAnchor){var a=this.getOptions(t),s=this.calculateDefaultCorners(t,o,r,a);if(e.splice.apply(e,i([0,e.length],s)),n){var c=-2;t.children.forEach((function(n){n instanceof d.SRoutingHandle&&("target"===n.kind?n.pointIndex=e.length:"line"===n.kind&&n.pointIndex>=e.length?t.remove(n):c=Math.max(n.pointIndex,c))}));for(var u=c;u-1&&(t.routingPoints=[],this.cleanupRoutingPoints(t,t.routingPoints,!0,!0)))},t.prototype.takeSnapshot=function(t){return{routingPoints:t.routingPoints.slice(),routingHandles:t.children.filter((function(t){return t instanceof d.SRoutingHandle})).map((function(t){return t})),routedPoints:this.route(t),router:this,source:t.source,target:t.target}},t.prototype.applySnapshot=function(t,e){t.routingPoints=e.routingPoints,t.removeAll((function(t){return t instanceof d.SRoutingHandle})),t.routerKind=e.router.kind,e.routingHandles.forEach((function(e){return t.add(e)})),e.source&&(t.sourceId=e.source.id),e.target&&(t.targetId=e.target.id),t.root.index.remove(t),t.root.index.add(t)},t.prototype.calculateDefaultCorners=function(t,e,n,o){var r=this.getSelfEdgeIndex(t);if(r>=0){var i=o.standardDistance,s=o.selfEdgeOffset*Math.min(e.bounds.width,e.bounds.height);switch(r%4){case 0:return[{x:e.get(a.RIGHT).x+i,y:e.get(a.RIGHT).y+s},{x:e.get(a.RIGHT).x+i,y:e.get(a.BOTTOM).y+i},{x:e.get(a.BOTTOM).x+s,y:e.get(a.BOTTOM).y+i}];case 1:return[{x:e.get(a.BOTTOM).x-s,y:e.get(a.BOTTOM).y+i},{x:e.get(a.LEFT).x-i,y:e.get(a.BOTTOM).y+i},{x:e.get(a.LEFT).x-i,y:e.get(a.LEFT).y+s}];case 2:return[{x:e.get(a.LEFT).x-i,y:e.get(a.LEFT).y-s},{x:e.get(a.LEFT).x-i,y:e.get(a.TOP).y-i},{x:e.get(a.TOP).x-s,y:e.get(a.TOP).y-i}];case 3:return[{x:e.get(a.TOP).x+s,y:e.get(a.TOP).y-i},{x:e.get(a.RIGHT).x+i,y:e.get(a.TOP).y-i},{x:e.get(a.RIGHT).x+i,y:e.get(a.RIGHT).y-s}]}}return[]},t.prototype.getSelfEdgeIndex=function(t){return t.source&&t.source===t.target?t.source.outgoingEdges.filter((function(e){return e.target===t.source})).indexOf(t):-1},o([s.inject(l.AnchorComputerRegistry),r("design:type",l.AnchorComputerRegistry)],t.prototype,"anchorRegistry",void 0),o([s.injectable()],t)}();e.LinearEdgeRouter=h},6782:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(7073),i=n(9220),a=n(5329),s=n(6700),c=function(){function t(){}var e;return e=t,Object.defineProperty(t.prototype,"kind",{get:function(){return e.KIND},enumerable:!0,configurable:!0}),t.prototype.getAnchor=function(t,e,n){var o=t.bounds;if(o.width<=0||o.height<=0)return o;var i={x:o.x-n,y:o.y-n,width:o.width+2*n,height:o.height+2*n};return e.x>=i.x&&i.x+i.width>=e.x?e.y=i.y&&i.y+i.height>=e.y?e.x=i.x&&e.x<=i.x+i.width?i.x+.5*i.width>=e.x?(c=new r.PointToPointLine(e,{x:e.x,y:a.y}),s=e.y=i.y&&e.y<=i.y+i.height&&(i.y+.5*i.height>=e.y?(c=new r.PointToPointLine(e,{x:a.x,y:e.y}),s=e.x=i.x&&i.x+i.width>=e.x){c+=s.x;var d=.5*i.height*Math.sqrt(1-s.x*s.x/(.25*i.width*i.width));s.y<0?u-=d:u+=d}else if(e.y>=i.y&&i.y+i.height>=e.y){u+=s.y;var l=.5*i.width*Math.sqrt(1-s.y*s.y/(.25*i.height*i.height));s.x<0?c-=l:c+=l}return{x:c,y:u}},t.KIND=a.ManhattanEdgeRouter.KIND+":"+i.ELLIPTIC_ANCHOR_KIND,e=o([s.injectable()],t)}();e.ManhattanEllipticAnchor=d},5329:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0){var o=t.routingPoints.slice();if(this.cleanupRoutingPoints(t,o,!1,!0),o.length>0)return o.map((function(t,e){return i({kind:"linear",pointIndex:e},t)}))}var r=this.getOptions(t);return this.calculateDefaultCorners(t,e,n,r).map((function(t){return i({kind:"linear"},t)}))},e.prototype.createRoutingHandles=function(t){var e=this.route(t);if(this.commitRoute(t,e),e.length>0){this.addHandle(t,"source","routing-point",-2);for(var n=0;n0&&Math.abs(n-t[e-1].x)=0&&e0&&Math.abs(n-t[e-1].y)=0&&e=0&&s.includes(i.bounds,e[a]);--a)e.splice(a,1),n&&this.removeHandle(t,a);if(e.length>=2){var u=this.getOptions(t);for(a=e.length-2;a>=0;--a)s.manhattanDistance(e[a],e[a+1])e?--t.pointIndex:t.pointIndex===e&&n.push(t))})),n.forEach((function(e){return t.remove(e)}))},e.prototype.addAdditionalCorner=function(t,e,n,o,r){if(0!==e.length){var i,a="source"===n.kind?e[0]:e[e.length-1],d="source"===n.kind?0:e.length,l=d-("source"===n.kind?1:0);if(e.length>1)i=0===d?s.almostEquals(e[0].x,e[1].x):s.almostEquals(e[e.length-1].x,e[e.length-2].x);else{var p=o.getNearestSide(a);i=p===c.Side.TOP||p===c.Side.BOTTOM}if(i){if(a.yn.get(c.Side.BOTTOM).y){var f={x:n.get(c.Side.TOP).x,y:a.y};e.splice(d,0,f),r&&(t.children.forEach((function(t){t instanceof u.SRoutingHandle&&t.pointIndex>=l&&++t.pointIndex})),this.addHandle(t,"manhattan-50%","volatile-routing-point",l))}}else(a.xn.get(c.Side.RIGHT).x)&&(f={x:a.x,y:n.get(c.Side.LEFT).y},e.splice(d,0,f),r&&(t.children.forEach((function(t){t instanceof u.SRoutingHandle&&t.pointIndex>=l&&++t.pointIndex})),this.addHandle(t,"manhattan-50%","volatile-routing-point",l)))}},e.prototype.manhattanify=function(t,e){for(var n=1;n0)return i;var a=this.getBestConnectionAnchors(e,n,o,r),s=a.source,u=a.target,d=[],l=n.get(s),p=o.get(u);switch(s){case c.Side.RIGHT:switch(u){case c.Side.BOTTOM:case c.Side.TOP:d.push({x:p.x,y:l.y});break;case c.Side.RIGHT:d.push({x:Math.max(l.x,p.x)+1.5*r.standardDistance,y:l.y}),d.push({x:Math.max(l.x,p.x)+1.5*r.standardDistance,y:p.y});break;case c.Side.LEFT:p.y!==l.y&&(d.push({x:(l.x+p.x)/2,y:l.y}),d.push({x:(l.x+p.x)/2,y:p.y}))}break;case c.Side.LEFT:switch(u){case c.Side.BOTTOM:case c.Side.TOP:d.push({x:p.x,y:l.y});break;default:(p=o.get(c.Side.RIGHT)).y!==l.y&&(d.push({x:(l.x+p.x)/2,y:l.y}),d.push({x:(l.x+p.x)/2,y:p.y}))}break;case c.Side.TOP:switch(u){case c.Side.RIGHT:p.x-l.x>0?(d.push({x:l.x,y:l.y-r.standardDistance}),d.push({x:p.x+1.5*r.standardDistance,y:l.y-r.standardDistance}),d.push({x:p.x+1.5*r.standardDistance,y:p.y})):d.push({x:l.x,y:p.y});break;case c.Side.LEFT:p.x-l.x<0?(d.push({x:l.x,y:l.y-r.standardDistance}),d.push({x:p.x-1.5*r.standardDistance,y:l.y-r.standardDistance}),d.push({x:p.x-1.5*r.standardDistance,y:p.y})):d.push({x:l.x,y:p.y});break;case c.Side.TOP:d.push({x:l.x,y:Math.min(l.y,p.y)-1.5*r.standardDistance}),d.push({x:p.x,y:Math.min(l.y,p.y)-1.5*r.standardDistance});break;case c.Side.BOTTOM:p.x!==l.x&&(d.push({x:l.x,y:(l.y+p.y)/2}),d.push({x:p.x,y:(l.y+p.y)/2}))}break;case c.Side.BOTTOM:switch(u){case c.Side.RIGHT:p.x-l.x>0?(d.push({x:l.x,y:l.y+r.standardDistance}),d.push({x:p.x+1.5*r.standardDistance,y:l.y+r.standardDistance}),d.push({x:p.x+1.5*r.standardDistance,y:p.y})):d.push({x:l.x,y:p.y});break;case c.Side.LEFT:p.x-l.x<0?(d.push({x:l.x,y:l.y+r.standardDistance}),d.push({x:p.x-1.5*r.standardDistance,y:l.y+r.standardDistance}),d.push({x:p.x-1.5*r.standardDistance,y:p.y})):d.push({x:l.x,y:p.y});break;default:(p=o.get(c.Side.TOP)).x!==l.x&&(d.push({x:l.x,y:(l.y+p.y)/2}),d.push({x:p.x,y:(l.y+p.y)/2}))}}return d},e.prototype.getBestConnectionAnchors=function(t,e,n,o){var r=e.get(c.Side.RIGHT),i=n.get(c.Side.LEFT);if(i.x-r.x>o.standardDistance)return{source:c.Side.RIGHT,target:c.Side.LEFT};if(r=e.get(c.Side.LEFT),i=n.get(c.Side.RIGHT),r.x-i.x>o.standardDistance)return{source:c.Side.LEFT,target:c.Side.RIGHT};if(r=e.get(c.Side.TOP),i=n.get(c.Side.BOTTOM),r.y-i.y>o.standardDistance)return{source:c.Side.TOP,target:c.Side.BOTTOM};if(r=e.get(c.Side.BOTTOM),(i=n.get(c.Side.TOP)).y-r.y>o.standardDistance)return{source:c.Side.BOTTOM,target:c.Side.TOP};if(r=e.get(c.Side.RIGHT),(i=n.get(c.Side.TOP)).x-r.x>.5*o.standardDistance&&i.y-r.y>o.standardDistance)return{source:c.Side.RIGHT,target:c.Side.TOP};if((i=n.get(c.Side.BOTTOM)).x-r.x>.5*o.standardDistance&&r.y-i.y>o.standardDistance)return{source:c.Side.RIGHT,target:c.Side.BOTTOM};if(r=e.get(c.Side.LEFT),i=n.get(c.Side.BOTTOM),r.x-i.x>.5*o.standardDistance&&r.y-i.y>o.standardDistance)return{source:c.Side.LEFT,target:c.Side.BOTTOM};if(i=n.get(c.Side.TOP),r.x-i.x>.5*o.standardDistance&&i.y-r.y>o.standardDistance)return{source:c.Side.LEFT,target:c.Side.TOP};if(r=e.get(c.Side.TOP),i=n.get(c.Side.RIGHT),r.y-i.y>.5*o.standardDistance&&r.x-i.x>o.standardDistance)return{source:c.Side.TOP,target:c.Side.RIGHT};if(i=n.get(c.Side.LEFT),r.y-i.y>.5*o.standardDistance&&i.x-r.x>o.standardDistance)return{source:c.Side.TOP,target:c.Side.LEFT};if(r=e.get(c.Side.BOTTOM),(i=n.get(c.Side.RIGHT)).y-r.y>.5*o.standardDistance&&r.x-i.x>o.standardDistance)return{source:c.Side.BOTTOM,target:c.Side.RIGHT};if((i=n.get(c.Side.LEFT)).y-r.y>.5*o.standardDistance&&i.x-r.x>o.standardDistance)return{source:c.Side.BOTTOM,target:c.Side.LEFT};if(r=e.get(c.Side.TOP),i=n.get(c.Side.TOP),!s.includes(n.bounds,r)&&!s.includes(e.bounds,i))if(r.y-i.y<0){if(Math.abs(r.x-i.x)>(e.bounds.width+o.standardDistance)/2)return{source:c.Side.TOP,target:c.Side.TOP}}else if(Math.abs(r.x-i.x)>n.bounds.width/2)return{source:c.Side.TOP,target:c.Side.TOP};if(r=e.get(c.Side.RIGHT),i=n.get(c.Side.RIGHT),!s.includes(n.bounds,r)&&!s.includes(e.bounds,i))if(r.x-i.x>0){if(Math.abs(r.y-i.y)>(e.bounds.height+o.standardDistance)/2)return{source:c.Side.RIGHT,target:c.Side.RIGHT}}else if(Math.abs(r.y-i.y)>n.bounds.height/2)return{source:c.Side.RIGHT,target:c.Side.RIGHT};return r=e.get(c.Side.TOP),i=n.get(c.Side.RIGHT),s.includes(n.bounds,r)||s.includes(e.bounds,i)?(i=n.get(c.Side.LEFT),s.includes(n.bounds,r)||s.includes(e.bounds,i)?(r=e.get(c.Side.BOTTOM),i=n.get(c.Side.RIGHT),s.includes(n.bounds,r)||s.includes(e.bounds,i)?(i=n.get(c.Side.LEFT),s.includes(n.bounds,r)||s.includes(e.bounds,i)?{source:c.Side.RIGHT,target:c.Side.BOTTOM}:{source:c.Side.BOTTOM,target:c.Side.LEFT}):{source:c.Side.BOTTOM,target:c.Side.RIGHT}):{source:c.Side.TOP,target:c.Side.LEFT}):{source:c.Side.TOP,target:c.Side.RIGHT}},e.KIND="manhattan",e}(c.LinearEdgeRouter);e.ManhattanEdgeRouter=d},6283:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6771),a=n(7073),s=n(9046),c=n(3344),u=n(1982),d=n(6211),l=n(1026),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.routingPoints=[],e}return r(e,t),Object.defineProperty(e.prototype,"source",{get:function(){return this.index.getById(this.sourceId)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this.index.getById(this.targetId)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.routingPoints.reduce((function(t,e){return a.combine(t,{x:e.x,y:e.y,width:0,height:0})}),a.EMPTY_BOUNDS)},enumerable:!0,configurable:!0}),e}(i.SChildElement);function f(t){for(var e={x:NaN,y:NaN,width:0,height:0},n=0,o=t;ne.x+e.width&&(e.width=r.x-e.x),r.ye.y+e.height&&(e.height=r.y-e.y))}return e}e.SRoutableElement=p,e.connectableFeature=Symbol("connectableFeature"),e.isConnectable=function(t){return t.hasFeature(e.connectableFeature)&&t.canConnect},e.getAbsoluteRouteBounds=function(t,e){void 0===e&&(e=t.routingPoints);for(var n=f(e),o=t;o instanceof i.SChildElement;){var r=o.parent;n=r.localToParent(n),o=r}return n},e.getRouteBounds=f;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.strokeWidth=0,e}return r(e,t),Object.defineProperty(e.prototype,"incomingEdges",{get:function(){return this.index.getIncomingEdges(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outgoingEdges",{get:function(){return this.index.getOutgoingEdges(this)},enumerable:!0,configurable:!0}),e.prototype.canConnect=function(t,e){return!0},e}(s.SShapeElement);e.SConnectableElement=h;var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.editMode=!1,e.hoverFeedback=!1,e.selected=!1,e}return r(e,t),e.prototype.hasFeature=function(t){return-1!==e.DEFAULT_FEATURES.indexOf(t)},e.DEFAULT_FEATURES=[u.selectFeature,l.moveFeature,d.hoverFeedbackFeature],e}(i.SChildElement);e.SRoutingHandle=y;var g=function(t){function e(){var e=t.call(this)||this;return e.type="dangling-anchor",e.size={width:0,height:0},e}return r(e,t),e.DEFAULT_FEATURES=[c.deletableFeature],e}(h);e.SDanglingAnchor=g,e.edgeInProgressID="edge-in-progress",e.edgeInProgressTargetHandleID=e.edgeInProgressID+"-target-anchor"},3289:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(9220),i=n(7073),a=n(6700),s=n(3104),c=function(){function t(){}return Object.defineProperty(t.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+r.ELLIPTIC_ANCHOR_KIND},enumerable:!0,configurable:!0}),t.prototype.getAnchor=function(t,e,n){void 0===n&&(n=0);var o=t.bounds,r=i.center(o),a=r.x-e.x,s=r.y-e.y,c=Math.sqrt(a*a+s*s),u=a/c||0,d=s/c||0;return{x:r.x-u*(.5*o.width+n),y:r.y-d*(.5*o.height+n)}},o([a.injectable()],t)}();e.EllipseAnchor=c;var u=function(){function t(){}return Object.defineProperty(t.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+r.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),t.prototype.getAnchor=function(t,e,n){void 0===n&&(n=0);var o=t.bounds,r=i.center(o),a=new d(r,e);if(!i.almostEquals(r.y,e.y)){var s=this.getXIntersection(o.y,r,e);s>=o.x&&s<=o.x+o.width&&a.addCandidate(s,o.y-n);var c=this.getXIntersection(o.y+o.height,r,e);c>=o.x&&c<=o.x+o.width&&a.addCandidate(c,o.y+o.height+n)}if(!i.almostEquals(r.x,e.x)){var u=this.getYIntersection(o.x,r,e);u>=o.y&&u<=o.y+o.height&&a.addCandidate(o.x-n,u);var l=this.getYIntersection(o.x+o.width,r,e);l>=o.y&&l<=o.y+o.height&&a.addCandidate(o.x+o.width+n,l)}return a.best},t.prototype.getXIntersection=function(t,e,n){var o=(t-e.y)/(n.y-e.y);return(n.x-e.x)*o+e.x},t.prototype.getYIntersection=function(t,e,n){var o=(t-e.x)/(n.x-e.x);return(n.y-e.y)*o+e.y},o([a.injectable()],t)}();e.RectangleAnchor=u;var d=function(){function t(t,e){this.centerPoint=t,this.refPoint=e,this.currentDist=-1}return t.prototype.addCandidate=function(t,e){var n=this.refPoint.x-t,o=this.refPoint.y-e,r=n*n+o*o;(this.currentDist<0||r=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var s=n(6700),c=n(7073),u=n(6283),d=n(9220),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"kind",{get:function(){return n.KIND},enumerable:!0,configurable:!0}),e.prototype.getOptions=function(t){return{minimalPointDistance:2,removeAngleThreshold:.1,standardDistance:20,selfEdgeOffset:.25}},e.prototype.route=function(t){var e,n,o=t.source,r=t.target;if(void 0===o||void 0===r)return[];var i=this.getOptions(t),a=t.routingPoints.length>0?t.routingPoints:[];this.cleanupRoutingPoints(t,a,!1,!1);var s=void 0!==a?a.length:0;if(0===s){var u=c.center(r.bounds);e=this.getTranslatedAnchor(o,u,r.parent,t,t.sourceAnchorCorrection);var d=c.center(o.bounds);n=this.getTranslatedAnchor(r,d,o.parent,t,t.targetAnchorCorrection)}else{var l=a[0];e=this.getTranslatedAnchor(o,l,t.parent,t,t.sourceAnchorCorrection);var p=a[s-1];n=this.getTranslatedAnchor(r,p,t.parent,t,t.targetAnchorCorrection)}var f=[];f.push({kind:"source",x:e.x,y:e.y});for(var h=0;h0&&h=i.minimalPointDistance+(t.sourceAnchorCorrection||0)||h===s-1&&c.maxDistance(y,n)>=i.minimalPointDistance+(t.targetAnchorCorrection||0))&&f.push({kind:"linear",x:y.x,y:y.y,pointIndex:h})}return f.push({kind:"target",x:n.x,y:n.y}),this.filterEditModeHandles(f,t,i)},e.prototype.filterEditModeHandles=function(t,e,n){if(0===e.children.length)return t;for(var o=0,r=function(){var r=t[o];if(void 0!==r.pointIndex){var i=e.children.find((function(t){return t instanceof u.SRoutingHandle&&"junction"===t.kind&&t.pointIndex===r.pointIndex}));if(void 0!==i&&i.editMode&&o>0&&oi)&&t.pointIndex++})),n.addHandle(t,"line","volatile-routing-point",i),n.addHandle(t,"line","volatile-routing-point",i+1),i++),i>=0&&i=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6530),u=n(3104),d=n(6700),l=n(1826),p=function(t){function e(e){var n=t.call(this)||this;return e.forEach((function(t){return n.register(t.kind,t)})),n}return r(e,t),Object.defineProperty(e.prototype,"defaultKind",{get:function(){return u.PolylineEdgeRouter.KIND},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return t.prototype.get.call(this,e||this.defaultKind)},i([d.injectable(),s(0,d.multiInject(l.TYPES.IEdgeRouter)),a("design:paramtypes",[Array])],e)}(c.InstanceRegistry);e.EdgeRouterRegistry=p},2083:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(6700),i=n(6283),a=function(){function t(){}return t.prototype.isVisible=function(t,e,n){if("hidden"===n.targetKind)return!0;if(0===e.length)return!0;var o=i.getAbsoluteRouteBounds(t,e),r=t.root.canvasBounds;return o.x<=r.width&&o.x+o.width>=0&&o.y<=r.height&&o.y+o.height>=0},o([r.injectable()],t)}();e.RoutableView=a},6754:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(9774),a=n(2857),s=new o.ContainerModule((function(t,e,n){a.configureCommand({bind:t,isBound:n},i.SelectCommand),a.configureCommand({bind:t,isBound:n},i.SelectAllCommand),a.configureCommand({bind:t,isBound:n},i.GetSelectionCommand),t(r.TYPES.KeyListener).to(i.SelectKeyboardListener),t(r.TYPES.MouseListener).to(i.SelectMouseListener)}));e.default=s},1982:(t,e)=>{"use strict";function n(t){return t.hasFeature(e.selectFeature)}Object.defineProperty(e,"__esModule",{value:!0}),e.selectFeature=Symbol("selectFeature"),e.isSelectable=n,e.isSelected=function(t){return void 0!==t&&n(t)&&t.selected}},9774:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(152),d=n(1864),l=n(9470),p=n(6771),f=n(8558),h=n(1826),y=n(6004),g=n(6589),v=n(4626),m=n(5824),b=n(9140),_=n(8611),w=n(1842),P=n(2011),S=n(3011),O=n(6283),E=n(6283),x=n(2296),R=n(1982),I=function(){function t(e,n){void 0===e&&(e=[]),void 0===n&&(n=[]),this.selectedElementsIDs=e,this.deselectedElementsIDs=n,this.kind=t.KIND}return t.KIND="elementSelected",t}();e.SelectAction=I;var T=function(){function t(e){void 0===e&&(e=!0),this.select=e,this.kind=t.KIND}return t.KIND="allSelected",t}();e.SelectAllAction=T;var M=function(){function t(e){void 0===e&&(e=""),this.requestId=e,this.kind=t.KIND}return t.create=function(){return new t(u.generateRequestId())},t.KIND="getSelection",t}();e.GetSelectionAction=M;var A=function(){function t(e,n){void 0===e&&(e=[]),this.selectedElementsIDs=e,this.responseId=n,this.kind=t.KIND}return t.KIND="selectionResult",t}();e.SelectionResult=A;var j=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.selected=[],n.deselected=[],n}return r(e,t),e.prototype.execute=function(t){var e=this,n=t.root;return this.action.selectedElementsIDs.forEach((function(t){var o=n.index.getById(t);o instanceof p.SChildElement&&R.isSelectable(o)&&e.selected.push(o)})),this.action.deselectedElementsIDs.forEach((function(t){var o=n.index.getById(t);o instanceof p.SChildElement&&R.isSelectable(o)&&e.deselected.push(o)})),this.redo(t)},e.prototype.undo=function(t){for(var e=0,n=this.selected;e0&&n.push(new S.SwitchEditModeAction([],a))}else n.push(new I([],i.map((function(t){return t.id})))),(a=i.filter((function(t){return t instanceof E.SRoutableElement})).map((function(t){return t.id}))).length>0&&n.push(new S.SwitchEditModeAction([],a))}}return n},e.prototype.mouseMove=function(t,e){return this.hasDragged=!0,[]},e.prototype.mouseUp=function(t,e){if(0===e.button&&!this.hasDragged){var n=f.findParentByFeature(t,R.isSelectable);if(void 0!==n&&this.wasSelected)return[new I([n.id],[])]}return this.hasDragged=!1,[]},e.prototype.decorate=function(t,e){var n=f.findParentByFeature(e,R.isSelectable);return void 0!==n&&v.setClass(t,"selected",n.selected),t},i([c.inject(w.ButtonHandlerRegistry),c.optional(),a("design:type",w.ButtonHandlerRegistry)],e.prototype,"buttonHandlerRegistry",void 0),e}(g.MouseListener);e.SelectMouseListener=D;var N=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.previousSelection={},n}return r(e,t),e.prototype.retrieveResult=function(t){var e=t.root.index.all().filter((function(t){return R.isSelectable(t)&&t.selected})).map((function(t){return t.id}));return new A(b.toArray(e),this.action.requestId)},e.KIND=M.KIND,i([c.injectable(),s(0,c.inject(h.TYPES.Action)),a("design:paramtypes",[M])],e)}(l.ModelRequestCommand);e.GetSelectionCommand=N;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.keyDown=function(t,e){return _.matchesKeystroke(e,"KeyA","ctrlCmd")?[new T]:[]},e}(y.KeyListener);e.SelectKeyboardListener=L},2752:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(6404),a=new o.ContainerModule((function(t){t(r.TYPES.KeyListener).to(i.UndoRedoKeyListener)}));e.default=a},6404:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(8611),a=n(6004),s=function(){function t(){this.kind=t.KIND}return t.KIND="undo",t}();e.UndoAction=s;var c=function(){function t(){this.kind=t.KIND}return t.KIND="redo",t}();e.RedoAction=c;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.keyDown=function(t,e){return i.matchesKeystroke(e,"KeyZ","ctrlCmd")?[new s]:i.matchesKeystroke(e,"KeyZ","ctrlCmd","shift")?[new c]:[]},e}(a.KeyListener);e.UndoRedoKeyListener=u},7799:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(2857),i=n(1994),a=new o.ContainerModule((function(t,e,n){r.configureCommand({bind:t,isBound:n},i.UpdateModelCommand)}));e.default=a},8843:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6771);e.forEachMatch=function(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])};var r=function(){function t(){}return t.prototype.match=function(t,e){var n={};return this.matchLeft(t,n),this.matchRight(e,n),n},t.prototype.matchLeft=function(t,e,n){var r=e[t.id];if(void 0!==r?(r.left=t,r.leftParentId=n):(r={left:t,leftParentId:n},e[t.id]=r),o.isParent(t))for(var i=0,a=t.children;i=0&&(void 0!==a.right&&a.leftParentId===a.rightParentId?(c.children.splice(u,1,a.right),s=!0):c.children.splice(u,1)),n.remove(a.left)}}if(!s&&void 0!==a.right&&void 0!==a.rightParentId){var d=n.getById(a.rightParentId);void 0!==d&&(void 0===d.children&&(d.children=[]),d.children.push(a.right))}}}},1994:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(7073),d=n(6692),l=n(1864),p=n(3906),f=n(6771),h=n(3249),y=n(6793),g=n(1026),v=n(9046),m=n(7466),b=n(1982),_=n(8843),w=n(7138),P=n(1826),S=n(7740),O=n(4096),E=n(6283),x=function(){function t(e,n,o){void 0===n&&(n=!0),this.animate=n,this.cause=o,this.kind=t.KIND,void 0!==e.id?this.newRoot=e:this.matches=e}return t.KIND="updateModel",t}();e.UpdateModelAction=x;var R=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){var e;return void 0!==this.action.newRoot?e=t.modelFactory.createRoot(this.action.newRoot):(e=t.modelFactory.createRoot(t.root),void 0!==this.action.matches&&this.applyMatches(e,this.action.matches,t)),this.oldRoot=t.root,this.newRoot=e,this.performUpdate(this.oldRoot,this.newRoot,t)},e.prototype.performUpdate=function(t,e,n){if(void 0!==this.action.animate&&!this.action.animate||t.id!==e.id)return t.type===e.type&&u.isValidDimension(t.canvasBounds)&&(e.canvasBounds=t.canvasBounds),S.isViewport(t)&&S.isViewport(e)&&(e.zoom=t.zoom,e.scroll=t.scroll),e;var o;o=void 0===this.action.matches?(new _.ModelMatcher).match(t,e):this.convertToMatchResult(this.action.matches,t,e);var r=this.computeAnimation(e,o,n);return r instanceof d.Animation?r.start():r},e.prototype.applyMatches=function(t,e,n){for(var o=t.index,r=0,i=e;r=2?new d.CompoundAnimation(t,n,i):1===i.length?i[0]:t},e.prototype.updateElement=function(t,e,n){if(g.isLocateable(t)&&g.isLocateable(e)){var o=t.position,r=e.position;u.almostEquals(o.x,r.x)&&u.almostEquals(o.y,r.y)||(void 0===n.moves&&(n.moves=[]),n.moves.push({element:e,fromPosition:o,toPosition:r}),e.position=o)}v.isSizeable(t)&&v.isSizeable(e)&&(u.isValidDimension(e.bounds)?u.almostEquals(t.bounds.width,e.bounds.width)&&u.almostEquals(t.bounds.height,e.bounds.height)||(void 0===n.resizes&&(n.resizes=[]),n.resizes.push({element:e,fromDimension:{width:t.bounds.width,height:t.bounds.height},toDimension:{width:e.bounds.width,height:e.bounds.height}})):e.bounds={x:e.bounds.x,y:e.bounds.y,width:t.bounds.width,height:t.bounds.height}),t instanceof E.SRoutableElement&&e instanceof E.SRoutableElement&&this.edgeRouterRegistry&&(void 0===n.edgeMementi&&(n.edgeMementi=[]),n.edgeMementi.push({edge:e,before:this.takeSnapshot(t),after:this.takeSnapshot(e)})),b.isSelectable(t)&&b.isSelectable(e)&&(e.selected=t.selected),t instanceof f.SModelRoot&&e instanceof f.SModelRoot&&(e.canvasBounds=t.canvasBounds),t instanceof m.ViewportRootElement&&e instanceof m.ViewportRootElement&&(e.scroll=t.scroll,e.zoom=t.zoom)},e.prototype.takeSnapshot=function(t){return this.edgeRouterRegistry.get(t.routerKind).takeSnapshot(t)},e.prototype.createAnimations=function(t,e,n){var o=[];if(t.fades.length>0&&o.push(new p.FadeAnimation(e,t.fades,n,!0)),void 0!==t.moves&&t.moves.length>0){for(var r=new Map,i=0,a=t.moves;i0){for(var c=new Map,u=0,d=t.resizes;u0&&o.push(new h.MorphEdgesAnimation(e,t.edgeMementi,n,!1)),o},e.prototype.undo=function(t){return this.performUpdate(this.newRoot,this.oldRoot,t)},e.prototype.redo=function(t){return this.performUpdate(this.oldRoot,this.newRoot,t)},e.KIND=x.KIND,i([c.inject(O.EdgeRouterRegistry),c.optional(),a("design:type",O.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),i([c.injectable(),s(0,c.inject(P.TYPES.Action)),a("design:paramtypes",[x])],e)}(l.Command);e.UpdateModelCommand=R},7872:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(7073),u=n(8611),d=n(6771),l=n(1864),p=n(6004),f=n(9046),h=n(1982),y=n(7053),g=n(7740),v=n(6700),m=n(1826),b=function(){function t(e,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1),this.elementIds=e,this.animate=n,this.retainZoom=o,this.kind=t.KIND}return t.KIND="center",t}();e.CenterAction=b;var _=function(){function t(e,n,o,r){void 0===r&&(r=!0),this.elementIds=e,this.padding=n,this.maxZoom=o,this.animate=r,this.kind=t.KIND}return t.KIND="fit",t}();e.FitToScreenAction=_;var w=function(t){function e(e){var n=t.call(this)||this;return n.animate=e,n}return r(e,t),e.prototype.initialize=function(t){var e=this;if(g.isViewport(t)){this.oldViewport={scroll:t.scroll,zoom:t.zoom};var n=[];if(this.getElementIds().forEach((function(o){var r=t.index.getById(o);r&&f.isBoundsAware(r)&&n.push(e.boundsInViewport(r,r.bounds,t))})),0===n.length&&t.index.all().forEach((function(o){h.isSelectable(o)&&o.selected&&f.isBoundsAware(o)&&n.push(e.boundsInViewport(o,o.bounds,t))})),0===n.length&&t.index.all().forEach((function(o){f.isBoundsAware(o)&&n.push(e.boundsInViewport(o,o.bounds,t))})),0!==n.length){var o=n.reduce((function(t,e){return c.combine(t,e)}));c.isValidDimension(o)&&(this.newViewport=this.getNewViewport(o,t))}}},e.prototype.boundsInViewport=function(t,e,n){return t instanceof d.SChildElement&&t.parent!==n?this.boundsInViewport(t.parent,t.parent.localToParent(e),n):e},e.prototype.execute=function(t){return this.initialize(t.root),this.redo(t)},e.prototype.undo=function(t){var e=t.root;if(g.isViewport(e)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new y.ViewportAnimation(e,this.newViewport,this.oldViewport,t).start();e.scroll=this.oldViewport.scroll,e.zoom=this.oldViewport.zoom}return e},e.prototype.redo=function(t){var e=t.root;if(g.isViewport(e)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new y.ViewportAnimation(e,this.oldViewport,this.newViewport,t).start();e.scroll=this.newViewport.scroll,e.zoom=this.newViewport.zoom}return e},e.prototype.equal=function(t,e){return t.zoom===e.zoom&&t.scroll.x===e.scroll.x&&t.scroll.y===e.scroll.y},i([v.injectable(),a("design:paramtypes",[Boolean])],e)}(l.Command);e.BoundsAwareViewportCommand=w;var P=function(t){function e(e){var n=t.call(this,e.animate)||this;return n.action=e,n}return r(e,t),e.prototype.getElementIds=function(){return this.action.elementIds},e.prototype.getNewViewport=function(t,e){if(c.isValidDimension(e.canvasBounds)){var n=this.action.retainZoom&&g.isViewport(e)?e.zoom:1,o=c.center(t);return{scroll:{x:o.x-.5*e.canvasBounds.width/n,y:o.y-.5*e.canvasBounds.height/n},zoom:n}}},e.KIND=b.KIND,i([s(0,v.inject(m.TYPES.Action)),a("design:paramtypes",[b])],e)}(w);e.CenterCommand=P;var S=function(t){function e(e){var n=t.call(this,e.animate)||this;return n.action=e,n}return r(e,t),e.prototype.getElementIds=function(){return this.action.elementIds},e.prototype.getNewViewport=function(t,e){if(c.isValidDimension(e.canvasBounds)){var n=c.center(t),o=void 0===this.action.padding?0:2*this.action.padding,r=Math.min(e.canvasBounds.width/(t.width+o),e.canvasBounds.height/(t.height+o));return void 0!==this.action.maxZoom&&(r=Math.min(r,this.action.maxZoom)),r===1/0&&(r=1),{scroll:{x:n.x-.5*e.canvasBounds.width/r,y:n.y-.5*e.canvasBounds.height/r},zoom:r}}},e.KIND=_.KIND,i([s(0,v.inject(m.TYPES.Action)),a("design:paramtypes",[_])],e)}(w);e.FitToScreenCommand=S;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.keyDown=function(t,e){return u.matchesKeystroke(e,"KeyC","ctrlCmd","shift")?[new b([])]:u.matchesKeystroke(e,"KeyF","ctrlCmd","shift")?[new _([])]:[]},e}(p.KeyListener);e.CenterKeyboardListener=O},8331:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(7872),a=n(7053),s=n(9881),c=n(4678),u=n(2857),d=new o.ContainerModule((function(t,e,n){u.configureCommand({bind:t,isBound:n},i.CenterCommand),u.configureCommand({bind:t,isBound:n},i.FitToScreenCommand),u.configureCommand({bind:t,isBound:n},a.SetViewportCommand),u.configureCommand({bind:t,isBound:n},a.GetViewportCommand),t(r.TYPES.KeyListener).to(i.CenterKeyboardListener),t(r.TYPES.MouseListener).to(s.ScrollMouseListener),t(r.TYPES.MouseListener).to(c.ZoomMouseListener)}));e.default=d},7740:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6771);e.viewportFeature=Symbol("viewportFeature"),e.isViewport=function(t){return t instanceof o.SModelRoot&&t.hasFeature(e.viewportFeature)&&"zoom"in t&&"scroll"in t}},9881:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6771),a=n(6589),s=n(8558),c=n(7053),u=n(7740),d=n(1026),l=n(6283);e.isScrollable=function(t){return"scroll"in t};var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.mouseDown=function(t,e){if(void 0===s.findParentByFeature(t,d.isMoveable)&&!(t instanceof l.SRoutingHandle)){var n=s.findParentByFeature(t,u.isViewport);this.lastScrollPosition=n?{x:e.pageX,y:e.pageY}:void 0}return[]},e.prototype.mouseMove=function(t,e){if(0===e.buttons)this.mouseUp(t,e);else if(this.lastScrollPosition){var n=s.findParentByFeature(t,u.isViewport);if(n){var o=(e.pageX-this.lastScrollPosition.x)/n.zoom,r=(e.pageY-this.lastScrollPosition.y)/n.zoom,i={scroll:{x:n.scroll.x-o,y:n.scroll.y-r},zoom:n.zoom};return this.lastScrollPosition={x:e.pageX,y:e.pageY},[new c.SetViewportAction(n.id,i,!1)]}}return[]},e.prototype.mouseEnter=function(t,e){return t instanceof i.SModelRoot&&0===e.buttons&&this.mouseUp(t,e),[]},e.prototype.mouseUp=function(t,e){return this.lastScrollPosition=void 0,[]},e}(a.MouseListener);e.ScrollMouseListener=p},7466:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(7073),a=n(6771),s=n(7740),c=n(4965),u=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll={x:0,y:0},n.zoom=1,n}return r(e,t),e.prototype.localToParent=function(t){var e={x:(t.x-this.scroll.x)*this.zoom,y:(t.y-this.scroll.y)*this.zoom,width:-1,height:-1};return i.isBounds(t)&&(e.width=t.width*this.zoom,e.height=t.height*this.zoom),e},e.prototype.parentToLocal=function(t){var e={x:t.x/this.zoom+this.scroll.x,y:t.y/this.zoom+this.scroll.y,width:-1,height:-1};return i.isBounds(t)&&i.isValidDimension(t)&&(e.width=t.width/this.zoom,e.height=t.height/this.zoom),e},e.DEFAULT_FEATURES=[s.viewportFeature,c.exportFeature],e}(a.SModelRoot);e.ViewportRootElement=u},7053:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(7073),u=n(152),d=n(1864),l=n(6692),p=n(7740),f=n(6700),h=n(1826),y=n(9470),g=function(){function t(e,n,o){this.elementId=e,this.newViewport=n,this.animate=o,this.kind=t.KIND}return t.KIND="viewport",t}();e.SetViewportAction=g;var v=function(){function t(e){void 0===e&&(e=""),this.requestId=e,this.kind=t.KIND}return t.create=function(){return new t(u.generateRequestId())},t.KIND="getViewport",t}();e.GetViewportAction=v;var m=function(){function t(e,n,o){this.viewport=e,this.canvasBounds=n,this.responseId=o,this.kind=t.KIND}return t.KIND="viewportResult",t}();e.ViewportResult=m;var b=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.newViewport=e.newViewport,n}var n;return r(e,t),n=e,e.prototype.execute=function(t){var e=t.root,n=e.index.getById(this.action.elementId);if(n&&p.isViewport(n)){if(this.element=n,this.oldViewport={scroll:this.element.scroll,zoom:this.element.zoom},this.action.animate)return new w(this.element,this.oldViewport,this.newViewport,t).start();this.element.scroll=this.newViewport.scroll,this.element.zoom=this.newViewport.zoom}return e},e.prototype.undo=function(t){return new w(this.element,this.newViewport,this.oldViewport,t).start()},e.prototype.redo=function(t){return new w(this.element,this.oldViewport,this.newViewport,t).start()},e.prototype.merge=function(t,e){return!this.action.animate&&t instanceof n&&this.element===t.element&&(this.newViewport=t.newViewport,!0)},e.KIND=g.KIND,n=i([f.injectable(),s(0,f.inject(h.TYPES.Action)),a("design:paramtypes",[g])],e)}(d.MergeableCommand);e.SetViewportCommand=b;var _=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.retrieveResult=function(t){var e,n=t.root;return e=p.isViewport(n)?{scroll:n.scroll,zoom:n.zoom}:{scroll:c.ORIGIN_POINT,zoom:1},new m(e,n.canvasBounds,this.action.requestId)},e.KIND=v.KIND,i([s(0,f.inject(h.TYPES.Action)),a("design:paramtypes",[v])],e)}(y.ModelRequestCommand);e.GetViewportCommand=_;var w=function(t){function e(e,n,o,r){var i=t.call(this,r)||this;return i.element=e,i.oldViewport=n,i.newViewport=o,i.context=r,i.zoomFactor=Math.log(o.zoom/n.zoom),i}return r(e,t),e.prototype.tween=function(t,e){return this.element.scroll={x:(1-t)*this.oldViewport.scroll.x+t*this.newViewport.scroll.x,y:(1-t)*this.oldViewport.scroll.y+t*this.newViewport.scroll.y},this.element.zoom=this.oldViewport.zoom*Math.exp(t*this.zoomFactor),e.root},e}(l.Animation);e.ViewportAnimation=w},4678:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(5824),a=n(6589),s=n(8558),c=n(7053),u=n(7740);e.isZoomable=function(t){return"zoom"in t},e.getZoom=function(t){var e=1,n=s.findParentByFeature(t,u.isViewport);return n&&(e=n.zoom),e};var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.wheel=function(t,e){var n=s.findParentByFeature(t,u.isViewport);if(n){var o=this.getZoomFactor(e),r=this.getViewportOffset(t.root,e),i=1/(o*n.zoom)-1/n.zoom,a={scroll:{x:n.scroll.x-i*r.x,y:n.scroll.y-i*r.y},zoom:n.zoom*o};return[new c.SetViewportAction(n.id,a,!1)]}return[]},e.prototype.getViewportOffset=function(t,e){var n=t.canvasBounds,o=i.getWindowScroll();return{x:e.clientX+o.x-n.x,y:e.clientY+o.y-n.y}},e.prototype.getZoomFactor=function(t){return t.deltaMode===t.DOM_DELTA_PAGE?Math.exp(.5*-t.deltaY):t.deltaMode===t.DOM_DELTA_LINE?Math.exp(.05*-t.deltaY):Math.exp(.005*-t.deltaY)},e}(a.MouseListener);e.ZoomMouseListener=d},140:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(2857),i=n(2296),a=new o.ContainerModule((function(t,e,n){r.configureCommand({bind:t,isBound:n},i.BringToFrontCommand)}));e.default=a},2296:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1826),d=n(6771),l=n(1864),p=n(6283),f=function(){function t(e){this.elementIDs=e,this.kind=t.KIND}return t.KIND="bringToFront",t}();e.BringToFrontAction=f;var h=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n.selected=[],n}return r(e,t),e.prototype.execute=function(t){var e=this,n=t.root;return this.action.elementIDs.forEach((function(t){var o=n.index.getById(t);o instanceof p.SRoutableElement&&(o.source&&e.addToSelection(o.source),o.target&&e.addToSelection(o.target)),o instanceof d.SChildElement&&e.addToSelection(o),e.includeConnectedEdges(o)})),this.redo(t)},e.prototype.includeConnectedEdges=function(t){var e=this;if(t instanceof p.SConnectableElement&&(t.incomingEdges.forEach((function(t){return e.addToSelection(t)})),t.outgoingEdges.forEach((function(t){return e.addToSelection(t)}))),t instanceof d.SParentElement)for(var n=0,o=t.children;n=0;e--){var n=this.selected[e],o=n.element;o.parent.move(o,n.index)}return t.root},e.prototype.redo=function(t){for(var e=0;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(1826),i=n(7960),a=new o.ContainerModule((function(t,e,n,o){o(r.TYPES.IModelFactory).to(i.SGraphFactory).inSingletonScope()}));e.default=a},7960:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(1194),c=n(6771),u=n(8558),d=n(6054),l=n(2011),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultGraphFeatures=s.createFeatureSet(d.SGraph.DEFAULT_FEATURES),e.defaultNodeFeatures=s.createFeatureSet(d.SNode.DEFAULT_FEATURES),e.defaultPortFeatures=s.createFeatureSet(d.SPort.DEFAULT_FEATURES),e.defaultEdgeFeatures=s.createFeatureSet(d.SEdge.DEFAULT_FEATURES),e.defaultLabelFeatures=s.createFeatureSet(d.SLabel.DEFAULT_FEATURES),e.defaultCompartmentFeatures=s.createFeatureSet(d.SCompartment.DEFAULT_FEATURES),e.defaultButtonFeatures=s.createFeatureSet(l.SButton.DEFAULT_FEATURES),e}return r(e,t),e.prototype.createElement=function(t,e){var n;if(this.registry.hasKey(t.type)){var o=this.registry.get(t.type,void 0);if(!(o instanceof c.SChildElement))throw new Error("Element with type "+t.type+" was expected to be an SChildElement.");n=o}else this.isNodeSchema(t)?(n=new d.SNode).features=this.defaultNodeFeatures:this.isPortSchema(t)?(n=new d.SPort).features=this.defaultPortFeatures:this.isEdgeSchema(t)?(n=new d.SEdge).features=this.defaultEdgeFeatures:this.isLabelSchema(t)?(n=new d.SLabel).features=this.defaultLabelFeatures:this.isCompartmentSchema(t)?(n=new d.SCompartment).features=this.defaultCompartmentFeatures:this.isButtonSchema(t)?(n=new l.SButton).features=this.defaultButtonFeatures:n=new c.SChildElement;return this.initializeChild(n,t,e)},e.prototype.createRoot=function(t){var e;if(this.registry.hasKey(t.type)){var n=this.registry.get(t.type,void 0);if(!(n instanceof c.SModelRoot))throw new Error("Element with type "+t.type+" was expected to be an SModelRoot.");e=n}else this.isGraphSchema(t)?(e=new d.SGraph).features=this.defaultGraphFeatures:e=new c.SModelRoot;return this.initializeRoot(e,t)},e.prototype.isGraphSchema=function(t){return"graph"===u.getBasicType(t)},e.prototype.isNodeSchema=function(t){return"node"===u.getBasicType(t)},e.prototype.isPortSchema=function(t){return"port"===u.getBasicType(t)},e.prototype.isEdgeSchema=function(t){return"edge"===u.getBasicType(t)},e.prototype.isLabelSchema=function(t){return"label"===u.getBasicType(t)},e.prototype.isCompartmentSchema=function(t){return"comp"===u.getBasicType(t)},e.prototype.isButtonSchema=function(t){return"button"===u.getBasicType(t)},i([a.injectable()],e)}(s.SModelFactory);e.SGraphFactory=p},6054:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6771),a=n(9046),s=n(8971),c=n(3344),u=n(4446),d=n(6793),l=n(6211),p=n(1026),f=n(6283),h=n(1982),y=n(7466),g=n(7073),v=n(9140),m=function(t){function e(e){return void 0===e&&(e=new O),t.call(this,e)||this}return r(e,t),e}(y.ViewportRootElement);e.SGraph=m;var b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.selected=!1,e.hoverFeedback=!1,e.opacity=1,e}return r(e,t),e.prototype.canConnect=function(t,e){return void 0===this.children.find((function(t){return t instanceof _}))},e.DEFAULT_FEATURES=[f.connectableFeature,c.deletableFeature,h.selectFeature,a.boundsFeature,p.moveFeature,a.layoutContainerFeature,d.fadeFeature,l.hoverFeedbackFeature,l.popupFeature],e}(f.SConnectableElement);e.SNode=b;var _=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.selected=!1,e.hoverFeedback=!1,e.opacity=1,e}return r(e,t),e.DEFAULT_FEATURES=[f.connectableFeature,h.selectFeature,a.boundsFeature,d.fadeFeature,l.hoverFeedbackFeature],e}(f.SConnectableElement);e.SPort=_;var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.selected=!1,e.hoverFeedback=!1,e.opacity=1,e}return r(e,t),e.DEFAULT_FEATURES=[u.editFeature,c.deletableFeature,h.selectFeature,d.fadeFeature,l.hoverFeedbackFeature],e}(f.SRoutableElement);e.SEdge=w;var P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.selected=!1,e.alignment=g.ORIGIN_POINT,e.opacity=1,e}return r(e,t),e.DEFAULT_FEATURES=[a.boundsFeature,a.alignFeature,a.layoutableChildFeature,s.edgeLayoutFeature,d.fadeFeature],e}(a.SShapeElement);e.SLabel=P;var S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.opacity=1,e}return r(e,t),e.DEFAULT_FEATURES=[a.boundsFeature,a.layoutContainerFeature,a.layoutableChildFeature,d.fadeFeature],e}(a.SShapeElement);e.SCompartment=S;var O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.outgoing=new Map,e.incoming=new Map,e}return r(e,t),e.prototype.add=function(e){if(t.prototype.add.call(this,e),e instanceof w){if(e.sourceId){var n=this.outgoing.get(e.sourceId);void 0===n?this.outgoing.set(e.sourceId,[e]):n.push(e)}if(e.targetId){var o=this.incoming.get(e.targetId);void 0===o?this.incoming.set(e.targetId,[e]):o.push(e)}}},e.prototype.remove=function(e){if(t.prototype.remove.call(this,e),e instanceof w){var n=this.outgoing.get(e.sourceId);void 0!==n&&(o=n.indexOf(e))>=0&&(1===n.length?this.outgoing.delete(e.sourceId):n.splice(o,1));var o,r=this.incoming.get(e.targetId);void 0!==r&&(o=r.indexOf(e))>=0&&(1===r.length?this.incoming.delete(e.targetId):r.splice(o,1))}},e.prototype.getAttachedElements=function(t){var e=this;return new v.FluentIterableImpl((function(){return{outgoing:e.outgoing.get(t.id),incoming:e.incoming.get(t.id),nextOutgoingIndex:0,nextIncomingIndex:0}}),(function(t){var e=t.nextOutgoingIndex;if(void 0!==t.outgoing&&e=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var s=n(6700),c=n(2388),u=n(8558),d=n(4626),l=n(2842),p=n(8971),f=n(6283),h=n(4096),y=n(2083),g=function(){function t(){}return t.prototype.render=function(t,e){var n="scale("+t.zoom+") translate("+-t.scroll.x+","+-t.scroll.y+")";return c.svg("svg",{"class-sprotty-graph":!0},c.svg("g",{transform:n},e.renderChildren(t)))},i([s.injectable()],t)}();e.SGraphView=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(t,e){var n=this.edgeRouterRegistry.get(t.routerKind).route(t);if(0===n.length)return this.renderDanglingEdge("Cannot compute route",t,e);if(!this.isVisible(t,n,e)){if(0===t.children.length)return;return c.svg("g",null,e.renderChildren(t,{route:n}))}return c.svg("g",{"class-sprotty-edge":!0,"class-mouseover":t.hoverFeedback},this.renderLine(t,n,e),this.renderAdditionals(t,n,e),e.renderChildren(t,{route:n}))},e.prototype.renderLine=function(t,e,n){for(var o=e[0],r="M "+o.x+","+o.y,i=1;i{"use strict";function o(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),o(n(152)),o(n(1977)),o(n(6529)),o(n(3083)),o(n(1198)),o(n(6692)),o(n(4370)),o(n(1864)),o(n(2857)),o(n(6990)),o(n(7901)),o(n(5917)),o(n(2125)),o(n(1194)),o(n(8558)),o(n(6771)),o(n(9888)),o(n(3075)),o(n(8842)),o(n(3999)),o(n(6004)),o(n(6589)),o(n(1677)),o(n(6708)),o(n(6265)),o(n(2233)),o(n(9600)),o(n(5055)),o(n(4626)),o(n(1826));var r=n(2635);e.defaultModule=r.default,o(n(1403)),o(n(2463)),o(n(1771)),o(n(9046)),o(n(594)),o(n(7015)),o(n(7987)),o(n(2842)),o(n(1842)),o(n(2011)),o(n(8681)),o(n(2019)),o(n(187)),o(n(2200)),o(n(7854)),o(n(1661)),o(n(1022)),o(n(8971)),o(n(3235)),o(n(6077)),o(n(2110)),o(n(3344)),o(n(5149)),o(n(2628)),o(n(3011)),o(n(4446)),o(n(9142)),o(n(6609)),o(n(9391)),o(n(8948)),o(n(33)),o(n(4965)),o(n(4350)),o(n(3906)),o(n(6793)),o(n(8099)),o(n(6211)),o(n(9294)),o(n(2380)),o(n(5714)),o(n(1026)),o(n(3249)),o(n(1528)),o(n(5989)),o(n(6777)),o(n(1271)),o(n(9220)),o(n(7478)),o(n(6782)),o(n(5329)),o(n(6283)),o(n(3289)),o(n(3104)),o(n(4096)),o(n(2083)),o(n(1982)),o(n(9774)),o(n(6404)),o(n(8843)),o(n(1994)),o(n(7872)),o(n(7740)),o(n(9881)),o(n(7466)),o(n(7053)),o(n(4678)),o(n(2296));var i=n(6499);e.graphModule=i.default;var a=n(4760);e.boundsModule=a.default;var s=n(1992);e.buttonModule=s.default;var c=n(5408);e.commandPaletteModule=c.default;var u=n(2783);e.contextMenuModule=u.default;var d=n(2849);e.decorationModule=d.default;var l=n(1661);e.edgeLayoutModule=l.default;var p=n(443);e.expandModule=p.default;var f=n(5853);e.exportModule=f.default;var h=n(965);e.fadeModule=h.default;var y=n(7999);e.hoverModule=y.default;var g=n(3610);e.moveModule=g.default;var v=n(8997);e.openModule=v.default;var m=n(6149);e.routingModule=m.default;var b=n(6754);e.selectModule=b.default;var _=n(2752);e.undoRedoModule=_.default;var w=n(7799);e.updateModule=w.default;var P=n(8331);e.viewportModule=P.default;var S=n(140);e.zorderModule=S.default,o(n(7960)),o(n(6054)),o(n(610)),o(n(5364)),o(n(365)),o(n(1228)),o(n(6992)),o(n(9779)),o(n(3280)),o(n(7137)),o(n(2633)),o(n(2840)),o(n(3452)),o(n(3101));var O=n(1706);e.modelSourceModule=O.default,o(n(5824)),o(n(6401)),o(n(7073)),o(n(3392)),o(n(8049)),o(n(6530))},365:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(2388),c=n(6345),u=n(4626),d=n(2842),l=n(6992),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(t,e){if(!(t instanceof l.ShapedPreRenderedElement)||this.isVisible(t,e)){var n=c.default(t.code);return this.correctNamespace(n),n}},e.prototype.correctNamespace=function(t){"svg"!==t.sel&&"g"!==t.sel||u.setNamespace(t,"http://www.w3.org/2000/svg")},i([a.injectable()],e)}(d.ShapeView);e.PreRenderedView=p;var f=function(){function t(){}return t.prototype.render=function(t,e){var n=c.default(t.code),o=s.svg("g",null,s.svg("foreignObject",{requiredFeatures:"http://www.w3.org/TR/SVG11/feature#Extensibility",height:t.bounds.height,width:t.bounds.width,x:0,y:0},n),e.renderChildren(t));return u.setAttr(o,"class",t.type),u.setNamespace(n,t.namespace),o},i([a.injectable()],t)}();e.ForeignObjectView=f},1228:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(2388),i=n(4626),a=n(6700),s=function(){function t(){}return t.prototype.render=function(t,e){for(var n=r.html("div",null,e.renderChildren(t)),o=0,a=t.classes;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2635),r=n(1706),i=n(4760),a=n(1992),s=n(5408),c=n(2783),u=n(2849),d=n(1661),l=n(2110),p=n(443),f=n(5853),h=n(965),y=n(7999),g=n(3610),v=n(8997),m=n(6149),b=n(6754),_=n(2752),w=n(7799),P=n(8331),S=n(140);e.loadDefaultModules=function(t,e){var n=[o.default,r.default,i.default,a.default,s.default,c.default,u.default,l.edgeEditModule,d.default,p.default,f.default,h.default,y.default,l.labelEditModule,l.labelEditUiModule,g.default,v.default,m.default,b.default,_.default,w.default,P.default,S.default];if(e&&e.exclude)for(var O=0,E=e.exclude;O=0&&n.splice(R,1)}t.load.apply(t,n)}},9779:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var a=n(2388),s=n(6054),c=n(2842),u=n(7073),d=n(6700),l=function(){function t(){}return t.prototype.render=function(t,e){var n="scale("+t.zoom+") translate("+-t.scroll.x+","+-t.scroll.y+")";return a.svg("svg",null,a.svg("g",{transform:n},e.renderChildren(t)))},i([d.injectable()],t)}();e.SvgViewportView=l;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(t,e){if(this.isVisible(t,e)){var n=this.getRadius(t);return a.svg("g",null,a.svg("circle",{"class-sprotty-node":t instanceof s.SNode,"class-sprotty-port":t instanceof s.SPort,"class-mouseover":t.hoverFeedback,"class-selected":t.selected,r:n,cx:n,cy:n}),e.renderChildren(t))}},e.prototype.getRadius=function(t){var e=Math.min(t.size.width,t.size.height);return e>0?e/2:0},i([d.injectable()],e)}(c.ShapeView);e.CircularNodeView=p;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(t,e){if(this.isVisible(t,e))return a.svg("g",null,a.svg("rect",{"class-sprotty-node":t instanceof s.SNode,"class-sprotty-port":t instanceof s.SPort,"class-mouseover":t.hoverFeedback,"class-selected":t.selected,x:"0",y:"0",width:Math.max(t.size.width,0),height:Math.max(t.size.height,0)}),e.renderChildren(t))},i([d.injectable()],e)}(c.ShapeView);e.RectangularNodeView=f;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(t,e){if(this.isVisible(t,e)){var n=new u.Diamond({height:Math.max(t.size.height,0),width:Math.max(t.size.width,0),x:0,y:0}),o=y(n.topPoint)+" "+y(n.rightPoint)+" "+y(n.bottomPoint)+" "+y(n.leftPoint);return a.svg("g",null,a.svg("polygon",{"class-sprotty-node":t instanceof s.SNode,"class-sprotty-port":t instanceof s.SPort,"class-mouseover":t.hoverFeedback,"class-selected":t.selected,points:o}),e.renderChildren(t))}},i([d.injectable()],e)}(c.ShapeView);function y(t){return t.x+","+t.y}e.DiamondNodeView=h;var g=function(){function t(){}return t.prototype.render=function(t,e){return a.svg("g",null)},i([d.injectable()],t)}();e.EmptyGroupView=g},3280:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(6700),u=n(1864),d=n(1826),l=n(3452),p=function(){this.kind=f.KIND};e.CommitModelAction=p;var f=function(t){function e(e){var n=t.call(this)||this;return n.action=e,n}return r(e,t),e.prototype.execute=function(t){return this.newModel=t.modelFactory.createSchema(t.root),this.doCommit(this.newModel,t.root,!0)},e.prototype.doCommit=function(t,e,n){var o=this,r=this.modelSource.commitModel(t);return r instanceof Promise?r.then((function(t){return n&&(o.originalModel=t),e})):(n&&(this.originalModel=r),e)},e.prototype.undo=function(t){return this.doCommit(this.originalModel,t.root,!1)},e.prototype.redo=function(t){return this.doCommit(this.newModel,t.root,!1)},e.KIND="commitModel",i([c.inject(d.TYPES.ModelSource),a("design:type",l.ModelSource)],e.prototype,"modelSource",void 0),i([c.injectable(),s(0,c.inject(d.TYPES.Action)),a("design:paramtypes",[p])],e)}(u.SystemCommand);e.CommitModelCommand=f},1706:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6700),r=n(2857),i=n(1826),a=n(3280),s=n(3452),c=new o.ContainerModule((function(t,e,n){t(i.TYPES.ModelSourceProvider).toProvider((function(t){return function(){return new Promise((function(e){e(t.container.get(i.TYPES.ModelSource))}))}})),r.configureCommand({bind:t,isBound:n},a.CommitModelCommand),t(i.TYPES.IActionHandlerInitializer).toService(i.TYPES.ModelSource),t(s.ComputedBoundsApplicator).toSelf().inSingletonScope()}));e.default=c},7137:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var c=n(3162),u=n(6700),d=n(2125),l=n(1826),p=n(1403),f=n(6609),h=n(4350),y=n(8099),g=n(6777),v=n(1994),m=n(3452);function b(t){return void 0!==t&&t.hasOwnProperty("action")}e.isActionMessage=b;var _=function(){function t(){this.kind=t.KIND}return t.KIND="serverStatus",t}();e.ServerStatusAction=_;var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentRoot={type:"NONE",id:"ROOT"},e}return r(e,t),e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),e.register(p.ComputedBoundsAction.KIND,this),e.register(p.RequestBoundsCommand.KIND,this),e.register(y.RequestPopupModelAction.KIND,this),e.register(f.CollapseExpandAction.KIND,this),e.register(f.CollapseExpandAllAction.KIND,this),e.register(g.OpenAction.KIND,this),e.register(_.KIND,this),this.clientId||(this.clientId=this.viewerOptions.baseDiv)},e.prototype.handle=function(t){this.handleLocally(t)&&this.forwardToServer(t)},e.prototype.forwardToServer=function(t){var e={clientId:this.clientId,action:t};this.logger.log(this,"sending",e),this.sendMessage(e)},e.prototype.messageReceived=function(t){var e=this,n="string"==typeof t?JSON.parse(t):t;b(n)&&n.action?n.clientId&&n.clientId!==this.clientId||(n.action.__receivedFromServer=!0,this.logger.log(this,"receiving",n),this.actionDispatcher.dispatch(n.action).then((function(){e.storeNewModel(n.action)}))):this.logger.error(this,"received data is not an action message",n)},e.prototype.handleLocally=function(t){switch(this.storeNewModel(t),t.kind){case p.ComputedBoundsAction.KIND:return this.handleComputedBounds(t);case d.RequestModelAction.KIND:return this.handleRequestModel(t);case p.RequestBoundsCommand.KIND:return!1;case h.ExportSvgAction.KIND:return this.handleExportSvgAction(t);case _.KIND:return this.handleServerStateAction(t)}return!t.__receivedFromServer},e.prototype.storeNewModel=function(t){if(t.kind===d.SetModelCommand.KIND||t.kind===v.UpdateModelCommand.KIND||t.kind===p.RequestBoundsCommand.KIND){var e=t.newRoot;e&&(this.currentRoot=e,t.kind!==d.SetModelCommand.KIND&&t.kind!==v.UpdateModelCommand.KIND||(this.lastSubmittedModelType=e.type))}},e.prototype.handleRequestModel=function(t){var e=i({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},t.options),n=i(i({},t),{options:e});return this.forwardToServer(n),!1},e.prototype.handleComputedBounds=function(t){if(this.viewerOptions.needsServerLayout)return!0;var e=this.currentRoot;return this.computedBoundsApplicator.apply(e,t),e.type===this.lastSubmittedModelType?this.actionDispatcher.dispatch(new v.UpdateModelAction(e)):this.actionDispatcher.dispatch(new d.SetModelAction(e)),this.lastSubmittedModelType=e.type,!1},e.prototype.handleExportSvgAction=function(t){var e=new Blob([t.svg],{type:"text/plain;charset=utf-8"});return c.saveAs(e,"diagram.svg"),!1},e.prototype.handleServerStateAction=function(t){return!1},e.prototype.commitModel=function(t){var e=this.currentRoot;return this.currentRoot=t,e},a([u.inject(l.TYPES.ILogger),s("design:type",Object)],e.prototype,"logger",void 0),a([u.inject(m.ComputedBoundsApplicator),s("design:type",m.ComputedBoundsApplicator)],e.prototype,"computedBoundsApplicator",void 0),a([u.injectable()],e)}(m.ModelSource);e.DiagramServer=w},2633:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},c=this&&this.__generator||function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=0}))]}}))}))},e.prototype.getViewport=function(){return s(this,void 0,void 0,(function(){var t;return c(this,(function(e){switch(e.label){case 0:return[4,this.actionDispatcher.request(v.GetViewportAction.create())];case 1:return[2,{scroll:(t=e.sent()).viewport.scroll,zoom:t.viewport.zoom,canvasBounds:t.canvasBounds}]}}))}))},e.prototype.submitModel=function(t,e,n){return s(this,void 0,void 0,(function(){var o,r;return c(this,(function(i){switch(i.label){case 0:return this.viewerOptions.needsClientLayout?[4,this.actionDispatcher.request(g.RequestBoundsAction.create(t))]:[3,3];case 1:return o=i.sent(),r=this.computedBoundsApplicator.apply(this.currentRoot,o),[4,this.doSubmitModel(t,!0,n,r)];case 2:return i.sent(),[3,5];case 3:return[4,this.doSubmitModel(t,e,n)];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},e.prototype.doSubmitModel=function(t,e,n,o){return s(this,void 0,void 0,(function(){var r,i,a,s,u;return c(this,(function(c){switch(c.label){case 0:if(void 0===this.layoutEngine)return[3,6];c.label=1;case 1:return c.trys.push([1,5,,6]),(r=this.layoutEngine.layout(t,o))instanceof Promise?[4,r]:[3,3];case 2:return t=c.sent(),[3,4];case 3:void 0!==r&&(t=r),c.label=4;case 4:return[3,6];case 5:return i=c.sent(),this.logger.error(this,i.toString(),i.stack),[3,6];case 6:return a=this.lastSubmittedModelType,this.lastSubmittedModelType=t.type,n&&n.kind===p.RequestModelAction.KIND&&n.requestId?(s=n,[4,this.actionDispatcher.dispatch(new p.SetModelAction(t,s.requestId))]):[3,8];case 7:return c.sent(),[3,12];case 8:return e&&t.type===a?(u=Array.isArray(e)?e:t,[4,this.actionDispatcher.dispatch(new w.UpdateModelAction(u,!0,n))]):[3,10];case 9:return c.sent(),[3,12];case 10:return[4,this.actionDispatcher.dispatch(new p.SetModelAction(t))];case 11:c.sent(),c.label=12;case 12:return[2]}}))}))},e.prototype.applyMatches=function(t){var e=this.currentRoot;return _.applyMatches(e,t),this.submitModel(e,t)},e.prototype.addElements=function(t){for(var e=[],n=0,o=t;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e=s.LogLevel.error&&this.forward(t,e,s.LogLevel.error,n)},t.prototype.warn=function(t,e){for(var n=[],o=2;o=s.LogLevel.warn&&this.forward(t,e,s.LogLevel.warn,n)},t.prototype.info=function(t,e){for(var n=[],o=2;o=s.LogLevel.info&&this.forward(t,e,s.LogLevel.info,n)},t.prototype.log=function(t,e){for(var n=[],o=2;o=s.LogLevel.log)try{var r="object"==typeof t?t.constructor.name:String(t);console.log.apply(t,i([r+": "+e],n))}catch(t){}},t.prototype.forward=function(t,e,n,o){var r=new Date,i=new u(s.LogLevel[n],r.toLocaleTimeString(),"object"==typeof t?t.constructor.name:String(t),e,o.map((function(t){return JSON.stringify(t)})));this.modelSourceProvider().then((function(n){try{n.handle(i)}catch(n){try{console.log.apply(t,[e,i,n])}catch(t){}}}))},o([a.inject(c.TYPES.ModelSourceProvider),r("design:type",Function)],t.prototype,"modelSourceProvider",void 0),o([a.inject(c.TYPES.LogLevel),r("design:type",Number)],t.prototype,"logLevel",void 0),o([a.injectable()],t)}();e.ForwardingLogger=d},3452:function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=n(2125),c=n(1826),u=n(4350),d=n(6771),l=function(){function t(){}return t.prototype.initialize=function(t){t.register(s.RequestModelAction.KIND,this),t.register(u.ExportSvgAction.KIND,this)},r([a.inject(c.TYPES.IActionDispatcher),i("design:type",Object)],t.prototype,"actionDispatcher",void 0),r([a.inject(c.TYPES.ViewerOptions),i("design:type",Object)],t.prototype,"viewerOptions",void 0),r([a.injectable()],t)}();e.ModelSource=l;var p=function(){function t(){}return t.prototype.apply=function(t,e){var n=new d.SModelIndex;n.add(t);for(var o=0,r=e.bounds;o=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6700),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.listen=function(t){var e=this;t.addEventListener("message",(function(t){e.messageReceived(t.data)})),t.addEventListener("error",(function(t){e.logger.error(e,"error event received",t)})),this.webSocket=t},e.prototype.disconnect=function(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0)},e.prototype.sendMessage=function(t){if(!this.webSocket)throw new Error("WebSocket is not connected");this.webSocket.send(JSON.stringify(t))},i([a.injectable()],e)}(n(7137).DiagramServer);e.WebSocketDiagramServer=s},3136:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Deferred=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}},5824:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(7073);function r(){return-1!==window.navigator.userAgent.indexOf("Mac")}e.isCtrlOrCmd=function(t){return r()?t.metaKey:t.ctrlKey},e.isMac=r,e.isCrossSite=function(t){if(t&&"undefined"!=typeof window&&window.location){var e="";return window.location.protocol&&(e+=window.location.protocol+"//"),window.location.host&&(e+=window.location.host),e.length>0&&!t.startsWith(e)}return!1},e.getWindowScroll=function(){return"undefined"==typeof window?o.ORIGIN_POINT:{x:window.pageXOffset,y:window.pageYOffset}}},6401:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rgb=function(t,e,n){return{red:t,green:e,blue:n}},e.toSVG=function(t){return"rgb("+t.red+","+t.green+","+t.blue+")"};var n=function(){function t(t){this.stops=t}return t.prototype.getColor=function(t){t=Math.max(0,Math.min(.99999999,t));var e=Math.floor(t*this.stops.length);return this.stops[e]},t}();e.ColorMap=n},7073:(t,e)=>{"use strict";function n(t,e){return{x:t.x+e.x,y:t.y+e.y}}function o(t,e){return{x:t.x-e.x,y:t.y-e.y}}function r(t){return t.width>=0&&t.height>=0}function i(t){return{x:t.x+(t.width>=0?.5*t.width:0),y:t.y+(t.height>=0?.5*t.height:0)}}function a(t){var n=s(t);return 0===n||1===n?e.ORIGIN_POINT:{x:t.x/n,y:t.y/n}}function s(t){return Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2))}var c;Object.defineProperty(e,"__esModule",{value:!0}),e.ORIGIN_POINT=Object.freeze({x:0,y:0}),e.add=n,e.subtract=o,e.EMPTY_DIMENSION=Object.freeze({width:-1,height:-1}),e.isValidDimension=r,e.EMPTY_BOUNDS=Object.freeze({x:0,y:0,width:-1,height:-1}),e.isBounds=function(t){return"x"in t&&"y"in t&&"width"in t&&"height"in t},e.combine=function(t,n){if(!r(t))return r(n)?n:e.EMPTY_BOUNDS;if(!r(n))return t;var o=Math.min(t.x,n.x),i=Math.min(t.y,n.y);return{x:o,y:i,width:Math.max(t.x+(t.width>=0?t.width:0),n.x+(n.width>=0?n.width:0))-o,height:Math.max(t.y+(t.height>=0?t.height:0),n.y+(n.height>=0?n.height:0))-i}},e.translate=function(t,e){return{x:t.x+e.x,y:t.y+e.y,width:t.width,height:t.height}},e.center=i,e.centerOfLine=function(t,e){return i({x:t.x>e.x?e.x:t.x,y:t.y>e.y?e.y:t.y,width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)})},e.includes=function(t,e){return e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height},(c=e.Direction||(e.Direction={}))[c.left=0]="left",c[c.right=1]="right",c[c.up=2]="up",c[c.down=3]="down",e.euclideanDistance=function(t,e){var n=e.x-t.x,o=e.y-t.y;return Math.sqrt(n*n+o*o)},e.manhattanDistance=function(t,e){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},e.maxDistance=function(t,e){return Math.max(Math.abs(e.x-t.x),Math.abs(e.y-t.y))},e.angleOfPoint=function(t){return Math.atan2(t.y,t.x)},e.angleBetweenPoints=function(t,e){var n=Math.sqrt((t.x*t.x+t.y*t.y)*(e.x*e.x+e.y*e.y));if(isNaN(n)||0===n)return NaN;var o=t.x*e.x+t.y*e.y;return Math.acos(o/n)},e.shiftTowards=function(t,e,r){var i=a(o(e,t));return n(t,{x:i.x*r,y:i.y*r})},e.normalize=a,e.magnitude=s,e.toDegrees=function(t){return 180*t/Math.PI},e.toRadians=function(t){return t*Math.PI/180},e.almostEquals=function(t,e){return Math.abs(t-e)<.001},e.linear=function(t,e,n){return{x:(1-n)*t.x+n*e.x,y:(1-n)*t.y+n*e.y}};var u=function(){function t(t){this.bounds=t}return Object.defineProperty(t.prototype,"topPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightPoint",{get:function(){return{x:this.bounds.x+this.bounds.width,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y+this.bounds.height}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftPoint",{get:function(){return{x:this.bounds.x,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRightSideLine",{get:function(){return new d(this.topPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeftSideLine",{get:function(){return new d(this.topPoint,this.leftPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRightSideLine",{get:function(){return new d(this.bottomPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomLeftSideLine",{get:function(){return new d(this.bottomPoint,this.leftPoint)},enumerable:!0,configurable:!0}),t.prototype.closestSideLine=function(t){var e=i(this.bounds);return t.x>e.x?t.y>e.y?this.bottomRightSideLine:this.topRightSideLine:t.y>e.y?this.bottomLeftSideLine:this.topLeftSideLine},t}();e.Diamond=u;var d=function(){function t(t,e){this.p1=t,this.p2=e}return Object.defineProperty(t.prototype,"a",{get:function(){return this.p1.y-this.p2.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.p2.x-this.p1.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.p2.x*this.p1.y-this.p1.x*this.p2.y},enumerable:!0,configurable:!0}),t}();e.PointToPointLine=d,e.intersection=function(t,e){return{x:(t.c*e.b-e.c*t.b)/(t.a*e.b-e.a*t.b),y:(t.a*e.c-e.a*t.c)/(t.a*e.b-e.a*t.b)}}},3392:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInjectable=function(t){return void 0!==Reflect.getMetadata("inversify:paramtypes",t)}},9140:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.startFn=t,this.nextFn=e}return t.prototype[Symbol.iterator]=function(){var t,e=this,n=((t={state:this.startFn(),next:function(){return e.nextFn(n.state)}})[Symbol.iterator]=function(){return n},t);return n},t.prototype.filter=function(t){return o(this,t)},t.prototype.map=function(t){return r(this,t)},t.prototype.forEach=function(t){var e,n=this[Symbol.iterator](),o=0;do{void 0!==(e=n.next()).value&&t(e.value,o),o++}while(!e.done)},t.prototype.indexOf=function(t){var e,n=this[Symbol.iterator](),o=0;do{if((e=n.next()).value===t)return o;o++}while(!e.done);return-1},t}();function o(t,e){return new n((function(){return i(t)}),(function(t){var n;do{n=t.next()}while(!n.done&&!e(n.value));return n}))}function r(t,o){return new n((function(){return i(t)}),(function(t){var n=t.next(),r=n.done,i=n.value;return r?e.DONE_RESULT:{done:!1,value:o(i)}}))}function i(t){var n=t[Symbol.iterator];if("function"==typeof n)return n.call(t);var o=t.length;return"number"==typeof o&&o>=0?new a(t):{next:function(){return e.DONE_RESULT}}}e.FluentIterableImpl=n,e.toArray=function(t){if(t.constructor===Array)return t;var e=[];return t.forEach((function(t){return e.push(t)})),e},e.DONE_RESULT=Object.freeze({done:!0,value:void 0}),e.filterIterable=o,e.mapIterable=r;var a=function(){function t(t){this.array=t,this.index=0}return t.prototype.next=function(){return this.index{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5824);function r(t){if(t.keyCode){var e=i[t.keyCode];if(void 0!==e)return e}return t.code}e.matchesKeystroke=function(t,e){for(var n=[],i=2;i=0)return!1;if(t.metaKey!==n.findIndex((function(t){return"meta"===t||"ctrlCmd"===t}))>=0)return!1}else{if(t.ctrlKey!==n.findIndex((function(t){return"ctrl"===t||"ctrlCmd"===t}))>=0)return!1;if(t.metaKey!==n.findIndex((function(t){return"meta"===t}))>=0)return!1}return t.altKey===n.findIndex((function(t){return"alt"===t}))>=0&&t.shiftKey===n.findIndex((function(t){return"shift"===t}))>=0},e.getActualCode=r;var i=new Array(256);!function(){function t(t,e){void 0===i[e]&&(i[e]=t)}t("Pause",3),t("Backspace",8),t("Tab",9),t("Enter",13),t("ShiftLeft",16),t("ShiftRight",16),t("ControlLeft",17),t("ControlRight",17),t("AltLeft",18),t("AltRight",18),t("CapsLock",20),t("Escape",27),t("Space",32),t("PageUp",33),t("PageDown",34),t("End",35),t("Home",36),t("ArrowLeft",37),t("ArrowUp",38),t("ArrowRight",39),t("ArrowDown",40),t("Insert",45),t("Delete",46),t("Digit1",49),t("Digit2",50),t("Digit3",51),t("Digit4",52),t("Digit5",53),t("Digit6",54),t("Digit7",55),t("Digit8",56),t("Digit9",57),t("Digit0",48),t("KeyA",65),t("KeyB",66),t("KeyC",67),t("KeyD",68),t("KeyE",69),t("KeyF",70),t("KeyG",71),t("KeyH",72),t("KeyI",73),t("KeyJ",74),t("KeyK",75),t("KeyL",76),t("KeyM",77),t("KeyN",78),t("KeyO",79),t("KeyP",80),t("KeyQ",81),t("KeyR",82),t("KeyS",83),t("KeyT",84),t("KeyU",85),t("KeyV",86),t("KeyW",87),t("KeyX",88),t("KeyY",89),t("KeyZ",90),t("OSLeft",91),t("MetaLeft",91),t("OSRight",92),t("MetaRight",92),t("ContextMenu",93),t("Numpad0",96),t("Numpad1",97),t("Numpad2",98),t("Numpad3",99),t("Numpad4",100),t("Numpad5",101),t("Numpad6",102),t("Numpad7",103),t("Numpad8",104),t("Numpad9",105),t("NumpadMultiply",106),t("NumpadAdd",107),t("NumpadSeparator",108),t("NumpadSubtract",109),t("NumpadDecimal",110),t("NumpadDivide",111),t("F1",112),t("F2",113),t("F3",114),t("F4",115),t("F5",116),t("F6",117),t("F7",118),t("F8",119),t("F9",120),t("F10",121),t("F11",122),t("F12",123),t("F13",124),t("F14",125),t("F15",126),t("F16",127),t("F17",128),t("F18",129),t("F19",130),t("F20",131),t("F21",132),t("F22",133),t("F23",134),t("F24",135),t("NumLock",144),t("ScrollLock",145),t("Semicolon",186),t("Equal",187),t("Comma",188),t("Minus",189),t("Period",190),t("Slash",191),t("Backquote",192),t("IntlRo",193),t("BracketLeft",219),t("Backslash",220),t("BracketRight",221),t("Quote",222),t("IntlYen",255)}()},8049:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e=a.error)try{console.error.apply(t,this.consoleArguments(t,e,n))}catch(t){}},t.prototype.warn=function(t,e){for(var n=[],o=2;o=a.warn)try{console.warn.apply(t,this.consoleArguments(t,e,n))}catch(t){}},t.prototype.info=function(t,e){for(var n=[],o=2;o=a.info)try{console.info.apply(t,this.consoleArguments(t,e,n))}catch(t){}},t.prototype.log=function(t,e){for(var n=[],o=2;o=a.log)try{console.log.apply(t,this.consoleArguments(t,e,n))}catch(t){}},t.prototype.consoleArguments=function(t,e,n){var o;o="object"==typeof t?t.constructor.name:t;var r=new Date;return i([r.toLocaleTimeString()+" "+this.viewOptions.baseDiv+" "+o+": "+e],n)},o([s.inject(c.TYPES.LogLevel),r("design:type",Number)],t.prototype,"logLevel",void 0),o([s.inject(c.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"viewOptions",void 0),o([s.injectable()],t)}();e.ConsoleLogger=d},6530:function(t,e,n){"use strict";var o=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var r=n(6700),i=function(){function t(){this.elements=new Map}return t.prototype.register=function(t,e){if(void 0===t)throw new Error("Key is undefined");if(this.hasKey(t))throw new Error("Key is already registered: "+t);this.elements.set(t,e)},t.prototype.deregister=function(t){if(void 0===t)throw new Error("Key is undefined");this.elements.delete(t)},t.prototype.hasKey=function(t){return this.elements.has(t)},t.prototype.get=function(t,e){var n=this.elements.get(t);return n?new n(e):this.missing(t,e)},t.prototype.missing=function(t,e){throw new Error("Unknown registry key: "+t)},o([r.injectable()],t)}();e.ProviderRegistry=i;var a=function(){function t(){this.elements=new Map}return t.prototype.register=function(t,e){if(void 0===t)throw new Error("Key is undefined");if(this.hasKey(t))throw new Error("Key is already registered: "+t);this.elements.set(t,e)},t.prototype.deregister=function(t){if(void 0===t)throw new Error("Key is undefined");this.elements.delete(t)},t.prototype.hasKey=function(t){return this.elements.has(t)},t.prototype.get=function(t,e){var n=this.elements.get(t);return n?n(e):this.missing(t,e)},t.prototype.missing=function(t,e){throw new Error("Unknown registry key: "+t)},o([r.injectable()],t)}();e.FactoryRegistry=a;var s=function(){function t(){this.elements=new Map}return t.prototype.register=function(t,e){if(void 0===t)throw new Error("Key is undefined");if(this.hasKey(t))throw new Error("Key is already registered: "+t);this.elements.set(t,e)},t.prototype.deregister=function(t){if(void 0===t)throw new Error("Key is undefined");this.elements.delete(t)},t.prototype.hasKey=function(t){return this.elements.has(t)},t.prototype.get=function(t){return this.elements.get(t)||this.missing(t)},t.prototype.missing=function(t){throw new Error("Unknown registry key: "+t)},o([r.injectable()],t)}();e.InstanceRegistry=s;var c=function(){function t(){this.elements=new Map}return t.prototype.register=function(t,e){if(void 0===t)throw new Error("Key is undefined");var n=this.elements.get(t);void 0!==n?n.push(e):this.elements.set(t,[e])},t.prototype.deregisterAll=function(t){if(void 0===t)throw new Error("Key is undefined");this.elements.delete(t)},t.prototype.get=function(t){var e=this.elements.get(t);return void 0!==e?e:[]},o([r.injectable()],t)}();e.MultiInstanceRegistry=c},9163:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.context||document;if(!t)return null;var r=[],i=c((0,o.default)(t),r,n),a=void 0;return a=i?1===i.length?i[0]:i:u({type:"text",content:t},r,n),e.hooks&&e.hooks.create&&r.forEach((function(t){e.hooks.create(t)})),a};var o=a(n(3039)),r=a(n(6438)),i=n(6214);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e,n){return t instanceof Array&&t.length>0?t.map((function(t){return u(t,e,n)})):void 0}function u(t,e,n){var o;return o="text"===t.type?(0,i.createTextVNode)(t.content,n):(0,r.default)(t.name,function(t,e){var n={};if(!t.attrs)return n;var o=Object.keys(t.attrs).reduce((function(n,o){if("style"!==o&&"class"!==o){var r=(0,i.unescapeEntities)(t.attrs[o],e);n?n[o]=r:n=s({},o,r)}return n}),null);o&&(n.attrs=o);var r=function(t){try{return t.attrs.style.split(";").reduce((function(t,e){var n=e.split(":"),o=(0,i.transformName)(n[0].trim());if(o){var r=n[1].replace("!important","").trim();t?t[o]=r:t=s({},o,r)}return t}),null)}catch(t){return null}}(t);r&&(n.style=r);var a=function(t){try{return t.attrs.class.split(" ").reduce((function(t,e){return(e=e.trim())&&(t?t[e]=!0:t=s({},e,!0)),t}),null)}catch(t){return null}}(t);return a&&(n.class=a),n}(t,n),c(t.children,e,n)),e.push(o),o}},6214:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTextVNode=function(t,e){return(0,r.default)(void 0,void 0,void 0,s(t,e))},e.transformName=function(t){return""+(t=t.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()}))).charAt(0).toLowerCase()+t.substring(1)},e.unescapeEntities=s;var o,r=(o=n(9492))&&o.__esModule?o:{default:o},i=new RegExp("&[a-z0-9#]+;","gi"),a=null;function s(t,e){return a||(a=e.createElement("div")),t.replace(i,(function(t){return a.innerHTML=t,a.textContent}))}},6438:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(9492),r=n(3954);function i(t,e,n){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==e)for(var o=0;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.array=Array.isArray,e.primitive=function(t){return"string"==typeof t||"number"==typeof t}},9492:(t,e)=>{"use strict";function n(t,e,n,o,r){return{sel:t,data:e,children:n,text:o,elm:r,key:void 0===e?void 0:e.key}}Object.defineProperty(e,"__esModule",{value:!0}),e.vnode=n,e.default=n},6345:(t,e,n)=>{t.exports=n(9163)},1008:(t,e,n)=>{"use strict";function o(t,e,n,o,r){return{sel:t,data:e,children:n,text:o,elm:r,key:void 0===e?void 0:e.key}}n.r(e),n.d(e,{h:()=>u,init:()=>_,thunk:()=>f});const r=o;var i=Array.isArray;function a(t){return"string"==typeof t||"number"==typeof t}const s={createElement:function(t){return document.createElement(t)},createElementNS:function(t,e){return document.createElementNS(t,e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return 1===t.nodeType},isText:function(t){return 3===t.nodeType},isComment:function(t){return 8===t.nodeType}};function c(t,e,n){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==e)for(var o=0;o0?d:s.length,v=l>0?l:s.length,m=-1!==d||-1!==l?s.slice(0,Math.min(f,v)):s,b=t.elm=y(o)&&y(n=o.ns)?u.createElementNS(n,m):u.createElement(m);for(f0&&b.setAttribute("class",s.slice(v+1).replace(/\./g," ")),n=0;nd?f(t,null==n[g+1]?null:n[g+1].elm,n,c,g,o):w(t,e,s,d))}(i,a,s,n):y(s)?(y(t.text)&&u.setTextContent(i,""),f(i,null,s,0,s.length-1,n)):y(a)?w(i,a,0,a.length-1):y(t.text)&&u.setTextContent(i,""):t.text!==e.text&&(y(a)&&w(i,a,0,a.length-1),u.setTextContent(i,e.text)),y(r)&&y(o=r.postpatch)&&o(t,e)}}return function(t,e){var n,o,i,a=[];for(n=0;n{"use strict";function n(t,e){var n,o=e.elm,r=t.data.attrs,i=e.data.attrs;if((r||i)&&r!==i){for(n in r=r||{},i=i||{}){var a=i[n];r[n]!==a&&(!0===a?o.setAttribute(n,""):!1===a?o.removeAttribute(n):120!==n.charCodeAt(0)?o.setAttribute(n,a):58===n.charCodeAt(3)?o.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?o.setAttributeNS("http://www.w3.org/1999/xlink",n,a):o.setAttribute(n,a))}for(n in r)n in i||o.removeAttribute(n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.attributesModule={create:n,update:n},e.default=e.attributesModule},5542:(t,e)=>{"use strict";function n(t,e){var n,o,r=e.elm,i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(o in a=a||{},i=i||{})a[o]||r.classList.remove(o);for(o in a)(n=a[o])!==i[o]&&r.classList[n?"add":"remove"](o)}}Object.defineProperty(e,"__esModule",{value:!0}),e.classModule={create:n,update:n},e.default=e.classModule},4767:(t,e)=>{"use strict";function n(t,e,o){if("function"==typeof t)t.call(e,o,e);else if("object"==typeof t)if("function"==typeof t[0])if(2===t.length)t[0].call(e,t[1],o,e);else{var r=t.slice(1);r.push(o),r.push(e),t[0].apply(e,r)}else for(var i=0;i{"use strict";function n(t,e){var n,o,r=e.elm,i=t.data.props,a=e.data.props;if((i||a)&&i!==a){for(n in a=a||{},i=i||{})a[n]||delete r[n];for(n in a)o=a[n],i[n]===o||"value"===n&&r[n]===o||(r[n]=o)}}Object.defineProperty(e,"__esModule",{value:!0}),e.propsModule={create:n,update:n},e.default=e.propsModule},4548:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,o=!1;function r(t,e,o){var r;r=function(){t[e]=o},n((function(){n(r)}))}function i(t,e){var n,o,i=e.elm,a=t.data.style,s=e.data.style;if((a||s)&&a!==s){s=s||{};var c="delayed"in(a=a||{});for(o in a)s[o]||("-"===o[0]&&"-"===o[1]?i.style.removeProperty(o):i.style[o]="");for(o in s)if(n=s[o],"delayed"===o&&s.delayed)for(var u in s.delayed)n=s.delayed[u],c&&n===a.delayed[u]||r(i.style,u,n);else"remove"!==o&&n!==a[o]&&("-"===o[0]&&"-"===o[1]?i.style.setProperty(o,n):i.style[o]=n)}}e.styleModule={pre:function(){o=!1},create:i,update:i,destroy:function(t){var e,n,o=t.elm,r=t.data.style;if(r&&(e=r.destroy))for(n in e)o.style[n]=e[n]},remove:function(t,e){var n=t.data.style;if(n&&n.remove){o||(getComputedStyle(document.body).transform,o=!0);var r,i=t.elm,a=0,s=n.remove,c=0,u=[];for(r in s)u.push(r),i.style[r]=s[r];for(var d=getComputedStyle(i)["transition-property"].split(", ");a{t.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}}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/480.5adff3d2447f67ef9121.js b/py_src/ipyelk/labextension/static/480.5adff3d2447f67ef9121.js new file mode 100644 index 00000000..e730e30e --- /dev/null +++ b/py_src/ipyelk/labextension/static/480.5adff3d2447f67ef9121.js @@ -0,0 +1 @@ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[480,549],{4480:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i});var r=t(8081),o=t(8036);t(7549);const i={id:`${o.A1}:plugin`,requires:[r.IJupyterWidgetRegistry],autoStart:!0,activate:(e,n)=>{o.ZF&&console.warn("elk activated"),n.registerWidget({name:o.A1,version:o.q4,exports:async()=>{const e=Object.assign(Object.assign(Object.assign({},await Promise.all([t.e(168),t.e(73)]).then(t.bind(t,5619))),await Promise.all([t.e(478),t.e(168),t.e(555)]).then(t.bind(t,5825))),await Promise.all([t.e(478),t.e(578),t.e(168),t.e(555),t.e(940)]).then(t.bind(t,9213)));return o.ZF&&console.warn("widgets loaded"),e}})}}},8036:(e,n,t)=>{"use strict";t.d(n,{A1:()=>r,q4:()=>o,ZF:()=>i,gJ:()=>l});const r="@jupyrdf/jupyter-elk",o="1.0.1",i=window.location.hash.indexOf("ELK_DEBUG")>-1,l={label:"elklabel",widget_class:"jp-ElkView",sizer_class:"jp-ElkSizer"}},1156:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var r=t(3645),o=t.n(r)()((function(e){return e[1]}));o.push([e.id,"/**\n * Copyright (c) 2021 Dane Freeman.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*\n CSS for in-DOM or standalone viewing: all selectors should tolerate having\n `.jp-ElkView` stripped.\n*/\n:root {\n --jp-elk-stroke-width: 1;\n\n --jp-elk-node-fill: var(--jp-layout-color1);\n --jp-elk-node-stroke: var(--jp-border-color0);\n\n --jp-elk-edge-stroke: var(--jp-border-color0);\n\n --jp-elk-port-fill: var(--jp-layout-color1);\n --jp-elk-port-stroke: var(--jp-border-color0);\n\n --jp-elk-label-color: var(--jp-ui-font-color0);\n --jp-elk-label-font: var(--jp-content-font-family);\n --jp-elk-label-font-size: var(--jp-ui-font-size0);\n\n /* stable states */\n --jp-elk-color-selected: var(--jp-brand-color2);\n --jp-elk-stroke-width-selected: 3;\n\n /* interactive states */\n --jp-elk-stroke-hover: var(--jp-brand-color3);\n --jp-elk-stroke-width-hover: 2;\n\n --jp-elk-stroke-hover-selected: var(--jp-warn-color3);\n\n /* sugar */\n --jp-elk-transition: 0.1s ease-in;\n}\n\n.jp-ElkView .elkdefs > symbol {\n overflow: visible;\n}\n\n.jp-ElkView .elknode {\n stroke: var(--jp-elk-node-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n fill: var(--jp-elk-node-fill);\n}\n\n.jp-ElkView .elkport {\n stroke: var(--jp-elk-port-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n fill: var(--jp-elk-port-fill);\n}\n\n.jp-ElkView .elkedge {\n fill: none;\n stroke: var(--jp-elk-edge-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n}\n\n.jp-ElkView .elklabel {\n stroke-width: 0;\n stroke: var(--jp-elk-label-color);\n fill: var(--jp-elk-label-color);\n font-family: var(--jp-elk-label-font);\n font-size: var(--jp-elk-label-font-size);\n dominant-baseline: hanging;\n}\n\n.jp-ElkView .elkjunction {\n stroke: none;\n fill: var(--jp-elk-edge-stroke);\n}\n\n/* stable states */\n.jp-ElkView .elknode.selected,\n.jp-ElkView .elkport.selected,\n.jp-ElkView .elkedge.selected,\n.jp-ElkView .elkedge.selected .elkarrow {\n stroke: var(--jp-elk-color-selected);\n stroke-width: var(--jp-elk-stroke-width-selected);\n transition: stroke stroke-width var(--jp-elk-transition);\n}\n\n.jp-ElkView .elklabel.selected {\n fill: var(--jp-elk-color-selected);\n transition: fill var(--jp-elk-transition);\n}\n\n/* interactive states: elklabel does not have a mouseover selector/ancestor */\n.jp-ElkView .elknode.mouseover,\n.jp-ElkView .elkport.mouseover,\n.jp-ElkView .elkedge.mouseover {\n stroke: var(--jp-elk-stroke-hover);\n stroke-width: var(--jp-elk-stroke-width-hover);\n transition: stroke stroke-width var(--jp-elk-transition);\n}\n\n.jp-ElkView .elknode.selected.mouseover,\n.jp-ElkView .elkport.selected.mouseover,\n.jp-ElkView .elkedge.selected.mouseover,\n.jp-ElkView .elkedge.selected.mouseover .elkarrow {\n stroke-width: var(--jp-elk-stroke-width-hover);\n stroke: var(--jp-elk-stroke-hover-selected);\n transition: fill stroke var(--jp-elk-transition);\n}\n",""]);const i=o},2760:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var r=t(3645),o=t.n(r),i=t(1156),l=o()((function(e){return e[1]}));l.i(i.Z),l.push([e.id,"/**\n * Copyright (c) 2021 Dane Freeman.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-ElkView,\n.jp-ElkView .sprotty {\n height: 100%;\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.jp-ElkView .sprotty text {\n user-select: none;\n}\n\n/* Root View */\n.jp-ElkView .sprotty-root {\n flex: 1;\n display: flex;\n}\n.jp-ElkView .sprotty > .sprotty-root > svg.sprotty-graph {\n width: 100%;\n height: 100%;\n flex: 1;\n}\n\n.jp-ElkView .sprotty > .sprotty-root > div.sprotty-overlay {\n width: 100%;\n height: 100%;\n flex: 1;\n position: absolute;\n top: 0;\n left: 0;\n transform-origin: top left;\n pointer-events: none;\n}\n.jp-ElkView .sprotty > .sprotty-root > div.sprotty-overlay > div.elkcontainer {\n pointer-events: all;\n position: absolute;\n}\n\n/* Toolbar Styling */\n.jp-ElkApp .jp-ElkToolbar {\n width: 100%;\n visibility: hidden;\n position: absolute;\n opacity: 0;\n transition: all var(--jp-elk-transition);\n transform: translateY(calc(0px - var(--jp-widgets-inline-height)));\n}\n\n.jp-ElkApp:hover .jp-ElkToolbar {\n visibility: visible;\n opacity: 0.25;\n transform: translateY(0);\n}\n\n.jp-ElkApp:hover .jp-ElkToolbar:hover {\n opacity: 1;\n}\n\n.jp-ElkToolbar .close-btn {\n display: block;\n margin-left: auto;\n width: var(--jp-widgets-inline-height);\n padding: 0;\n background: inherit;\n border: inherit;\n outline: inherit;\n}\n.jp-ElkToolbar .close-btn:hover {\n box-shadow: inherit;\n color: var(--jp-warn-color0);\n}\n\n.jp-ElkSizer {\n visibility: hidden;\n z-index: -9999;\n pointer-events: none;\n}\n",""]);const s=l},3645:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i{"use strict";t.r(n),t.d(n,{default:()=>l});var r=t(3379),o=t.n(r),i=t(2760);o()(i.Z,{insert:"head",singleton:!1});const l=i.Z.locals||{}},3379:(e,n,t)=>{"use strict";var r,o=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function l(e){for(var n=-1,t=0;t{"use strict";t.d(n,{Z:()=>l});var r=t(3645),o=t.n(r)()((function(e){return e[1]}));o.push([e.id,"/**\n * Copyright (c) 2021 Dane Freeman.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*\n CSS for in-DOM or standalone viewing: all selectors should tolerate having\n `.jp-ElkView` stripped.\n*/\n:root {\n --jp-elk-stroke-width: 1;\n\n --jp-elk-node-fill: var(--jp-layout-color1);\n --jp-elk-node-stroke: var(--jp-border-color0);\n\n --jp-elk-edge-stroke: var(--jp-border-color0);\n\n --jp-elk-port-fill: var(--jp-layout-color1);\n --jp-elk-port-stroke: var(--jp-border-color0);\n\n --jp-elk-label-color: var(--jp-ui-font-color0);\n --jp-elk-label-font: var(--jp-content-font-family);\n --jp-elk-label-font-size: var(--jp-ui-font-size0);\n\n /* stable states */\n --jp-elk-color-selected: var(--jp-brand-color2);\n --jp-elk-stroke-width-selected: 3;\n\n /* interactive states */\n --jp-elk-stroke-hover: var(--jp-brand-color3);\n --jp-elk-stroke-width-hover: 2;\n\n --jp-elk-stroke-hover-selected: var(--jp-warn-color3);\n\n /* sugar */\n --jp-elk-transition: 0.1s ease-in;\n}\n\n.jp-ElkView .elkdefs > symbol {\n overflow: visible;\n}\n\n.jp-ElkView .elknode {\n stroke: var(--jp-elk-node-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n fill: var(--jp-elk-node-fill);\n}\n\n.jp-ElkView .elkport {\n stroke: var(--jp-elk-port-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n fill: var(--jp-elk-port-fill);\n}\n\n.jp-ElkView .elkedge {\n fill: none;\n stroke: var(--jp-elk-edge-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n}\n\n.jp-ElkView .elklabel {\n stroke-width: 0;\n stroke: var(--jp-elk-label-color);\n fill: var(--jp-elk-label-color);\n font-family: var(--jp-elk-label-font);\n font-size: var(--jp-elk-label-font-size);\n dominant-baseline: hanging;\n}\n\n.jp-ElkView .elkjunction {\n stroke: none;\n fill: var(--jp-elk-edge-stroke);\n}\n\n/* stable states */\n.jp-ElkView .elknode.selected,\n.jp-ElkView .elkport.selected,\n.jp-ElkView .elkedge.selected,\n.jp-ElkView .elkedge.selected .elkarrow {\n stroke: var(--jp-elk-color-selected);\n stroke-width: var(--jp-elk-stroke-width-selected);\n transition: stroke stroke-width var(--jp-elk-transition);\n}\n\n.jp-ElkView .elklabel.selected {\n fill: var(--jp-elk-color-selected);\n transition: fill var(--jp-elk-transition);\n}\n\n/* interactive states: elklabel does not have a mouseover selector/ancestor */\n.jp-ElkView .elknode.mouseover,\n.jp-ElkView .elkport.mouseover,\n.jp-ElkView .elkedge.mouseover {\n stroke: var(--jp-elk-stroke-hover);\n stroke-width: var(--jp-elk-stroke-width-hover);\n transition: stroke stroke-width var(--jp-elk-transition);\n}\n\n.jp-ElkView .elknode.selected.mouseover,\n.jp-ElkView .elkport.selected.mouseover,\n.jp-ElkView .elkedge.selected.mouseover,\n.jp-ElkView .elkedge.selected.mouseover .elkarrow {\n stroke-width: var(--jp-elk-stroke-width-hover);\n stroke: var(--jp-elk-stroke-hover-selected);\n transition: fill stroke var(--jp-elk-transition);\n}\n",""]);const l=o},2760:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var r=t(3645),o=t.n(r),l=t(1156),i=o()((function(e){return e[1]}));i.i(l.Z),i.push([e.id,"/**\n * Copyright (c) 2021 Dane Freeman.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-ElkView,\n.jp-ElkView .sprotty {\n height: 100%;\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.jp-ElkView .sprotty text {\n user-select: none;\n}\n\n/* Root View */\n.jp-ElkView .sprotty-root {\n flex: 1;\n display: flex;\n}\n.jp-ElkView .sprotty > .sprotty-root > svg.sprotty-graph {\n width: 100%;\n height: 100%;\n flex: 1;\n}\n\n.jp-ElkView .sprotty > .sprotty-root > div.sprotty-overlay {\n width: 100%;\n height: 100%;\n flex: 1;\n position: absolute;\n top: 0;\n left: 0;\n transform-origin: top left;\n pointer-events: none;\n}\n.jp-ElkView .sprotty > .sprotty-root > div.sprotty-overlay > div.elkcontainer {\n pointer-events: all;\n position: absolute;\n}\n\n/* Toolbar Styling */\n.jp-ElkApp .jp-ElkToolbar {\n width: 100%;\n visibility: hidden;\n position: absolute;\n opacity: 0;\n transition: all var(--jp-elk-transition);\n transform: translateY(calc(0px - var(--jp-widgets-inline-height)));\n}\n\n.jp-ElkApp:hover .jp-ElkToolbar {\n visibility: visible;\n opacity: 0.25;\n transform: translateY(0);\n}\n\n.jp-ElkApp:hover .jp-ElkToolbar:hover {\n opacity: 1;\n}\n\n.jp-ElkToolbar .close-btn {\n display: block;\n margin-left: auto;\n width: var(--jp-widgets-inline-height);\n padding: 0;\n background: inherit;\n border: inherit;\n outline: inherit;\n}\n.jp-ElkToolbar .close-btn:hover {\n box-shadow: inherit;\n color: var(--jp-warn-color0);\n}\n\n.jp-ElkSizer {\n visibility: hidden;\n z-index: -9999;\n pointer-events: none;\n}\n",""]);const s=i},3645:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var l=0;l{"use strict";t.r(n),t.d(n,{default:()=>i});var r=t(3379),o=t.n(r),l=t(2760);o()(l.Z,{insert:"head",singleton:!1});const i=l.Z.locals||{}},3379:(e,n,t)=>{"use strict";var r,o=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),l=[];function i(e){for(var n=-1,t=0;t{"use strict";s.r(l),s.d(l,{ELK_CSS:()=>r.gJ,ELK_DEBUG:()=>r.ZF,NAME:()=>r.A1,VERSION:()=>r.q4});var r=s(8036)},8036:(e,l,s)=>{"use strict";s.d(l,{A1:()=>r,q4:()=>p,ZF:()=>u,gJ:()=>_});const r="@jupyrdf/jupyter-elk",p="1.0.1",u=window.location.hash.indexOf("ELK_DEBUG")>-1,_={label:"elklabel",widget_class:"jp-ElkView",sizer_class:"jp-ElkSizer"}}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/578.ae6be4abce78d1804a4b.js b/py_src/ipyelk/labextension/static/578.ae6be4abce78d1804a4b.js new file mode 100644 index 00000000..6f3c3bd3 --- /dev/null +++ b/py_src/ipyelk/labextension/static/578.ae6be4abce78d1804a4b.js @@ -0,0 +1 @@ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[578],{8970:(e,n,o)=>{"use strict";o.d(n,{Z:()=>r});const r="/**\n * google-material-color v1.2.6\n * https://github.com/danlevan/google-material-color\n */\n:root {\n --md-red-50: #ffebee;\n --md-red-100: #ffcdd2;\n --md-red-200: #ef9a9a;\n --md-red-300: #e57373;\n --md-red-400: #ef5350;\n --md-red-500: #f44336;\n --md-red-600: #e53935;\n --md-red-700: #d32f2f;\n --md-red-800: #c62828;\n --md-red-900: #b71c1c;\n --md-red-A100: #ff8a80;\n --md-red-A200: #ff5252;\n --md-red-A400: #ff1744;\n --md-red-A700: #d50000;\n\n --md-pink-50: #fce4ec;\n --md-pink-100: #f8bbd0;\n --md-pink-200: #f48fb1;\n --md-pink-300: #f06292;\n --md-pink-400: #ec407a;\n --md-pink-500: #e91e63;\n --md-pink-600: #d81b60;\n --md-pink-700: #c2185b;\n --md-pink-800: #ad1457;\n --md-pink-900: #880e4f;\n --md-pink-A100: #ff80ab;\n --md-pink-A200: #ff4081;\n --md-pink-A400: #f50057;\n --md-pink-A700: #c51162;\n\n --md-purple-50: #f3e5f5;\n --md-purple-100: #e1bee7;\n --md-purple-200: #ce93d8;\n --md-purple-300: #ba68c8;\n --md-purple-400: #ab47bc;\n --md-purple-500: #9c27b0;\n --md-purple-600: #8e24aa;\n --md-purple-700: #7b1fa2;\n --md-purple-800: #6a1b9a;\n --md-purple-900: #4a148c;\n --md-purple-A100: #ea80fc;\n --md-purple-A200: #e040fb;\n --md-purple-A400: #d500f9;\n --md-purple-A700: #aa00ff;\n\n --md-deep-purple-50: #ede7f6;\n --md-deep-purple-100: #d1c4e9;\n --md-deep-purple-200: #b39ddb;\n --md-deep-purple-300: #9575cd;\n --md-deep-purple-400: #7e57c2;\n --md-deep-purple-500: #673ab7;\n --md-deep-purple-600: #5e35b1;\n --md-deep-purple-700: #512da8;\n --md-deep-purple-800: #4527a0;\n --md-deep-purple-900: #311b92;\n --md-deep-purple-A100: #b388ff;\n --md-deep-purple-A200: #7c4dff;\n --md-deep-purple-A400: #651fff;\n --md-deep-purple-A700: #6200ea;\n\n --md-indigo-50: #e8eaf6;\n --md-indigo-100: #c5cae9;\n --md-indigo-200: #9fa8da;\n --md-indigo-300: #7986cb;\n --md-indigo-400: #5c6bc0;\n --md-indigo-500: #3f51b5;\n --md-indigo-600: #3949ab;\n --md-indigo-700: #303f9f;\n --md-indigo-800: #283593;\n --md-indigo-900: #1a237e;\n --md-indigo-A100: #8c9eff;\n --md-indigo-A200: #536dfe;\n --md-indigo-A400: #3d5afe;\n --md-indigo-A700: #304ffe;\n\n --md-blue-50: #e3f2fd;\n --md-blue-100: #bbdefb;\n --md-blue-200: #90caf9;\n --md-blue-300: #64b5f6;\n --md-blue-400: #42a5f5;\n --md-blue-500: #2196f3;\n --md-blue-600: #1e88e5;\n --md-blue-700: #1976d2;\n --md-blue-800: #1565c0;\n --md-blue-900: #0d47a1;\n --md-blue-A100: #82b1ff;\n --md-blue-A200: #448aff;\n --md-blue-A400: #2979ff;\n --md-blue-A700: #2962ff;\n\n --md-light-blue-50: #e1f5fe;\n --md-light-blue-100: #b3e5fc;\n --md-light-blue-200: #81d4fa;\n --md-light-blue-300: #4fc3f7;\n --md-light-blue-400: #29b6f6;\n --md-light-blue-500: #03a9f4;\n --md-light-blue-600: #039be5;\n --md-light-blue-700: #0288d1;\n --md-light-blue-800: #0277bd;\n --md-light-blue-900: #01579b;\n --md-light-blue-A100: #80d8ff;\n --md-light-blue-A200: #40c4ff;\n --md-light-blue-A400: #00b0ff;\n --md-light-blue-A700: #0091ea;\n\n --md-cyan-50: #e0f7fa;\n --md-cyan-100: #b2ebf2;\n --md-cyan-200: #80deea;\n --md-cyan-300: #4dd0e1;\n --md-cyan-400: #26c6da;\n --md-cyan-500: #00bcd4;\n --md-cyan-600: #00acc1;\n --md-cyan-700: #0097a7;\n --md-cyan-800: #00838f;\n --md-cyan-900: #006064;\n --md-cyan-A100: #84ffff;\n --md-cyan-A200: #18ffff;\n --md-cyan-A400: #00e5ff;\n --md-cyan-A700: #00b8d4;\n\n --md-teal-50: #e0f2f1;\n --md-teal-100: #b2dfdb;\n --md-teal-200: #80cbc4;\n --md-teal-300: #4db6ac;\n --md-teal-400: #26a69a;\n --md-teal-500: #009688;\n --md-teal-600: #00897b;\n --md-teal-700: #00796b;\n --md-teal-800: #00695c;\n --md-teal-900: #004d40;\n --md-teal-A100: #a7ffeb;\n --md-teal-A200: #64ffda;\n --md-teal-A400: #1de9b6;\n --md-teal-A700: #00bfa5;\n\n --md-green-50: #e8f5e9;\n --md-green-100: #c8e6c9;\n --md-green-200: #a5d6a7;\n --md-green-300: #81c784;\n --md-green-400: #66bb6a;\n --md-green-500: #4caf50;\n --md-green-600: #43a047;\n --md-green-700: #388e3c;\n --md-green-800: #2e7d32;\n --md-green-900: #1b5e20;\n --md-green-A100: #b9f6ca;\n --md-green-A200: #69f0ae;\n --md-green-A400: #00e676;\n --md-green-A700: #00c853;\n\n --md-light-green-50: #f1f8e9;\n --md-light-green-100: #dcedc8;\n --md-light-green-200: #c5e1a5;\n --md-light-green-300: #aed581;\n --md-light-green-400: #9ccc65;\n --md-light-green-500: #8bc34a;\n --md-light-green-600: #7cb342;\n --md-light-green-700: #689f38;\n --md-light-green-800: #558b2f;\n --md-light-green-900: #33691e;\n --md-light-green-A100: #ccff90;\n --md-light-green-A200: #b2ff59;\n --md-light-green-A400: #76ff03;\n --md-light-green-A700: #64dd17;\n\n --md-lime-50: #f9fbe7;\n --md-lime-100: #f0f4c3;\n --md-lime-200: #e6ee9c;\n --md-lime-300: #dce775;\n --md-lime-400: #d4e157;\n --md-lime-500: #cddc39;\n --md-lime-600: #c0ca33;\n --md-lime-700: #afb42b;\n --md-lime-800: #9e9d24;\n --md-lime-900: #827717;\n --md-lime-A100: #f4ff81;\n --md-lime-A200: #eeff41;\n --md-lime-A400: #c6ff00;\n --md-lime-A700: #aeea00;\n\n --md-yellow-50: #fffde7;\n --md-yellow-100: #fff9c4;\n --md-yellow-200: #fff59d;\n --md-yellow-300: #fff176;\n --md-yellow-400: #ffee58;\n --md-yellow-500: #ffeb3b;\n --md-yellow-600: #fdd835;\n --md-yellow-700: #fbc02d;\n --md-yellow-800: #f9a825;\n --md-yellow-900: #f57f17;\n --md-yellow-A100: #ffff8d;\n --md-yellow-A200: #ffff00;\n --md-yellow-A400: #ffea00;\n --md-yellow-A700: #ffd600;\n\n --md-amber-50: #fff8e1;\n --md-amber-100: #ffecb3;\n --md-amber-200: #ffe082;\n --md-amber-300: #ffd54f;\n --md-amber-400: #ffca28;\n --md-amber-500: #ffc107;\n --md-amber-600: #ffb300;\n --md-amber-700: #ffa000;\n --md-amber-800: #ff8f00;\n --md-amber-900: #ff6f00;\n --md-amber-A100: #ffe57f;\n --md-amber-A200: #ffd740;\n --md-amber-A400: #ffc400;\n --md-amber-A700: #ffab00;\n\n --md-orange-50: #fff3e0;\n --md-orange-100: #ffe0b2;\n --md-orange-200: #ffcc80;\n --md-orange-300: #ffb74d;\n --md-orange-400: #ffa726;\n --md-orange-500: #ff9800;\n --md-orange-600: #fb8c00;\n --md-orange-700: #f57c00;\n --md-orange-800: #ef6c00;\n --md-orange-900: #e65100;\n --md-orange-A100: #ffd180;\n --md-orange-A200: #ffab40;\n --md-orange-A400: #ff9100;\n --md-orange-A700: #ff6d00;\n\n --md-deep-orange-50: #fbe9e7;\n --md-deep-orange-100: #ffccbc;\n --md-deep-orange-200: #ffab91;\n --md-deep-orange-300: #ff8a65;\n --md-deep-orange-400: #ff7043;\n --md-deep-orange-500: #ff5722;\n --md-deep-orange-600: #f4511e;\n --md-deep-orange-700: #e64a19;\n --md-deep-orange-800: #d84315;\n --md-deep-orange-900: #bf360c;\n --md-deep-orange-A100: #ff9e80;\n --md-deep-orange-A200: #ff6e40;\n --md-deep-orange-A400: #ff3d00;\n --md-deep-orange-A700: #dd2c00;\n\n --md-brown-50: #efebe9;\n --md-brown-100: #d7ccc8;\n --md-brown-200: #bcaaa4;\n --md-brown-300: #a1887f;\n --md-brown-400: #8d6e63;\n --md-brown-500: #795548;\n --md-brown-600: #6d4c41;\n --md-brown-700: #5d4037;\n --md-brown-800: #4e342e;\n --md-brown-900: #3e2723;\n\n --md-grey-50: #fafafa;\n --md-grey-100: #f5f5f5;\n --md-grey-200: #eeeeee;\n --md-grey-300: #e0e0e0;\n --md-grey-400: #bdbdbd;\n --md-grey-500: #9e9e9e;\n --md-grey-600: #757575;\n --md-grey-700: #616161;\n --md-grey-800: #424242;\n --md-grey-900: #212121;\n\n --md-blue-grey-50: #eceff1;\n --md-blue-grey-100: #cfd8dc;\n --md-blue-grey-200: #b0bec5;\n --md-blue-grey-300: #90a4ae;\n --md-blue-grey-400: #78909c;\n --md-blue-grey-500: #607d8b;\n --md-blue-grey-600: #546e7a;\n --md-blue-grey-700: #455a64;\n --md-blue-grey-800: #37474f;\n --md-blue-grey-900: #263238;\n}\n"},8343:(e,n,o)=>{"use strict";o.d(n,{Z:()=>r});const r="/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*\nThe following CSS variables define the main, public API for styling JupyterLab.\nThese variables should be used by all plugins wherever possible. In other\nwords, plugins should not define custom colors, sizes, etc unless absolutely\nnecessary. This enables users to change the visual theme of JupyterLab\nby changing these variables.\n\nMany variables appear in an ordered sequence (0,1,2,3). These sequences\nare designed to work well together, so for example, `--jp-border-color1` should\nbe used with `--jp-layout-color1`. The numbers have the following meanings:\n\n* 0: super-primary, reserved for special emphasis\n* 1: primary, most important under normal situations\n* 2: secondary, next most important under normal situations\n* 3: tertiary, next most important under normal situations\n\nThroughout JupyterLab, we are mostly following principles from Google's\nMaterial Design when selecting colors. We are not, however, following\nall of MD as it is not optimized for dense, information rich UIs.\n*/\n\n:root {\n /* Elevation\n *\n * We style box-shadows using Material Design's idea of elevation. These particular numbers are taken from here:\n *\n * https://github.com/material-components/material-components-web\n * https://material-components-web.appspot.com/elevation.html\n */\n\n --jp-shadow-base-lightness: 0;\n --jp-shadow-umbra-color: rgba(\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n 0.2\n );\n --jp-shadow-penumbra-color: rgba(\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n 0.14\n );\n --jp-shadow-ambient-color: rgba(\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n 0.12\n );\n --jp-elevation-z0: none;\n --jp-elevation-z1: 0px 2px 1px -1px var(--jp-shadow-umbra-color),\n 0px 1px 1px 0px var(--jp-shadow-penumbra-color),\n 0px 1px 3px 0px var(--jp-shadow-ambient-color);\n --jp-elevation-z2: 0px 3px 1px -2px var(--jp-shadow-umbra-color),\n 0px 2px 2px 0px var(--jp-shadow-penumbra-color),\n 0px 1px 5px 0px var(--jp-shadow-ambient-color);\n --jp-elevation-z4: 0px 2px 4px -1px var(--jp-shadow-umbra-color),\n 0px 4px 5px 0px var(--jp-shadow-penumbra-color),\n 0px 1px 10px 0px var(--jp-shadow-ambient-color);\n --jp-elevation-z6: 0px 3px 5px -1px var(--jp-shadow-umbra-color),\n 0px 6px 10px 0px var(--jp-shadow-penumbra-color),\n 0px 1px 18px 0px var(--jp-shadow-ambient-color);\n --jp-elevation-z8: 0px 5px 5px -3px var(--jp-shadow-umbra-color),\n 0px 8px 10px 1px var(--jp-shadow-penumbra-color),\n 0px 3px 14px 2px var(--jp-shadow-ambient-color);\n --jp-elevation-z12: 0px 7px 8px -4px var(--jp-shadow-umbra-color),\n 0px 12px 17px 2px var(--jp-shadow-penumbra-color),\n 0px 5px 22px 4px var(--jp-shadow-ambient-color);\n --jp-elevation-z16: 0px 8px 10px -5px var(--jp-shadow-umbra-color),\n 0px 16px 24px 2px var(--jp-shadow-penumbra-color),\n 0px 6px 30px 5px var(--jp-shadow-ambient-color);\n --jp-elevation-z20: 0px 10px 13px -6px var(--jp-shadow-umbra-color),\n 0px 20px 31px 3px var(--jp-shadow-penumbra-color),\n 0px 8px 38px 7px var(--jp-shadow-ambient-color);\n --jp-elevation-z24: 0px 11px 15px -7px var(--jp-shadow-umbra-color),\n 0px 24px 38px 3px var(--jp-shadow-penumbra-color),\n 0px 9px 46px 8px var(--jp-shadow-ambient-color);\n\n /* Borders\n *\n * The following variables, specify the visual styling of borders in JupyterLab.\n */\n\n --jp-border-width: 1px;\n --jp-border-color0: var(--md-grey-400);\n --jp-border-color1: var(--md-grey-400);\n --jp-border-color2: var(--md-grey-300);\n --jp-border-color3: var(--md-grey-200);\n --jp-border-radius: 2px;\n\n /* UI Fonts\n *\n * The UI font CSS variables are used for the typography all of the JupyterLab\n * user interface elements that are not directly user generated content.\n *\n * The font sizing here is done assuming that the body font size of --jp-ui-font-size1\n * is applied to a parent element. When children elements, such as headings, are sized\n * in em all things will be computed relative to that body size.\n */\n\n --jp-ui-font-scale-factor: 1.2;\n --jp-ui-font-size0: 0.83333em;\n --jp-ui-font-size1: 13px; /* Base font size */\n --jp-ui-font-size2: 1.2em;\n --jp-ui-font-size3: 1.44em;\n\n --jp-ui-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,\n Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n\n /*\n * Use these font colors against the corresponding main layout colors.\n * In a light theme, these go from dark to light.\n */\n\n /* Defaults use Material Design specification */\n --jp-ui-font-color0: rgba(0, 0, 0, 1);\n --jp-ui-font-color1: rgba(0, 0, 0, 0.87);\n --jp-ui-font-color2: rgba(0, 0, 0, 0.54);\n --jp-ui-font-color3: rgba(0, 0, 0, 0.38);\n\n /*\n * Use these against the brand/accent/warn/error colors.\n * These will typically go from light to darker, in both a dark and light theme.\n */\n\n --jp-ui-inverse-font-color0: rgba(255, 255, 255, 1);\n --jp-ui-inverse-font-color1: rgba(255, 255, 255, 1);\n --jp-ui-inverse-font-color2: rgba(255, 255, 255, 0.7);\n --jp-ui-inverse-font-color3: rgba(255, 255, 255, 0.5);\n\n /* Content Fonts\n *\n * Content font variables are used for typography of user generated content.\n *\n * The font sizing here is done assuming that the body font size of --jp-content-font-size1\n * is applied to a parent element. When children elements, such as headings, are sized\n * in em all things will be computed relative to that body size.\n */\n\n --jp-content-line-height: 1.6;\n --jp-content-font-scale-factor: 1.2;\n --jp-content-font-size0: 0.83333em;\n --jp-content-font-size1: 14px; /* Base font size */\n --jp-content-font-size2: 1.2em;\n --jp-content-font-size3: 1.44em;\n --jp-content-font-size4: 1.728em;\n --jp-content-font-size5: 2.0736em;\n\n /* This gives a magnification of about 125% in presentation mode over normal. */\n --jp-content-presentation-font-size1: 17px;\n\n --jp-content-heading-line-height: 1;\n --jp-content-heading-margin-top: 1.2em;\n --jp-content-heading-margin-bottom: 0.8em;\n --jp-content-heading-font-weight: 500;\n\n /* Defaults use Material Design specification */\n --jp-content-font-color0: rgba(0, 0, 0, 1);\n --jp-content-font-color1: rgba(0, 0, 0, 0.87);\n --jp-content-font-color2: rgba(0, 0, 0, 0.54);\n --jp-content-font-color3: rgba(0, 0, 0, 0.38);\n\n --jp-content-link-color: var(--md-blue-700);\n\n --jp-content-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',\n Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',\n 'Segoe UI Symbol';\n\n /*\n * Code Fonts\n *\n * Code font variables are used for typography of code and other monospaces content.\n */\n\n --jp-code-font-size: 13px;\n --jp-code-line-height: 1.3077; /* 17px for 13px base */\n --jp-code-padding: 5px; /* 5px for 13px base, codemirror highlighting needs integer px value */\n --jp-code-font-family-default: Menlo, Consolas, 'DejaVu Sans Mono', monospace;\n --jp-code-font-family: var(--jp-code-font-family-default);\n\n /* This gives a magnification of about 125% in presentation mode over normal. */\n --jp-code-presentation-font-size: 16px;\n\n /* may need to tweak cursor width if you change font size */\n --jp-code-cursor-width0: 1.4px;\n --jp-code-cursor-width1: 2px;\n --jp-code-cursor-width2: 4px;\n\n /* Layout\n *\n * The following are the main layout colors use in JupyterLab. In a light\n * theme these would go from light to dark.\n */\n\n --jp-layout-color0: white;\n --jp-layout-color1: white;\n --jp-layout-color2: var(--md-grey-200);\n --jp-layout-color3: var(--md-grey-400);\n --jp-layout-color4: var(--md-grey-600);\n\n /* Inverse Layout\n *\n * The following are the inverse layout colors use in JupyterLab. In a light\n * theme these would go from dark to light.\n */\n\n --jp-inverse-layout-color0: #111111;\n --jp-inverse-layout-color1: var(--md-grey-900);\n --jp-inverse-layout-color2: var(--md-grey-800);\n --jp-inverse-layout-color3: var(--md-grey-700);\n --jp-inverse-layout-color4: var(--md-grey-600);\n\n /* Brand/accent */\n\n --jp-brand-color0: var(--md-blue-700);\n --jp-brand-color1: var(--md-blue-500);\n --jp-brand-color2: var(--md-blue-300);\n --jp-brand-color3: var(--md-blue-100);\n --jp-brand-color4: var(--md-blue-50);\n\n --jp-accent-color0: var(--md-green-700);\n --jp-accent-color1: var(--md-green-500);\n --jp-accent-color2: var(--md-green-300);\n --jp-accent-color3: var(--md-green-100);\n\n /* State colors (warn, error, success, info) */\n\n --jp-warn-color0: var(--md-orange-700);\n --jp-warn-color1: var(--md-orange-500);\n --jp-warn-color2: var(--md-orange-300);\n --jp-warn-color3: var(--md-orange-100);\n\n --jp-error-color0: var(--md-red-700);\n --jp-error-color1: var(--md-red-500);\n --jp-error-color2: var(--md-red-300);\n --jp-error-color3: var(--md-red-100);\n\n --jp-success-color0: var(--md-green-700);\n --jp-success-color1: var(--md-green-500);\n --jp-success-color2: var(--md-green-300);\n --jp-success-color3: var(--md-green-100);\n\n --jp-info-color0: var(--md-cyan-700);\n --jp-info-color1: var(--md-cyan-500);\n --jp-info-color2: var(--md-cyan-300);\n --jp-info-color3: var(--md-cyan-100);\n\n /* Cell specific styles */\n\n --jp-cell-padding: 5px;\n\n --jp-cell-collapser-width: 8px;\n --jp-cell-collapser-min-height: 20px;\n --jp-cell-collapser-not-active-hover-opacity: 0.6;\n\n --jp-cell-editor-background: var(--md-grey-100);\n --jp-cell-editor-border-color: var(--md-grey-300);\n --jp-cell-editor-box-shadow: inset 0 0 2px var(--md-blue-300);\n --jp-cell-editor-active-background: var(--jp-layout-color0);\n --jp-cell-editor-active-border-color: var(--jp-brand-color1);\n\n --jp-cell-prompt-width: 64px;\n --jp-cell-prompt-font-family: var(--jp-code-font-family-default);\n --jp-cell-prompt-letter-spacing: 0px;\n --jp-cell-prompt-opacity: 1;\n --jp-cell-prompt-not-active-opacity: 0.5;\n --jp-cell-prompt-not-active-font-color: var(--md-grey-700);\n /* A custom blend of MD grey and blue 600\n * See https://meyerweb.com/eric/tools/color-blend/#546E7A:1E88E5:5:hex */\n --jp-cell-inprompt-font-color: #307fc1;\n /* A custom blend of MD grey and orange 600\n * https://meyerweb.com/eric/tools/color-blend/#546E7A:F4511E:5:hex */\n --jp-cell-outprompt-font-color: #bf5b3d;\n\n /* Notebook specific styles */\n\n --jp-notebook-padding: 10px;\n --jp-notebook-select-background: var(--jp-layout-color1);\n --jp-notebook-multiselected-color: var(--md-blue-50);\n\n /* The scroll padding is calculated to fill enough space at the bottom of the\n notebook to show one single-line cell (with appropriate padding) at the top\n when the notebook is scrolled all the way to the bottom. We also subtract one\n pixel so that no scrollbar appears if we have just one single-line cell in the\n notebook. This padding is to enable a 'scroll past end' feature in a notebook.\n */\n --jp-notebook-scroll-padding: calc(\n 100% - var(--jp-code-font-size) * var(--jp-code-line-height) -\n var(--jp-code-padding) - var(--jp-cell-padding) - 1px\n );\n\n /* Rendermime styles */\n\n --jp-rendermime-error-background: #fdd;\n --jp-rendermime-table-row-background: var(--md-grey-100);\n --jp-rendermime-table-row-hover-background: var(--md-light-blue-50);\n\n /* Dialog specific styles */\n\n --jp-dialog-background: rgba(0, 0, 0, 0.25);\n\n /* Console specific styles */\n\n --jp-console-padding: 10px;\n\n /* Toolbar specific styles */\n\n --jp-toolbar-border-color: var(--jp-border-color1);\n --jp-toolbar-micro-height: 8px;\n --jp-toolbar-background: var(--jp-layout-color1);\n --jp-toolbar-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.24);\n --jp-toolbar-header-margin: 4px 4px 0px 4px;\n --jp-toolbar-active-background: var(--md-grey-300);\n\n /* Input field styles */\n\n --jp-input-box-shadow: inset 0 0 2px var(--md-blue-300);\n --jp-input-active-background: var(--jp-layout-color1);\n --jp-input-hover-background: var(--jp-layout-color1);\n --jp-input-background: var(--md-grey-100);\n --jp-input-border-color: var(--jp-border-color1);\n --jp-input-active-border-color: var(--jp-brand-color1);\n --jp-input-active-box-shadow-color: rgba(19, 124, 189, 0.3);\n\n /* General editor styles */\n\n --jp-editor-selected-background: #d9d9d9;\n --jp-editor-selected-focused-background: #d7d4f0;\n --jp-editor-cursor-color: var(--jp-ui-font-color0);\n\n /* Code mirror specific styles */\n\n --jp-mirror-editor-keyword-color: #008000;\n --jp-mirror-editor-atom-color: #88f;\n --jp-mirror-editor-number-color: #080;\n --jp-mirror-editor-def-color: #00f;\n --jp-mirror-editor-variable-color: var(--md-grey-900);\n --jp-mirror-editor-variable-2-color: #05a;\n --jp-mirror-editor-variable-3-color: #085;\n --jp-mirror-editor-punctuation-color: #05a;\n --jp-mirror-editor-property-color: #05a;\n --jp-mirror-editor-operator-color: #aa22ff;\n --jp-mirror-editor-comment-color: #408080;\n --jp-mirror-editor-string-color: #ba2121;\n --jp-mirror-editor-string-2-color: #708;\n --jp-mirror-editor-meta-color: #aa22ff;\n --jp-mirror-editor-qualifier-color: #555;\n --jp-mirror-editor-builtin-color: #008000;\n --jp-mirror-editor-bracket-color: #997;\n --jp-mirror-editor-tag-color: #170;\n --jp-mirror-editor-attribute-color: #00c;\n --jp-mirror-editor-header-color: blue;\n --jp-mirror-editor-quote-color: #090;\n --jp-mirror-editor-link-color: #00c;\n --jp-mirror-editor-error-color: #f00;\n --jp-mirror-editor-hr-color: #999;\n\n /* Vega extension styles */\n\n --jp-vega-background: white;\n\n /* Sidebar-related styles */\n\n --jp-sidebar-min-width: 250px;\n\n /* Search-related styles */\n\n --jp-search-toggle-off-opacity: 0.5;\n --jp-search-toggle-hover-opacity: 0.8;\n --jp-search-toggle-on-opacity: 1;\n --jp-search-selected-match-background-color: rgb(245, 200, 0);\n --jp-search-selected-match-color: black;\n --jp-search-unselected-match-background-color: var(\n --jp-inverse-layout-color0\n );\n --jp-search-unselected-match-color: var(--jp-ui-inverse-font-color0);\n\n /* Icon colors that work well with light or dark backgrounds */\n --jp-icon-contrast-color0: var(--md-purple-600);\n --jp-icon-contrast-color1: var(--md-green-600);\n --jp-icon-contrast-color2: var(--md-pink-600);\n --jp-icon-contrast-color3: var(--md-blue-600);\n}\n"}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/660.6167a01da811b2dd9ad4.js b/py_src/ipyelk/labextension/static/660.6167a01da811b2dd9ad4.js new file mode 100644 index 00000000..64e76134 --- /dev/null +++ b/py_src/ipyelk/labextension/static/660.6167a01da811b2dd9ad4.js @@ -0,0 +1,2 @@ +/*! For license information please see 660.6167a01da811b2dd9ad4.js.LICENSE.txt */ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[660],{8660:(t,e,r)=>{var n;!function(t){!function(e){var n="object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=i(t);function i(t,e){return function(r,n){"function"!=typeof t[r]&&Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0===n.Reflect?n.Reflect=t:o=i(n.Reflect,o),function(t){var e=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,u={__proto__:[]}instanceof Array,f=!i&&!u,a={create:i?function(){return R(Object.create(null))}:u?function(){return R({__proto__:null})}:function(){return R({})},has:f?function(t,r){return e.call(t,r)}:function(t,e){return e in t},get:f?function(t,r){return e.call(t,r)?t[r]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),s={}&&"true"==={}.REFLECT_METADATA_USE_MAP_POLYFILL,h=s||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o=0;--r){var n=(0,t[r])(e);if(!E(n)&&!T(n)){if(!P(n))throw new TypeError;e=n}}return e}(t,e)}if(!M(t))throw new TypeError;if(!O(e))throw new TypeError;if(!O(n)&&!E(n)&&!T(n))throw new TypeError;return T(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!E(i)&&!T(i)){if(!O(i))throw new TypeError;n=i}}return n}(t,e,r=x(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!O(r))throw new TypeError;if(!E(n)&&!function(t){switch(m(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;g(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!O(r))throw new TypeError;return E(n)||(n=x(n)),g(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!O(e))throw new TypeError;return E(r)||(r=x(r)),_(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!O(e))throw new TypeError;return E(r)||(r=x(r)),v(t,e,r)})),t("getMetadata",(function(t,e,r){if(!O(e))throw new TypeError;return E(r)||(r=x(r)),d(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!O(e))throw new TypeError;return E(r)||(r=x(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!O(t))throw new TypeError;return E(e)||(e=x(e)),k(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!O(t))throw new TypeError;return E(e)||(e=x(e)),b(t,e)})),t("deleteMetadata",(function(t,e,r){if(!O(e))throw new TypeError;E(r)||(r=x(r));var n=l(e,r,!1);if(E(n))return!1;if(!n.delete(t))return!1;if(n.size>0)return!0;var o=y.get(e);return o.delete(r),o.size>0||y.delete(e),!0}))}(o)}()}(n||(n={}))}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/660.6167a01da811b2dd9ad4.js.LICENSE.txt b/py_src/ipyelk/labextension/static/660.6167a01da811b2dd9ad4.js.LICENSE.txt new file mode 100644 index 00000000..1b52387a --- /dev/null +++ b/py_src/ipyelk/labextension/static/660.6167a01da811b2dd9ad4.js.LICENSE.txt @@ -0,0 +1,14 @@ +/*! ***************************************************************************** +Copyright (C) Microsoft. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ diff --git a/py_src/ipyelk/labextension/static/elk-worker.59076248689cda27bbe6.worker.js b/py_src/ipyelk/labextension/static/elk-worker.59076248689cda27bbe6.worker.js new file mode 100644 index 00000000..272f7e51 --- /dev/null +++ b/py_src/ipyelk/labextension/static/elk-worker.59076248689cda27bbe6.worker.js @@ -0,0 +1 @@ +(()=>{var e={71:(e,t,n)=>{var r;"undefined"!=typeof window?r=window:void 0!==n.g?r=n.g:"undefined"!=typeof self&&(r=self);var i,a,s,o,l,c,u=2147483647,h={3:1},g={3:1,4:1,5:1},f={197:1,49:1},d={197:1,49:1,123:1},p={222:1,3:1},_={49:1},y={84:1},m={19:1,28:1,15:1},w=1937,v={19:1,28:1,15:1,21:1},x={84:1,171:1,161:1},E={19:1,28:1,15:1,21:1,81:1},b={19:1,28:1,15:1,270:1,21:1,81:1},C={49:1,123:1},S={342:1,43:1},k=1900,$={3:1,6:1,4:1,5:1},I=16384,T={163:1},P={37:1},M={l:4194303,m:4194303,h:524287},N={195:1},L={244:1,3:1,36:1},z={19:1},A={19:1,15:1},D={3:1,19:1,28:1,15:1},R={151:1,3:1,19:1,28:1,15:1,14:1,53:1},F={3:1,4:1,5:1,164:1},O={3:1,84:1},G={19:1,15:1,21:1},B={3:1,19:1,28:1,15:1,21:1},j={19:1,15:1,21:1,81:1},V=461845907,H=-862048943,U={3:1,6:1,4:1,5:1,164:1},q=1073741824,W={3:1,6:1,4:1,9:1,5:1},K={19:1,28:1,51:1,15:1,14:1},Y=1e3,X={19:1,28:1,51:1,15:1,14:1,53:1},J={45:1},Z={362:1},Q=1e-4,ee=-2147483648,te={3:1,102:1,59:1,78:1},ne={194:1,3:1,4:1},re=65535,ie={47:1,3:1,4:1},ae={3:1,4:1,36:1,198:1},se=4194303,oe=1048575,le=524288,ce=4194304,ue=17592186044416,he=1e9,ge=-17592186044416,fe={3:1,102:1,73:1,59:1,78:1},de={3:1,288:1,78:1},pe=1/0,_e=-1/0,ye=4096,me={3:1,4:1,361:1},we=65536,ve=55296,xe={103:1,3:1,4:1},Ee=1e5,be=.3010299956639812,Ce=4294967295,Se=4294967296,ke={43:1},$e={3:1,4:1,19:1,28:1,51:1,12:1,15:1,14:1,53:1},Ie={3:1,19:1,28:1,51:1,15:1,14:1,53:1},Te={19:1,15:1,14:1},Pe={3:1,62:1},Me={184:1},Ne={3:1,4:1,84:1},Le={3:1,4:1,19:1,28:1,15:1,70:1,21:1},ze=1.4901161193847656e-8,Ae=11102230246251565e-32,De=15525485,Re=5.960464477539063e-8,Fe=16777216,Oe=16777215,Ge={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1},Be={3:1,36:1,22:1,297:1},je={3:1,4:1,5:1,821:1},Ve={518:1,658:1},He={62:1},Ue={169:1,45:1},qe={130:1},We={177:1,3:1,4:1},Ke={210:1,324:1},Ye={3:1,4:1,5:1,586:1},Xe=.01,Je={3:1,94:1,134:1},Ze={207:1},Qe=1.5707963267948966,et=17976931348623157e292,tt={3:1,4:1,5:1,192:1},nt={3:1,6:1,4:1,5:1,105:1,125:1},rt=.001,it=1.600000023841858,at={3:1,6:1,4:1,9:1,5:1,120:1},st={3:1,6:1,4:1,5:1,153:1,105:1,125:1},ot={52:1},lt={3:1,6:1,4:1,5:1,468:1,153:1,105:1,125:1},ct={3:1,6:1,4:1,5:1,153:1,213:1,223:1,105:1,125:1},ut={3:1,6:1,4:1,5:1,153:1,1915:1,223:1,105:1,125:1},ht={3:1,4:1,141:1,205:1,409:1},gt={3:1,4:1,115:1,205:1,409:1},ft={235:1},dt={3:1,4:1,5:1,584:1},pt={126:1,52:1},_t={451:1,235:1},yt={811:1,3:1,4:1},mt={3:1,4:1,5:1,819:1},wt=1e-5,vt=1e-6,xt=.09999999999999998,Et=1e-8,bt=4.71238898038469,Ct=3.141592653589793,St=6.283185307179586,kt=5e-324,$t={3:1,4:1,5:1,105:1},It=5.497787143782138,Tt=3.9269908169872414,Pt=2.356194490192345,Mt={329:1},Nt={287:1},Lt=.05,zt=1.2999999523162842,At={91:1,89:1},Dt=32768,Rt={104:1,91:1,89:1,55:1,48:1,96:1},Ft={190:1,3:1,4:1},Ot={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1},Gt={3:1,4:1,19:1,28:1,51:1,15:1,49:1,14:1,53:1,66:1,60:1,57:1,579:1},Bt={410:1,660:1},jt={3:1,4:1,19:1,28:1,51:1,15:1,14:1,66:1,57:1},Vt={363:1,142:1},Ht={3:1,4:1,5:1,124:1},Ut={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,57:1},qt={3:1,6:1,4:1,5:1,192:1},Wt={3:1,4:1,5:1,164:1,364:1},Kt=1024,Yt={76:1},Xt={3:1,19:1,15:1,14:1,57:1,580:1,76:1,67:1,95:1},Jt=8192,Zt=2048,Qt={3:1,4:1,5:1,246:1},en={3:1,4:1,5:1,661:1},tn={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,67:1},nn={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,76:1,67:1,95:1},rn={3:1,4:1,5:1,662:1},an={3:1,4:1,19:1,28:1,51:1,15:1,14:1,66:1,57:1,76:1,67:1,95:1},sn={19:1,28:1,51:1,15:1,14:1,57:1,67:1},on={49:1,123:1,277:1},ln={71:1,330:1},cn=1287,un=-32768,hn={54:1},gn={3:1,4:1,5:1,118:1},fn={91:1,89:1,582:1,1907:1},dn=1114111,pn={3:1,117:1},_n={3:1,4:1,5:1,365:1};function yn(){null==s&&(s=[])}function mn(){}function wn(e){return Array.isArray(e)&&e.typeMarker===mn?Yn($n(e))+"@"+(In(e)>>>0).toString(16):e.toString()}function vn(e){function t(){}return t.prototype=e||{},new t}function xn(e,t,n){var r=function(){return e.apply(r,arguments)};return t.apply(r,n),r}function En(){}function bn(e,t,n){var r,s=a,o=s[e],l=o instanceof Array?o[0]:null;o&&!l?i=o:(!(r=t&&t.prototype)&&(r=a[t]),(i=vn(r)).castableTypeMap=n,!t&&(i.typeMarker=mn),s[e]=i);for(var c=3;c=14&&t<=16)),e}function Nn(e){return o$(null==e||On(e)),e}function Ln(e){return o$(null==e||Gn(e)),e}function zn(e){return o$(null==e||Vn(e)&&!(e.typeMarker===mn)),e}function An(e){return o$(null==e||jn(e)),e}function Dn(e){return String.fromCharCode(e)}function Rn(e){return!Array.isArray(e)&&e.typeMarker===mn}function Fn(e,t){return null!=e&&Tn(e,t)}function On(e){return"boolean"==typeof e}function Gn(e){return"number"==typeof e}function Bn(e){return null!=e&&Vn(e)&&!(e.typeMarker===mn)}function jn(e){return"string"==typeof e}function Vn(e){return"object"==typeof e||"function"==typeof e}function Hn(e){return null==e?null:e}function Un(e){return 0|Math.max(Math.min(e,u),-2147483648)}function qn(e){return o$(null==e),e}function Wn(e){null==e.typeName&&function(e){if(e.isArray_1()){var t=e.componentType;return t.isPrimitive()?e.typeName="["+t.typeId:t.isArray_1()?e.typeName="["+t.getName():e.typeName="[L"+t.getName()+";",e.canonicalName=t.getCanonicalName()+"[]",void(e.simpleName=t.getSimpleName()+"[]")}var n=e.packageName,r=e.compoundName;r=r.split("/"),e.typeName=ir(".",[n,ir("$",r)]),e.canonicalName=ir(".",[n,ir(".",r)]),e.simpleName=r[r.length-1]}(e)}function Kn(e){return e.enumConstantsFunc&&e.enumConstantsFunc()}function Yn(e){return Wn(e),e.typeName}function Xn(e){return(0!=(2&e.modifiers)?"interface ":0!=(1&e.modifiers)?"":"class ")+(Wn(e),e.typeName)}function Jn(){this.typeName=null,this.simpleName=null,this.packageName=null,this.compoundName=null,this.canonicalName=null,this.typeId=null,this.arrayLiterals=null}function Zn(e,t){var n;return(n=new Jn).packageName=e,n.compoundName=t,n}function Qn(e,t,n){var r;return ar(n,r=Zn(e,t)),r}function er(e,t,n,r,i,a){var s;return ar(n,s=Zn(e,t)),s.modifiers=i?8:0,s.enumSuperclass=r,s.enumConstantsFunc=i,s.enumValueOfFunc=a,s}function tr(e,t){var n;return(n=Zn(e,t)).modifiers=2,n}function nr(e,t){var n;return(n=Zn("",e)).typeId=t,n.modifiers=1,n}function rr(e,t){var n=e.arrayLiterals=e.arrayLiterals||[];return n[t]||(n[t]=e.createClassLiteralForArray(t))}function ir(e,t){for(var n=0;!t[n]||""==t[n];)n++;for(var r=t[n++];n>>0).toString(16)},i.equals=function(e){return this.equals_0(e)},i.hashCode=function(){return this.hashCode_1()},i.toString=function(){return this.toString_0()},bn(289,1,{289:1,1995:1},Jn),i.createClassLiteralForArray=function(e){var t;return(t=new Jn).modifiers=4,t.componentType=e>1?rr(this,e-1):this,t},i.getCanonicalName=function(){return Wn(this),this.canonicalName},i.getName=function(){return Yn(this)},i.getSimpleName=function(){return Wn(this),this.simpleName},i.isArray_1=function(){return 0!=(4&this.modifiers)},i.isPrimitive=function(){return 0!=(1&this.modifiers)},i.toString_0=function(){return Xn(this)},i.modifiers=0;var sr,or=Qn("java.lang","Object",1),lr=Qn("java.lang","Class",289);function cr(){cr=En,sr=new ur}function ur(){}function hr(e,t){return function(e,t,n){try{!function(e,t,n){if(xr(t),n.hasNext_0())for(Vp(t,gr(n.next_1()));n.hasNext_0();)Vp(t,e.separator),Vp(t,gr(n.next_1()))}(e,t,n)}catch(e){throw Fn(e=jg(e),588)?Vg(new Pf(e)):Vg(e)}return t}(e,new Jp,t).string}function gr(e){return xr(e),Fn(e,469)?Pn(e,469):wn(e)}function fr(){this.separator=An(xr(", "))}function dr(e,t){return Hn(e)===Hn(t)||null!=e&&kn(e,t)}function pr(e,t,n){if(e<0)return Mr("%s (%s) must not be negative",Sg(yg(or,1),g,1,5,[n,Cd(e)]));if(t<0)throw Vg(new gd("negative size: "+t));return Mr("%s (%s) must not be greater than size (%s)",Sg(yg(or,1),g,1,5,[n,Cd(e),Cd(t)]))}function _r(e){if(!e)throw Vg(new hd)}function yr(e,t){if(!e)throw Vg(new gd(t))}function mr(e,t){if(!e)throw Vg(new gd(Mr("value already present: %s",Sg(yg(or,1),g,1,5,[t]))))}function wr(e,t,n,r){if(!e)throw Vg(new gd(Mr(t,Sg(yg(or,1),g,1,5,[n,r]))))}function vr(e,t){if(e<0||e>=t)throw Vg(new Ef(function(e,t){if(e<0)return Mr("%s (%s) must not be negative",Sg(yg(or,1),g,1,5,["index",Cd(e)]));if(t<0)throw Vg(new gd("negative size: "+t));return Mr("%s (%s) must be less than size (%s)",Sg(yg(or,1),g,1,5,["index",Cd(e),Cd(t)]))}(e,t)));return e}function xr(e){if(null==e)throw Vg(new Vd);return e}function Er(e,t){if(null==e)throw Vg(new Hd(t));return e}function br(e,t){if(e<0||e>t)throw Vg(new Ef(pr(e,t,"index")));return e}function Cr(e,t,n){if(e<0||tn)throw Vg(new Ef(function(e,t,n){return e<0||e>n?pr(e,n,"start index"):t<0||t>n?pr(t,n,"end index"):Mr("end index (%s) must not be less than start index (%s)",Sg(yg(or,1),g,1,5,[Cd(t),Cd(e)]))}(e,t,n)))}function Sr(e){if(!e)throw Vg(new dd)}function kr(e){if(!e)throw Vg(new pd("no calls to next() since the last call to remove()"))}bn(1967,1,h),Qn("com.google.common.base","Optional",1967),bn(1143,1967,h,ur),i.equals_0=function(e){return e===this},i.hashCode_1=function(){return 2040732332},i.toString_0=function(){return"Optional.absent()"},i.transform=function(e){return xr(e),cr(),sr},Qn("com.google.common.base","Absent",1143),bn(620,1,{},fr),Qn("com.google.common.base","Joiner",620);var $r=tr("com.google.common.base","Predicate");function Ir(e,t){var n;for(n=0;n>>0).toString(16)),TC(),r=FC?new NC(null):kC(function(){var e,t,n;return EC||(EC=new $C,function(e,t){FC||(e.level=t)}(e=new NC(""),(CC(),xC)),t=EC,n=e,0==(TC(),FC?null:n.name_0).length&&PC(n,new jC),fy(t.loggerMap,FC?null:n.name_0,n)),EC}(),"com.google.common.base.Strings"),CC(),i="Exception during lenientFormat for "+n,a=t,(DC?(function(e){var t,n;if(e.level)return e.level;for(n=FC?null:e.parent_0;n;){if(t=FC?null:n.level)return t;n=FC?null:n.parent_0}CC()}(r),1):RC||GC?(CC(),1):OC&&(CC(),0))&&((s=new IC(i)).thrown=a,function(e,t){var n,r,i,a,s;for(r=0,a=MC(e).length;r";throw Vg(o)}}function Lr(e,t){for(Qk(t);e.hasNext_0();)t.accept(e.next_1())}function zr(){throw Vg(new i_)}function Ar(e){Dr.call(this,e,0)}function Dr(e,t){br(t,e),this.size_0=e,this.position=t}function Rr(e){switch(Sr(3!=e.state),e.state){case 2:return!1;case 0:return!0}return function(e){return e.state=3,e.next_0=e.computeNext(),2!=e.state&&(e.state=0,!0)}(e)}function Fr(e){var t;if(!Rr(e))throw Vg(new lE);return e.state=1,t=e.next_0,e.next_0=null,t}function Or(e){return e.keySet||(e.keySet=e.createKeySet())}function Gr(e,t,n){var r,i;return!!(r=Pn((i=e.asMap,i||(e.asMap=new oi(e,e.map_0))).get_3(t),15))&&r.remove_1(n)}function Br(e){var t;for(t=e.map_0.values_0().iterator_0();t.hasNext_0();)Pn(t.next_1(),15).clear_0();e.map_0.clear_0(),e.totalSize=0}function jr(e,t){var n;return!(n=Pn(e.map_0.get_3(t),15))&&(n=e.createCollection_0(t)),e.wrapCollection(t,n)}function Vr(e,t,n){var r;if(r=Pn(e.map_0.get_3(t),15))return!!r.add_2(n)&&(++e.totalSize,!0);if((r=e.createCollection_0(t)).add_2(n))return++e.totalSize,e.map_0.put(t,r),!0;throw Vg(new Pf("New Collection violated the Collection spec"))}function Hr(e,t){var n,r;return(n=Pn(e.map_0.remove_0(t),15))?((r=e.createCollection()).addAll(n),e.totalSize-=n.size_1(),n.clear_0(),e.unmodifiableCollectionSubclass(r)):e.createUnmodifiableEmptyCollection()}function Ur(e){return e.values||(e.values=new na(e))}function qr(e,t,n,r){return Fn(n,53)?new Oi(e,t,n,r):new Fi(e,t,n,r)}function Wr(e){_r(e.isEmpty()),this.map_0=e}function Kr(e){this.this$01=e,this.keyIterator=e.map_0.entrySet_0().iterator_0(),this.key=null,this.collection=null,this.valueIterator=(ol(),al)}function Yr(){}function Xr(e,t){var n,r;for(Qk(t),r=e.entrySet_0().iterator_0();r.hasNext_0();)n=Pn(r.next_1(),43),t.accept_1(n.getKey(),n.getValue())}function Jr(e,t,n,r){var i,a;return Qk(r),Qk(n),null==(a=null==(i=e.get_3(t))?n:JC(Pn(i,14),Pn(n,15)))?e.remove_0(t):e.put(t,a),a}bn(573,1,{169:1,573:1,3:1,45:1},Tr),i.test_0=function(e){return Ir(this,e)},i.apply_1=function(e){return Ir(this,e)},i.equals_0=function(e){var t;return!!Fn(e,573)&&(t=Pn(e,573),Ll(this.components,t.components))},i.hashCode_1=function(){return pw(this.components)+306654252},i.toString_0=function(){return function(e){var t,n,r,i;for(t=Bp(Wp(new Qp("Predicates."),"and"),40),n=!0,i=new $y(e);i.i0},i.next_1=function(){if(this.position>=this.size_0)throw Vg(new lE);return this.get_0(this.position++)},i.nextIndex_0=function(){return this.position},i.previous_0=function(){if(this.position<=0)throw Vg(new lE);return this.get_0(--this.position)},i.previousIndex=function(){return this.position-1},i.position=0,i.size_0=0,Qn("com.google.common.collect","AbstractIndexedListIterator",381),bn(679,197,f),i.hasNext_0=function(){return Rr(this)},i.next_1=function(){return Fr(this)},i.state=1,Qn("com.google.common.collect","AbstractIterator",679),bn(1958,1,{222:1}),i.asMap_0=function(){return this.asMap||(this.asMap=this.createAsMap())},i.equals_0=function(e){return Ec(this,e)},i.hashCode_1=function(){return In(this.asMap_0())},i.isEmpty=function(){return 0==this.size_1()},i.keySet_0=function(){return Or(this)},i.toString_0=function(){return wn(this.asMap_0())},Qn("com.google.common.collect","AbstractMultimap",1958),bn(713,1958,p),i.clear_0=function(){Br(this)},i.containsKey=function(e){return this.map_0.containsKey(e)},i.createAsMap=function(){return new oi(this,this.map_0)},i.createCollection_0=function(e){return this.createCollection()},i.createKeySet=function(){return new Si(this,this.map_0)},i.createUnmodifiableEmptyCollection=function(){return this.unmodifiableCollectionSubclass(this.createCollection())},i.get_1=function(e){return jr(this,e)},i.removeAll=function(e){return Hr(this,e)},i.size_1=function(){return this.totalSize},i.unmodifiableCollectionSubclass=function(e){return hw(),new Lw(e)},i.valueIterator_0=function(){return new Kr(this)},i.valueSpliterator=function(){return Aa(this.map_0.values_0().spliterator_0(),new Yr,64,this.totalSize)},i.wrapCollection=function(e,t){return new Ai(this,e,t,null)},i.totalSize=0,Qn("com.google.common.collect","AbstractMapBasedMultimap",713),bn(1601,713,p),i.createCollection=function(){return new Em(this.expectedValuesPerKey)},i.createUnmodifiableEmptyCollection=function(){return hw(),hw(),Cm},i.get_1=function(e){return Pn(jr(this,e),14)},i.removeAll=function(e){return Pn(Hr(this,e),14)},i.asMap_0=function(){return this.asMap||(this.asMap=new oi(this,this.map_0))},i.equals_0=function(e){return Ec(this,e)},i.get_2=function(e){return Pn(jr(this,e),14)},i.removeAll_0=function(e){return Pn(Hr(this,e),14)},i.unmodifiableCollectionSubclass=function(e){return mw(Pn(e,14))},i.wrapCollection=function(e,t){return qr(this,e,Pn(t,14),null)},Qn("com.google.common.collect","AbstractListMultimap",1601),bn(1079,1,_),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return this.keyIterator.hasNext_0()||this.valueIterator.hasNext_0()},i.next_1=function(){var e;return this.valueIterator.hasNext_0()||(e=Pn(this.keyIterator.next_1(),43),this.key=e.getKey(),this.collection=Pn(e.getValue(),15),this.valueIterator=this.collection.iterator_0()),this.output(this.key,this.valueIterator.next_1())},i.remove=function(){this.valueIterator.remove(),this.collection.isEmpty()&&this.keyIterator.remove(),--this.this$01.totalSize},Qn("com.google.common.collect","AbstractMapBasedMultimap/Itr",1079),bn(1080,1079,_,Kr),i.output=function(e,t){return t},Qn("com.google.common.collect","AbstractMapBasedMultimap/1",1080),bn(1081,1,{},Yr),i.apply_0=function(e){return Pn(e,15).spliterator_0()},Qn("com.google.common.collect","AbstractMapBasedMultimap/1methodref$spliterator$Type",1081);var Zr=tr("java.util","Map");function Qr(e,t){var n,r,i;return n=t.getKey(),i=t.getValue(),r=e.get_3(n),!(!(Hn(i)===Hn(r)||null!=i&&kn(i,r))||null==r&&!e.containsKey(n))}function ei(e,t,n){var r,i,a;for(i=e.entrySet_0().iterator_0();i.hasNext_0();)if(a=(r=Pn(i.next_1(),43)).getKey(),Hn(t)===Hn(a)||null!=t&&kn(t,a))return n&&(r=new Dy(r.getKey(),r.getValue()),i.remove()),r;return null}function ti(e,t){var n,r;for(Qk(t),r=t.entrySet_0().iterator_0();r.hasNext_0();)n=Pn(r.next_1(),43),e.put(n.getKey(),n.getValue())}function ni(e){var t,n,r;for(r=new $b(", ","{","}"),n=e.entrySet_0().iterator_0();n.hasNext_0();)Sb(r,ri(e,(t=Pn(n.next_1(),43)).getKey())+"="+ri(e,t.getValue()));return r.builder?0==r.suffix.length?r.builder.string:r.builder.string+""+r.suffix:r.emptyValue}function ri(e,t){return Hn(t)===Hn(e)?"(this Map)":null==t?"null":wn(t)}function ii(e){return e?e.key:null}function ai(e){return e?e.getValue():null}function si(e,t){var n;return new Vs(n=t.getKey(),e.this$01_1.wrapCollection(n,Pn(t.getValue(),15)))}function oi(e,t){this.this$01_1=e,this.submap=t}function li(e,t){var n,r;for(Qk(t),r=e.iterator_0();r.hasNext_0();)n=r.next_1(),t.accept(n)}bn(1949,1,y),i.forEach=function(e){Xr(this,e)},i.merge=function(e,t,n){return Jr(this,e,t,n)},i.clear_0=function(){this.entrySet_0().clear_0()},i.containsEntry=function(e){return Qr(this,e)},i.containsKey=function(e){return!!ei(this,e,!1)},i.containsValue=function(e){var t,n;for(t=this.entrySet_0().iterator_0();t.hasNext_0();)if(n=Pn(t.next_1(),43).getValue(),Hn(e)===Hn(n)||null!=e&&kn(e,n))return!0;return!1},i.equals_0=function(e){var t,n,r;if(e===this)return!0;if(!Fn(e,84))return!1;if(r=Pn(e,84),this.size_1()!=r.size_1())return!1;for(n=r.entrySet_0().iterator_0();n.hasNext_0();)if(t=Pn(n.next_1(),43),!this.containsEntry(t))return!1;return!0},i.get_3=function(e){return ai(ei(this,e,!1))},i.hashCode_1=function(){return dw(this.entrySet_0())},i.isEmpty=function(){return 0==this.size_1()},i.keySet_0=function(){return new My(this)},i.put=function(e,t){throw Vg(new a_("Put not supported on this map"))},i.putAll=function(e){ti(this,e)},i.remove_0=function(e){return ai(ei(this,e,!0))},i.size_1=function(){return this.entrySet_0().size_1()},i.toString_0=function(){return ni(this)},i.values_0=function(){return new Ly(this)},Qn("java.util","AbstractMap",1949),bn(1959,1949,y),i.createKeySet=function(){return new Ci(this)},i.entrySet_0=function(){return this.entrySet||(this.entrySet=this.createEntrySet())},i.keySet_0=function(){return this.keySet||(this.keySet=this.createKeySet())},i.values_0=function(){return this.values||(this.values=new vc(this))},Qn("com.google.common.collect","Maps/ViewCachingAbstractMap",1959),bn(316,1959,y,oi),i.get_3=function(e){return function(e,t){var n,r;return(n=Pn(dc(e.submap,t),15))?(r=t,e.this$01_1.wrapCollection(r,n)):null}(this,e)},i.remove_0=function(e){return function(e,t){var n,r;return(n=Pn(e.submap.remove_0(t),15))?((r=e.this$01_1.createCollection()).addAll(n),e.this$01_1.totalSize-=n.size_1(),n.clear_0(),r):null}(this,e)},i.clear_0=function(){this.submap==this.this$01_1.map_0?this.this$01_1.clear_0():Ao(new bi(this))},i.containsKey=function(e){return fc(this.submap,e)},i.createEntrySet_0=function(){return new xi(this)},i.createEntrySet=function(){return this.createEntrySet_0()},i.equals_0=function(e){return this===e||kn(this.submap,e)},i.hashCode_1=function(){return In(this.submap)},i.keySet_0=function(){return this.this$01_1.keySet_0()},i.size_1=function(){return this.submap.size_1()},i.toString_0=function(){return wn(this.submap)},Qn("com.google.common.collect","AbstractMapBasedMultimap/AsMap",316);var ci=tr("java.lang","Iterable");function ui(e,t){var n,r,i;for(Qk(t),n=!1,i=t.iterator_0();i.hasNext_0();)r=i.next_1(),n|=e.add_2(r);return n}function hi(e,t,n){var r,i;for(i=e.iterator_0();i.hasNext_0();)if(r=i.next_1(),Hn(t)===Hn(r)||null!=t&&kn(t,r))return n&&i.remove(),!0;return!1}function gi(e){var t;for(t=e.iterator_0();t.hasNext_0();)t.next_1(),t.remove()}function fi(e,t){var n,r;for(Qk(t),r=t.iterator_0();r.hasNext_0();)if(n=r.next_1(),!e.contains(n))return!1;return!0}function di(e){return e.toArray_0(xg(or,g,1,e.size_1(),5,1))}function pi(e,t){var n,r,i,a;for(a=e.size_1(),t.lengtha&&Cg(t,a,null),t}function _i(e){var t,n,r;for(r=new $b(", ","[","]"),n=e.iterator_0();n.hasNext_0();)Sb(r,Hn(t=n.next_1())===Hn(e)?"(this Collection)":null==t?"null":wn(t));return r.builder?0==r.suffix.length?r.builder.string:r.builder.string+""+r.suffix:r.emptyValue}bn(28,1,m),i.forEach_0=function(e){li(this,e)},i.parallelStream=function(){return this.stream()},i.spliterator_0=function(){return new YE(this,0)},i.stream=function(){return new ck(null,this.spliterator_0())},i.add_2=function(e){throw Vg(new a_("Add not supported on this collection"))},i.addAll=function(e){return ui(this,e)},i.clear_0=function(){gi(this)},i.contains=function(e){return hi(this,e,!1)},i.containsAll=function(e){return fi(this,e)},i.isEmpty=function(){return 0==this.size_1()},i.remove_1=function(e){return hi(this,e,!0)},i.toArray=function(){return di(this)},i.toArray_0=function(e){return pi(this,e)},i.toString_0=function(){return _i(this)},Qn("java.util","AbstractCollection",28);var yi=tr("java.util","Set");function mi(e,t){var n;return Hn(t)===Hn(e)||!!Fn(t,21)&&(n=Pn(t,21)).size_1()==e.size_1()&&e.containsAll(n)}function wi(e,t){var n,r,i,a;if(Qk(t),(a=e.map_0.size_1())0},i.spliterator_0=function(){return this.map_0.keySet_0().spliterator_0()},Qn("com.google.common.collect","AbstractMapBasedMultimap/KeySet",315),bn(718,1,_,ki),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return this.val$entryIterator2.hasNext_0()},i.next_1=function(){return this.entry=Pn(this.val$entryIterator2.next_1(),43),this.entry.getKey()},i.remove=function(){var e;kr(!!this.entry),e=Pn(this.entry.getValue(),15),this.val$entryIterator2.remove(),this.this$11.this$01.totalSize-=e.size_1(),e.clear_0(),this.entry=null},Qn("com.google.common.collect","AbstractMapBasedMultimap/KeySet/1",718),bn(484,316,{84:1,161:1},$i),i.createKeySet=function(){return this.createKeySet_0()},i.keySet_0=function(){return this.keySet_1()},i.createKeySet_0=function(){return new Ti(this.this$01_0,this.sortedMap())},i.keySet_1=function(){return this.sortedKeySet||(this.sortedKeySet=this.createKeySet_0())},i.sortedMap=function(){return Pn(this.submap,161)},Qn("com.google.common.collect","AbstractMapBasedMultimap/SortedAsMap",484),bn(536,484,x,Ii),i.createKeySet=function(){return new Pi(this.this$01,Pn(Pn(this.submap,161),171))},i.createKeySet_0=function(){return new Pi(this.this$01,Pn(Pn(this.submap,161),171))},i.keySet_0=function(){return Pn(this.sortedKeySet||(this.sortedKeySet=new Pi(this.this$01,Pn(Pn(this.submap,161),171))),270)},i.keySet_1=function(){return Pn(this.sortedKeySet||(this.sortedKeySet=new Pi(this.this$01,Pn(Pn(this.submap,161),171))),270)},i.sortedMap=function(){return Pn(Pn(this.submap,161),171)},Qn("com.google.common.collect","AbstractMapBasedMultimap/NavigableAsMap",536),bn(483,315,E,Ti),i.spliterator_0=function(){return this.map_0.keySet_0().spliterator_0()},Qn("com.google.common.collect","AbstractMapBasedMultimap/SortedKeySet",483),bn(385,483,b,Pi),Qn("com.google.common.collect","AbstractMapBasedMultimap/NavigableKeySet",385),bn(535,28,m,Ai),i.add_2=function(e){var t,n;return Ni(this),n=this.delegate.isEmpty(),(t=this.delegate.add_2(e))&&(++this.this$01_0.totalSize,n&&Mi(this)),t},i.addAll=function(e){var t,n,r;return!e.isEmpty()&&(Ni(this),r=this.delegate.size_1(),(t=this.delegate.addAll(e))&&(n=this.delegate.size_1(),this.this$01_0.totalSize+=n-r,0==r&&Mi(this)),t)},i.clear_0=function(){var e;Ni(this),0!=(e=this.delegate.size_1())&&(this.delegate.clear_0(),this.this$01_0.totalSize-=e,Li(this))},i.contains=function(e){return Ni(this),this.delegate.contains(e)},i.containsAll=function(e){return Ni(this),this.delegate.containsAll(e)},i.equals_0=function(e){return e===this||(Ni(this),kn(this.delegate,e))},i.hashCode_1=function(){return Ni(this),In(this.delegate)},i.iterator_0=function(){return Ni(this),new Vi(this)},i.remove_1=function(e){var t;return Ni(this),(t=this.delegate.remove_1(e))&&(--this.this$01_0.totalSize,Li(this)),t},i.size_1=function(){return zi(this)},i.spliterator_0=function(){return Ni(this),this.delegate.spliterator_0()},i.toString_0=function(){return Ni(this),wn(this.delegate)},Qn("com.google.common.collect","AbstractMapBasedMultimap/WrappedCollection",535);var Ri=tr("java.util","List");function Fi(e,t,n,r){this.this$01=e,Ai.call(this,e,t,n,r)}function Oi(e,t,n,r){Fi.call(this,e,t,n,r)}function Gi(e){e.originalDelegate=e.this$11_0.delegate}function Bi(e){e.delegateIterator.remove(),--e.this$11_0.this$01_0.totalSize,Li(e.this$11_0)}function ji(e){if(Ni(e.this$11_0),e.this$11_0.delegate!=e.originalDelegate)throw Vg(new ov)}function Vi(e){var t;this.this$11_0=e,Gi(this),this.delegateIterator=Fn(t=e.delegate,14)?Pn(t,14).listIterator_0():t.iterator_0()}function Hi(e,t){this.this$11_0=e,Gi(this),this.delegateIterator=t}function Ui(e){this.this$11=e,Vi.call(this,e)}function qi(e,t){this.this$11=e,Hi.call(this,e,Pn(e.delegate,14).listIterator_1(t))}function Wi(e,t,n){Ai.call(this,e,t,n,null)}function Ki(e,t,n){Wi.call(this,e,t,n)}function Yi(e,t,n){Ai.call(this,e,t,n,null)}bn(715,535,{19:1,28:1,15:1,14:1},Fi),i.sort_0=function(e){Di(this,e)},i.spliterator_0=function(){return Ni(this),this.delegate.spliterator_0()},i.add_3=function(e,t){var n;Ni(this),n=this.delegate.isEmpty(),Pn(this.delegate,14).add_3(e,t),++this.this$01.totalSize,n&&Mi(this)},i.addAll_0=function(e,t){var n,r,i;return!t.isEmpty()&&(Ni(this),i=this.delegate.size_1(),(n=Pn(this.delegate,14).addAll_0(e,t))&&(r=this.delegate.size_1(),this.this$01.totalSize+=r-i,0==i&&Mi(this)),n)},i.get_0=function(e){return Ni(this),Pn(this.delegate,14).get_0(e)},i.indexOf_0=function(e){return Ni(this),Pn(this.delegate,14).indexOf_0(e)},i.listIterator_0=function(){return Ni(this),new Ui(this)},i.listIterator_1=function(e){return Ni(this),new qi(this,e)},i.remove_2=function(e){var t;return Ni(this),t=Pn(this.delegate,14).remove_2(e),--this.this$01.totalSize,Li(this),t},i.set_2=function(e,t){return Ni(this),Pn(this.delegate,14).set_2(e,t)},i.subList=function(e,t){return Ni(this),qr(this.this$01,this.key,Pn(this.delegate,14).subList(e,t),this.ancestor?this.ancestor:this)},Qn("com.google.common.collect","AbstractMapBasedMultimap/WrappedList",715),bn(1076,715,{19:1,28:1,15:1,14:1,53:1},Oi),Qn("com.google.common.collect","AbstractMapBasedMultimap/RandomAccessWrappedList",1076),bn(610,1,_,Vi),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return ji(this),this.delegateIterator.hasNext_0()},i.next_1=function(){return ji(this),this.delegateIterator.next_1()},i.remove=function(){Bi(this)},Qn("com.google.common.collect","AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",610),bn(716,610,C,Ui,qi),i.remove=function(){Bi(this)},i.add_1=function(e){var t;t=0==zi(this.this$11),(ji(this),Pn(this.delegateIterator,123)).add_1(e),++this.this$11.this$01.totalSize,t&&Mi(this.this$11)},i.hasPrevious=function(){return(ji(this),Pn(this.delegateIterator,123)).hasPrevious()},i.nextIndex_0=function(){return(ji(this),Pn(this.delegateIterator,123)).nextIndex_0()},i.previous_0=function(){return(ji(this),Pn(this.delegateIterator,123)).previous_0()},i.previousIndex=function(){return(ji(this),Pn(this.delegateIterator,123)).previousIndex()},i.set_1=function(e){(ji(this),Pn(this.delegateIterator,123)).set_1(e)},Qn("com.google.common.collect","AbstractMapBasedMultimap/WrappedList/WrappedListIterator",716),bn(714,535,E,Wi),i.spliterator_0=function(){return Ni(this),this.delegate.spliterator_0()},Qn("com.google.common.collect","AbstractMapBasedMultimap/WrappedSortedSet",714),bn(1075,714,b,Ki),Qn("com.google.common.collect","AbstractMapBasedMultimap/WrappedNavigableSet",1075),bn(1074,535,v,Yi),i.spliterator_0=function(){return Ni(this),this.delegate.spliterator_0()},Qn("com.google.common.collect","AbstractMapBasedMultimap/WrappedSet",1074);var Xi,Ji,Zi,Qi,ea=tr("java.util","Map/Entry");function ta(e){this.this$01=e}function na(e){this.this$01=e}function ra(e){Wr.call(this,e)}function ia(e){return e.values||(e.values=new na(e))}function aa(e){ra.call(this,e)}function sa(e){this.this$01=e}function oa(e){this.this$01=e}function la(e){Wr.call(this,e)}function ca(){ua.call(this,12,3)}function ua(e,t){la.call(this,new Fv(hc(e))),za(t,"expectedValuesPerKey"),this.expectedValuesPerKey=t}function ha(e,t,n){return vr(t,e.rowList.delegateList_0().size_1()),vr(n,e.columnList.delegateList_0().size_1()),e.array[t][n]}function ga(){throw Vg(new i_)}function fa(e,t,n){var r,i;return i=Pn(Es(e.rowKeyToIndex,t),20),r=Pn(Es(e.columnKeyToIndex,n),20),i&&r?ha(e,i.value_0,r.value_0):null}function da(e,t){var n,r;return r=t/e.columnList.delegateList_0().size_1()|0,n=t%e.columnList.delegateList_0().size_1(),ha(e,r,n)}function pa(e,t,n,r){var i,a;return xr(t),xr(n),wr(!!(a=Pn(Es(e.rowKeyToIndex,t),20)),"Row %s not in %s",t,e.rowList),wr(!!(i=Pn(Es(e.columnKeyToIndex,n),20)),"Column %s not in %s",n,e.columnList),ya(e,a.value_0,i.value_0,r)}function _a(e){return e.rowMap||(e.rowMap=new Na(e))}function ya(e,t,n,r){var i;return vr(t,e.rowList.delegateList_0().size_1()),vr(n,e.columnList.delegateList_0().size_1()),i=e.array[t][n],Cg(e.array[t],n,r),i}function ma(e){return e.rowList.delegateList_0().size_1()*e.columnList.delegateList_0().size_1()}function wa(e){return Da(e.rowList.delegateList_0().size_1()*e.columnList.delegateList_0().size_1(),16,new Ca(e))}function va(e,t){var n;this.rowList=(gs(),xr(e),gs(),ps(e)),this.columnList=(xr(t),ps(t)),_r(this.rowList.delegateList_0().isEmpty()==this.columnList.delegateList_0().isEmpty()),this.rowKeyToIndex=gc(this.rowList),this.columnKeyToIndex=gc(this.columnList),n=wg(or,[$,g],[5,1],5,[this.rowList.delegateList_0().size_1(),this.columnList.delegateList_0().size_1()],2),this.array=n,function(e){var t,n,r,i;for(r=0,i=(n=e.array).length;r=r||0>(i=r-1)?new BS:new GS(null,new RS(i+1,i))).spliterator_1(),n,t);var r,i}function Ra(e,t){return xr(e),xr(t),new Oa(e,t)}function Fa(e,t){for(;e.tryAdvance(t););}function Oa(e,t){this.val$fromSpliterator1=e,this.val$function2=t}function Ga(e,t){this.action_0=e,this.function_1=t}function Ba(e,t){this.action_0=e,this.function_1=t}function ja(e,t,n,r){this.val$function6=r,this.prefix=null,this.from=e,this.characteristics=t,this.estimatedSize=n}function Va(e,t){this.$$outer_0=e,this.function_1=t}function Ha(e,t){this.function_0=e,this.action_1=t}function Ua(e,t,n){this.val$function2=t,this.val$extraCharacteristics3=n,this.delegate=e}function qa(e,t){this.action_0=e,this.function_1=t}function Wa(e,t){this.action_0=e,this.function_1=t}function Ka(e,t){xr(e);try{return e.contains(t)}catch(e){if(Fn(e=jg(e),203)||Fn(e,173))return!1;throw Vg(e)}}function Ya(e,t){var n;if(Fn(t,244)){n=Pn(t,244);try{return 0==e.compareTo(n)}catch(e){if(!Fn(e=jg(e),203))throw Vg(e)}}return!1}function Xa(e){this.endpoint=e}function Ja(){Ja=En,Xi=new Za}function Za(){Xa.call(this,null)}function Qa(e){Xa.call(this,Pn(xr(e),36))}function es(){es=En,Ji=new ts}function ts(){Xa.call(this,null)}function ns(e){Xa.call(this,Pn(xr(e),36))}function rs(){cr()}function is(e){var t,n,r;for(n=0,r=(t=e).length;n0}function Gs(e){this.this$01=e,this.next_0=this.this$01.firstInKeyInsertionOrder,this.expectedModCount=this.this$01.modCount,this.remaining=this.this$01.size_0}function Bs(e,t){this.this$02=t,Gs.call(this,e)}function js(e,t){this.this$11=e,this.delegate=t}function Vs(e,t){this.key=e,this.value_0=t}function Hs(e,t,n,r){Vs.call(this,e,n),this.keyHash=t,this.valueHash=r}bn(342,1,S),i.equals_0=function(e){var t;return!!Fn(e,43)&&(t=Pn(e,43),dr(this.getKey(),t.getKey())&&dr(this.getValue(),t.getValue()))},i.hashCode_1=function(){var e,t;return e=this.getKey(),t=this.getValue(),(null==e?0:In(e))^(null==t?0:In(t))},i.setValue=function(e){throw Vg(new i_)},i.toString_0=function(){return this.getKey()+"="+this.getValue()},Qn("com.google.common.collect","AbstractMapEntry",342),bn(1960,28,m),i.clear_0=function(){fl(this.multimap_0())},i.contains=function(e){var t,n,r,i,a,s;return!!Fn(e,43)&&(t=Pn(e,43),n=this.multimap_0(),r=t.getKey(),i=t.getValue(),!!(a=Pn((s=n.asMap,s||(n.asMap=new oi(n,n.map_0))).get_3(r),15))&&a.contains(i))},i.remove_1=function(e){var t;return!!Fn(e,43)&&(t=Pn(e,43),Gr(this.multimap_0(),t.getKey(),t.getValue()))},i.size_1=function(){return this.multimap_0().totalSize},Qn("com.google.common.collect","Multimaps/Entries",1960),bn(1082,1960,m),i.iterator_0=function(){return new wl(this.this$01)},i.multimap_0=function(){return this.this$01},i.spliterator_0=function(){return dl(this.this$01)},Qn("com.google.common.collect","AbstractMultimap/Entries",1082),bn(719,1082,v,ta),i.spliterator_0=function(){return dl(this.this$01)},i.equals_0=function(e){return Fc(this,e)},i.hashCode_1=function(){return Oc(this)},Qn("com.google.common.collect","AbstractMultimap/EntrySet",719),bn(720,28,m,na),i.clear_0=function(){this.this$01.clear_0()},i.contains=function(e){return function(e,t){var n;for(n=e.asMap_0().values_0().iterator_0();n.hasNext_0();)if(Pn(n.next_1(),15).contains(t))return!0;return!1}(this.this$01,e)},i.iterator_0=function(){return this.this$01.valueIterator_0()},i.size_1=function(){return this.this$01.totalSize},i.spliterator_0=function(){return this.this$01.valueSpliterator()},Qn("com.google.common.collect","AbstractMultimap/Values",720),bn(609,713,p),i.createCollection=function(){return this.createCollection_1()},i.createUnmodifiableEmptyCollection=function(){return this.createUnmodifiableEmptyCollection_0()},i.get_1=function(e){return this.get_4(e)},i.removeAll=function(e){return this.removeAll_1(e)},i.asMap_0=function(){return this.asMap||(this.asMap=this.createAsMap())},i.createUnmodifiableEmptyCollection_0=function(){return hw(),hw(),km},i.equals_0=function(e){return Ec(this,e)},i.get_4=function(e){return Pn(jr(this,e),21)},i.removeAll_1=function(e){return Pn(Hr(this,e),21)},i.unmodifiableCollectionSubclass=function(e){return hw(),new Hw(Pn(e,21))},i.wrapCollection=function(e,t){return new Yi(this,e,Pn(t,21))},Qn("com.google.common.collect","AbstractSetMultimap",609),bn(1627,609,p),i.createCollection=function(){return new pC(this.valueComparator)},i.createCollection_1=function(){return new pC(this.valueComparator)},i.createUnmodifiableEmptyCollection=function(){return Uc(new pC(this.valueComparator))},i.createUnmodifiableEmptyCollection_0=function(){return Uc(new pC(this.valueComparator))},i.get_1=function(e){return Pn(Pn(jr(this,e),21),81)},i.get_4=function(e){return Pn(Pn(jr(this,e),21),81)},i.removeAll=function(e){return Pn(Pn(Hr(this,e),21),81)},i.removeAll_1=function(e){return Pn(Pn(Hr(this,e),21),81)},i.unmodifiableCollectionSubclass=function(e){return Fn(e,270)?Uc(Pn(e,270)):(hw(),new Zw(Pn(e,81)))},i.asMap_0=function(){return this.asMap||(this.asMap=Fn(this.map_0,171)?new Ii(this,Pn(this.map_0,171)):Fn(this.map_0,161)?new $i(this,Pn(this.map_0,161)):new oi(this,this.map_0))},i.wrapCollection=function(e,t){return Fn(t,270)?new Ki(this,e,Pn(t,270)):new Wi(this,e,Pn(t,81))},Qn("com.google.common.collect","AbstractSortedSetMultimap",1627),bn(1628,1627,p),i.asMap_0=function(){return Pn(Pn(this.asMap||(this.asMap=Fn(this.map_0,171)?new Ii(this,Pn(this.map_0,171)):Fn(this.map_0,161)?new $i(this,Pn(this.map_0,161)):new oi(this,this.map_0)),161),171)},i.keySet_0=function(){return Pn(Pn(this.keySet||(this.keySet=Fn(this.map_0,171)?new Pi(this,Pn(this.map_0,171)):Fn(this.map_0,161)?new Ti(this,Pn(this.map_0,161)):new Si(this,this.map_0)),81),270)},i.createKeySet=function(){return Fn(this.map_0,171)?new Pi(this,Pn(this.map_0,171)):Fn(this.map_0,161)?new Ti(this,Pn(this.map_0,161)):new Si(this,this.map_0)},Qn("com.google.common.collect","AbstractSortedKeySortedSetMultimap",1628),bn(1979,1,{1919:1}),i.equals_0=function(e){return function(e,t){var n;return t===e||!!Fn(t,652)&&(n=Pn(t,1919),mi(e.cellSet||(e.cellSet=new sa(e)),n.cellSet||(n.cellSet=new sa(n))))}(this,e)},i.hashCode_1=function(){return dw(this.cellSet||(this.cellSet=new sa(this)))},i.toString_0=function(){return ni(this.rowMap||(this.rowMap=new Na(this)))},Qn("com.google.common.collect","AbstractTable",1979),bn(653,w,v,sa),i.clear_0=function(){ga()},i.contains=function(e){var t,n;return!!Fn(e,462)&&(t=Pn(e,669),!!(n=Pn(dc(_a(this.this$01),ys(t.this$01.rowList,t.rowIndex)),84))&&Ka(n.entrySet_0(),new Vs(ys(t.this$01.columnList,t.columnIndex),ha(t.this$01,t.rowIndex,t.columnIndex))))},i.iterator_0=function(){return new xa(e=this.this$01,e.rowList.delegateList_0().size_1()*e.columnList.delegateList_0().size_1());var e},i.remove_1=function(e){var t,n;return!!Fn(e,462)&&(t=Pn(e,669),!!(n=Pn(dc(_a(this.this$01),ys(t.this$01.rowList,t.rowIndex)),84))&&function(e,t){xr(e);try{return e.remove_1(t)}catch(e){if(Fn(e=jg(e),203)||Fn(e,173))return!1;throw Vg(e)}}(n.entrySet_0(),new Vs(ys(t.this$01.columnList,t.columnIndex),ha(t.this$01,t.rowIndex,t.columnIndex))))},i.size_1=function(){return ma(this.this$01)},i.spliterator_0=function(){return Da((e=this.this$01).rowList.delegateList_0().size_1()*e.columnList.delegateList_0().size_1(),273,new Ea(e));var e},Qn("com.google.common.collect","AbstractTable/CellSet",653),bn(k,28,m,oa),i.clear_0=function(){ga()},i.contains=function(e){return function(e,t){var n,r,i,a,s,o,l;for(o=0,l=(s=e.array).length;o(t=wd(e))?(t<<=1)>0?t:q:t}function ao(e,t){return e>t&&t=(i/2|0))for(this.previous=r?r.tail:null,this.nextIndex=i;n++0;)ql(this);this.key=t,this.current=null}function Xl(e){return xr(e),Fn(e,15)?new bm(Pn(e,15)):Jl(e.iterator_0())}function Jl(e){var t;return zo(t=new xm,e),t}function Zl(e){var t,n;return xr(e),za(n=e.length,"arraySize"),gw(t=new Em(uu(Hg(Hg(5,n),n/10|0))),e),t}function Ql(e){return za(e,"initialArraySize"),new Em(e)}function ec(e){return new Em((za(e,"arraySize"),uu(Hg(Hg(5,e),e/10|0))))}function tc(e){var t;return bo(t=new Hx,e),t}function nc(e){return Fn(e,151)?ds(Pn(e,151)):Fn(e,131)?Pn(e,131).forwardList:Fn(e,53)?new lc(e):new oc(e)}function rc(e){this.backingList=Pn(xr(e),14)}function ic(e,t){var n,r;return r=sc(e,t),n=e.forwardList.listIterator_1(r),new uc(e,n)}function ac(e,t){var n;return vr(t,n=e.forwardList.size_1()),n-1-t}function sc(e,t){var n;return br(t,n=e.forwardList.size_1()),n-t}function oc(e){this.forwardList=Pn(xr(e),14)}function lc(e){oc.call(this,e)}function cc(e){if(!e.val$forwardIterator2.hasPrevious())throw Vg(new lE);return e.canRemoveOrSet=!0,e.val$forwardIterator2.previous_0()}function uc(e,t){this.this$11=e,this.val$forwardIterator2=t}function hc(e){return e<3?(za(e,"expectedSize"),e+1):e0||e==(Ja(),Xi)||t==(es(),Ji))throw Vg(new gd("Invalid range: "+Mc(e,t)))}function Pc(e,t){return $c(),new Tc(new ns(e),new Qa(t))}function Mc(e,t){var n;return n=new Zp,e.describeAsLowerBound(n),n.string+="..",t.describeAsUpperBound(n),n.string}function Nc(e,t){this.delegate=e,this.delegateList=t}function Lc(e,t){gs(),Nc.call(this,e,_s(new uw(t)))}function zc(e){this.delegate=(hw(),Fn(e,53)?new Jw(e):new Dw(e))}function Ac(e){bs.call(this,e)}function Dc(){Dc=En,cs(),xl=new Rc((hw(),hw(),km))}function Rc(e){Dc(),ks.call(this,e)}function Fc(e,t){var n;if(Hn(e)===Hn(t))return!0;if(Fn(t,21)){n=Pn(t,21);try{return e.size_1()==n.size_1()&&e.containsAll(n)}catch(e){if(Fn(e=jg(e),173)||Fn(e,203))return!1;throw Vg(e)}}return!1}function Oc(e){var t,n,r;for(t=0,r=e.iterator_0();r.hasNext_0();)t=~~(t+=null!=(n=r.next_1())?In(n):0);return t}function Gc(e,t){return Er(e,"set1"),Er(t,"set2"),new Wc(e,t)}function Bc(e){return Fn(e,15)?new Uv(Pn(e,15)):function(e){var t;return zo(t=new Vv,e),t}(e.iterator_0())}function jc(e){var t;return gw(t=new Hv(hc(e.length)),e),t}function Vc(e){var t;return e?new Mx(e):(bo(t=new Tx,e),t)}function Hc(e){var t;return bo(t=new dC,e),t}function Uc(e){return Fn(e,594)?e:new Jc(e)}function qc(e){var t,n,r;for(r=0,n=new Dv(e.val$set11);n.i=0}(pf(c,h))?h:Hg(M,pf(cf(h,63),1));return Pn(Pn(SS(new ck(null,Aa(new YE((gs(),ps(i.contents)),16),new nu,t,n)),new ru(e)),658),812)}function nu(){}function ru(e){this.streams_0=e}function iu(e,t){aa.call(this,new Vb(e)),this.keyComparator=e,this.valueComparator=t}function au(){au=En,r.Math.log(2)}function su(e,t){return au(),lu(Q),r.Math.abs(e-t)<=Q||e==t||isNaN(e)&&isNaN(t)?0:et?1:cu(isNaN(e),isNaN(t))}function ou(e,t){return au(),lu(Q),r.Math.abs(e-t)<=Q||e==t||isNaN(e)&&isNaN(t)}function lu(e){if(!(e>=0))throw Vg(new gd("tolerance ("+e+") must be >= 0"));return e}function cu(e,t){return e==t?0:e?1:-1}function uu(e){return qg(e,u)>0?u:qg(e,ee)<0?ee:ff(e)}function hu(e){e.stackTrace=xg(Qd,$,308,0,0,1)}function gu(e,t){e$(t,"Cannot suppress a null exception."),Wk(t!=e,"Exception can not suppress itself."),e.disableSuppression||(null==e.suppressedExceptions?e.suppressedExceptions=Sg(yg(xu,1),$,78,0,[t]):e.suppressedExceptions[e.suppressedExceptions.length]=t)}function fu(e){return e.writableStackTrace&&("__noinit__"!==e.backingJsObject&&e.initializeBackingError(),e.stackTrace=null),e}function du(e,t){if(t instanceof Object)try{if(t.__java$exception=e,-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&$doc.documentMode<9)return;var n=e;Object.defineProperties(t,{cause:{get:function(){var e=n.getCause();return e&&e.getBackingJsObject()}},suppressed:{get:function(){return n.getBackingSuppressed()}}})}catch(e){}}function pu(e,t,n){var i,a,s,o;for(function(e){var t,n;for(null==e.stackTrace&&(e.stackTrace=(Uu(),function(e){var t;for("captureStackTrace","initializeBackingError",t=r.Math.min(e.length,5)-1;t>=0;t--)if(np(e[t].methodName,"captureStackTrace")||np(e[t].methodName,"initializeBackingError")){e.length>=t+1&&e.splice(0,t+1);break}return e}(Du.getStackTrace(e)))),t=0,n=e.stackTrace.length;t2e3&&(Gu=a,Bu=r.setTimeout(zu,10)),i=0==Ou++&&(function(e){var t,n;if(e.entryCommands){n=null;do{t=e.entryCommands,e.entryCommands=null,n=Hu(t,n)}while(e.entryCommands);e.entryCommands=n}}((ju(),Au)),!0);try{return function(e,t,n){return e.apply(t,n)}(e,t,n)}finally{!function(e){var t;e&&function(e){var t,n;if(e.finallyCommands){n=null;do{t=e.finallyCommands,e.finallyCommands=null,n=Hu(t,n)}while(e.finallyCommands);e.finallyCommands=n}}((ju(),Au)),--Ou,e&&-1!=Bu&&(t=Bu,r.clearTimeout(t),Bu=-1)}(i)}}function Lu(e){Mu(),r.setTimeout((function(){throw e}),0)}function zu(){0!=Ou&&(Ou=0),Bu=-1}bn(1920,1,{}),Qn("com.google.gwt.core.client","Scheduler",1920);var Au,Du,Ru,Fu,Ou=0,Gu=0,Bu=-1;function ju(){ju=En,Au=new Vu}function Vu(){}function Hu(e,t){var n,r,i,a,s,o;for(r=0,i=e.length;r0?(r.Error.stackTraceLimit=Error.stackTraceLimit=64,1):"stack"in new Error),e=new Ju,Du=t?new Yu:e}function qu(e){Uu(),Du.collect(e)}function Wu(e){var t=/function(?:\s+([\w$]+))?\s*\(/.exec(e);return t&&t[1]||"anonymous"}function Ku(e){return Uu(),parseInt(e)||-1}function Yu(){}function Xu(e,t){var n,r,i,a,s,o,l,c,u;return c="",0==t.length?e.createSte("Unknown","anonymous",-1,-1):(np((u=yp(t)).substr(0,3),"at ")&&(u=u.substr(3)),-1==(s=(u=u.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(s=u.indexOf("@"))?(c=u,u=""):(c=yp(u.substr(s+1)),u=yp(u.substr(0,s))):(n=u.indexOf(")",s),c=u.substr(s+1,n-(s+1)),u=yp(u.substr(0,s))),-1!=(s=sp(u,mp(46)))&&(u=u.substr(s+1)),(0==u.length||np(u,"Anonymous function"))&&(u="anonymous"),o=cp(c,mp(58)),i=up(c,mp(58),o-1),l=-1,r=-1,a="Unknown",-1!=o&&-1!=i&&(a=c.substr(0,i),l=Ku(c.substr(i+1,o-(i+1))),r=Ku(c.substr(o+1))),e.createSte(a,u,l,r))}function Ju(){}function Zu(){Zu=En,new Rv}function Qu(e,t,n){var r;t.string.length>0&&(lm(e.patternParts,new wh(t.string,n)),0<(r=t.string.length)?t.string=t.string.substr(0,0):0>r&&(t.string+=vp(xg(c1e,ne,24,-r,15,1))))}function eh(e,t){var n,r;for(s$(t,e.length),n=e.charCodeAt(t),r=t+1;r1||t>=0&&e.count<3)}function nh(e,t,n,r){var i,a,s,o,l,c,u,h;for(s=n.length,a=0,i=-1,c=_p(e.substr(t),(aE(),qx)),o=0;oa&&(u=c,h=_p(n[o],qx),np(u.substr(0,h.length),h))&&(i=o,a=l);return i>=0&&(r[0]=t+a),i}function rh(e,t){var n,r,i;if(i=0,(r=t[0])>=e.length)return-1;for(s$(r,e.length),n=e.charCodeAt(r);n>=48&&n<=57&&(i=10*i+(n-48),!(++r>=e.length));)s$(r,e.length),n=e.charCodeAt(r);return r>t[0]?t[0]=r:i=-1,i}function ih(e,t,n){var r,i,a,s;if(t[0]>=e.length)return n.tzOffset=0,!0;switch(ep(e,t[0])){case 43:i=1;break;case 45:i=-1;break;default:return n.tzOffset=0,!0}if(++t[0],a=t[0],0==(s=rh(e,t))&&t[0]==a)return!1;if(t[0]=0;)++t[0]}function sh(e,t,n,i,a,s){var o,l,c,u,h,g,f,d,p;switch(t){case 71:o=i.jsdate.getFullYear()-k>=-1900?1:0,Wp(e,n>=4?Sg(yg(Mp,1),$,2,6,["Before Christ","Anno Domini"])[o]:Sg(yg(Mp,1),$,2,6,["BC","AD"])[o]);break;case 121:!function(e,t,n){var r;switch((r=n.jsdate.getFullYear()-k+k)<0&&(r=-r),t){case 1:e.string+=r;break;case 2:lh(e,r%100,2);break;default:lh(e,r,t)}}(e,n,i);break;case 77:!function(e,t,n){var r;switch(r=n.jsdate.getMonth(),t){case 5:Wp(e,Sg(yg(Mp,1),$,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[r]);break;case 4:Wp(e,Sg(yg(Mp,1),$,2,6,["January","February","March","April","May","June","July","August","September","October","November","December"])[r]);break;case 3:Wp(e,Sg(yg(Mp,1),$,2,6,["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[r]);break;default:lh(e,r+1,t)}}(e,n,i);break;case 107:lh(e,0==(l=a.jsdate.getHours())?24:l,n);break;case 83:!function(e,t,n){var i,a;qg(i=Xg(n.jsdate.getTime()),0)<0?(a=Y-ff(ef(nf(i),Y)))==Y&&(a=0):a=ff(ef(i,Y)),1==t?Bp(e,48+(a=r.Math.min((a+50)/100|0,9))&re):2==t?lh(e,a=r.Math.min((a+5)/10|0,99),2):(lh(e,a,3),t>3&&lh(e,0,t-3))}(e,n,a);break;case 69:c=i.jsdate.getDay(),Wp(e,5==n?Sg(yg(Mp,1),$,2,6,["S","M","T","W","T","F","S"])[c]:4==n?Sg(yg(Mp,1),$,2,6,["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"])[c]:Sg(yg(Mp,1),$,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[c]);break;case 97:a.jsdate.getHours()>=12&&a.jsdate.getHours()<24?Wp(e,Sg(yg(Mp,1),$,2,6,["AM","PM"])[1]):Wp(e,Sg(yg(Mp,1),$,2,6,["AM","PM"])[0]);break;case 104:lh(e,0==(u=a.jsdate.getHours()%12)?12:u,n);break;case 75:lh(e,a.jsdate.getHours()%12,n);break;case 72:lh(e,a.jsdate.getHours(),n);break;case 99:h=i.jsdate.getDay(),5==n?Wp(e,Sg(yg(Mp,1),$,2,6,["S","M","T","W","T","F","S"])[h]):4==n?Wp(e,Sg(yg(Mp,1),$,2,6,["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"])[h]):3==n?Wp(e,Sg(yg(Mp,1),$,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[h]):lh(e,h,1);break;case 76:g=i.jsdate.getMonth(),5==n?Wp(e,Sg(yg(Mp,1),$,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[g]):4==n?Wp(e,Sg(yg(Mp,1),$,2,6,["January","February","March","April","May","June","July","August","September","October","November","December"])[g]):3==n?Wp(e,Sg(yg(Mp,1),$,2,6,["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[g]):lh(e,g+1,n);break;case 81:f=i.jsdate.getMonth()/3|0,Wp(e,n<4?Sg(yg(Mp,1),$,2,6,["Q1","Q2","Q3","Q4"])[f]:Sg(yg(Mp,1),$,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[f]);break;case 100:lh(e,i.jsdate.getDate(),n);break;case 109:lh(e,a.jsdate.getMinutes(),n);break;case 115:lh(e,a.jsdate.getSeconds(),n);break;case 122:Wp(e,n<4?s.tzNames[0]:s.tzNames[1]);break;case 118:Wp(e,s.timezoneID);break;case 90:Wp(e,n<3?(p=-s.standardOffset,d=Sg(yg(c1e,1),ne,24,15,[43,48,48,48,48]),p<0&&(d[0]=45,p=-p),d[1]=d[1]+((p/60|0)/10|0)&re,d[2]=d[2]+(p/60|0)%10&re,d[3]=d[3]+(p%60/10|0)&re,d[4]=d[4]+p%10&re,xp(d,0,d.length)):3==n?function(e){var t,n;return n=-e.standardOffset,t=Sg(yg(c1e,1),ne,24,15,[43,48,48,58,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&re,t[2]=t[2]+(n/60|0)%10&re,t[4]=t[4]+(n%60/10|0)&re,t[5]=t[5]+n%10&re,xp(t,0,t.length)}(s):function(e){var t;return t=Sg(yg(c1e,1),ne,24,15,[71,77,84,45,48,48,58,48,48]),e<=0&&(t[3]=43,e=-e),t[4]=t[4]+((e/60|0)/10|0)&re,t[5]=t[5]+(e/60|0)%10&re,t[7]=t[7]+(e%60/10|0)&re,t[8]=t[8]+e%10&re,xp(t,0,t.length)}(s.standardOffset));break;default:return!1}return!0}function oh(e,t,n,r,i){var a,s,o;if(ah(e,t),s=t[0],a=ep(n.text_0,0),o=-1,th(n))if(r>0){if(s+r>e.length)return!1;o=rh(e.substr(0,s+r),t)}else o=rh(e,t);switch(a){case 71:return o=nh(e,s,Sg(yg(Mp,1),$,2,6,["Before Christ","Anno Domini"]),t),i.era=o,!0;case 77:case 76:return function(e,t,n,r,i){return r<0?((r=nh(e,i,Sg(yg(Mp,1),$,2,6,["January","February","March","April","May","June","July","August","September","October","November","December"]),t))<0&&(r=nh(e,i,Sg(yg(Mp,1),$,2,6,["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),!(r<0||(n.month=r,0))):r>0&&(n.month=r-1,!0)}(e,t,i,o,s);case 69:case 99:return function(e,t,n,r){var i;return(i=nh(e,n,Sg(yg(Mp,1),$,2,6,["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]),t))<0&&(i=nh(e,n,Sg(yg(Mp,1),$,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t)),!(i<0)&&(r.dayOfWeek=i,!0)}(e,t,s,i);case 97:return o=nh(e,s,Sg(yg(Mp,1),$,2,6,["AM","PM"]),t),i.ampm=o,!0;case 121:return function(e,t,n,r,i,a){var s,o,l;if(o=32,r<0){if(t[0]>=e.length)return!1;if(43!=(o=ep(e,t[0]))&&45!=o)return!1;if(++t[0],(r=rh(e,t))<0)return!1;45==o&&(r=-r)}return 32==o&&t[0]-n==2&&2==i.count&&(s=(l=(new Ch).jsdate.getFullYear()-k+k-80)%100,a.ambiguousYear=r==s,r+=100*(l/100|0)+(r3;)i*=10,--a;e=(e+(i>>1))/i|0}return r.milliseconds=e,!0}(o,s,t[0],i);case 104:12==o&&(o=0);case 75:case 72:return!(o<0||(i.hours=o,i.midnightIs24=!1,0));case 107:return!(o<0||(i.hours=o,i.midnightIs24=!0,0));case 109:return!(o<0||(i.minutes=o,0));case 115:return!(o<0||(i.seconds=o,0));case 90:if(s=0&&np(e.substr(t,"GMT".length),"GMT")||t>=0&&np(e.substr(t,"UTC".length),"UTC")?(n[0]=t+3,ih(e,n,r)):ih(e,n,r)}(e,s,t,i);default:return!1}}function lh(e,t,n){var r,i;for(r=10,i=0;i0?(Qu(e,n,0),n.string+=String.fromCharCode(r),Qu(e,n,i=eh(t,a)),a+=i-1):39==r?a+10&&(l=o/60|0,c=o%60,i=e.jsdate.getDate(),e.jsdate.getHours()+l>=24&&++i,a=new r.Date(e.jsdate.getFullYear(),e.jsdate.getMonth(),i,t+l,e.jsdate.getMinutes()+c,e.jsdate.getSeconds(),e.jsdate.getMilliseconds()),e.jsdate.setTime(a.getTime()))),s=e.jsdate.getTime(),e.jsdate.setTime(s+36e5),e.jsdate.getHours()!=t&&e.jsdate.setTime(s)}function xh(e,t){var n;n=e.jsdate.getHours(),e.jsdate.setDate(t),vh(e,n)}function Eh(e,t){e.jsdate.setTime(gf(t))}function bh(e,t){var n;n=e.jsdate.getHours(),e.jsdate.setFullYear(t+k),vh(e,n)}function Ch(){this.jsdate=new r.Date}function Sh(e,t,n){this.jsdate=new r.Date,this.jsdate.setFullYear(e+k,t,n),this.jsdate.setHours(0,0,0,0),vh(this,0)}function kh(e){this.jsdate=new r.Date(gf(e))}function $h(e){return e<10?"0"+e:""+e}bn(869,1920,{},Vu),Qn("com.google.gwt.core.client.impl","SchedulerImpl",869),bn(1932,1,{}),Qn("com.google.gwt.core.client.impl","StackTraceCreator/Collector",1932),bn(843,1932,{},Yu),i.collect=function(e){var t={},n=[];e.fnStack=n;for(var r=arguments.callee.caller;r;){var i=(Uu(),r.name||(r.name=Wu(r.toString())));n.push(i);var a,s,o=":"+i,l=t[o];if(l)for(a=0,s=l.length;a=0?"+":"")+(n/60|0),t=$h(r.Math.abs(n)%60),(lv(),Mm)[this.jsdate.getDay()]+" "+Nm[this.jsdate.getMonth()]+" "+$h(this.jsdate.getDate())+" "+$h(this.jsdate.getHours())+":"+$h(this.jsdate.getMinutes())+":"+$h(this.jsdate.getSeconds())+" GMT"+e+t+" "+this.jsdate.getFullYear()};var Ih,Th,Ph,Mh,Nh,Lh,zh,Ah,Dh,Rh,Fh,Oh=Qn("java.util","Date",198);function Gh(){Ch.call(this),this.era=-1,this.ambiguousYear=!1,this.year=ee,this.month=-1,this.dayOfMonth=-1,this.ampm=-1,this.midnightIs24=!1,this.hours=-1,this.minutes=-1,this.seconds=-1,this.milliseconds=-1,this.dayOfWeek=-1,this.tzOffset=ee}function Bh(e,t){var n=e.jsArray[t],r=(lg(),Mh)[typeof n];return r?r(n):dg(typeof n)}function jh(e,t,n){if(n){var r=n.getUnwrapper();n=r(n)}else n=void 0;e.jsArray[t]=n}function Vh(){this.jsArray=[]}function Hh(e){this.jsArray=e}function Uh(e){return e.jsArray}function qh(){qh=En,Ih=new Wh(!1),Th=new Wh(!0)}function Wh(e){this.value_0=e}function Kh(e){return e.value_0}function Yh(e){bu.call(this,e)}function Xh(){Xh=En,Ph=new Jh}function Jh(){}function Zh(){return null}function Qh(e){this.value_0=e}function eg(e){return e.value_0}function tg(e,t){var n=e.jsObject,r=0;for(var i in n)n.hasOwnProperty(i)&&(t[r++]=i);return t}function ng(e,t){if(null==t)throw Vg(new Vd);return function(e,t){var n,r=e.jsObject;t=String(t),r.hasOwnProperty(t)&&(n=r[t]);var i=(lg(),Mh)[typeof n];return i?i(n):dg(typeof n)}(e,t)}function rg(e,t,n){var r;if(null==t)throw Vg(new Vd);return r=ng(e,t),function(e,t,n){if(n){var r=n.getUnwrapper();e.jsObject[t]=r(n)}else delete e.jsObject[t]}(e,t,n),r}function ig(){ag.call(this,{})}function ag(e){this.jsObject=e}function sg(e){return e.jsObject}function og(e,t){this.this$01=e,this.val$keys2=t}function lg(){lg=En,Mh={boolean:cg,number:ug,string:gg,object:hg,function:hg,undefined:fg}}function cg(e){return qh(),e?Th:Ih}function ug(e){return new Qh(e)}function hg(e){if(!e)return Xh(),Ph;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=Mh[typeof t];return n?n(t):dg(typeof t)}return e instanceof Array||e instanceof r.Array?new Hh(e):new ag(e)}function gg(e){return new pg(e)}function fg(){return null}function dg(e){throw lg(),Vg(new Yh("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function pg(e){if(null==e)throw Vg(new Vd);this.value_0=e}function _g(e){return e.value_0}function yg(e,t){return rr(e,t)}function mg(e){return null==e.__elementTypeCategory$?10:e.__elementTypeCategory$}function wg(e,t,n,r,i,a){return vg(e,t,n,r,i,0,a)}function vg(e,t,n,r,i,a,s){var o,l,c,u,h;if(h=Eg(o=(c=a==s-1)?r:0,u=i[a]),10!=r&&Sg(yg(e,s-a),t[a],n[a],o,h),!c)for(++a,l=0;l=14&&n<=16);case 11:return null!=t&&"function"==typeof t;case 12:return null!=t&&("object"==typeof t||"function"==typeof t);case 0:return Tn(t,e.__elementTypeId$);case 2:return Vn(t)&&!(t.typeMarker===mn);case 1:return Vn(t)&&!(t.typeMarker===mn)||Tn(t,e.__elementTypeId$);default:return!0}}(e,n)),e[t]=n}function Sg(e,t,n,r,i){return i.___clazz=e,i.castableTypeMap=t,i.typeMarker=mn,i.__elementTypeId$=n,i.__elementTypeCategory$=r,i}function kg(e,t){return 10!=mg(t)&&Sg($n(t),t.castableTypeMap,t.__elementTypeId$,mg(t),e),e}function $g(e){return Tg(e&se,e>>22&se,e<0?oe:0)}function Ig(e){return Tg(e.l,e.m,e.h)}function Tg(e,t,n){return{l:e,m:t,h:n}}function Pg(e,t,n){var r,i,a,s,o,l;if(0==t.l&&0==t.m&&0==t.h)throw Vg(new vf("divide by zero"));if(0==e.l&&0==e.m&&0==e.h)return n&&(Nh=Tg(0,0,0)),Tg(0,0,0);if(t.h==le&&0==t.m&&0==t.l)return function(e,t){return e.h==le&&0==e.m&&0==e.l?(t&&(Nh=Tg(0,0,0)),Ig((Bg(),Ah))):(t&&(Nh=Tg(e.l,e.m,e.h)),Tg(0,0,0))}(e,n);if(l=!1,t.h>>19!=0&&(t=Ag(t),l=!l),s=function(e){var t,n,r;return 0!=((n=e.l)&n-1)||0!=((r=e.m)&r-1)||0!=((t=e.h)&t-1)||0==t&&0==r&&0==n?-1:0==t&&0==r&&0!=n?xd(n):0==t&&0!=r&&0==n?xd(r)+22:0!=t&&0==r&&0==n?xd(t)+44:-1}(t),a=!1,i=!1,r=!1,e.h==le&&0==e.m&&0==e.l){if(i=!0,a=!0,-1!=s)return o=Rg(e,s),l&&Mg(o),n&&(Nh=Tg(0,0,0)),o;e=Ig((Bg(),Lh)),r=!0,l=!l}else e.h>>19!=0&&(a=!0,e=Ag(e),r=!0,l=!l);return-1!=s?function(e,t,n,r,i){var a;return a=Rg(e,t),n&&Mg(a),i&&(e=function(e,t){var n,r,i;return t<=22?(n=e.l&(1<=0&&(!Lg(e,s)||(l<22?o.l|=1<>>1,s.m=c>>>1|(1&u)<<21,s.l=h>>>1|(1&c)<<21,--l;return n&&Mg(o),a&&(r?(Nh=Ag(e),i&&(Nh=Fg(Nh,(Bg(),Ah)))):Nh=Tg(e.l,e.m,e.h)),o}(r?e:Tg(e.l,e.m,e.h),t,l,a,i,n)}function Mg(e){var t,n,r;t=1+~e.l&se,n=~e.m+(0==t?1:0)&se,r=~e.h+(0==t&&0==n?1:0)&oe,e.l=t,e.m=n,e.h=r}function Ng(e){var t,n;return 32==(n=vd(e.h))?32==(t=vd(e.m))?vd(e.l)+32:t+20-10:n-12}function Lg(e,t){var n,r,i;return!((i=e.h-t.h)<0||(n=e.l-t.l,(i+=(r=e.m-t.m+(n>>22))>>22)<0||(e.l=n&se,e.m=r&se,e.h=i&oe,0)))}function zg(e,t){var n,r,i,a,s,o;return(s=e.h>>19)!=(o=t.h>>19)?o-s:(r=e.h)!=(a=t.h)?r-a:(n=e.m)!=(i=t.m)?n-i:e.l-t.l}function Ag(e){var t,n;return Tg(t=1+~e.l&se,n=~e.m+(0==t?1:0)&se,~e.h+(0==t&&0==n?1:0)&oe)}function Dg(e,t){var n,r,i;return(t&=63)<22?(n=e.l<>22-t,i=e.h<>22-t):t<44?(n=0,r=e.l<>44-t):(n=0,r=0,i=e.l<>t,a=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(s=r?oe:0,a=n>>t-22,i=e.m>>t-22|n<<44-t):(s=r?oe:0,a=r?se:0,i=n>>t-44),Tg(i&se,a&se,s&oe)}function Fg(e,t){var n,r,i;return n=e.l-t.l,r=e.m-t.m+(n>>22),i=e.h-t.h+(r>>22),Tg(n&se,r&se,i&oe)}function Og(e){return e.l|e.m<<22}function Gg(e){var t,n,r,i;if(0==e.l&&0==e.m&&0==e.h)return"0";if(e.h==le&&0==e.m&&0==e.l)return"-9223372036854775808";if(e.h>>19!=0)return"-"+Gg(Ag(e));for(n=e,r="";0!=n.l||0!=n.m||0!=n.h;){if(n=Pg(n,$g(he),!0),t=""+Og(Nh),0!=n.l||0!=n.m||0!=n.h)for(i=9-t.length;i>0;i--)t="0"+t;r=t+r}return r}function Bg(){Bg=En,Lh=Tg(se,se,524287),zh=Tg(0,0,le),Ah=$g(1),$g(2),Dh=$g(0)}function jg(e){var t;return Fn(e,78)?e:((t=e&&e.__java$exception)||qu(t=new Su(e)),t)}function Vg(e){return e.backingJsObject}function Hg(e,t){var n;return Zg(e)&&Zg(t)&&ge<(n=e+t)&&n>22),i=e.h+t.h+(r>>22),Tg(n&se,r&se,i&oe)}(Zg(e)?hf(e):e,Zg(t)?hf(t):t))}function Ug(e,t){return Wg(function(e,t){return Tg(e.l&t.l,e.m&t.m,e.h&t.h)}(Zg(e)?hf(e):e,Zg(t)?hf(t):t))}function qg(e,t){var n;return Zg(e)&&Zg(t)&&(n=e-t,!isNaN(n))?n:zg(Zg(e)?hf(e):e,Zg(t)?hf(t):t)}function Wg(e){var t;return 0==(t=e.h)?e.l+e.m*ce:t==oe?e.l+e.m*ce-ue:e}function Kg(e,t){var n;return Zg(e)&&Zg(t)&&ge<(n=e/t)&&n=0x8000000000000000?(Bg(),Lh):(r=!1,e<0&&(r=!0,e=-e),n=0,e>=ue&&(e-=(n=Un(e/ue))*ue),t=0,e>=ce&&(e-=(t=Un(e/ce))*ce),i=Tg(Un(e),t,n),r&&Mg(i),i)}(e))}function Jg(e,t){return qg(e,t)>0}function Zg(e){return"number"==typeof e}function Qg(e,t){return qg(e,t)<0}function ef(e,t){var n;return Zg(e)&&Zg(t)&&ge<(n=e%t)&&n>13|(15&e.m)<<9,i=e.m>>4&8191,a=e.m>>17|(255&e.h)<<5,s=(1048320&e.h)>>8,_=r*(o=8191&t.l),y=i*o,m=a*o,w=s*o,0!=(l=t.l>>13|(15&t.m)<<9)&&(_+=n*l,y+=r*l,m+=i*l,w+=a*l),0!=(c=t.m>>4&8191)&&(y+=n*c,m+=r*c,w+=i*c),0!=(u=t.m>>17|(255&t.h)<<5)&&(m+=n*u,w+=r*u),0!=(h=(1048320&t.h)>>8)&&(w+=n*h),f=((p=n*o)>>22)+(_>>9)+((262143&y)<<4)+((31&m)<<17),d=(y>>18)+(m>>5)+((4095&w)<<8),d+=(f+=(g=(p&se)+((511&_)<<13))>>22)>>22,Tg(g&=se,f&=se,d&=oe)}(Zg(e)?hf(e):e,Zg(t)?hf(t):t))}function nf(e){var t;return Zg(e)&&(t=0-e,!isNaN(t))?t:Wg(Ag(e))}function rf(e,t){return 0!=qg(e,t)}function af(e){return Wg(function(e){return Tg(~e.l&se,~e.m&se,~e.h&oe)}(Zg(e)?hf(e):e))}function sf(e,t){return Wg(function(e,t){return Tg(e.l|t.l,e.m|t.m,e.h|t.h)}(Zg(e)?hf(e):e,Zg(t)?hf(t):t))}function of(e,t){return Wg(Dg(Zg(e)?hf(e):e,t))}function lf(e,t){return Wg(Rg(Zg(e)?hf(e):e,t))}function cf(e,t){return Wg(function(e,t){var n,r,i,a;return t&=63,n=e.h&oe,t<22?(a=n>>>t,i=e.m>>t|n<<22-t,r=e.l>>t|e.m<<22-t):t<44?(a=0,i=n>>>t-22,r=e.m>>t-22|e.h<<44-t):(a=0,i=0,r=n>>>t-44),Tg(r&se,i&se,a&oe)}(Zg(e)?hf(e):e,t))}function uf(e,t){var n;return Zg(e)&&Zg(t)&&ge<(n=e-t)&&n0&&(n.string+=","),qp(n,Bh(this,t));return n.string+="]",n.string},Qn("com.google.gwt.json.client","JSONArray",214),bn(477,1938,{477:1},Wh),i.getUnwrapper=function(){return Kh},i.isBoolean=function(){return this},i.toString_0=function(){return Mf(),""+this.value_0},i.value_0=!1,Qn("com.google.gwt.json.client","JSONBoolean",477),bn(965,59,te,Yh),Qn("com.google.gwt.json.client","JSONException",965),bn(1011,1938,{},Jh),i.getUnwrapper=function(){return Zh},i.toString_0=function(){return"null"},Qn("com.google.gwt.json.client","JSONNull",1011),bn(257,1938,{257:1},Qh),i.equals_0=function(e){return!!Fn(e,257)&&this.value_0==Pn(e,257).value_0},i.getUnwrapper=function(){return eg},i.hashCode_1=function(){return id(this.value_0)},i.isNumber=function(){return this},i.toString_0=function(){return this.value_0+""},i.value_0=0,Qn("com.google.gwt.json.client","JSONNumber",257),bn(185,1938,{185:1},ig,ag),i.equals_0=function(e){return!!Fn(e,185)&&ku(this.jsObject,Pn(e,185).jsObject)},i.getUnwrapper=function(){return sg},i.hashCode_1=function(){return $u(this.jsObject)},i.isObject=function(){return this},i.toString_0=function(){var e,t,n,r,i,a;for(a=new Qp("{"),e=!0,r=0,i=(n=tg(this,xg(Mp,$,2,0,6,1))).length;r0&&(s$(0,e.length),45==e.charCodeAt(0)||(s$(0,e.length),43==e.charCodeAt(0)))?1:0;rn)throw Vg(new qd('For input string: "'+e+'"'));return s}function Ff(e){var t,n,r,i,a,s,o,l,c,u,h;if(null==e)throw Vg(new qd("null"));if(c=e,l=!1,(a=e.length)>0&&(s$(0,e.length),45!=(t=e.charCodeAt(0))&&43!=t||(e=e.substr(1),--a,l=45==t)),0==a)throw Vg(new qd('For input string: "'+c+'"'));for(;e.length>0&&(s$(0,e.length),48==e.charCodeAt(0));)e=e.substr(1),--a;if(a>(Ud(),Dd)[10])throw Vg(new qd('For input string: "'+c+'"'));for(i=0;i0&&(h=-parseInt(e.substr(0,r),10),e=e.substr(r),a-=r,n=!1);a>=s;){if(r=parseInt(e.substr(0,s),10),e=e.substr(s),a-=s,n)n=!1;else{if(qg(h,o)<0)throw Vg(new qd('For input string: "'+c+'"'));h=tf(h,u)}h=uf(h,r)}if(qg(h,0)>0)throw Vg(new qd('For input string: "'+c+'"'));if(!l&&qg(h=nf(h),0)<0)throw Vg(new qd('For input string: "'+c+'"'));return h}function Of(e){return Gn(e)?(Qk(e),e):e.doubleValue()}function Gf(e){this.value_0=e}function Bf(e){var t,n;return t=e+128,!(n=(Uf(),jf)[t])&&(n=jf[t]=new Gf(e)),n}bn(236,1,{3:1,236:1}),Qn("java.lang","Number",236),bn(215,236,{3:1,215:1,36:1,236:1},Gf),i.compareTo_0=function(e){return function(e,t){return e.value_0-t.value_0}(this,Pn(e,215))},i.doubleValue=function(){return this.value_0},i.equals_0=function(e){return Fn(e,215)&&Pn(e,215).value_0==this.value_0},i.hashCode_1=function(){return this.value_0},i.toString_0=function(){return""+this.value_0},i.value_0=0;var jf,Vf,Hf=Qn("java.lang","Byte",215);function Uf(){Uf=En,jf=xg(Hf,$,215,256,0,1)}function qf(e){this.value_0=e}function Wf(e){return e>=48&&e<48+r.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function Kf(e){var t;return e<128?(!(t=(Jf(),Yf)[e])&&(t=Yf[e]=new qf(e)),t):new qf(e)}bn(172,1,{3:1,172:1,36:1},qf),i.compareTo_0=function(e){return function(e,t){return e.value_0-t.value_0}(this,Pn(e,172))},i.equals_0=function(e){return Fn(e,172)&&Pn(e,172).value_0==this.value_0},i.hashCode_1=function(){return this.value_0},i.toString_0=function(){return String.fromCharCode(this.value_0)},i.value_0=0;var Yf,Xf=Qn("java.lang","Character",172);function Jf(){Jf=En,Yf=xg(Xf,$,172,128,0,1)}function Zf(){Eu.call(this)}function Qf(e){bu.call(this,e)}function ed(e,t){return ad((Qk(e),e),(Qk(t),t))}function td(e){return Qk(e),e}function nd(e,t){return Qk(e),Hn(e)===Hn(t)}function rd(e){return Qk(e),e}function id(e){return Un((Qk(e),e))}function ad(e,t){return et?1:e==t?0==e?ad(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function sd(e){return!isNaN(e)&&!isFinite(e)}bn(203,59,{3:1,203:1,102:1,59:1,78:1},Zf,Qf),Qn("java.lang","ClassCastException",203),l={3:1,36:1,331:1,236:1};var od=Qn("java.lang","Double",331);function ld(e){this.value_0=e}function cd(e){this.value_0=function(e){var t;return(t=Df(e))>34028234663852886e22?pe:t<-34028234663852886e22?_e:t}(e)}bn(155,236,{3:1,36:1,155:1,236:1},ld,cd),i.compareTo_0=function(e){return function(e,t){return ad(e.value_0,t.value_0)}(this,Pn(e,155))},i.doubleValue=function(){return this.value_0},i.equals_0=function(e){return Fn(e,155)&&nd(this.value_0,Pn(e,155).value_0)},i.hashCode_1=function(){return Un(this.value_0)},i.toString_0=function(){return""+this.value_0},i.value_0=0;var ud=Qn("java.lang","Float",155);function hd(){Eu.call(this)}function gd(e){bu.call(this,e)}function fd(e){wu.call(this,"The given string does not match the expected format for individual spacings.",e)}function dd(){Eu.call(this)}function pd(e){bu.call(this,e)}function _d(e){this.value_0=e}function yd(e){return e=((e=((e-=e>>1&1431655765)>>2&858993459)+(858993459&e))>>4)+e&252645135,63&(e+=e>>8)+(e>>16)}function md(e,t){return et?1:0}function wd(e){var t;if(e<0)return ee;if(0==e)return 0;for(t=q;0==(t&e);t>>=1);return t}function vd(e){var t,n,r;return e<0?0:0==e?32:(n=16-(t=-(e>>16)>>16&16),n+=t=(e>>=t)-256>>16&8,n+=t=(e<<=t)-ye>>16&4,(n+=t=(e<<=t)-I>>16&2)+2-(t=(r=(e<<=t)>>14)&~(r>>1)))}function xd(e){var t,n;if(0==e)return 32;for(n=0,t=1;0==(t&e);t<<=1)++n;return n}function Ed(e){var t;return Td(),(t=kd)[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[15&e]<<28}function bd(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function Cd(e){var t,n;return e>-129&&e<128?(t=e+128,!(n=(Id(),Sd)[t])&&(n=Sd[t]=new _d(e)),n):new _d(e)}bn(31,59,{3:1,102:1,31:1,59:1,78:1},hd,gd,fd),Qn("java.lang","IllegalArgumentException",31),bn(72,59,te,dd,pd),Qn("java.lang","IllegalStateException",72),bn(20,236,{3:1,36:1,20:1,236:1},_d),i.compareTo_0=function(e){return function(e,t){return md(e.value_0,t.value_0)}(this,Pn(e,20))},i.doubleValue=function(){return this.value_0},i.equals_0=function(e){return Fn(e,20)&&Pn(e,20).value_0==this.value_0},i.hashCode_1=function(){return this.value_0},i.toString_0=function(){return""+this.value_0},i.value_0=0;var Sd,kd,$d=Qn("java.lang","Integer",20);function Id(){Id=En,Sd=xg($d,$,20,256,0,1)}function Td(){Td=En,kd=Sg(yg(u1e,1),ie,24,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function Pd(e){this.value_0=e}function Md(e,t){return qg(e,t)<0?-1:qg(e,t)>0?1:0}function Nd(e){var t,n;return qg(e,-129)>0&&qg(e,128)<0?(t=ff(e)+128,!(n=(Od(),Ld)[t])&&(n=Ld[t]=new Pd(e)),n):new Pd(e)}bn(162,236,{3:1,36:1,162:1,236:1},Pd),i.compareTo_0=function(e){return function(e,t){return Md(e.value_0,t.value_0)}(this,Pn(e,162))},i.doubleValue=function(){return gf(this.value_0)},i.equals_0=function(e){return Fn(e,162)&&Yg(Pn(e,162).value_0,this.value_0)},i.hashCode_1=function(){return ff(this.value_0)},i.toString_0=function(){return""+df(this.value_0)},i.value_0=0;var Ld,zd,Ad,Dd,Rd,Fd=Qn("java.lang","Long",162);function Od(){Od=En,Ld=xg(Fd,$,162,256,0,1)}function Gd(e,t){return qg(e,t)>0?e:t}function Bd(e){return 0==e||isNaN(e)?e:e<0?-1:1}function jd(e){bu.call(this,e)}function Vd(){Eu.call(this)}function Hd(e){bu.call(this,e)}function Ud(){var e;for(Ud=En,zd=Sg(yg(u1e,1),ie,24,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),Ad=xg(u1e,ie,24,37,15,1),Dd=Sg(yg(u1e,1),ie,24,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),Rd=xg(g1e,me,24,37,14,1),e=2;e<=36;e++)Ad[e]=Un(r.Math.pow(e,zd[e])),Rd[e]=Kg(M,Ad[e])}function qd(e){gd.call(this,e)}function Wd(e){this.value_0=e}function Kd(e){var t,n;return e>-129&&e<128?(t=e+128,!(n=(Jd(),Yd)[t])&&(n=Yd[t]=new Wd(e)),n):new Wd(e)}bn(2008,1,{}),bn(1803,59,te,jd),Qn("java.lang","NegativeArraySizeException",1803),bn(173,589,{3:1,102:1,173:1,59:1,78:1},Vd,Hd),i.createError=function(e){return new TypeError(e)},Qn("java.lang","NullPointerException",173),bn(127,31,{3:1,102:1,31:1,127:1,59:1,78:1},qd),Qn("java.lang","NumberFormatException",127),bn(186,236,{3:1,36:1,236:1,186:1},Wd),i.compareTo_0=function(e){return function(e,t){return e.value_0-t.value_0}(this,Pn(e,186))},i.doubleValue=function(){return this.value_0},i.equals_0=function(e){return Fn(e,186)&&Pn(e,186).value_0==this.value_0},i.hashCode_1=function(){return this.value_0},i.toString_0=function(){return""+this.value_0},i.value_0=0;var Yd,Xd=Qn("java.lang","Short",186);function Jd(){Jd=En,Yd=xg(Xd,$,186,256,0,1)}function Zd(e,t,n){this.className="Unknown",this.methodName=e,this.fileName=t,this.lineNumber=n}bn(308,1,{3:1,308:1},Zd),i.equals_0=function(e){var t;return!!Fn(e,308)&&(t=Pn(e,308),this.lineNumber==t.lineNumber&&this.methodName==t.methodName&&this.className==t.className&&this.fileName==t.fileName)},i.hashCode_1=function(){return Wm(Sg(yg(or,1),g,1,5,[Cd(this.lineNumber),this.className,this.methodName,this.fileName]))},i.toString_0=function(){return this.className+"."+this.methodName+"("+(null!=this.fileName?this.fileName:"Unknown Source")+(this.lineNumber>=0?":"+this.lineNumber:"")+")"},i.lineNumber=0;var Qd=Qn("java.lang","StackTraceElement",308);function ep(e,t){return s$(t,e.length),e.charCodeAt(t)}function tp(e,t){var n,r;return Qk(e),n=e,Qk(t),n==(r=t)?0:n0){for(i=l.length;i>0&&""==l[i-1];)--i;i=0&&np(e.substr(n,t.length),t)}function fp(e,t){return e.substr(t)}function dp(e,t,n){return e.substr(t,n-t)}function pp(e){var t,n;return ip(e,0,n=e.length,t=xg(c1e,ne,24,n,15,1),0),t}function _p(e,t){return t==(aE(),aE(),Wx)?e.toLocaleLowerCase():e.toLowerCase()}function yp(e){var t,n,r;for(n=e.length,r=0;rr&&(s$(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return r>0||t=we?(t=ve+(e-we>>10&1023)&re,n=56320+(e-we&1023)&re,String.fromCharCode(t)+""+String.fromCharCode(n)):String.fromCharCode(e&re)}function wp(e){return null==e?"null":wn(e)}function vp(e){return xp(e,0,e.length)}function xp(e,t,n){var i,a,s,o,l;for(a$(t,s=t+n,e.length),o="",a=t;af||r+i>c)throw Vg(new xf);if(0==(1&h.modifiers)&&g!=l)if(u=Mn(e),a=Mn(n),Hn(e)===Hn(n)&&tr;)Cg(a,o,u[--t]);else for(o=r+i;r0&&Ak(e,t,n,r,i,!0)}function r_(){}function i_(){Eu.call(this)}function a_(e){bu.call(this,e)}function s_(){var e,t,n;for(s_=En,new u_(1,0),new u_(10,0),new u_(0,0),bp=xg(v_,$,239,11,0,1),Cp=xg(c1e,ne,24,100,15,1),Sp=Sg(yg(d1e,1),xe,24,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),kp=xg(u1e,ie,24,Sp.length,15,1),$p=Sg(yg(d1e,1),xe,24,15,[1,10,100,Y,1e4,Ee,1e6,1e7,1e8,he,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Ip=xg(u1e,ie,24,$p.length,15,1),Tp=xg(v_,$,239,11,0,1),e=0;et.smallValue?1:0:(i=e.scale-t.scale,(n=(e.precision>0?e.precision:r.Math.floor((e.bitLength-1)*be)+1)-(t.precision>0?t.precision:r.Math.floor((t.bitLength-1)*be)+1))>i+1?a:n0&&(o=$_(o,ay(i))),E_(s,o))):a0?1:0:(!e.intVal&&(e.intVal=O_(e.smallValue)),e.intVal).sign}function c_(e){var t,n,r,i,a;return null!=e.toStringImage?e.toStringImage:e.bitLength<32?(e.toStringImage=function(e,t){var n,r,i,a,s,o,l,c,u,h,g,f,d;if(K_(),(o=qg(e,0)<0)&&(e=nf(e)),0==qg(e,0))switch(t){case 0:return"0";case 1:return"0.0";case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(g=new Jp).string+=t<0?"0E+":"0E",g.string+=t==ee?"2147483648":""+-t,g.string}u=xg(c1e,ne,24,1+(c=18),15,1),n=c,d=e;do{l=d,d=Kg(d,10),u[--n]=ff(Hg(48,uf(l,tf(d,10))))&re}while(0!=qg(d,0));if(r=uf(uf(uf(c,n),t),1),0==t)return o&&(u[--n]=45),xp(u,n,c-n);if(t>0&&qg(r,-6)>=0){if(qg(r,0)>=0){for(i=n+ff(r),s=17;s>=i;s--)u[s+1]=u[s];return u[++i]=46,o&&(u[--n]=45),xp(u,n,c-n+1)}for(a=2;Qg(a,Hg(nf(r),1));a++)u[--n]=48;return u[--n]=46,u[--n]=48,o&&(u[--n]=45),xp(u,n,c-n)}return f=n+1,c,h=new Zp,o&&(h.string+="-"),18-f>=1?(Bp(h,u[n]),h.string+=".",h.string+=xp(u,n+1,c-n-1)):h.string+=xp(u,n,c-n),h.string+="E",qg(r,0)>0&&(h.string+="+"),h.string+=""+df(r),h.string}(Xg(e.smallValue),Un(e.scale)),e.toStringImage):(i=Y_((!e.intVal&&(e.intVal=O_(e.smallValue)),e.intVal),0),0==e.scale?i:(t=(!e.intVal&&(e.intVal=O_(e.smallValue)),e.intVal).sign<0?2:1,n=i.length,r=-e.scale+n-t,(a=new Jp).string+=""+i,e.scale>0&&r>=-6?r>=0?Xp(a,n-Un(e.scale),String.fromCharCode(46)):(a.string=dp(a.string,0,t-1)+"0."+fp(a.string,t-1),Xp(a,t+1,xp(Cp,0,-Un(r)-1))):(n-t>=1&&(Xp(a,t,String.fromCharCode(46)),++n),Xp(a,n,String.fromCharCode(69)),r>0&&Xp(a,++n,String.fromCharCode(43)),Xp(a,++n,""+df(Xg(r)))),e.toStringImage=a.string,e.toStringImage))}function u_(e,t){this.scale=t,this.bitLength=f_(e),this.bitLength<54?this.smallValue=gf(e):this.intVal=G_(e)}function h_(e){s_(),function(e,t){var n,r,i,a,s,o,l,c;if(n=0,s=0,a=t.length,o=null,c=new Zp,s1?sf(of(t.digits[1],32),Ug(t.digits[0],Ce)):Ug(t.digits[0],Ce),gf(tf(t.sign,n))))}(e,new R_(l));for(e.precision=c.string.length,i=0;i-0x800000000000&&e<0x800000000000?0==e?0:((t=e<0)&&(e=-e),n=Un(r.Math.floor(r.Math.log(e)/.6931471805599453)),(!t||e!=r.Math.pow(2,n))&&++n,n):f_(Xg(e))}function f_(e){var t;return qg(e,0)<0&&(e=af(e)),64-(0!=(t=ff(lf(e,32)))?vd(t):vd(ff(e))+32)}bn(106,412,{469:1},Fp,Op,Gp),Qn("java.lang","StringBuffer",106),bn(98,412,{469:1},Jp,Zp,Qp),Qn("java.lang","StringBuilder",98),bn(674,73,fe,e_),Qn("java.lang","StringIndexOutOfBoundsException",674),bn(2012,1,{}),bn(823,1,{},r_),i.apply_0=function(e){return Pn(e,78).backingJsObject},Qn("java.lang","Throwable/lambda$0$Type",823),bn(41,59,{3:1,102:1,59:1,78:1,41:1},i_,a_),Qn("java.lang","UnsupportedOperationException",41),bn(239,236,{3:1,36:1,236:1,239:1},u_,h_),i.compareTo_0=function(e){return o_(this,Pn(e,239))},i.doubleValue=function(){return Df(c_(this))},i.equals_0=function(e){var t;return this===e||!!Fn(e,239)&&(t=Pn(e,239),this.scale==t.scale&&0==o_(this,t))},i.hashCode_1=function(){var e;return 0!=this.hashCode_0?this.hashCode_0:this.bitLength<54?(e=Xg(this.smallValue),this.hashCode_0=ff(Ug(e,-1)),this.hashCode_0=33*this.hashCode_0+ff(Ug(lf(e,32),-1)),this.hashCode_0=17*this.hashCode_0+Un(this.scale),this.hashCode_0):(this.hashCode_0=17*k_(this.intVal)+Un(this.scale),this.hashCode_0)},i.toString_0=function(){return c_(this)},i.bitLength=0,i.hashCode_0=0,i.precision=0,i.scale=0,i.smallValue=0;var d_,p_,__,y_,m_,w_,v_=Qn("java.math","BigDecimal",239);function x_(){var e;for(x_=En,p_=new L_(1,1),y_=new L_(1,10),w_=new L_(0,0),d_=new L_(-1,1),__=Sg(yg(U_,1),$,90,0,[w_,p_,new L_(1,2),new L_(1,3),new L_(1,4),new L_(1,5),new L_(1,6),new L_(1,7),new L_(1,8),new L_(1,9),y_]),m_=xg(U_,$,90,32,0,1),e=0;et.sign?1:e.signt.numberLength?e.sign:e.numberLength0&&0==e.digits[--e.numberLength];);0==e.digits[e.numberLength++]&&(e.sign=0)}function C_(e,t){var n;return Hn(e)===Hn(t)||!!Fn(t,90)&&(n=Pn(t,90),e.sign==n.sign&&e.numberLength==n.numberLength&&function(e,t){var n;for(n=e.numberLength-1;n>=0&&e.digits[n]===t[n];n--);return n<0}(e,n.digits))}function S_(e){var t;if(-2==e.firstNonzeroDigit){if(0==e.sign)t=-1;else for(t=0;0==e.digits[t];t++);e.firstNonzeroDigit=t}return e.firstNonzeroDigit}function k_(e){var t;if(0!=e.hashCode_0)return e.hashCode_0;for(t=0;t>5),15,1))[n]=1<1;t>>=1)0!=(1&t)&&(r=$_(r,n)),n=1==n.numberLength?$_(n,n):new D_(sy(n.digits,n.numberLength,xg(u1e,ie,24,n.numberLength<<1,15,1)));return $_(r,n)}(e,t)}function T_(e,t){return 0==t||0==e.sign?e:t>0?q_(e,t):W_(e,-t)}function P_(e,t){return 0==t||0==e.sign?e:t>0?W_(e,t):q_(e,-t)}function M_(e,t){var n,r,i;if(0==t)return 0!=(1&e.digits[0]);if(t<0)throw Vg(new vf("Negative bit address"));if((i=t>>5)>=e.numberLength)return e.sign<0;if(n=e.digits[i],t=1<<(31&t),e.sign<0){if(i<(r=S_(e)))return!1;n=r==i?-n:~n}return 0!=(n&t)}function N_(e,t){this.sign=e,t>5,t&=31,i=e.numberLength+n+(0==t?0:1),function(e,t,n,r){var i,a,s;if(0==r)n_(t,0,e,n,e.length-n);else for(s=32-r,e[e.length-1]=0,a=e.length-1;a>n;a--)e[a]|=t[a-n-1]>>>s,e[a-1]=t[a-n-1]<>5,t&=31,r>=e.numberLength)return e.sign<0?(x_(),d_):(x_(),w_);if(a=e.numberLength-r,function(e,t,n,r,i){var a,s;for(!0,a=0;a>>i|n[a+r+1]<>>i,++a}}(i=xg(u1e,ie,24,a+1,15,1),a,e.digits,r,t),e.sign<0){for(n=0;n0&&e.digits[n]<<32-t!=0){for(n=0;n=0;c--)P=void 0,M=void 0,N=void 0,qg(T=Hg(of(b,32),Ug(k[c],Ce)),0)>=0?(M=Kg(T,he),N=ef(T,he)):(M=Kg(P=cf(T,1),5e8),N=Hg(of(N=ef(P,5e8),1),Ug(T,1))),y=sf(of(N,32),Ug(M,Ce)),k[c]=ff(y),b=ff(lf(y,32));m=ff(b),_=n;do{v[--n]=48+m%10&re}while(0!=(m=m/10|0)&&0!=n);for(r=9-_+n,l=0;l0;l++)v[--n]=48;for(h=$-1;0==k[h];h--)if(0==h)break e;$=h+1}for(;48==v[n];)++n}if(f=C<0,s=w-n-t-1,0==t)return f&&(v[--n]=45),xp(v,n,w-n);if(t>0&&s>=-6){if(s>=0){for(u=n+s,g=w-1;g>=u;g--)v[g+1]=v[g];return v[++u]=46,f&&(v[--n]=45),xp(v,n,w-n+1)}for(h=2;h<1-s;h++)v[--n]=48;return v[--n]=46,v[--n]=48,f&&(v[--n]=45),xp(v,n,w-n)}return S=n+1,a=w,x=new Zp,f&&(x.string+="-"),a-S>=1?(Bp(x,v[n]),x.string+=".",x.string+=xp(v,n+1,w-n-1)):x.string+=xp(v,n,w-n),x.string+="E",s>0&&(x.string+="+"),x.string+=""+s,x.string}function X_(e,t){var n,r,i,a,s,o,l,c,u,h,g,f,d;if(s=e.sign,l=t.sign,0==s)return t;if(0==l)return e;if((a=e.numberLength)+(o=t.numberLength)==2)return n=Ug(e.digits[0],Ce),r=Ug(t.digits[0],Ce),s==l?(d=ff(u=Hg(n,r)),0==(f=ff(cf(u,32)))?new L_(s,d):new z_(s,2,Sg(yg(u1e,1),ie,24,15,[d,f]))):G_(s<0?uf(r,n):uf(n,r));if(s==l)g=s,h=a>=o?J_(e.digits,a,t.digits,o):J_(t.digits,o,e.digits,a);else{if(0==(i=a!=o?a>o?1:-1:Z_(e.digits,t.digits,a)))return x_(),w_;1==i?(g=s,h=ty(e.digits,a,t.digits,o)):(g=l,h=ty(t.digits,o,e.digits,a))}return b_(c=new z_(g,h.length,h)),c}function J_(e,t,n,r){var i;return function(e,t,n,r,i){var a,s;if(a=Hg(Ug(t[0],Ce),Ug(r[0],Ce)),e[0]=ff(a),a=lf(a,32),n>=i){for(s=1;s=0&&e[r]===t[r];r--);return r<0?0:Qg(Ug(e[r],Ce),Ug(t[r],Ce))?-1:1}function Q_(e,t,n){var r,i;for(r=Ug(n,Ce),i=0;0!=qg(r,0)&&io?1:-1:Z_(e.digits,t.digits,a)))h=-l,u=s==l?ty(t.digits,o,e.digits,a):J_(t.digits,o,e.digits,a);else if(h=s,s==l){if(0==i)return x_(),w_;u=ty(e.digits,a,t.digits,o)}else u=J_(e.digits,a,t.digits,o);return b_(c=new z_(h,u.length,u)),c}function ty(e,t,n,r){var i;return function(e,t,n,r,i){var a,s;for(a=0,s=0;se.numberLength&&(o=e,e=t,t=o),t.numberLength<63?(g=t,_=(f=(h=e).numberLength)+(d=g.numberLength),y=h.sign!=g.sign?-1:1,2==_?(x=ff(w=tf(Ug(h.digits[0],Ce),Ug(g.digits[0],Ce))),0==(v=ff(cf(w,32)))?new L_(y,x):new z_(y,2,Sg(yg(u1e,1),ie,24,15,[x,v]))):(function(e,t,n,r,i){0!=t&&0!=r&&(1==t?i[r]=iy(i,n,r,e[0]):1==r?i[t]=iy(i,e,t,n[0]):function(e,t,n,r,i){var a,s,o,l;if(Hn(e)!==Hn(t)||r!=i)for(o=0;o1e6)throw Vg(new vf("power of ten too big"));if(e<=u)return T_(I_(V_[1],t),t);for(i=r=I_(V_[1],u),n=Xg(e-u),t=Un(e%u);qg(n,u)>0;)i=$_(i,r),n=uf(n,u);for(i=T_(i=$_(i,I_(V_[1],t)),u),n=Xg(e-u);qg(n,u)>0;)i=T_(i,u),n=uf(n,u);return T_(i,t)}function sy(e,t,n){var r,i,a,s,o;for(a=0;a>>31;0!=r&&(e[n]=r)}(n,n,t<<1),r=0,i=0,s=0;i=0,"Negative initial capacity"),Wk(t>=0,"Non-positive load factor"),py(this)}function my(e,t){return!!Fn(t,43)&&Qr(e.this$01,Pn(t,43))}function wy(e){this.this$01=e}function vy(e){return!!e.current.hasNext_0()||e.current==e.stringMapEntries&&(e.current=new nx(e.this$01.hashCodeMap),e.current.hasNext_0())}function xy(e){var t;return iv(e.this$01,e),Jk(e.hasNext),e.last=e.current,t=Pn(e.current.next_1(),43),e.hasNext=vy(e),t}function Ey(e){r$(!!e.last),iv(e.this$01,e),e.last.remove(),e.last=null,e.hasNext=vy(e),av(e.this$01,e)}function by(e){this.this$01=e,this.stringMapEntries=new ux(this.this$01.stringMap),this.current=this.stringMapEntries,this.hasNext=vy(this),this.$modCount=e.$modCount}function Cy(e){return e.i=0),function(e,t){var n,r,i;return r=e.array.length-1,n=t-e.head&r,i=e.tail-t&r,nm(n<(e.tail-e.head&r)),n>=i?(function(e,t){var n,r;for(n=e.array.length-1,e.tail=e.tail-1&n;t!=e.tail;)r=t+1&n,Cg(e.array,t,e.array[r]),t=r;Cg(e.array,e.tail,null)}(e,t),-1):(function(e,t){var n,r;for(n=e.array.length-1;t!=e.head;)r=t-1&n,Cg(e.array,t,e.array[r]),t=r;Cg(e.array,e.head,null),e.head=e.head+1&n}(e,t),1)}(e.this$01,e.lastIndex)<0&&(e.currentIndex=e.currentIndex-1&e.this$01.array.length-1,e.fence=e.this$01.tail),e.lastIndex=-1}function am(e){this.this$01=e,this.currentIndex=this.this$01.head,this.fence=this.this$01.tail}function sm(e){e.array=xg(or,g,1,0,5,1)}function om(e,t,n){t$(t,e.array.length),Rk(e.array,t,n)}function lm(e,t){return e.array[e.array.length]=t,!0}function cm(e,t,n){var r;return t$(t,e.array.length),0!=(r=n.toArray()).length&&(Fk(e.array,t,r),!0)}function um(e,t){var n;return 0!=(n=t.toArray()).length&&(Fk(e.array,e.array.length,n),!0)}function hm(e,t){var n,r,i,a;for(Qk(t),i=0,a=(r=e.array).length;ir&&Cg(t,r,null),t}function xm(){sm(this)}function Em(e){sm(this),Wk(e>=0,"Initial capacity must not be negative")}function bm(e){sm(this),Fk(this.array,0,e.toArray())}bn(480,1949,y),i.clear_0=function(){py(this)},i.containsKey=function(e){return oy(this,e)},i.containsValue=function(e){return ly(this,e,this.stringMap)||ly(this,e,this.hashCodeMap)},i.entrySet_0=function(){return new wy(this)},i.get_3=function(e){return cy(this,e)},i.put=function(e,t){return gy(this,e,t)},i.remove_0=function(e){return dy(this,e)},i.size_1=function(){return _y(this)},Qn("java.util","AbstractHashMap",480),bn(260,w,v,wy),i.clear_0=function(){this.this$01.clear_0()},i.contains=function(e){return my(this,e)},i.iterator_0=function(){return new by(this.this$01)},i.remove_1=function(e){var t;return!!my(this,e)&&(t=Pn(e,43).getKey(),this.this$01.remove_0(t),!0)},i.size_1=function(){return this.this$01.size_1()},Qn("java.util","AbstractHashMap/EntrySet",260),bn(261,1,_,by),i.forEachRemaining=function(e){Lr(this,e)},i.next_1=function(){return xy(this)},i.hasNext_0=function(){return this.hasNext},i.remove=function(){Ey(this)},i.hasNext=!1,Qn("java.util","AbstractHashMap/EntrySetIterator",261),bn(411,1,_,$y),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return Cy(this)},i.next_1=function(){return Sy(this)},i.remove=function(){ky(this)},i.i=0,i.last=-1,Qn("java.util","AbstractList/IteratorImpl",411),bn(99,411,C,Ty),i.remove=function(){ky(this)},i.add_1=function(e){Iy(this,e)},i.hasPrevious=function(){return this.i>0},i.nextIndex_0=function(){return this.i},i.previous_0=function(){return Jk(this.i>0),this.this$01.get_0(this.last=--this.i)},i.previousIndex=function(){return this.i-1},i.set_1=function(e){r$(-1!=this.last),this.this$01.set_2(this.last,e)},Qn("java.util","AbstractList/ListIteratorImpl",99),bn(217,51,K,Py),i.add_3=function(e,t){t$(e,this.size_0),this.wrapped.add_3(this.fromIndex+e,t),++this.size_0},i.get_0=function(e){return Zk(e,this.size_0),this.wrapped.get_0(this.fromIndex+e)},i.remove_2=function(e){var t;return Zk(e,this.size_0),t=this.wrapped.remove_2(this.fromIndex+e),--this.size_0,t},i.set_2=function(e,t){return Zk(e,this.size_0),this.wrapped.set_2(this.fromIndex+e,t)},i.size_1=function(){return this.size_0},i.fromIndex=0,i.size_0=0,Qn("java.util","AbstractList/SubList",217),bn(380,w,v,My),i.clear_0=function(){this.this$01.clear_0()},i.contains=function(e){return this.this$01.containsKey(e)},i.iterator_0=function(){return new Ny(this.this$01.entrySet_0().iterator_0())},i.remove_1=function(e){return!!this.this$01.containsKey(e)&&(this.this$01.remove_0(e),!0)},i.size_1=function(){return this.this$01.size_1()},Qn("java.util","AbstractMap/1",380),bn(678,1,_,Ny),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return this.val$outerIter2.hasNext_0()},i.next_1=function(){return Pn(this.val$outerIter2.next_1(),43).getKey()},i.remove=function(){this.val$outerIter2.remove()},Qn("java.util","AbstractMap/1/1",678),bn(224,28,m,Ly),i.clear_0=function(){this.this$01.clear_0()},i.contains=function(e){return this.this$01.containsValue(e)},i.iterator_0=function(){return new zy(this.this$01.entrySet_0().iterator_0())},i.size_1=function(){return this.this$01.size_1()},Qn("java.util","AbstractMap/2",224),bn(294,1,_,zy),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return this.val$outerIter2.hasNext_0()},i.next_1=function(){return Pn(this.val$outerIter2.next_1(),43).getValue()},i.remove=function(){this.val$outerIter2.remove()},Qn("java.util","AbstractMap/2/1",294),bn(479,1,{479:1,43:1}),i.equals_0=function(e){var t;return!!Fn(e,43)&&(t=Pn(e,43),cE(this.key,t.getKey())&&cE(this.value_0,t.getValue()))},i.getKey=function(){return this.key},i.getValue=function(){return this.value_0},i.hashCode_1=function(){return uE(this.key)^uE(this.value_0)},i.setValue=function(e){return Ay(this,e)},i.toString_0=function(){return this.key+"="+this.value_0},Qn("java.util","AbstractMap/AbstractEntry",479),bn(379,479,{479:1,379:1,43:1},Dy),Qn("java.util","AbstractMap/SimpleEntry",379),bn(1954,1,ke),i.equals_0=function(e){var t;return!!Fn(e,43)&&(t=Pn(e,43),cE(this.getKey(),t.getKey())&&cE(this.getValue(),t.getValue()))},i.hashCode_1=function(){return uE(this.getKey())^uE(this.getValue())},i.toString_0=function(){return this.getKey()+"="+this.getValue()},Qn("java.util","AbstractMapEntry",1954),bn(1961,1949,x),i.containsEntry=function(e){return Ry(this,e)},i.containsKey=function(e){return Fy(this,e)},i.entrySet_0=function(){return new Gy(this)},i.get_3=function(e){return ai(Tb(this,e))},i.keySet_0=function(){return new By(this)},Qn("java.util","AbstractNavigableMap",1961),bn(722,w,v,Gy),i.contains=function(e){return Fn(e,43)&&Ry(this.this$01_0,Pn(e,43))},i.iterator_0=function(){return new qb(this.this$01_0)},i.remove_1=function(e){var t;return!!Fn(e,43)&&(t=Pn(e,43),Fb(this.this$01_0,t))},i.size_1=function(){return this.this$01_0.size_0},Qn("java.util","AbstractNavigableMap/EntrySet",722),bn(485,w,b,By),i.spliterator_0=function(){return new ZE(this)},i.clear_0=function(){Ib(this.map_0)},i.contains=function(e){return Fy(this.map_0,e)},i.iterator_0=function(){return new jy(new qb(new Kb(this.map_0).this$01_0))},i.remove_1=function(e){return!!Fy(this.map_0,e)&&(Rb(this.map_0,e),!0)},i.size_1=function(){return this.map_0.size_0},Qn("java.util","AbstractNavigableMap/NavigableKeySet",485),bn(486,1,_,jy),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return Cy(this.val$entryIterator2.iter)},i.next_1=function(){return Hb(this.val$entryIterator2).getKey()},i.remove=function(){Ub(this.val$entryIterator2)},Qn("java.util","AbstractNavigableMap/NavigableKeySet/1",486),bn(1973,28,m),i.add_2=function(e){return i$(PE(this,e)),!0},i.addAll=function(e){return Qk(e),Wk(e!=this,"Can't add a queue to itself"),ui(this,e)},i.clear_0=function(){for(;null!=ME(this););},Qn("java.util","AbstractQueue",1973),bn(319,28,{4:1,19:1,28:1,15:1},em,tm),i.add_2=function(e){return Uy(this,e),!0},i.clear_0=function(){qy(this)},i.contains=function(e){return Wy(new am(this),e)},i.isEmpty=function(){return Xy(this)},i.iterator_0=function(){return new am(this)},i.remove_1=function(e){return function(e,t){return!!Wy(e,t)&&(im(e),!0)}(new am(this),e)},i.size_1=function(){return this.tail-this.head&this.array.length-1},i.spliterator_0=function(){return new YE(this,272)},i.toArray_0=function(e){var t;return t=this.tail-this.head&this.array.length-1,e.lengtht&&Cg(e,t,null),e},i.head=0,i.tail=0,Qn("java.util","ArrayDeque",319),bn(440,1,_,am),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return this.currentIndex!=this.fence},i.next_1=function(){return rm(this)},i.remove=function(){im(this)},i.currentIndex=0,i.fence=0,i.lastIndex=-1,Qn("java.util","ArrayDeque/IteratorImpl",440),bn(12,51,$e,xm,Em,bm),i.add_3=function(e,t){om(this,e,t)},i.add_2=function(e){return lm(this,e)},i.addAll_0=function(e,t){return cm(this,e,t)},i.addAll=function(e){return um(this,e)},i.clear_0=function(){this.array=xg(or,g,1,0,5,1)},i.contains=function(e){return-1!=fm(this,e,0)},i.forEach_0=function(e){hm(this,e)},i.get_0=function(e){return gm(this,e)},i.indexOf_0=function(e){return fm(this,e,0)},i.isEmpty=function(){return 0==this.array.length},i.iterator_0=function(){return new Rm(this)},i.remove_2=function(e){return dm(this,e)},i.remove_1=function(e){return pm(this,e)},i.removeRange=function(e,t){_m(this,e,t)},i.set_2=function(e,t){return ym(this,e,t)},i.size_1=function(){return this.array.length},i.sort_0=function(e){mm(this,e)},i.toArray=function(){return wm(this)},i.toArray_0=function(e){return vm(this,e)};var Cm,Sm,km,$m,Im,Tm,Pm,Mm,Nm,Lm=Qn("java.util","ArrayList",12);function zm(e){return e.i=14&&o<=16?Fn(r,177)?Sb(n,sw(Pn(r,177))):Fn(r,190)?Sb(n,Qm(Pn(r,190))):Fn(r,194)?Sb(n,ew(Pn(r,194))):Fn(r,1981)?Sb(n,aw(Pn(r,1981))):Fn(r,47)?Sb(n,rw(Pn(r,47))):Fn(r,361)?Sb(n,iw(Pn(r,361))):Fn(r,811)?Sb(n,nw(Pn(r,811))):Fn(r,103)&&Sb(n,tw(Pn(r,103))):t.map_0.containsKey(r)?(n.builder?Wp(n.builder,n.delimiter):n.builder=new Qp(n.prefix),Hp(n.builder,"[...]")):Sb(n,Om(Mn(r),new Uv(t))):Sb(n,null==r?"null":wn(r));return n.builder?0==n.suffix.length?n.builder.string:n.builder.string+""+n.suffix:n.emptyValue}function Gm(e,t,n,r){Kk(t,n,e.length),function(e,t,n,r){var i;for(i=t;it&&r.compare_1(e[a-1],e[a])>0;--a)s=e[a],Cg(e,a,e[a-1]),Cg(e,a-1,s)}(t,n,r,a);else if(Ym(t,e,o=n+i,l=o+((s=r+i)-o>>1),-i,a),Ym(t,e,l,s,-i,a),a.compare_1(e[l-1],e[l])<=0)for(;n=r||te||e>t)throw Vg(new Cf("fromIndex: 0, toIndex: "+e+", length: "+t))}(t,e.length),new hb(e,t)}(e,e.length))}function Qm(e){var t,n,r,i;if(null==e)return"null";for(i=new $b(", ","[","]"),n=0,r=(t=e).length;nr&&Cg(t,r,null),t}function uw(e){Qk(e),this.array=e}function hw(){hw=En,Cm=new vw,Sm=new bw,km=new Cw}function gw(e,t){var n,r,i,a,s;for(hw(),s=!1,i=0,a=(r=t).length;i=e.length)return{done:!0};var r=e[n++];return{value:[r,t.get(r)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e=Object.create(null);return void 0===e.__proto__&&0==Object.getOwnPropertyNames(e).length&&(e.__proto__=42,42===e.__proto__&&0!=Object.getOwnPropertyNames(e).length)}()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(e){return this.obj[":"+e]},e.prototype.set=function(e,t){this.obj[":"+e]=t},e.prototype.delete=function(e){delete this.obj[":"+e]},e.prototype.keys=function(){var e=[];for(var t in this.obj)58==t.charCodeAt(0)&&e.push(t.substring(1));return e}),e}()}function ax(){return ix(),new Wv}function sx(e,t){return e.backingMap.get(t)}function ox(e,t,n){var r;return r=e.backingMap.get(t),e.backingMap.set(t,void 0===n?null:n),void 0===r?(++e.size_0,sv(e.host)):++e.valueMod,r}function lx(e,t){var n;return void 0===(n=e.backingMap.get(t))?++e.valueMod:(function(e,t){e.delete.call(e,t)}(e.backingMap,t),--e.size_0,sv(e.host)),n}function cx(e){this.backingMap=ax(),this.host=e}function ux(e){this.this$01=e,this.entries_0=this.this$01.backingMap.entries(),this.current=this.entries_0.next()}function hx(e,t,n){this.this$01=e,this.val$entry2=t,this.val$lastValueMod3=n}function gx(e){e.head=new bx(e),e.map_0=new Rv}function fx(e){py(e.map_0),e.head.prev=e.head,e.head.next_0=e.head}function dx(e,t){return oy(e.map_0,t)}function px(e,t){var n;return(n=Pn(cy(e.map_0,t),382))?(yx(e,n),n.value_0):null}function _x(e,t,n){var r,i,a;return(i=Pn(cy(e.map_0,t),382))?(a=Ay(i,n),yx(e,i),a):(r=new Cx(e,t,n),gy(e.map_0,t,r),xx(r),null)}function yx(e,t){e.accessOrder&&(Ex(t),xx(t))}function mx(e,t){var n;return(n=Pn(dy(e.map_0,t),382))?(Ex(n),n.value_0):null}function wx(){Rv.call(this),gx(this),this.head.prev=this.head,this.head.next_0=this.head}function vx(e){yy.call(this,e,0),gx(this),this.head.prev=this.head,this.head.next_0=this.head}function xx(e){var t;t=e.this$01.head.prev,e.prev=t,e.next_0=e.this$01.head,t.next_0=e.this$01.head.prev=e}function Ex(e){e.next_0.prev=e.prev,e.prev.next_0=e.next_0,e.next_0=e.prev=null}function bx(e){Cx.call(this,e,null,null)}function Cx(e,t,n){this.this$01=e,Dy.call(this,t,n)}function Sx(e,t){return!!Fn(t,43)&&Qr(e.this$01,Pn(t,43))}function kx(e){this.this$01=e}function $x(e){return iv(e.this$11.this$01.map_0,e),Jk(e.next_0!=e.this$11.this$01.head),e.last=e.next_0,e.next_0=e.next_0.next_0,e.last}function Ix(e){this.this$11=e,this.next_0=e.this$01.head.next_0,av(e.this$01.map_0,this)}function Tx(){qv.call(this,new wx)}function Px(e){qv.call(this,new vx(e))}function Mx(e){qv.call(this,new wx),ui(this,e)}bn(1752,1,N,Xv),i.accept_0=function(e){Yv(this,e)},i.toString_0=function(){return"IntSummaryStatistics[count = "+df(this.count)+", avg = "+(Jg(this.count,0)?gf(this.sum)/gf(this.count):0)+", min = "+this.min_0+", max = "+this.max_0+", sum = "+df(this.sum)+"]"},i.count=0,i.max_0=ee,i.min_0=u,i.sum=0,Qn("java.util","IntSummaryStatistics",1752),bn(1005,1,z,tx),i.forEach_0=function(e){li(this,e)},i.iterator_0=function(){return new nx(this)},i.size_0=0,Qn("java.util","InternalHashCodeMap",1005),bn(692,1,_,nx),i.forEachRemaining=function(e){Lr(this,e)},i.next_1=function(){return this.lastEntry=this.chain[this.itemIndex++],this.lastEntry},i.hasNext_0=function(){var e;return this.itemIndex=e.size_0>>1)for(r=e.tail,n=e.size_0;n>t;--n)r=r.prev;else for(r=e.header.next_0,n=0;n=e.heap.array.length||(IE(e,2*t+1),(n=2*t+2)0;){if(n=r,r=(r-1)/2|0,e.cmp.compare_1(gm(e.heap,r),t)<=0)return ym(e.heap,n,t),!0;ym(e.heap,n,gm(e.heap,r))}return ym(e.heap,r,t),!0}function ME(e){var t;return null!=(t=0==e.heap.array.length?null:gm(e.heap,0))&&LE(e,0),t}function NE(e,t){var n;return!((n=null==t?-1:fm(e.heap,t,0))<0||(LE(e,n),0))}function LE(e,t){var n;n=dm(e.heap,e.heap.array.length-1),t=0;t--)HE[t]=r,r*=.5;for(n=1,e=24;e>=0;e--)VE[e]=n,n*=.5}function RE(e){return OE(e,26)*ze+OE(e,27)*Ae}function FE(e,t){var n,r;if(qk(t>0),(t&-t)==t)return Un(t*OE(e,31)*4.656612873077393e-10);do{r=(n=OE(e,31))%t}while(n-r+(t-1)<0);return Un(r)}function OE(e,t){var n,i,a,s;return a=e.seedhi*De+1502*e.seedlo,s=e.seedlo*De+11,a+=n=r.Math.floor(s*Re),s-=n*Fe,a%=Fe,e.seedhi=a,e.seedlo=s,t<=24?r.Math.floor(e.seedhi*VE[t]):((i=e.seedhi*(1<=2147483648&&(i-=Se),i)}function GE(e,t,n){e.seedhi=1502^t,e.seedlo=n^De}function BE(){var e,t,n;DE(),n=qE+++Date.now(),e=Un(r.Math.floor(n*Re))&Oe,t=Un(n-e*Fe),this.seedhi=1502^e,this.seedlo=t^De}function jE(e){DE(),GE(this,ff(Ug(lf(e,24),Oe)),ff(Ug(e,Oe)))}bn(934,1,C,rE),i.forEachRemaining=function(e){Lr(this,e)},i.add_1=function(e){Zx(this,e)},i.hasNext_0=function(){return Qx(this)},i.hasPrevious=function(){return this.currentNode.prev!=this.this$01.header},i.next_1=function(){return eE(this)},i.nextIndex_0=function(){return this.currentIndex},i.previous_0=function(){return tE(this)},i.previousIndex=function(){return this.currentIndex-1},i.remove=function(){nE(this)},i.set_1=function(e){r$(!!this.lastNode),this.lastNode.value_0=e},i.currentIndex=0,i.lastNode=null,Qn("java.util","LinkedList/ListIteratorImpl",934),bn(595,1,{},iE),Qn("java.util","LinkedList/Node",595),bn(1931,1,{}),Qn("java.util","Locale",1931),bn(840,1931,{},sE),i.toString_0=function(){return""},Qn("java.util","Locale/1",840),bn(841,1931,{},oE),i.toString_0=function(){return"unknown"},Qn("java.util","Locale/4",841),bn(114,59,{3:1,102:1,59:1,78:1,114:1},lE),Qn("java.util","NoSuchElementException",114),bn(399,1,{399:1},yE),i.equals_0=function(e){var t;return e===this||!!Fn(e,399)&&(t=Pn(e,399),cE(this.ref,t.ref))},i.hashCode_1=function(){return uE(this.ref)},i.toString_0=function(){return null!=this.ref?"Optional.of("+wp(this.ref)+")":"Optional.empty()"},Qn("java.util","Optional",399),bn(457,1,{457:1},xE,EE),i.equals_0=function(e){var t;return e===this||!!Fn(e,457)&&(t=Pn(e,457),this.present==t.present&&0==ad(this.ref,t.ref))},i.hashCode_1=function(){return this.present?Un(this.ref):0},i.toString_0=function(){return this.present?"OptionalDouble.of("+this.ref+")":"OptionalDouble.empty()"},i.present=!1,i.ref=0,Qn("java.util","OptionalDouble",457),bn(510,1,{510:1},SE,kE),i.equals_0=function(e){var t;return e===this||!!Fn(e,510)&&(t=Pn(e,510),this.present==t.present&&0==md(this.ref,t.ref))},i.hashCode_1=function(){return this.present?this.ref:0},i.toString_0=function(){return this.present?"OptionalInt.of("+this.ref+")":"OptionalInt.empty()"},i.present=!1,i.ref=0,Qn("java.util","OptionalInt",510),bn(494,1973,m,zE),i.addAll=function(e){return $E(this,e)},i.clear_0=function(){this.heap.array=xg(or,g,1,0,5,1)},i.contains=function(e){return-1!=(null==e?-1:fm(this.heap,e,0))},i.iterator_0=function(){return new AE(this)},i.remove_1=function(e){return NE(this,e)},i.size_1=function(){return this.heap.array.length},i.spliterator_0=function(){return new YE(this,256)},i.toArray=function(){return wm(this.heap)},i.toArray_0=function(e){return vm(this.heap,e)},Qn("java.util","PriorityQueue",494),bn(1249,1,_,AE),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return this.i=t)throw Vg(new bf)}function Eb(e){var t;if((t=e.arrayList.array.length)>0)return xb(t-1,e.arrayList.array.length),dm(e.arrayList,t-1);throw Vg(new gv)}function bb(e,t){return lm(e.arrayList,t),t}function Cb(){vb.call(this)}function Sb(e,t){return e.builder?Wp(e.builder,e.delimiter):e.builder=new Qp(e.prefix),Hp(e.builder,t),e}function kb(e){return e.builder?0==e.suffix.length?e.builder.string:e.builder.string+""+e.suffix:e.emptyValue}function $b(e,t,n){this.delimiter=(Qk(e),e),this.prefix=(Qk(t),t),this.suffix=(Qk(n),n),this.emptyValue=this.prefix+""+this.suffix}function Ib(e){e.root=null,e.size_0=0}function Tb(e,t){var n,r,i;for(i=e.root;i;){if(0==(n=e.cmp.compare_1(t,i.key)))return i;r=n<0?0:1,i=i.child[r]}return null}function Pb(e){var t,n;if(!e.root)return null;for(n=e.root;t=n.child[0];)n=t;return n}function Mb(e,t,n){var r,i,a;for(i=null,a=e.root;a;){if(r=e.cmp.compare_1(t,a.key),n&&0==r)return a;r>=0?a=a.child[1]:(i=a,a=a.child[0])}return i}function Nb(e,t,n){var r,i,a;for(i=null,a=e.root;a;){if(r=e.cmp.compare_1(t,a.key),n&&0==r)return a;r<=0?a=a.child[0]:(i=a,a=a.child[1])}return i}function Lb(e,t,n,r,i,a,s,o){var l,c;r&&((l=r.child[0])&&Lb(e,t,n,l,i,a,s,o),function(e,t,n,r,i,a,s){var o,l;return(!t.fromKeyValid()||!((l=e.cmp.compare_1(n,r))<0||!i&&0==l))&&(!t.toKeyValid()||!((o=e.cmp.compare_1(n,a))>0||!s&&0==o))}(e,n,r.key,i,a,s,o)&&t.add_2(r),(c=r.child[1])&&Lb(e,t,n,c,i,a,s,o))}function zb(e,t,n,r){var i,a;return t?0==(i=e.cmp.compare_1(n.key,t.key))?(r.value_0=Ay(t,n.value_0),r.found=!0,t):(a=i<0?0:1,t.child[a]=zb(e,t.child[a],n,r),Ab(t.child[a])&&(Ab(t.child[1-a])?(t.isRed=!0,t.child[0].isRed=!1,t.child[1].isRed=!1):Ab(t.child[a].child[a])?t=Bb(t,1-a):Ab(t.child[a].child[1-a])&&(t=Gb(t,1-a))),t):n}function Ab(e){return!!e&&e.isRed}function Db(e,t,n){var r,i;return r=new Yb(t,n),i=new tC,e.root=zb(e,e.root,r,i),i.found||++e.size_0,e.root.isRed=!1,i.value_0}function Rb(e,t){var n;return Ob(e,t,n=new tC),n.value_0}function Fb(e,t){var n;return(n=new tC).matchValue=!0,n.value_0=t.getValue(),Ob(e,t.getKey(),n)}function Ob(e,t,n){var r,i,a,s,o,l,c,u,h,g,f;if(!e.root)return!1;for(s=null,g=null,i=1,(l=new Yb(null,null)).child[1]=e.root,h=l;h.child[i];)c=i,o=g,g=h,h=h.child[i],i=(r=e.cmp.compare_1(t,h.key))<0?0:1,0==r&&(!n.matchValue||cE(h.value_0,n.value_0))&&(s=h),h&&h.isRed||Ab(h.child[i])||(Ab(h.child[1-i])?g=g.child[c]=Bb(h,i):Ab(h.child[1-i])||(f=g.child[1-c])&&(Ab(f.child[1-c])||Ab(f.child[c])?(a=o.child[1]==g?1:0,Ab(f.child[c])?o.child[a]=Gb(g,c):Ab(f.child[1-c])&&(o.child[a]=Bb(g,c)),h.isRed=o.child[a].isRed=!0,o.child[a].child[0].isRed=!1,o.child[a].child[1].isRed=!1):(g.isRed=!1,f.isRed=!0,h.isRed=!0)));return s&&(n.found=!0,n.value_0=s.value_0,h!=s&&(function(e,t,n,r){var i,a;for(i=null==(a=t).key||e.cmp.compare_1(n.key,a.key)>0?1:0;a.child[i]!=n;)a=a.child[i],i=e.cmp.compare_1(n.key,a.key)>0?1:0;a.child[i]=r,r.isRed=n.isRed,r.child[0]=n.child[0],r.child[1]=n.child[1],n.child[0]=null,n.child[1]=null}(e,l,s,u=new Yb(h.key,h.value_0)),g==s&&(g=u)),g.child[g.child[1]==h?1:0]=h.child[h.child[0]?0:1],--e.size_0),e.root=l.child[1],e.root&&(e.root.isRed=!1),n.found}function Gb(e,t){var n;return n=1-t,e.child[n]=Bb(e.child[n],n),Bb(e,t)}function Bb(e,t){var n,r;return n=1-t,r=e.child[n],e.child[n]=r.child[t],r.child[t]=e,e.isRed=!0,r.isRed=!1,r}function jb(){Vb.call(this,null)}function Vb(e){this.root=null,this.cmp=(ev(),e||Im)}function Hb(e){return e.last=Pn(Sy(e.iter),43)}function Ub(e){ky(e.iter),Fb(e.this$01,e.last),e.last=null}function qb(e){Wb.call(this,e,(nC(),Xb))}function Wb(e,t){var n;this.this$01=e,Lb(e,n=new xm,t,e.root,null,!1,null,!1),this.iter=new Ty(n,0)}function Kb(e){this.this$01=e,Gy.call(this,e)}function Yb(e,t){Dy.call(this,e,t),this.child=xg(eC,F,429,2,0,1),this.isRed=!0}Qn("java.util","Random",228),bn(27,1,T,YE,XE,JE),i.characteristics_0=function(){return this.characteristics},i.estimateSize_0=function(){return WE(this),this.estimateSize},i.forEachRemaining=function(e){WE(this),this.it.forEachRemaining(e)},i.tryAdvance=function(e){return KE(this,e)},i.characteristics=0,i.estimateSize=0,Qn("java.util","Spliterators/IteratorSpliterator",27),bn(478,27,T,ZE),Qn("java.util","SortedSet/1",478),bn(590,1,Me,eb),i.accept_2=function(e){this.$$outer_0.accept(e)},Qn("java.util","Spliterator/OfDouble/0methodref$accept$Type",590),bn(591,1,Me,tb),i.accept_2=function(e){this.$$outer_0.accept(e)},Qn("java.util","Spliterator/OfDouble/1methodref$accept$Type",591),bn(592,1,N,nb),i.accept_0=function(e){this.$$outer_0.accept(Cd(e))},Qn("java.util","Spliterator/OfInt/2methodref$accept$Type",592),bn(593,1,N,rb),i.accept_0=function(e){this.$$outer_0.accept(Cd(e))},Qn("java.util","Spliterator/OfInt/3methodref$accept$Type",593),bn(607,1,T),i.forEachRemaining=function(e){Fa(this,e)},i.characteristics_0=function(){return this.characteristics},i.estimateSize_0=function(){return this.sizeEstimate},i.characteristics=0,i.sizeEstimate=0,Qn("java.util","Spliterators/BaseSpliterator",607),bn(708,607,T),i.forEachRemaining_0=function(e){QE(this,e)},i.forEachRemaining=function(e){Fn(e,184)?QE(this,Pn(e,184)):QE(this,new tb(e))},i.tryAdvance=function(e){return Fn(e,184)?this.tryAdvance_0(Pn(e,184)):this.tryAdvance_0(new eb(e))},Qn("java.util","Spliterators/AbstractDoubleSpliterator",708),bn(707,607,T),i.forEachRemaining_0=function(e){QE(this,e)},i.forEachRemaining=function(e){Fn(e,195)?QE(this,Pn(e,195)):QE(this,new rb(e))},i.tryAdvance=function(e){return Fn(e,195)?this.tryAdvance_0(Pn(e,195)):this.tryAdvance_0(new nb(e))},Qn("java.util","Spliterators/AbstractIntSpliterator",707),bn(534,607,T),Qn("java.util","Spliterators/AbstractSpliterator",534),bn(676,1,T),i.forEachRemaining=function(e){Fa(this,e)},i.characteristics_0=function(){return this.characteristics},i.estimateSize_0=function(){return this.limit-this.index_0},i.characteristics=0,i.index_0=0,i.limit=0,Qn("java.util","Spliterators/BaseArraySpliterator",676),bn(926,676,T,hb),i.consume=function(e,t){!function(e,t,n){t.accept(e.array[n])}(this,Pn(e,37),t)},i.forEachRemaining=function(e){lb(this,e)},i.tryAdvance=function(e){return cb(this,e)},Qn("java.util","Spliterators/ArraySpliterator",926),bn(677,676,T,gb),i.consume=function(e,t){!function(e,t,n){t.accept_2(e.array[n])}(this,Pn(e,184),t)},i.forEachRemaining_0=function(e){lb(this,e)},i.forEachRemaining=function(e){Fn(e,184)?lb(this,Pn(e,184)):lb(this,new tb(e))},i.tryAdvance_0=function(e){return cb(this,e)},i.tryAdvance=function(e){return Fn(e,184)?cb(this,Pn(e,184)):cb(this,new eb(e))},Qn("java.util","Spliterators/DoubleArraySpliterator",677),bn(1941,1,T),i.forEachRemaining=function(e){Fa(this,e)},i.characteristics_0=function(){return 16448},i.estimateSize_0=function(){return 0},Qn("java.util","Spliterators/EmptySpliterator",1941),bn(925,1941,T,yb),i.forEachRemaining_0=function(e){pb(e)},i.forEachRemaining=function(e){Fn(e,195)?pb(Pn(e,195)):pb(new rb(e))},i.tryAdvance_0=function(e){return _b(e)},i.tryAdvance=function(e){return Fn(e,195)?_b(Pn(e,195)):_b(new nb(e))},Qn("java.util","Spliterators/EmptySpliterator/OfInt",925),bn(571,51,Ge,vb),i.add_3=function(e,t){xb(e,this.arrayList.array.length+1),om(this.arrayList,e,t)},i.add_2=function(e){return lm(this.arrayList,e)},i.addAll_0=function(e,t){return xb(e,this.arrayList.array.length+1),cm(this.arrayList,e,t)},i.addAll=function(e){return um(this.arrayList,e)},i.clear_0=function(){this.arrayList.array=xg(or,g,1,0,5,1)},i.contains=function(e){return-1!=fm(this.arrayList,e,0)},i.containsAll=function(e){return fi(this.arrayList,e)},i.forEach_0=function(e){hm(this.arrayList,e)},i.get_0=function(e){return xb(e,this.arrayList.array.length),gm(this.arrayList,e)},i.indexOf_0=function(e){return fm(this.arrayList,e,0)},i.isEmpty=function(){return 0==this.arrayList.array.length},i.iterator_0=function(){return new Rm(this.arrayList)},i.remove_2=function(e){return xb(e,this.arrayList.array.length),dm(this.arrayList,e)},i.removeRange=function(e,t){_m(this.arrayList,e,t)},i.set_2=function(e,t){return xb(e,this.arrayList.array.length),ym(this.arrayList,e,t)},i.size_1=function(){return this.arrayList.array.length},i.sort_0=function(e){mm(this.arrayList,e)},i.subList=function(e,t){return new Py(this.arrayList,e,t)},i.toArray=function(){return wm(this.arrayList)},i.toArray_0=function(e){return vm(this.arrayList,e)},i.toString_0=function(){return _i(this.arrayList)},Qn("java.util","Vector",571),bn(790,571,Ge,Cb),Qn("java.util","Stack",790),bn(204,1,{204:1},$b),i.toString_0=function(){return kb(this)},Qn("java.util","StringJoiner",204),bn(537,1961,{3:1,84:1,171:1,161:1},jb,Vb),i.clear_0=function(){Ib(this)},i.entrySet_0=function(){return new Kb(this)},i.put=function(e,t){return Db(this,e,t)},i.remove_0=function(e){return Rb(this,e)},i.size_1=function(){return this.size_0},i.size_0=0,Qn("java.util","TreeMap",537),bn(386,1,_,qb),i.forEachRemaining=function(e){Lr(this,e)},i.next_1=function(){return Hb(this)},i.hasNext_0=function(){return Cy(this.iter)},i.remove=function(){Ub(this)},Qn("java.util","TreeMap/EntryIterator",386),bn(428,722,v,Kb),i.clear_0=function(){Ib(this.this$01)},Qn("java.util","TreeMap/EntrySet",428),bn(429,379,{479:1,379:1,43:1,429:1},Yb),i.isRed=!1;var Xb,Jb,Zb,Qb,eC=Qn("java.util","TreeMap/Node",429);function tC(){}function nC(){nC=En,Xb=new rC("All",0),Jb=new sC,Zb=new oC,Qb=new lC}function rC(e,t){nl.call(this,e,t)}bn(611,1,{},tC),i.toString_0=function(){return"State: mv="+this.matchValue+" value="+this.value_0+" done="+this.done_0+" found="+this.found},i.done_0=!1,i.found=!1,i.matchValue=!1,Qn("java.util","TreeMap/State",611),bn(297,22,Be,rC),i.fromKeyValid=function(){return!1},i.toKeyValid=function(){return!1};var iC,aC=er("java.util","TreeMap/SubMapType",297,sl,(function(){return nC(),Sg(yg(aC,1),W,297,0,[Xb,Jb,Zb,Qb])}),(function(e){return nC(),il((cC(),iC),e)}));function sC(){rC.call(this,"Head",1)}function oC(){rC.call(this,"Range",2)}function lC(){rC.call(this,"Tail",3)}function cC(){cC=En,iC=rl((nC(),Sg(yg(aC,1),W,297,0,[Xb,Jb,Zb,Qb])))}function uC(e,t){return null==Db(e.map_0,t,(Mf(),Rh))}function hC(e,t){return ii(Mb(e.map_0,t,!1))}function gC(e,t){return ii(Nb(e.map_0,t,!1))}function fC(e,t){return null!=Rb(e.map_0,t)}function dC(){this.map_0=new jb}function pC(e){this.map_0=new Vb(e)}bn(1085,297,Be,sC),i.toKeyValid=function(){return!0},er("java.util","TreeMap/SubMapType/1",1085,aC,null,null),bn(1086,297,Be,oC),i.fromKeyValid=function(){return!0},i.toKeyValid=function(){return!0},er("java.util","TreeMap/SubMapType/2",1086,aC,null,null),bn(1087,297,Be,lC),i.fromKeyValid=function(){return!0},er("java.util","TreeMap/SubMapType/3",1087,aC,null,null),bn(206,w,{3:1,19:1,28:1,15:1,270:1,21:1,81:1,206:1},dC,pC),i.spliterator_0=function(){return new ZE(this)},i.add_2=function(e){return uC(this,e)},i.clear_0=function(){Ib(this.map_0)},i.contains=function(e){return Fy(this.map_0,e)},i.iterator_0=function(){return new jy(new qb(new Kb(new By(this.map_0).map_0).this$01_0))},i.remove_1=function(e){return fC(this,e)},i.size_1=function(){return this.map_0.size_0};var _C=Qn("java.util","TreeSet",206);function yC(e){this.comparator_0=e}function mC(e){this.comparator_0=e}function wC(){}function vC(e){this.$$outer_0=e}bn(930,1,{},yC),i.apply_3=function(e,t){return n=e,r=t,this.comparator_0.compare_1(n,r)<=0?r:n;var n,r},Qn("java.util.function","BinaryOperator/lambda$0$Type",930),bn(931,1,{},mC),i.apply_3=function(e,t){return n=e,r=t,this.comparator_0.compare_1(n,r)<=0?n:r;var n,r},Qn("java.util.function","BinaryOperator/lambda$1$Type",931),bn(825,1,{},wC),i.apply_0=function(e){return e},Qn("java.util.function","Function/lambda$0$Type",825),bn(425,1,J,vC),i.test_0=function(e){return!this.$$outer_0.test_0(e)},Qn("java.util.function","Predicate/lambda$2$Type",425),bn(564,1,{564:1});var xC,EC,bC=Qn("java.util.logging","Handler",564);function CC(){CC=En,xC=new SC}function SC(){}function kC(e,t){var n,i;return Pn(uy(e.loggerMap,t),505)||(n=new NC(t),TC(),function(e,t){FC||t&&(e.parent_0=t)}(n,kC(e,dp(i=FC?null:n.name_0,0,r.Math.max(0,cp(i,mp(46)))))),0==(FC?null:n.name_0).length&&PC(n,new jC),fy(e.loggerMap,FC?null:n.name_0,n),n)}function $C(){this.loggerMap=new Rv}function IC(e){this.msg=e,t_(),Xg(Date.now())}function TC(){TC=En,FC=!0,DC=!1,RC=!1,GC=!1,OC=!1}function PC(e,t){FC||lm(e.handlers,t)}function MC(e){return FC?xg(bC,je,564,0,0,1):Pn(vm(e.handlers,xg(bC,je,564,e.handlers.array.length,0,1)),821)}function NC(e){TC(),FC||(this.name_0=e,this.useParentHandlers=!0,this.handlers=new xm)}bn(1976,1,h),i.getName=function(){return"DUMMY"},i.toString_0=function(){return this.getName()},Qn("java.util.logging","Level",1976),bn(1591,1976,h,SC),i.getName=function(){return"INFO"},Qn("java.util.logging","Level/LevelInfo",1591),bn(1610,1,{},$C),Qn("java.util.logging","LogManager",1610),bn(1751,1,h,IC),i.thrown=null,Qn("java.util.logging","LogRecord",1751),bn(505,1,{505:1},NC),i.useParentHandlers=!1;var LC,zC,AC,DC=!1,RC=!1,FC=!1,OC=!1,GC=!1;function BC(e){var t;(t=np(typeof t,"undefined")?null:new Hk)&&(CC(),jk("warn",e.msg),e.thrown&&Vk(t,"warn",e.thrown,"Exception: ",!0))}function jC(){}function VC(e,t,n,r,i){return Qk(e),Qk(t),Qk(n),Qk(r),Qk(i),new XC(e,t,r)}function HC(e,t,n,r){return Qk(e),Qk(t),Qk(n),Qk(r),new XC(e,t,new wC)}function UC(){UC=En,LC=new qC("CONCURRENT",0),zC=new qC("IDENTITY_FINISH",1),AC=new qC("UNORDERED",2)}function qC(e,t){nl.call(this,e,t)}Qn("java.util.logging","Logger",505),bn(798,564,{564:1},jC),Qn("java.util.logging","SimpleConsoleLogHandler",798),bn(132,22,{3:1,36:1,22:1,132:1},qC);var WC,KC=er("java.util.stream","Collector/Characteristics",132,sl,(function(){return UC(),Sg(yg(KC,1),W,132,0,[LC,zC,AC])}),(function(e){return UC(),il((YC(),WC),e)}));function YC(){YC=En,WC=rl((UC(),Sg(yg(KC,1),W,132,0,[LC,zC,AC])))}function XC(e,t,n){this.supplier=e,this.accumulator=t,hw(),this.finisher=n}function JC(e,t){return e.addAll(t),e}function ZC(e,t){return function(e,t,n){return VC(e,new xS(t),new ES,new bS(n),Sg(yg(KC,1),W,132,0,[]))}(new hS,new rS(e),t)}function QC(e,t){return VC(new gS(e),new fS(t),new dS(t),new pS,Sg(yg(KC,1),W,132,0,[]))}function eS(e,t){var n,r,i;for(n=e.supplier.get_5(),i=t.iterator_0();i.hasNext_0();)r=i.next_1(),e.accumulator.accept_1(n,r);return e.finisher.apply_0(n)}function tS(){}function nS(){}function rS(e){this.$$outer_0=e}function iS(){}function aS(){}function sS(){}function oS(){}function lS(){}function cS(){}function uS(){this.delimiter_0=";,;",this.prefix_1="",this.suffix_2=""}function hS(){}function gS(e){this.identity_0=e}function fS(e){this.op_0=e}function dS(e){this.op_0=e}function pS(){}function _S(e,t){return n=Pn(e,162),r=Pn(t,162),Nd(Hg(Nd(n.value_0).value_0,r.value_0));var n,r}function yS(){}function mS(){}function wS(){}function vS(){}function xS(e){this.classifier_0=e}function ES(){}function bS(e){this.downstream_1=e}function CS(e){e.root?e.root.close_0():(e.terminated=!0,function(e){var t,n,r,i,a;if(a=new xm,hm(e.onClose,new Lk(a)),e.onClose.array=xg(or,g,1,0,5,1),0!=a.array.length){for(Zk(0,a.array.length),t=Pn(a.array[0],78),n=1,r=a.array.length;nt)throw Vg(new gd("fromIndex: "+e+" > toIndex: "+t));if(e<0||t>n)throw Vg(new Cf("fromIndex: "+e+", toIndex: "+t+", length: "+n))}function Yk(e){if(e<0)throw Vg(new jd("Negative array size: "+e))}function Xk(e,t){if(!e)throw Vg(new kf(t))}function Jk(e){if(!e)throw Vg(new lE)}function Zk(e,t){if(e<0||e>=t)throw Vg(new Ef("Index: "+e+", Size: "+t))}function Qk(e){if(null==e)throw Vg(new Vd);return e}function e$(e,t){if(null==e)throw Vg(new Hd(t))}function t$(e,t){if(e<0||e>t)throw Vg(new Ef("Index: "+e+", Size: "+t))}function n$(e,t,n){if(e<0||t>n)throw Vg(new Ef("fromIndex: "+e+", toIndex: "+t+", size: "+n));if(e>t)throw Vg(new gd("fromIndex: "+e+" > toIndex: "+t))}function r$(e){if(!e)throw Vg(new dd)}function i$(e){if(!e)throw Vg(new pd("Unable to add element to queue"))}function a$(e,t,n){if(e<0||t>n||t=t)throw Vg(new e_("Index: "+e+", Size: "+t))}function o$(e){if(!e)throw Vg(new Qf(null))}function l$(e){return e.$H||(e.$H=++c$)}bn(30,533,{518:1,658:1,812:1},ck),i.close_0=function(){CS(this)},Qn("java.util.stream","StreamImpl",30),bn(824,1,{},hk),i.apply_2=function(e){return uk(e)},Qn("java.util.stream","StreamImpl/0methodref$lambda$2$Type",824),bn(1064,534,T,fk),i.tryAdvance=function(e){for(;gk(this);){if(this.next_0.tryAdvance(e))return!0;CS(this.nextStream),this.nextStream=null,this.next_0=null}return!1},Qn("java.util.stream","StreamImpl/1",1064),bn(1065,1,P,dk),i.accept=function(e){var t,n;t=this.$$outer_0,(n=Pn(e,812))&&(t.nextStream=n,t.next_0=(kS(n),n.spliterator))},Qn("java.util.stream","StreamImpl/1/lambda$0$Type",1065),bn(1066,1,J,pk),i.test_0=function(e){return Gv(this.$$outer_0,e)},Qn("java.util.stream","StreamImpl/1methodref$add$Type",1066),bn(1067,534,T,_k),i.tryAdvance=function(e){var t;return this.ordered||(t=new xm,this.this$01.spliterator.forEachRemaining(new yk(t)),hw(),mm(t,this.val$comparator5),this.ordered=new YE(t,16)),KE(this.ordered,e)},i.ordered=null,Qn("java.util.stream","StreamImpl/5",1067),bn(1068,1,P,yk),i.accept=function(e){lm(this.$$outer_0,e)},Qn("java.util.stream","StreamImpl/5/2methodref$add$Type",1068),bn(709,534,T,mk),i.tryAdvance=function(e){for(this.found=!1;!this.found&&this.original.tryAdvance(new wk(this,e)););return this.found},i.found=!1,Qn("java.util.stream","StreamImpl/FilterSpliterator",709),bn(1059,1,P,wk),i.accept=function(e){var t,n,r;t=this.$$outer_0,n=this.action_1,r=e,t.filter.test_0(r)&&(t.found=!0,n.accept(r))},Qn("java.util.stream","StreamImpl/FilterSpliterator/lambda$0$Type",1059),bn(1055,708,T,vk),i.tryAdvance_0=function(e){return function(e,t){return e.original.tryAdvance(new xk(e,t))}(this,Pn(e,184))},Qn("java.util.stream","StreamImpl/MapToDoubleSpliterator",1055),bn(1058,1,P,xk),i.accept=function(e){var t,n;t=this.$$outer_0,n=e,this.action_1.accept_2(t.map_0.applyAsDouble(n))},Qn("java.util.stream","StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1058),bn(1054,707,T,Ek),i.tryAdvance_0=function(e){return function(e,t){return e.original.tryAdvance(new bk(e,t))}(this,Pn(e,195))},Qn("java.util.stream","StreamImpl/MapToIntSpliterator",1054),bn(1057,1,P,bk),i.accept=function(e){var t,n;t=this.$$outer_0,n=e,this.action_1.accept_0(t.map_0.applyAsInt(n))},Qn("java.util.stream","StreamImpl/MapToIntSpliterator/lambda$0$Type",1057),bn(706,534,T,Sk),i.tryAdvance=function(e){return Ck(this,e)},Qn("java.util.stream","StreamImpl/MapToObjSpliterator",706),bn(1056,1,P,kk),i.accept=function(e){var t,n;t=this.$$outer_0,n=e,this.action_1.accept(t.map_0.apply_0(n))},Qn("java.util.stream","StreamImpl/MapToObjSpliterator/lambda$0$Type",1056),bn(608,1,P,Ik),i.accept=function(e){$k(this,e)},Qn("java.util.stream","StreamImpl/ValueConsumer",608),bn(1060,1,P,Tk),i.accept=function(e){US()},Qn("java.util.stream","StreamImpl/lambda$0$Type",1060),bn(1061,1,P,Pk),i.accept=function(e){US()},Qn("java.util.stream","StreamImpl/lambda$1$Type",1061),bn(1062,1,{},Mk),i.apply_3=function(e,t){return n=this.collector_0,r=e,i=t,US(),n.accumulator.accept_1(r,i),r;var n,r,i},Qn("java.util.stream","StreamImpl/lambda$4$Type",1062),bn(1063,1,P,Nk),i.accept=function(e){var t,n,r;t=this.consumer_0,n=this.accumulator_1,r=e,US(),$k(t,n.apply_3(t.value_0,r))},Qn("java.util.stream","StreamImpl/lambda$5$Type",1063),bn(1069,1,P,Lk),i.accept=function(e){!function(e,t){var n;try{t.run()}catch(t){if(!Fn(t=jg(t),78))throw Vg(t);n=t,e.array[e.array.length]=n}}(this.throwables_0,Pn(e,362))},Qn("java.util.stream","TerminatableStream/lambda$0$Type",1069),bn(2010,1,{}),bn(1886,1,{},Hk),Qn("javaemul.internal","ConsoleLogger",1886),bn(2007,1,{});var c$=0;function u$(){u$=En,g$=new Sn,f$=new Sn}function h$(e){var t,n,r;return u$(),null!=(r=f$[n=":"+e])?Un((Qk(r),r)):(t=null==(r=g$[n])?function(e){var t,n,r,i;for(t=0,i=(r=e.length)-4,n=0;n>>0).toString(16))},i.id_0=0,i.startPos=_e;var R$,F$,O$,G$,B$=Qn("org.eclipse.elk.alg.common.compaction.oned","CNode",56);function j$(e,t){return lm(t.cNodes,e.node),e.node}function V$(e,t){return e.node.hitbox=t,e}function H$(e,t){return e.node.origin_0=t,e}function U$(e,t){return e.node.toStringDelegate=t,e}function q$(){this.node=new D$}function W$(e,t){return au(),lu(Q),r.Math.abs(e-t)<=Q||e==t||isNaN(e)&&isNaN(t)}function K$(e,t){return au(),au(),lu(Q),(r.Math.abs(e-t)<=Q||e==t||isNaN(e)&&isNaN(t)?0:et?1:cu(isNaN(e),isNaN(t)))<=0}function Y$(e,t){return au(),au(),lu(Q),(r.Math.abs(e-t)<=Q||e==t||isNaN(e)&&isNaN(t)?0:et?1:cu(isNaN(e),isNaN(t)))<0}function X$(){X$=En,R$=new J$}function J$(){}function Z$(){}function Q$(){Q$=En,F$=new Z$,G$=new CI,O$=new yI}function eI(e){var t;for(t=new Rm(e.cGraph.cNodes);t.in.hitbox.x_0||n.hitbox.x_0==a.hitbox.x_0&&n.hitbox.width_0c?1:cu(isNaN(l),isNaN(c)))>0)&&Y$(a.hitbox.y_0,n.hitbox.y_0+n.hitbox.height+o)&&n.constraints.add_2(a)))},Qn("org.eclipse.elk.alg.common.compaction.oned","QuadraticConstraintCalculation",1762),bn(515,1,{515:1},xI),i.down=!1,i.left=!1,i.right=!1,i.up=!1,Qn("org.eclipse.elk.alg.common.compaction.oned","Quadruplet",515),bn(785,1,{},CI),i.calculateConstraints=function(e){this.compactor=e,bI(this,new TI)},Qn("org.eclipse.elk.alg.common.compaction.oned","ScanlineConstraintCalculator",785),bn(1688,1,{667:1},SI),i.handle=function(e){!function(e,t){var n,r;t.low?function(e,t){var n;if(!uC(e.intervals,t.node))throw Vg(new pd("Invalid hitboxes for scanline constraint calculation."));(EI(t.node,Pn(function(e,t){return ii(Nb(e.map_0,t,!0))}(e.intervals,t.node),56))||EI(t.node,Pn(function(e,t){return ii(Mb(e.map_0,t,!0))}(e.intervals,t.node),56)))&&(t_(),t.node),e.cand[t.node.id_0]=Pn(gC(e.intervals,t.node),56),(n=Pn(hC(e.intervals,t.node),56))&&(e.cand[n.id_0]=t.node)}(e,t):(!!(n=Pn(gC(e.intervals,t.node),56))&&n==e.cand[t.node.id_0]&&!!n.cGroup&&n.cGroup!=t.node.cGroup&&n.constraints.add_2(t.node),!!(r=Pn(hC(e.intervals,t.node),56))&&e.cand[r.id_0]==t.node&&!!r.cGroup&&r.cGroup!=t.node.cGroup&&t.node.constraints.add_2(r),fC(e.intervals,t.node))}(this,Pn(e,458))},Qn("org.eclipse.elk.alg.common.compaction.oned","ScanlineConstraintCalculator/ConstraintsScanlineHandler",1688),bn(1689,1,He,kI),i.compare_1=function(e,t){return n=Pn(e,56),r=Pn(t,56),ad(n.hitbox.x_0+n.hitbox.width_0/2,r.hitbox.x_0+r.hitbox.width_0/2);var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.common.compaction.oned","ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",1689),bn(458,1,{458:1},$I),i.low=!1,Qn("org.eclipse.elk.alg.common.compaction.oned","ScanlineConstraintCalculator/Timestamp",458),bn(1690,1,He,II),i.compare_1=function(e,t){return function(e,t){var n,r,i;if(r=e.node.hitbox.y_0,e.low||(r+=e.node.hitbox.height),i=t.node.hitbox.y_0,t.low||(i+=t.node.hitbox.height),0==(n=ad(r,i))){if(!e.low&&t.low)return-1;if(!t.low&&e.low)return 1}return n}(Pn(e,458),Pn(t,458))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.common.compaction.oned","ScanlineConstraintCalculator/lambda$0$Type",1690),bn(1691,1,Ue,TI),i.apply_1=function(e){return Pn(e,56),!0},i.equals_0=function(e){return this===e},i.test_0=function(e){return Pn(e,56),!0},Qn("org.eclipse.elk.alg.common.compaction.oned","ScanlineConstraintCalculator/lambda$1$Type",1691),bn(422,22,{3:1,36:1,22:1,422:1},MI);var NI,LI,zI,AI=er("org.eclipse.elk.alg.common.compaction.options","HighLevelSortingCriterion",422,sl,(function(){return PI(),Sg(yg(AI,1),W,422,0,[dI,fI])}),(function(e){return PI(),il((DI(),NI),e)}));function DI(){DI=En,NI=rl((PI(),Sg(yg(AI,1),W,422,0,[dI,fI])))}function RI(){RI=En,LI=new FI("BY_SIZE",0),zI=new FI("BY_SIZE_AND_SHAPE",1)}function FI(e,t){nl.call(this,e,t)}bn(421,22,{3:1,36:1,22:1,421:1},FI);var OI,GI=er("org.eclipse.elk.alg.common.compaction.options","LowLevelSortingCriterion",421,sl,(function(){return RI(),Sg(yg(GI,1),W,421,0,[LI,zI])}),(function(e){return RI(),il((BI(),OI),e)}));function BI(){BI=En,OI=rl((RI(),Sg(yg(GI,1),W,421,0,[LI,zI])))}var jI,VI,HI,UI,qI,WI,KI,YI,XI,JI,ZI,QI,eT,tT,nT,rT,iT=tr("org.eclipse.elk.core.data","ILayoutMetaDataProvider");function aT(){aT=En,oT(),WI=new ADe("org.eclipse.elk.polyomino.traversalStrategy",KI=tT),RI(),UI=new ADe("org.eclipse.elk.polyomino.lowLevelSort",qI=zI),PI(),VI=new ADe("org.eclipse.elk.polyomino.highLevelSort",HI=dI),jI=new ADe("org.eclipse.elk.polyomino.fill",(Mf(),!0))}function sT(){aT()}function oT(){oT=En,rT=new lT("SPIRAL",0),ZI=new lT("LINE_BY_LINE",1),QI=new lT("MANHATTAN",2),JI=new lT("JITTER",3),tT=new lT("QUADRANTS_LINE_BY_LINE",4),nT=new lT("QUADRANTS_MANHATTAN",5),eT=new lT("QUADRANTS_JITTER",6),XI=new lT("COMBINE_LINE_BY_LINE_MANHATTAN",7),YI=new lT("COMBINE_JITTER_MANHATTAN",8)}function lT(e,t){nl.call(this,e,t)}bn(832,1,qe,sT),i.apply_4=function(e){sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.polyomino.traversalStrategy"),"polyomino"),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),KI),(lEe(),eEe)),uT),Sv((Yxe(),Lxe))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.polyomino.lowLevelSort"),"polyomino"),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),qI),eEe),GI),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.polyomino.highLevelSort"),"polyomino"),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),HI),eEe),AI),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.polyomino.fill"),"polyomino"),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(Mf(),!0)),Zxe),Af),Sv(Lxe))))},Qn("org.eclipse.elk.alg.common.compaction.options","PolyominoOptions",832),bn(249,22,{3:1,36:1,22:1,249:1},lT);var cT,uT=er("org.eclipse.elk.alg.common.compaction.options","TraversalStrategy",249,sl,(function(){return oT(),Sg(yg(uT,1),W,249,0,[rT,ZI,QI,JI,tT,nT,eT,XI,YI])}),(function(e){return oT(),il((hT(),cT),e)}));function hT(){hT=En,cT=rl((oT(),Sg(yg(uT,1),W,249,0,[rT,ZI,QI,JI,tT,nT,eT,XI,YI])))}function gT(e,t){if(t==e.source)return e.target;if(t==e.target)return e.source;throw Vg(new gd("Node "+t+" not part of edge "+e))}function fT(){}bn(211,1,{211:1},fT),i.toString_0=function(){return"NEdge[id="+this.id_0+" w="+this.weight+" d="+this.delta+"]"},i.delta=1,i.id_0=0,i.internalId=0,i.treeEdge=!1,i.weight=0;var dT=Qn("org.eclipse.elk.alg.common.networksimplex","NEdge",211);function pT(e){if(!e.edge.source||!e.edge.target)throw Vg(new pd((Wn(dT),dT.simpleName+" must have a source and target "+(Wn(ST),ST.simpleName+" specified."))));if(e.edge.source==e.edge.target)throw Vg(new pd("Network simplex does not support self-loops: "+e.edge+" "+e.edge.source+" "+e.edge.target));return kT(e.edge.source.outgoingEdges,e.edge),kT(e.edge.target.incomingEdges,e.edge),e.edge}function _T(e,t){return e.edge.delta=t,e}function yT(e,t){return e.edge.source=t,e}function mT(e,t){return e.edge.target=t,e}function wT(e,t){return e.edge.weight=t,e}function vT(){this.edge=new fT}function xT(e,t,n){var r;if(!n[t.internalId])for(n[t.internalId]=!0,r=new Rm(bT(t));r.i=40)&&function(e){var t,n,r,i,a,s,o;for(e.subtreeNodesStack=new em,r=new Hx,s=new Rm(e.graph_0.nodes);s.i0,o=gT(t,a),$T(n?o.incomingEdges:o.outgoingEdges,t),1==bT(o).array.length&&Rx(r,o,r.tail.prev,r.tail),i=new zPe(a,t),Hy(e.subtreeNodesStack,i),pm(e.graph_0.nodes,a))}(e),function(e){var t,n,r,i,a,s,o,l,c,u;for(c=e.graph_0.nodes.array.length,a=new Rm(e.graph_0.nodes);a.i0){for(Vm(e.edgeVisited);jT(e,Pn(Am(new Rm(e.graph_0.nodes)),119))i.top_0,i.top_0=r.Math.max(i.top_0,t),l&&n&&(i.top_0=r.Math.max(i.top_0,i.bottom),i.bottom=i.top_0+a);break;case 3:n=t>i.bottom,i.bottom=r.Math.max(i.bottom,t),l&&n&&(i.bottom=r.Math.max(i.bottom,i.top_0),i.top_0=i.bottom+a);break;case 2:n=t>i.right,i.right=r.Math.max(i.right,t),l&&n&&(i.right=r.Math.max(i.left,i.right),i.left=i.right+a);break;case 4:n=t>i.left,i.left=r.Math.max(i.left,t),l&&n&&(i.left=r.Math.max(i.left,i.right),i.right=i.left+a)}}}(s),function(e){switch(e.portConstraints.ordinal){case 5:sN(e,(pIe(),W$e)),sN(e,uIe);break;case 4:oN(e,(pIe(),W$e)),oN(e,uIe);break;default:lN(e,(pIe(),W$e)),lN(e,uIe)}}(s),function(e){switch(e.portConstraints.ordinal){case 5:FN(e,(pIe(),q$e)),FN(e,gIe);break;case 4:ON(e,(pIe(),q$e)),ON(e,gIe);break;default:GN(e,(pIe(),q$e)),GN(e,gIe)}}(s),function(e){var t,n,r,i,a,s,o;if(!e.sizeConstraints.isEmpty()){if(e.sizeConstraints.contains((RIe(),TIe))&&(Pn(pv(e.insidePortLabelCells,(pIe(),W$e)),121).contributesToMinimumWidth=!0,Pn(pv(e.insidePortLabelCells,uIe),121).contributesToMinimumWidth=!0,t=e.portConstraints!=(P$e(),C$e)&&e.portConstraints!=b$e,tP(Pn(pv(e.insidePortLabelCells,q$e),121),t),tP(Pn(pv(e.insidePortLabelCells,gIe),121),t),tP(e.nodeContainerMiddleRow,t),e.sizeConstraints.contains(PIe)&&(Pn(pv(e.insidePortLabelCells,W$e),121).contributesToMinimumHeight=!0,Pn(pv(e.insidePortLabelCells,uIe),121).contributesToMinimumHeight=!0,Pn(pv(e.insidePortLabelCells,q$e),121).contributesToMinimumWidth=!0,Pn(pv(e.insidePortLabelCells,gIe),121).contributesToMinimumWidth=!0,e.nodeContainerMiddleRow.contributesToMinimumWidth=!0)),e.sizeConstraints.contains(IIe))for(e.insideNodeLabelContainer.contributesToMinimumHeight=!0,e.insideNodeLabelContainer.contributesToMinimumWidth=!0,e.nodeContainerMiddleRow.contributesToMinimumHeight=!0,e.nodeContainerMiddleRow.contributesToMinimumWidth=!0,o=e.sizeOptions.contains((JIe(),UIe)),a=0,s=(i=YM()).length;a0&&(n[0]+=e.gap,o-=n[0]),n[2]>0&&(n[2]+=e.gap,o-=n[2]),s=r.Math.max(0,o),n[1]=r.Math.max(n[1],o),xP(e,iP,a.x_0+i.left+n[0]-(n[1]-o)/2,n),t==iP&&(e.centerCellRect.width_0=s,e.centerCellRect.x_0=a.x_0+i.left+(s-o)/2)}function bP(e,t,n){return e.cells_0[t.ordinal][n.ordinal]}function CP(e,t,n){var i;return i=Sg(yg(d1e,1),xe,24,15,[$P(e,(cP(),rP),t,n),$P(e,iP,t,n),$P(e,aP,t,n)]),e.symmetrical&&(i[0]=r.Math.max(i[0],i[2]),i[2]=i[0]),i}function SP(e,t,n){var i,a;for(a=0,i=0;i0&&(r+=i,++n);return n>1&&(r+=e.gap*(n-1)),r}function TP(e,t,n){wP(),_P.call(this),this.cells_0=wg(sP,[$,Ye],[586,210],0,[zP,LP],2),this.centerCellRect=new FEe,this.tabular=e,this.symmetrical=t,this.gap=n}bn(324,210,Ke),Qn("org.eclipse.elk.alg.common.nodespacing.cellsystem","ContainerCell",324),bn(1442,324,Ke,TP),i.getMinimumHeight=function(){var e;return e=0,this.onlyCenterCellContributesToMinimumSize?this.centerCellMinimumSize?e=this.centerCellMinimumSize.y_0:this.cells_0[1][1]&&(e=this.cells_0[1][1].getMinimumHeight()):e=IP(this,kP(this,!0)),e>0?e+this.padding.top_0+this.padding.bottom:0},i.getMinimumWidth=function(){var e,t,n,i,a;if(a=0,this.onlyCenterCellContributesToMinimumSize)this.centerCellMinimumSize?a=this.centerCellMinimumSize.x_0:this.cells_0[1][1]&&(a=this.cells_0[1][1].getMinimumWidth());else if(this.tabular)a=IP(this,CP(this,null,!0));else for(cP(),n=0,i=(t=Sg(yg(gP,1),W,230,0,[rP,iP,aP])).length;n0?a+this.padding.left+this.padding.right:0},i.layoutChildrenHorizontally=function(){var e,t,n,r,i;if(this.tabular)for(e=CP(this,null,!1),cP(),r=0,i=(n=Sg(yg(gP,1),W,230,0,[rP,iP,aP])).length;r0&&(i[0]+=this.gap,n-=i[0]),i[2]>0&&(i[2]+=this.gap,n-=i[2]),this.centerCellRect.height=r.Math.max(0,n),this.centerCellRect.y_0=t.y_0+e.top_0+(this.centerCellRect.height-n)/2,i[1]=r.Math.max(i[1],n),vP(this,iP,t.y_0+e.top_0+i[0]-(i[1]-n)/2,i)},i.centerCellMinimumSize=null,i.gap=0,i.onlyCenterCellContributesToMinimumSize=!1,i.symmetrical=!1,i.tabular=!1;var PP,MP,NP,LP=0,zP=0;function AP(){AP=En,MP=new DP("LEFT",0),PP=new DP("CENTER",1),NP=new DP("RIGHT",2)}function DP(e,t){nl.call(this,e,t)}Qn("org.eclipse.elk.alg.common.nodespacing.cellsystem","GridContainerCell",1442),bn(455,22,{3:1,36:1,22:1,455:1},DP);var RP,FP=er("org.eclipse.elk.alg.common.nodespacing.cellsystem","HorizontalLabelAlignment",455,sl,(function(){return AP(),Sg(yg(FP,1),W,455,0,[MP,PP,NP])}),(function(e){return AP(),il((OP(),RP),e)}));function OP(){OP=En,RP=rl((AP(),Sg(yg(FP,1),W,455,0,[MP,PP,NP])))}function GP(e){e.horizontalAlignment=(AP(),PP),e.verticalAlignment=(dM(),QP),e.labels=(za(2,"initialArraySize"),new Em(2)),e.minimumContentAreaSize=new nbe}function BP(e,t){var n;lm(e.labels,t),n=t.getSize(),e.horizontalLayoutMode?(e.minimumContentAreaSize.x_0=r.Math.max(e.minimumContentAreaSize.x_0,n.x_0),e.minimumContentAreaSize.y_0+=n.y_0,e.labels.array.length>1&&(e.minimumContentAreaSize.y_0+=e.gap)):(e.minimumContentAreaSize.x_0+=n.x_0,e.minimumContentAreaSize.y_0=r.Math.max(e.minimumContentAreaSize.y_0,n.y_0),e.labels.array.length>1&&(e.minimumContentAreaSize.x_0+=e.gap))}function jP(e){var t,n,r,i,a,s,o;for(n=e.cellRectangle,t=e.padding,o=n.y_0,e.verticalAlignment==(dM(),QP)?o+=(n.height-e.minimumContentAreaSize.y_0)/2:e.verticalAlignment==ZP&&(o+=n.height-e.minimumContentAreaSize.y_0),i=new Rm(e.labels);i.i0&&(s+=n,++t);t>1&&(s+=e.gap*(t-1))}else s=wE(PS(ek(YS(Zm(e.cells_0),new gM),new fM)));return s>0?s+e.padding.top_0+e.padding.bottom:0}function rM(e){var t,n,r,i,a,s;if(s=0,0==e.containerMode)s=wE(PS(ek(YS(Zm(e.cells_0),new uM),new hM)));else{for(t=0,i=0,a=(r=oM(e,!0)).length;i0&&(s+=n,++t);t>1&&(s+=e.gap*(t-1))}return s>0?s+e.padding.left+e.padding.right:0}function iM(e){var t,n,i,a,s,o,l,c,u,h,g,f,d;if(n=e.cellRectangle,t=e.padding,0==e.containerMode)for(d=n.x_0+t.left,f=n.width_0-t.left-t.right,c=0,h=(o=e.cells_0).length;c0&&(g-=i[0]+e.gap,i[0]+=e.gap),i[2]>0&&(g-=i[2]+e.gap),i[1]=r.Math.max(i[1],g),dP(e.cells_0[1],n.x_0+t.left+i[0]-(i[1]-g)/2,i[1]);for(l=0,u=(s=e.cells_0).length;l0&&(t[0]+=e.gap,g-=t[0]),t[2]>0&&(g-=t[2]+e.gap),t[1]=r.Math.max(t[1],g),pP(e.cells_0[1],i.y_0+n.top_0+t[0]-(t[1]-g)/2,t[1]);else for(d=i.y_0+n.top_0,f=i.height-n.top_0-n.bottom,c=0,h=(o=e.cells_0).length;c1||qc(Gc(kv(A$e,Sg(yg(fIe,1),W,291,0,[O$e])),i))>1)throw Vg(new Xwe("Invalid port label placement: "+this.portLabelsPlacement));if(this.portLabelsTreatAsGroup=Nf(Nn(e.getProperty(uSe))),this.nodeLabelPlacement=Pn(e.getProperty(zCe),21),!function(e){return c$e(),!(qc(Gc(kv(n$e,Sg(yg(y$e,1),W,92,0,[r$e])),e))>1)&&(!(qc(Gc(kv(Qke,Sg(yg(y$e,1),W,92,0,[Zke,t$e])),e))>1)&&!(qc(Gc(kv(s$e,Sg(yg(y$e,1),W,92,0,[a$e,i$e])),e))>1))}(this.nodeLabelPlacement))throw Vg(new Xwe("Invalid node label placement: "+this.nodeLabelPlacement));this.nodeLabelsPadding=Pn(mPe(e,NCe),115),this.nodeLabelSpacing=td(Ln(mPe(e,$Se))),this.labelLabelSpacing=td(Ln(mPe(e,kSe))),this.portPortSpacing=td(Ln(mPe(e,LSe))),this.portLabelSpacing=td(Ln(mPe(e,ISe))),this.surroundingPortMargins=Pn(mPe(e,MSe),141),this.labelCellSpacing=2*this.labelLabelSpacing,t=!this.sizeOptions.contains((JIe(),GIe)),this.nodeContainer=new cM(0,t,0),this.nodeContainerMiddleRow=new cM(1,t,0),lM(this.nodeContainer,(cP(),iP),this.nodeContainerMiddleRow)}function VM(e,t){return md(e.ordinal,t.ordinal)}function HM(){}function UM(){}function qM(){qM=En,DM=new KM("OUT_T_L",0,(AP(),MP),(dM(),ZP),(cP(),rP),rP,Sg(yg(yi,1),g,21,0,[kv((c$e(),r$e),Sg(yg(y$e,1),W,92,0,[s$e,Qke]))])),AM=new KM("OUT_T_C",1,PP,ZP,rP,iP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[s$e,Zke])),kv(r$e,Sg(yg(y$e,1),W,92,0,[s$e,Zke,e$e]))])),RM=new KM("OUT_T_R",2,NP,ZP,rP,aP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[s$e,t$e]))])),$M=new KM("OUT_B_L",3,MP,eM,aP,rP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[i$e,Qke]))])),kM=new KM("OUT_B_C",4,PP,eM,aP,iP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[i$e,Zke])),kv(r$e,Sg(yg(y$e,1),W,92,0,[i$e,Zke,e$e]))])),IM=new KM("OUT_B_R",5,NP,eM,aP,aP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[i$e,t$e]))])),MM=new KM("OUT_L_T",6,NP,eM,rP,rP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[Qke,s$e,e$e]))])),PM=new KM("OUT_L_C",7,NP,QP,iP,rP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[Qke,a$e])),kv(r$e,Sg(yg(y$e,1),W,92,0,[Qke,a$e,e$e]))])),TM=new KM("OUT_L_B",8,NP,ZP,aP,rP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[Qke,i$e,e$e]))])),zM=new KM("OUT_R_T",9,MP,eM,rP,aP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[t$e,s$e,e$e]))])),LM=new KM("OUT_R_C",10,MP,QP,iP,aP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[t$e,a$e])),kv(r$e,Sg(yg(y$e,1),W,92,0,[t$e,a$e,e$e]))])),NM=new KM("OUT_R_B",11,MP,ZP,aP,aP,Sg(yg(yi,1),g,21,0,[kv(r$e,Sg(yg(y$e,1),W,92,0,[t$e,i$e,e$e]))])),CM=new KM("IN_T_L",12,MP,eM,rP,rP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[s$e,Qke])),kv(n$e,Sg(yg(y$e,1),W,92,0,[s$e,Qke,e$e]))])),bM=new KM("IN_T_C",13,PP,eM,rP,iP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[s$e,Zke])),kv(n$e,Sg(yg(y$e,1),W,92,0,[s$e,Zke,e$e]))])),SM=new KM("IN_T_R",14,NP,eM,rP,aP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[s$e,t$e])),kv(n$e,Sg(yg(y$e,1),W,92,0,[s$e,t$e,e$e]))])),xM=new KM("IN_C_L",15,MP,QP,iP,rP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[a$e,Qke])),kv(n$e,Sg(yg(y$e,1),W,92,0,[a$e,Qke,e$e]))])),vM=new KM("IN_C_C",16,PP,QP,iP,iP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[a$e,Zke])),kv(n$e,Sg(yg(y$e,1),W,92,0,[a$e,Zke,e$e]))])),EM=new KM("IN_C_R",17,NP,QP,iP,aP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[a$e,t$e])),kv(n$e,Sg(yg(y$e,1),W,92,0,[a$e,t$e,e$e]))])),mM=new KM("IN_B_L",18,MP,ZP,aP,rP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[i$e,Qke])),kv(n$e,Sg(yg(y$e,1),W,92,0,[i$e,Qke,e$e]))])),yM=new KM("IN_B_C",19,PP,ZP,aP,iP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[i$e,Zke])),kv(n$e,Sg(yg(y$e,1),W,92,0,[i$e,Zke,e$e]))])),wM=new KM("IN_B_R",20,NP,ZP,aP,aP,Sg(yg(yi,1),g,21,0,[kv(n$e,Sg(yg(y$e,1),W,92,0,[i$e,t$e])),kv(n$e,Sg(yg(y$e,1),W,92,0,[i$e,t$e,e$e]))])),FM=new KM("UNDEFINED",21,null,null,null,null,Sg(yg(yi,1),g,21,0,[]))}function WM(e){switch(e.ordinal){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function KM(e,t,n,r,i,a,s){nl.call(this,e,t),this.horizontalAlignment=n,this.verticalAlignment=r,this.containerRow=i,this.containerColumn=a,this.assignedPlacements=Zl(s)}function YM(){return qM(),Sg(yg(rN,1),W,159,0,[DM,AM,RM,$M,kM,IM,MM,PM,TM,zM,LM,NM,CM,bM,SM,xM,vM,EM,mM,yM,wM,FM])}bn(772,1,{},jM),i.labelCellSpacing=0,i.labelLabelSpacing=0,i.nodeLabelSpacing=0,i.portLabelSpacing=0,i.portLabelsTreatAsGroup=!1,i.portPortSpacing=0,i.treatAsCompoundNode=!1,Qn("org.eclipse.elk.alg.common.nodespacing.internal","NodeContext",772),bn(1440,1,He,HM),i.compare_1=function(e,t){return VM(Pn(e,61),Pn(t,61))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.common.nodespacing.internal","NodeContext/0methodref$comparePortSides$Type",1440),bn(1441,1,He,UM),i.compare_1=function(e,t){return function(e,t){var n;if(0!=(n=VM(e.port.getSide(),t.port.getSide())))return n;switch(e.port.getSide().ordinal){case 1:case 2:return md(e.port.getVolatileId(),t.port.getVolatileId());case 3:case 4:return md(t.port.getVolatileId(),e.port.getVolatileId())}return 0}(Pn(e,110),Pn(t,110))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.common.nodespacing.internal","NodeContext/1methodref$comparePortContexts$Type",1441),bn(159,22,{3:1,36:1,22:1,159:1},KM);var XM,JM,ZM,QM,eN,tN,nN,rN=er("org.eclipse.elk.alg.common.nodespacing.internal","NodeLabelLocation",159,sl,YM,(function(e){return qM(),il((iN(),XM),e)}));function iN(){iN=En,XM=rl(YM())}function aN(e,t){var n;this.portMargin=new oj,this.port=t,this.portPosition=new abe(t.getPosition()),n=e.portLabelsPlacement.contains((j$e(),R$e)),e.portLabelsPlacement.contains(D$e)?e.treatAsCompoundNode?this.labelsNextToPort=n&&!t.hasCompoundConnections():this.labelsNextToPort=!0:e.portLabelsPlacement.contains(F$e)?this.labelsNextToPort=!!n&&!(t.getIncomingEdges().iterator_0().hasNext_0()||t.getOutgoingEdges().iterator_0().hasNext_0()):this.labelsNextToPort=!1}function sN(e,t){var n,i,a,s;for(s=0,a=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();a.hasNext_0();)i=Pn(a.next_1(),110),s=r.Math.max(s,i.portPosition.x_0+i.port.getSize().x_0);(n=Pn(pv(e.insidePortLabelCells,t),121)).padding.left=0,n.minimumContentAreaSize.x_0=s}function oN(e,t){var n,i,a,s,o,l,c,u,h,g,f,d;if(n=Pn(pv(e.insidePortLabelCells,t),121),(c=Pn(Pn(jr(e.portContexts,t),21),81)).isEmpty())return n.padding.left=0,void(n.padding.right=0);for(u=e.portLabelsPlacement.contains((j$e(),D$e)),o=0,l=c.iterator_0(),h=null,g=0,f=0;l.hasNext_0();)a=td(Ln((i=Pn(l.next_1(),110)).port.getProperty((PN(),ZM)))),s=i.port.getSize().x_0,e.sizeConstraints.contains((RIe(),PIe))&&uN(e,t),h?(d=f+h.portMargin.right+e.portPortSpacing+i.portMargin.left,o=r.Math.max(o,(au(),lu(Xe),r.Math.abs(g-a)<=Xe||g==a||isNaN(g)&&isNaN(a)?0:d/(a-g)))):e.surroundingPortMargins&&e.surroundingPortMargins.left>0&&(o=r.Math.max(o,cN(e.surroundingPortMargins.left+i.portMargin.left,a))),h=i,g=a,f=s;e.surroundingPortMargins&&e.surroundingPortMargins.right>0&&(d=f+e.surroundingPortMargins.right,u&&(d+=h.portMargin.right),o=r.Math.max(o,(au(),lu(Xe),r.Math.abs(g-1)<=Xe||1==g||isNaN(g)&&isNaN(1)?0:d/(1-g)))),n.padding.left=0,n.minimumContentAreaSize.x_0=o}function lN(e,t){var n,r;if(n=Pn(pv(e.insidePortLabelCells,t),121),Pn(Pn(jr(e.portContexts,t),21),81).isEmpty())return n.padding.left=0,void(n.padding.right=0);n.padding.left=e.surroundingPortMargins.left,n.padding.right=e.surroundingPortMargins.right,e.sizeConstraints.contains((RIe(),PIe))&&uN(e,t),r=function(e,t){var n,r,i;for(i=0,r=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();r.hasNext_0();)i+=(n=Pn(r.next_1(),110)).portMargin.left+n.port.getSize().x_0+n.portMargin.right,r.hasNext_0()&&(i+=e.portPortSpacing);return i}(e,t),BM(e,t)==(w$e(),d$e)&&(r+=2*e.portPortSpacing),n.minimumContentAreaSize.x_0=r}function cN(e,t){return au(),lu(Xe),r.Math.abs(0-t)<=Xe||0==t||isNaN(0)&&isNaN(t)?0:e/t}function uN(e,t){var n,i,a,s,o,l,c,u,h;if(s=Pn(Pn(jr(e.portContexts,t),21),81),o=e.portLabelsPlacement.contains((j$e(),F$e)),n=e.portLabelsPlacement.contains(A$e),c=e.portLabelsPlacement.contains(O$e),h=e.sizeOptions.contains((JIe(),KIe)),u=!n&&(c||2==s.size_1()),function(e,t){var n,r,i,a,s,o;for(s=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();s.hasNext_0();)(n=(a=Pn(s.next_1(),110)).portLabelCell?qP(a.portLabelCell):0)>0?a.labelsNextToPort?n>(o=a.port.getSize().x_0)&&(i=(n-o)/2,a.portMargin.left=i,a.portMargin.right=i):a.portMargin.right=e.portLabelSpacing+n:H$e(e.portLabelsPlacement)&&((r=ZTe(a.port)).x_0<0&&(a.portMargin.left=-r.x_0),r.x_0+r.width_0>a.port.getSize().x_0&&(a.portMargin.right=r.x_0+r.width_0-a.port.getSize().x_0))}(e,t),i=null,l=null,o){for(l=i=Pn((a=s.iterator_0()).next_1(),110);a.hasNext_0();)l=Pn(a.next_1(),110);i.portMargin.left=0,l.portMargin.right=0,u&&!i.labelsNextToPort&&(i.portMargin.right=0)}h&&(function(e){var t,n,i,a,s;for(t=0,n=0,s=e.iterator_0();s.hasNext_0();)i=Pn(s.next_1(),110),t=r.Math.max(t,i.portMargin.left),n=r.Math.max(n,i.portMargin.right);for(a=e.iterator_0();a.hasNext_0();)(i=Pn(a.next_1(),110)).portMargin.left=t,i.portMargin.right=n}(s),o&&(i.portMargin.left=0,l.portMargin.right=0))}function hN(e,t,n,r){var i;i=new lP,t.cells_0[n.ordinal]=i,_v(e.insidePortLabelCells,r,i)}function gN(e,t){e.portLabelsPlacement.contains((j$e(),D$e))&&function(e,t){var n,i,a,s;for(n=(s=Pn(pv(e.insidePortLabelCells,t),121)).minimumContentAreaSize,a=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();a.hasNext_0();)(i=Pn(a.next_1(),110)).portLabelCell&&(n.x_0=r.Math.max(n.x_0,qP(i.portLabelCell)));if(n.x_0>0)switch(t.ordinal){case 2:s.padding.right=e.portLabelSpacing;break;case 4:s.padding.left=e.portLabelSpacing}}(e,t),function(e,t){var n;e.surroundingPortMargins&&((n=Pn(pv(e.insidePortLabelCells,t),121).padding).top_0=e.surroundingPortMargins.top_0,n.bottom=e.surroundingPortMargins.bottom)}(e,t)}function fN(e,t){var n;switch(n=Pn(pv(e.insidePortLabelCells,t),121).padding,t.ordinal){case 1:n.top_0=e.portLabelSpacing;break;case 3:n.bottom=e.portLabelSpacing}e.surroundingPortMargins&&(n.left=e.surroundingPortMargins.left,n.right=e.surroundingPortMargins.right)}function dN(e,t,n){var i,a,s;switch(s=e.nodeSize,(a=(i=Pn(pv(e.outsideNodeLabelContainers,n),243)).cellRectangle).width_0=rM(i),a.height=nM(i),a.width_0=r.Math.max(a.width_0,s.x_0),a.width_0>s.x_0&&!t&&(a.width_0=s.x_0),a.x_0=-(a.width_0-s.x_0)/2,n.ordinal){case 1:a.y_0=-a.height;break;case 3:a.y_0=s.y_0}iM(i),aM(i)}function pN(e,t,n){var i,a,s;switch(s=e.nodeSize,(a=(i=Pn(pv(e.outsideNodeLabelContainers,n),243)).cellRectangle).width_0=rM(i),a.height=nM(i),a.height=r.Math.max(a.height,s.y_0),a.height>s.y_0&&!t&&(a.height=s.y_0),a.y_0=-(a.height-s.y_0)/2,n.ordinal){case 4:a.x_0=-a.width_0;break;case 2:a.x_0=s.x_0}iM(i),aM(i)}function _N(){}function yN(){}function mN(){}function wN(){wN=En,JM=Sv((RIe(),PIe))}function vN(e){var t;return wN(),t=new abe(Pn(e.node.getProperty((BSe(),OCe)),8)),e.sizeOptions.contains((JIe(),jIe))&&(t.x_0<=0&&(t.x_0=20),t.y_0<=0&&(t.y_0=20)),t}function xN(e){return wN(),e.sizeConstraints.contains((RIe(),$Ie))&&!e.sizeOptions.contains((JIe(),HIe))?vN(e):null}function EN(){}function bN(e,t,n){!function(e,t){var n,r,i,a,s,o;a=!e.sizeOptions.contains((JIe(),GIe)),s=e.sizeOptions.contains(VIe),e.insideNodeLabelContainer=new TP(s,a,e.labelCellSpacing),e.nodeLabelsPadding&&nj(e.insideNodeLabelContainer.padding,e.nodeLabelsPadding),lM(e.nodeContainerMiddleRow,(cP(),iP),e.insideNodeLabelContainer),t||((r=new cM(1,a,e.labelCellSpacing)).padding.bottom=e.nodeLabelSpacing,_v(e.outsideNodeLabelContainers,(pIe(),W$e),r),(i=new cM(1,a,e.labelCellSpacing)).padding.top_0=e.nodeLabelSpacing,_v(e.outsideNodeLabelContainers,uIe,i),(o=new cM(0,a,e.labelCellSpacing)).padding.right=e.nodeLabelSpacing,_v(e.outsideNodeLabelContainers,gIe,o),(n=new cM(0,a,e.labelCellSpacing)).padding.left=e.nodeLabelSpacing,_v(e.outsideNodeLabelContainers,q$e,n))}(e,t),hm(e.node.getLabels(),new CN(e,t,n))}function CN(e,t,n){this.nodeContext_0=e,this.onlyInside_1=t,this.horizontalLayoutMode_2=n}function SN(e,t,n){var r;r=new aN(e,t),Vr(e.portContexts,t.getSide(),r),n&&!H$e(e.portLabelsPlacement)&&(r.portLabelCell=new YP(e.labelLabelSpacing),hm(t.getLabels(),new kN(r)))}function kN(e){this.portContext_0=e}function $N(e,t){var n;n=!e.sizeConstraints.contains((RIe(),PIe))||e.portConstraints==(P$e(),b$e),e.portLabelsPlacement.contains((j$e(),D$e))?n?function(e,t){var n,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E,b;if(f=Pn(Pn(jr(e.portContexts,t),21),81),t!=(pIe(),q$e)&&t!=gIe){for(s=t==W$e?(JN(),QM):(JN(),nN),x=t==W$e?(dM(),eM):(dM(),ZP),a=(i=(n=Pn(pv(e.insidePortLabelCells,t),121)).cellRectangle).x_0+TEe(Sg(yg(d1e,1),xe,24,15,[n.padding.left,e.surroundingPortMargins.left,e.nodeLabelSpacing])),m=i.x_0+i.width_0-TEe(Sg(yg(d1e,1),xe,24,15,[n.padding.right,e.surroundingPortMargins.right,e.nodeLabelSpacing])),o=qN(KN(s),e.portLabelSpacing),w=t==W$e?_e:pe,g=f.iterator_0();g.hasNext_0();)!(u=Pn(g.next_1(),110)).portLabelCell||u.portLabelCell.labels.array.length<=0||(y=u.port.getSize(),_=u.portPosition,(p=(d=u.portLabelCell).cellRectangle).width_0=(c=d.padding,d.minimumContentAreaSize.x_0+c.left+c.right),p.height=(l=d.padding,d.minimumContentAreaSize.y_0+l.top_0+l.bottom),hE(x,"Vertical alignment cannot be null"),d.verticalAlignment=x,WP(d,(AP(),NP)),p.x_0=_.x_0-(p.width_0-y.x_0)/2,E=r.Math.min(a,_.x_0),b=r.Math.max(m,_.x_0+y.x_0),p.x_0b&&(p.x_0=b-p.width_0),lm(o.rectangleNodes,new sL(p,HN(o,p))),w=t==W$e?r.Math.max(w,_.y_0+u.port.getSize().y_0):r.Math.min(w,_.y_0));for(w+=t==W$e?e.portLabelSpacing:-e.portLabelSpacing,(v=UN((o.startCoordinate=w,o)))>0&&(Pn(pv(e.insidePortLabelCells,t),121).minimumContentAreaSize.y_0=v),h=f.iterator_0();h.hasNext_0();)!(u=Pn(h.next_1(),110)).portLabelCell||u.portLabelCell.labels.array.length<=0||((p=u.portLabelCell.cellRectangle).x_0-=u.portPosition.x_0,p.y_0-=u.portPosition.y_0)}else IN(e,t)}(e,t):IN(e,t):e.portLabelsPlacement.contains(F$e)&&(n?function(e,t){var n,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m;if((h=Pn(Pn(jr(e.portContexts,t),21),81)).size_1()<=2||t==(pIe(),q$e)||t==(pIe(),gIe))TN(e,t);else{for(_=e.portLabelsPlacement.contains((j$e(),O$e)),n=t==(pIe(),W$e)?(JN(),nN):(JN(),QM),m=t==W$e?(dM(),ZP):(dM(),eM),i=qN(KN(n),e.portLabelSpacing),y=t==W$e?pe:_e,u=h.iterator_0();u.hasNext_0();)!(l=Pn(u.next_1(),110)).portLabelCell||l.portLabelCell.labels.array.length<=0||(p=l.port.getSize(),d=l.portPosition,(f=(g=l.portLabelCell).cellRectangle).width_0=(s=g.padding,g.minimumContentAreaSize.x_0+s.left+s.right),f.height=(o=g.padding,g.minimumContentAreaSize.y_0+o.top_0+o.bottom),_?(f.x_0=d.x_0-(a=g.padding,g.minimumContentAreaSize.x_0+a.left+a.right)-e.portLabelSpacing,_=!1):f.x_0=d.x_0+p.x_0+e.portLabelSpacing,hE(m,"Vertical alignment cannot be null"),g.verticalAlignment=m,WP(g,(AP(),NP)),lm(i.rectangleNodes,new sL(f,HN(i,f))),y=t==W$e?r.Math.min(y,d.y_0):r.Math.max(y,d.y_0+l.port.getSize().y_0));for(y+=t==W$e?-e.portLabelSpacing:e.portLabelSpacing,UN((i.startCoordinate=y,i)),c=h.iterator_0();c.hasNext_0();)!(l=Pn(c.next_1(),110)).portLabelCell||l.portLabelCell.labels.array.length<=0||((f=l.portLabelCell.cellRectangle).x_0-=l.portPosition.x_0,f.y_0-=l.portPosition.y_0)}}(e,t):TN(e,t))}function IN(e,t){var n,i,a,s,o,l,c,u,h,g,f,d;for(n=0,i=function(e,t){switch(t.ordinal){case 1:return e.nodeContainer.padding.top_0+e.portLabelSpacing;case 3:return e.nodeContainer.padding.bottom+e.portLabelSpacing;case 2:return e.nodeContainer.padding.right+e.portLabelSpacing;case 4:return e.nodeContainer.padding.left+e.portLabelSpacing;default:return 0}}(e,t),f=e.portLabelSpacing,u=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();u.hasNext_0();)if((c=Pn(u.next_1(),110)).portLabelCell&&!(c.portLabelCell.labels.array.length<=0)){switch(d=c.port.getSize(),l=c.port.hasProperty((BSe(),rSe))?td(Ln(c.port.getProperty(rSe))):0,(g=(h=c.portLabelCell).cellRectangle).width_0=(o=h.padding,h.minimumContentAreaSize.x_0+o.left+o.right),g.height=(s=h.padding,h.minimumContentAreaSize.y_0+s.top_0+s.bottom),t.ordinal){case 1:g.x_0=c.labelsNextToPort?(d.x_0-g.width_0)/2:d.x_0+f,g.y_0=d.y_0+l+i,WP(h,(AP(),PP)),KP(h,(dM(),eM));break;case 3:g.x_0=c.labelsNextToPort?(d.x_0-g.width_0)/2:d.x_0+f,g.y_0=-l-i-g.height,WP(h,(AP(),PP)),KP(h,(dM(),ZP));break;case 2:g.x_0=-l-i-g.width_0,c.labelsNextToPort?(a=e.portLabelsTreatAsGroup?g.height:Pn(gm(h.labels,0),183).getSize().y_0,g.y_0=(d.y_0-a)/2):g.y_0=d.y_0+f,WP(h,(AP(),NP)),KP(h,(dM(),QP));break;case 4:g.x_0=d.x_0+l+i,c.labelsNextToPort?(a=e.portLabelsTreatAsGroup?g.height:Pn(gm(h.labels,0),183).getSize().y_0,g.y_0=(d.y_0-a)/2):g.y_0=d.y_0+f,WP(h,(AP(),MP)),KP(h,(dM(),QP))}(t==(pIe(),W$e)||t==uIe)&&(n=r.Math.max(n,g.height))}n>0&&(Pn(pv(e.insidePortLabelCells,t),121).minimumContentAreaSize.y_0=n)}function TN(e,t){var n,r,i,a,s,o,l,c,u,h;for(l=Pn(Pn(jr(e.portContexts,t),21),81),a=function(e,t){var n,r,i,a;return wN(),(i=Pn(Pn(jr(e.portContexts,t),21),81)).size_1()>=2&&(r=Pn(i.iterator_0().next_1(),110),n=e.portLabelsPlacement.contains((j$e(),A$e)),a=e.portLabelsPlacement.contains(O$e),!r.labelsNextToPort&&!n&&(2==i.size_1()||a))}(e,t),o=l.iterator_0();o.hasNext_0();)if((s=Pn(o.next_1(),110)).portLabelCell&&!(s.portLabelCell.labels.array.length<=0)){switch(h=s.port.getSize(),(u=(c=s.portLabelCell).cellRectangle).width_0=(i=c.padding,c.minimumContentAreaSize.x_0+i.left+i.right),u.height=(r=c.padding,c.minimumContentAreaSize.y_0+r.top_0+r.bottom),t.ordinal){case 1:s.labelsNextToPort?(u.x_0=(h.x_0-u.width_0)/2,WP(c,(AP(),PP))):a?(u.x_0=-u.width_0-e.portLabelSpacing,WP(c,(AP(),NP))):(u.x_0=h.x_0+e.portLabelSpacing,WP(c,(AP(),MP))),u.y_0=-u.height-e.portLabelSpacing,KP(c,(dM(),ZP));break;case 3:s.labelsNextToPort?(u.x_0=(h.x_0-u.width_0)/2,WP(c,(AP(),PP))):a?(u.x_0=-u.width_0-e.portLabelSpacing,WP(c,(AP(),NP))):(u.x_0=h.x_0+e.portLabelSpacing,WP(c,(AP(),MP))),u.y_0=h.y_0+e.portLabelSpacing,KP(c,(dM(),eM));break;case 2:s.labelsNextToPort?(n=e.portLabelsTreatAsGroup?u.height:Pn(gm(c.labels,0),183).getSize().y_0,u.y_0=(h.y_0-n)/2,KP(c,(dM(),QP))):a?(u.y_0=-u.height-e.portLabelSpacing,KP(c,(dM(),ZP))):(u.y_0=h.y_0+e.portLabelSpacing,KP(c,(dM(),eM))),u.x_0=h.x_0+e.portLabelSpacing,WP(c,(AP(),MP));break;case 4:s.labelsNextToPort?(n=e.portLabelsTreatAsGroup?u.height:Pn(gm(c.labels,0),183).getSize().y_0,u.y_0=(h.y_0-n)/2,KP(c,(dM(),QP))):a?(u.y_0=-u.height-e.portLabelSpacing,KP(c,(dM(),ZP))):(u.y_0=h.y_0+e.portLabelSpacing,KP(c,(dM(),eM))),u.x_0=-u.width_0-e.portLabelSpacing,WP(c,(AP(),NP))}a=!1}}function PN(){PN=En,ZM=new zDe("portRatioOrPosition",0)}function MN(e,t){var n;return(n=e.port).hasProperty((BSe(),rSe))?n.getSide()==(pIe(),gIe)?-n.getSize().x_0-td(Ln(n.getProperty(rSe))):t+td(Ln(n.getProperty(rSe))):n.getSide()==(pIe(),gIe)?-n.getSize().x_0:t}function NN(e,t){var n,r,i;for(i=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();i.hasNext_0();)(r=Pn(i.next_1(),110)).portPosition.y_0=(n=r.port).hasProperty((BSe(),rSe))?n.getSide()==(pIe(),W$e)?-n.getSize().y_0-td(Ln(n.getProperty(rSe))):td(Ln(n.getProperty(rSe))):n.getSide()==(pIe(),W$e)?-n.getSize().y_0:0}function LN(e,t){var n,r,i,a;for(n=e.nodeSize.x_0,a=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();a.hasNext_0();)(i=Pn(a.next_1(),110)).portPosition.x_0=n*td(Ln(i.port.getProperty(ZM))),i.portPosition.y_0=(r=i.port).hasProperty((BSe(),rSe))?r.getSide()==(pIe(),W$e)?-r.getSize().y_0-td(Ln(r.getProperty(rSe))):td(Ln(r.getProperty(rSe))):r.getSide()==(pIe(),W$e)?-r.getSize().y_0:0}function zN(e,t){var n,i,a,s,o,l,c,u,h,g,f,d;if(!Pn(Pn(jr(e.portContexts,t),21),81).isEmpty()){if(c=(o=Pn(pv(e.insidePortLabelCells,t),121)).cellRectangle,l=o.padding,h=BM(e,t),i=c.width_0-l.left-l.right,a=o.minimumContentAreaSize.x_0,s=c.x_0+l.left,d=e.portPortSpacing,h!=(w$e(),d$e)&&h!=_$e||1!=Pn(Pn(jr(e.portContexts,t),21),81).size_1()||(a=h==d$e?a-2*e.portPortSpacing:a,h=f$e),i0&&(o=r.Math.max(o,cN(e.surroundingPortMargins.top_0+i.portMargin.top_0,s))),h=i,f=s,g=a;e.surroundingPortMargins&&e.surroundingPortMargins.bottom>0&&(d=g+e.surroundingPortMargins.bottom,u&&(d+=h.portMargin.bottom),o=r.Math.max(o,(au(),lu(Xe),r.Math.abs(f-1)<=Xe||1==f||isNaN(f)&&isNaN(1)?0:d/(1-f)))),n.padding.top_0=0,n.minimumContentAreaSize.y_0=o}function GN(e,t){var n,r;if(n=Pn(pv(e.insidePortLabelCells,t),121),Pn(Pn(jr(e.portContexts,t),21),81).isEmpty())return n.padding.top_0=0,void(n.padding.bottom=0);n.padding.top_0=e.surroundingPortMargins.top_0,n.padding.bottom=e.surroundingPortMargins.bottom,e.sizeConstraints.contains((RIe(),PIe))&&BN(e,t),r=function(e,t){var n,r,i;for(i=0,r=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();r.hasNext_0();)i+=(n=Pn(r.next_1(),110)).portMargin.top_0+n.port.getSize().y_0+n.portMargin.bottom,r.hasNext_0()&&(i+=e.portPortSpacing);return i}(e,t),BM(e,t)==(w$e(),d$e)&&(r+=2*e.portPortSpacing),n.minimumContentAreaSize.y_0=r}function BN(e,t){var n,i,a,s,o,l,c,u,h;if(s=Pn(Pn(jr(e.portContexts,t),21),81),o=e.portLabelsPlacement.contains((j$e(),F$e)),n=e.portLabelsPlacement.contains(A$e),l=e.portLabelsPlacement.contains(O$e),h=e.sizeOptions.contains((JIe(),KIe)),c=!n&&(l||2==s.size_1()),function(e,t){var n,i,a,s,o,l,c;for(l=Pn(Pn(jr(e.portContexts,t),21),81).iterator_0();l.hasNext_0();)(i=(o=Pn(l.next_1(),110)).portLabelCell?UP(o.portLabelCell):0)>0?o.labelsNextToPort?i>(c=o.port.getSize().y_0)&&(e.portLabelsTreatAsGroup||1==o.portLabelCell.labels.array.length?(s=(i-c)/2,o.portMargin.top_0=s,o.portMargin.bottom=s):(n=(Pn(gm(o.portLabelCell.labels,0),183).getSize().y_0-c)/2,o.portMargin.top_0=r.Math.max(0,n),o.portMargin.bottom=i-n-c)):o.portMargin.bottom=e.portLabelSpacing+i:H$e(e.portLabelsPlacement)&&((a=ZTe(o.port)).y_0<0&&(o.portMargin.top_0=-a.y_0),a.y_0+a.height>o.port.getSize().y_0&&(o.portMargin.bottom=a.y_0+a.height-o.port.getSize().y_0))}(e,t),u=null,i=null,o){for(i=u=Pn((a=s.iterator_0()).next_1(),110);a.hasNext_0();)i=Pn(a.next_1(),110);u.portMargin.top_0=0,i.portMargin.bottom=0,c&&!u.labelsNextToPort&&(u.portMargin.bottom=0)}h&&(function(e){var t,n,i,a,s;for(n=0,t=0,s=e.iterator_0();s.hasNext_0();)i=Pn(s.next_1(),110),n=r.Math.max(n,i.portMargin.top_0),t=r.Math.max(t,i.portMargin.bottom);for(a=e.iterator_0();a.hasNext_0();)(i=Pn(a.next_1(),110)).portMargin.top_0=n,i.portMargin.bottom=t}(s),o&&(u.portMargin.top_0=0,i.portMargin.bottom=0))}function jN(){}function VN(){}function HN(e,t){switch(e.overlapRemovalDirection.ordinal){case 0:case 1:return t;case 2:case 3:return new OEe(t.y_0,0,t.height,t.width_0);default:return null}}function UN(e){var t;return!e.overlapRemovalStrategy&&(e.overlapRemovalStrategy=new jN),mm(e.rectangleNodes,new YN),function(e){var t,n,r,i,a,s,o;for(a=new pC(Pn(xr(new XN),62)),o=_e,n=new Rm(e.rectangleNodes);n.ic.y_0&&(h=c.y_0+c.height+s));n.rectangle.y_0=h,t.map_0.put(n,t),u=r.Math.max(u,n.rectangle.y_0+n.rectangle.height)}return u}(e),ZS(new ck(null,new YE(e.rectangleNodes,16)),new oL(e)),t}function qN(e,t){return e.gap=t,e}function WN(){this.rectangleNodes=new xm}function KN(e){var t;return(t=new WN).overlapRemovalDirection=e,t}function YN(){}function XN(){}function JN(){JN=En,nN=new ZN("UP",0),QM=new ZN("DOWN",1),eN=new ZN("LEFT",2),tN=new ZN("RIGHT",3)}function ZN(e,t){nl.call(this,e,t)}bn(110,1,{110:1},aN),i.labelsNextToPort=!1,Qn("org.eclipse.elk.alg.common.nodespacing.internal","PortContext",110),bn(1446,1,P,_N),i.accept=function(e){VP(Pn(e,304))},Qn("org.eclipse.elk.alg.common.nodespacing.internal.algorithm","LabelPlacer/lambda$0$Type",1446),bn(1447,1,J,yN),i.test_0=function(e){return!!Pn(e,110).portLabelCell},Qn("org.eclipse.elk.alg.common.nodespacing.internal.algorithm","LabelPlacer/lambda$1$Type",1447),bn(1448,1,P,mN),i.accept=function(e){VP(Pn(e,110).portLabelCell)},Qn("org.eclipse.elk.alg.common.nodespacing.internal.algorithm","LabelPlacer/lambda$2$Type",1448),bn(1445,1,P,EN),i.accept=function(e){var t;wN(),(t=Pn(e,110)).port.setPosition(t.portPosition)},Qn("org.eclipse.elk.alg.common.nodespacing.internal.algorithm","NodeLabelAndSizeUtilities/lambda$0$Type",1445),bn(1443,1,P,CN),i.accept=function(e){var t,n,r,i,a,s,o,l,c;t=this.nodeContext_0,n=this.onlyInside_1,r=this.horizontalLayoutMode_2,i=Pn(e,183),a=t,o=n,l=r,(c=function(e){var t,n,r,i;for(qM(),r=0,i=(n=YM()).length;r=0&&!AL(e,u,h);)--h;i[u]=h}for(f=0;f=0&&!AL(e,o,d);)--o;a[d]=o}for(l=0;lt[g]&&gr[l]&&OL(e,l,g,!1,!0)}function vL(e,t){this.normalFun=e,this.externalFun=t}function xL(){}function EL(){}function bL(){}function CL(){}function SL(e,t,n){return kL(e,Pn(t,46),Pn(n,167))}function kL(e,t,n){var r,i,a,s,o,l,c,u;return kn(n,e.lastPoly)||(e.lastPoly=n,a=new IL,s=Pn(WS(QS(new ck(null,new YE(n.polyominoExtensions,16)),a),VC(new sS,new oS,new wS,new vS,Sg(yg(KC,1),W,132,0,[(UC(),AC),zC]))),21),e.posX=!0,e.posY=!0,e.negX=!0,e.negY=!0,i=s.contains((TL(),tL)),r=s.contains(nL),i&&!r&&(e.posY=!1),!i&&r&&(e.negY=!1),i=s.contains(eL),r=s.contains(rL),i&&!r&&(e.negX=!1),!i&&r&&(e.posX=!1)),u=Pn(e.costFun.apply_3(t,n),46),l=Pn(u.first,20).value_0,c=Pn(u.second,20).value_0,o=!1,l<0?e.negX||(o=!0):e.posX||(o=!0),c<0?e.negY||(o=!0):e.posY||(o=!0),o?kL(e,u,n):u}function $L(e){this.costFun=e}function IL(){}function TL(){TL=En,tL=new PL("NORTH",0),eL=new PL("EAST",1),nL=new PL("SOUTH",2),rL=new PL("WEST",3),tL.horizontal=!1,eL.horizontal=!0,nL.horizontal=!1,rL.horizontal=!0}function PL(e,t){nl.call(this,e,t)}bn(220,1,{220:1},sL),Qn("org.eclipse.elk.alg.common.overlaps","RectangleStripOverlapRemover/RectangleNode",220),bn(1759,1,P,oL),i.accept=function(e){!function(e,t){var n,r;switch(r=t.rectangle,n=t.originalRectangle,e.overlapRemovalDirection.ordinal){case 0:n.y_0=e.startCoordinate-r.height-r.y_0;break;case 1:n.y_0+=e.startCoordinate;break;case 2:n.x_0=e.startCoordinate-r.height-r.y_0;break;case 3:n.x_0=e.startCoordinate+r.y_0}}(this.$$outer_0,Pn(e,220))},Qn("org.eclipse.elk.alg.common.overlaps","RectangleStripOverlapRemover/lambda$1$Type",1759),bn(1275,1,He,lL),i.compare_1=function(e,t){return function(e,t){var n,r,i,a;return n=new cL,1==(i=2==(i=(r=Pn(WS(QS(new ck(null,new YE(e.polyominoExtensions,16)),n),VC(new sS,new oS,new wS,new vS,Sg(yg(KC,1),W,132,0,[(UC(),AC),zC]))),21)).size_1())?1:0)&&Yg(ef(Pn(WS(YS(r.parallelStream(),new uL),QC(Nd(0),new yS)),162).value_0,2),0)&&(i=0),1==(a=2==(a=(r=Pn(WS(QS(new ck(null,new YE(t.polyominoExtensions,16)),n),VC(new sS,new oS,new wS,new vS,Sg(yg(KC,1),W,132,0,[AC,zC]))),21)).size_1())?1:0)&&Yg(ef(Pn(WS(YS(r.parallelStream(),new hL),QC(Nd(0),new yS)),162).value_0,2),0)&&(a=0),i0?SL(e.externalFun,t,n):SL(e.normalFun,t,n)}(this,Pn(e,46),Pn(t,167))},Qn("org.eclipse.elk.alg.common.polyomino","SuccessorCombination",760),bn(634,1,{},xL),i.apply_3=function(e,t){var n;return function(e){var t,n,i,a,s;return n=a=Pn(e.first,20).value_0,i=s=Pn(e.second,20).value_0,t=r.Math.max(r.Math.abs(a),r.Math.abs(s)),a<=0&&a==s?(n=0,i=s-1):a==-t&&s!=t?(n=s,i=a,s>=0&&++n):(n=-s,i=a),new zPe(Cd(n),Cd(i))}((n=Pn(e,46),Pn(t,167),n))},Qn("org.eclipse.elk.alg.common.polyomino","SuccessorJitter",634),bn(633,1,{},EL),i.apply_3=function(e,t){var n;return function(e){var t,n;if(t=Pn(e.first,20).value_0,n=Pn(e.second,20).value_0,t>=0){if(t==n)return new zPe(Cd(-t-1),Cd(-t-1));if(t==-n)return new zPe(Cd(-t),Cd(n+1))}return r.Math.abs(t)>r.Math.abs(n)?new zPe(Cd(-t),Cd(t<0?n:n+1)):new zPe(Cd(t+1),Cd(n))}((n=Pn(e,46),Pn(t,167),n))},Qn("org.eclipse.elk.alg.common.polyomino","SuccessorLineByLine",633),bn(561,1,{},bL),i.apply_3=function(e,t){var n;return function(e){var t,n,r,i;return t=r=Pn(e.first,20).value_0,n=i=Pn(e.second,20).value_0,0==r&&0==i?n-=1:-1==r&&i<=0?(t=0,n-=2):r<=0&&i>0?(t-=1,n-=1):r>=0&&i<0?(t+=1,n+=1):r>0&&i>=0?(t-=1,n+=1):(t+=1,n-=1),new zPe(Cd(t),Cd(n))}((n=Pn(e,46),Pn(t,167),n))},Qn("org.eclipse.elk.alg.common.polyomino","SuccessorManhattan",561),bn(1327,1,{},CL),i.apply_3=function(e,t){var n;return function(e){var t,n,i;return n=Pn(e.first,20).value_0,i=Pn(e.second,20).value_0,n<(t=r.Math.max(r.Math.abs(n),r.Math.abs(i)))&&i==-t?new zPe(Cd(n+1),Cd(i)):n==t&&i=-t&&i==t?new zPe(Cd(n-1),Cd(i)):new zPe(Cd(n),Cd(i-1))}((n=Pn(e,46),Pn(t,167),n))},Qn("org.eclipse.elk.alg.common.polyomino","SuccessorMaxNormWindingInMathPosSense",1327),bn(396,1,{},$L),i.apply_3=function(e,t){return SL(this,e,t)},i.negX=!1,i.negY=!1,i.posX=!1,i.posY=!1,Qn("org.eclipse.elk.alg.common.polyomino","SuccessorQuadrantsGeneric",396),bn(1328,1,{},IL),i.apply_0=function(e){return Pn(e,323).first},Qn("org.eclipse.elk.alg.common.polyomino","SuccessorQuadrantsGeneric/lambda$0$Type",1328),bn(322,22,{3:1,36:1,22:1,322:1},PL),i.horizontal=!1;var ML,NL=er("org.eclipse.elk.alg.common.polyomino.structures","Direction",322,sl,(function(){return TL(),Sg(yg(NL,1),W,322,0,[tL,eL,nL,rL])}),(function(e){return TL(),il((LL(),ML),e)}));function LL(){LL=En,ML=rl((TL(),Sg(yg(NL,1),W,322,0,[tL,eL,nL,rL])))}function zL(e){return e>8?0:e+1}function AL(e,t,n){try{return Yg(FL(e,t,n),1)}catch(r){throw Fn(r=jg(r),318)?Vg(new Ef("Grid is only of size "+e.xSize+"*"+e.ySize+". Requested point ("+t+", "+n+") is out of bounds.")):Vg(r)}}function DL(e,t,n){try{return Yg(FL(e,t,n),0)}catch(r){throw Fn(r=jg(r),318)?Vg(new Ef("Grid is only of size "+e.xSize+"*"+e.ySize+". Requested point ("+t+", "+n+") is out of bounds.")):Vg(r)}}function RL(e,t,n){try{return Yg(FL(e,t,n),2)}catch(r){throw Fn(r=jg(r),318)?Vg(new Ef("Grid is only of size "+e.xSize+"*"+e.ySize+". Requested point ("+t+", "+n+") is out of bounds.")):Vg(r)}}function FL(e,t,n){var r,i;return i=t>>5,r=31&t,Ug(cf(e.grid[n][i],ff(of(r,1))),3)}function OL(e,t,n,r,i){var a,s;try{if(t>=e.xSize)throw Vg(new bf);s=t>>5,a=of(1,ff(of(31&t,1))),e.grid[n][s]=i?sf(e.grid[n][s],a):Ug(e.grid[n][s],af(a)),a=of(a,1),e.grid[n][s]=r?sf(e.grid[n][s],a):Ug(e.grid[n][s],af(a))}catch(r){throw Fn(r=jg(r),318)?Vg(new Ef("Grid is only of size "+e.xSize+"*"+e.ySize+". Requested point ("+t+", "+n+") is out of bounds.")):Vg(r)}}function GL(e,t,n,r){var i,a;for(function(e,t,n,r){var i,a,s,o;for(i=0;i=0&&c>=0&&l>1,this.yCenter=t-1>>1}function XL(e){YL.call(this,0,0),this.polyominoExtensions=e}bn(1269,1,{}),i.toString_0=function(){var e,t,n,r,i,a;for(n=" ",e=Cd(0),i=0;i0&&(a+=(s=Pn(gm(this.polys,0),167)).xSize,i+=s.ySize),a*=2,i*=2,t>1?a=Un(r.Math.ceil(a*t)):i=Un(r.Math.ceil(i/t)),this.grid=new YL(a,i)}function sz(e,t){gz=new Az,wz=t,Pn((hz=e).node,63),lz(hz,gz,null),oz(hz)}function oz(e){var t,n,i,a,s,o;for(hm(e.children,new vz),n=new Rm(e.children);n.i=r.Math.abs(i.y_0)?(i.y_0=0,s.y_0+s.height>o.y_0&&s.y_0o.x_0&&s.x_00||0==su(a.rect.y_0,e.rect.y_0+e.rect.height)&&i.y_0<0||0==su(a.rect.y_0+a.rect.height,e.rect.y_0)&&i.y_0>0){l=0;break}}else l=r.Math.min(l,Cz(e,a,i));l=r.Math.min(l,uz(e,s,l,i))}return l}bn(134,1,Je,iz),i.copyProperties=function(e){return ZL(this,e)},i.setProperty=function(e,t){return nz(this,e,t)},i.getAllProperties=function(){return QL(this)},i.getProperty=function(e){return ez(this,e)},i.hasProperty=function(e){return tz(this,e)},Qn("org.eclipse.elk.graph.properties","MapPropertyHolder",134),bn(1270,134,Je,az),Qn("org.eclipse.elk.alg.common.polyomino.structures","Polyominoes",1270);var hz,gz,fz,dz,pz,_z,yz,mz,wz=!1;function vz(){}function xz(e){this.compactionVector_0=e}function Ez(e,t,n){this.mark_0=e,this.svgImage_1=t,this.t_2=n}function bz(){bz=En,fz=new zDe("debugSVG",(Mf(),!1)),dz=new zDe("overlapsExisted",!0)}function Cz(e,t,n){var i,a,s,o,l,c;for(c=pe,s=new Rm(Rz(e.rect));s.ie.rect.width_0/2+t.rect.width_0/2&&(n=1-r.Math.min(r.Math.abs(e.rect.x_0-(t.rect.x_0+t.rect.width_0)),r.Math.abs(e.rect.x_0+e.rect.width_0-t.rect.x_0))/i),s>e.rect.height/2+t.rect.height/2&&(a=1-r.Math.min(r.Math.abs(e.rect.y_0-(t.rect.y_0+t.rect.height)),r.Math.abs(e.rect.y_0+e.rect.height-t.rect.y_0))/s),(1-r.Math.min(n,a))*r.Math.sqrt(i*i+s*s)}function Iz(e,t){this.originalVertex=e,this.vertex=HEe(this.originalVertex),this.rect=new GEe(t)}function Tz(e,t){var n,r,i,a;for(a=new xm,r=new Rm(t);r.ie.width_0/2+t.width_0/2||(a=r.Math.abs(e.y_0+e.height/2-(t.y_0+t.height/2)))>e.height/2+t.height/2?1:0==n&&0==a?0:0==n?s/a+1:0==a?i/n+1:r.Math.min(i/n,s/a)+1}function Oz(){}function Gz(){}function Bz(e,t){var n,r;for(r=t.iterator_0();r.hasNext_0();)n=Pn(r.next_1(),265),e.changed=!0,Gv(e.shapes,n),n.cp=e}function jz(e){return e.changed&&qz(e),e.bounds}function Vz(e){return e.changed&&qz(e),e.minCornerOfBoundingRectangle}function Hz(e,t){var n,r;for(r=e.shapes.map_0.keySet_0().iterator_0();r.hasNext_0();)if(kEe(t,(n=Pn(r.next_1(),265)).shape_0)||xEe(t,n.shape_0))return!0;return!1}function Uz(e,t){e.changed=!0,e.offset=t}function qz(e){var t,n,i,a,s,o,l,c,u,h,g;for(e.changed=!1,h=pe,l=_e,g=pe,c=_e,n=e.shapes.map_0.keySet_0().iterator_0();n.hasNext_0();)for(i=(t=Pn(n.next_1(),265)).bounds,h=r.Math.min(h,i.x_0),l=r.Math.max(l,i.x_0+i.width_0),g=r.Math.min(g,i.y_0),c=r.Math.max(c,i.y_0+i.height),s=new Rm(t.extensions);s.i1?s.gridCellSizeX*=td(s.aspectRatio):s.gridCellSizeY/=td(s.aspectRatio),function(e){var t,n;for(t=e.cmpGraph.components.map_0.keySet_0().iterator_0();t.hasNext_0();)n=new RA(Pn(t.next_1(),554),e.gridCellSizeX,e.gridCellSizeY),lm(e.polys,n)}(s),function(e){var t,n;for(t=new Rm(e.polys);t.i0&&VNe(y,v*E),x>0&&HNe(y,x*b);for(Xr(e.elementMapping,new sD),t=new xm,o=new by(new wy(e.incomingExtensionsMapping).this$01);o.hasNext;)r=Pn((s=xy(o)).getKey(),80),n=Pn(s.getValue(),391).direction,i=qDe(r,!1,!1),VTe(h=XA(WDe(r),KTe(i),n),i),(w=KDe(r))&&-1==fm(t,w,0)&&(t.array[t.array.length]=w,JA(w,(Jk(0!=h.size_0),Pn(h.header.next_0.value_0,8)),n));for(_=new by(new wy(e.outgoingExtensionsMapping).this$01);_.hasNext;)r=Pn((p=xy(_)).getKey(),80),n=Pn(p.getValue(),391).direction,i=qDe(r,!1,!1),h=XA(YDe(r),_be(KTe(i)),n),VTe(h=_be(h),i),(w=XDe(r))&&-1==fm(t,w,0)&&(t.array[t.array.length]=w,JA(w,(Jk(0!=h.size_0),Pn(h.tail.prev.value_0,8)),n))}(a),xNe(e,pA,this.result),oTe(t)},i.componentSpacing=0,Qn("org.eclipse.elk.alg.disco","DisCoLayoutProvider",1105),bn(1218,1,{},Gz),i.fill=!1,i.gridCellSizeX=0,i.gridCellSizeY=0,Qn("org.eclipse.elk.alg.disco","DisCoPolyominoCompactor",1218),bn(554,1,{554:1},Wz),i.changed=!0,Qn("org.eclipse.elk.alg.disco.graph","DCComponent",554),bn(390,22,{3:1,36:1,22:1,390:1},Yz),i.horizontal=!1;var Xz,Jz,Zz=er("org.eclipse.elk.alg.disco.graph","DCDirection",390,sl,(function(){return Kz(),Sg(yg(Zz,1),W,390,0,[_z,pz,yz,mz])}),(function(e){return Kz(),il((Qz(),Xz),e)}));function Qz(){Qz=En,Xz=rl((Kz(),Sg(yg(Zz,1),W,390,0,[_z,pz,yz,mz])))}function eA(e){var t,n,i,a,s,o;for(this.extensions=new xm,this.shape_0=e,i=pe,a=pe,t=_e,n=_e,o=Gx(e,0);o.currentNode!=o.this$01.tail;)s=Pn(eE(o),8),i=r.Math.min(i,s.x_0),a=r.Math.min(a,s.y_0),t=r.Math.max(t,s.x_0),n=r.Math.max(n,s.y_0);this.bounds=new OEe(i,a,t-i,n-a)}function tA(e,t,n,r){var i,a,s;this.direction=t,this.width_0=r,s=new ibe(-(i=e.bounds).x_0,-i.y_0),this.offset=s,jEe(this.offset,n),a=r/2,t.horizontal?ebe(this.offset,0,a):ebe(this.offset,a,0),lm(e.extensions,this)}function nA(e){var t,n,r;for(this.components=new Tx,r=new Rm(e);r.i(r=Un(n))&&++r,r}function RA(e,t,n){var i,a,s,o,l,c;for(XL.call(this,new xm),this.cellSizeX=t,this.cellSizeY=n,this.representee=e,e.changed&&qz(e),i=e.bounds,this.pWidth=DA(i.x_0,this.cellSizeX),this.pHeight=DA(i.y_0,this.cellSizeY),o=this,l=this.pWidth,c=this.pHeight,o.grid=wg(g1e,[$,me],[361,24],14,[c,Un(r.Math.ceil(l/32))],2),o.xSize=l,o.ySize=c,o.xCenter=l-1>>1,o.yCenter=c-1>>1,function(e){var t,n,r,i,a,s,o;for(n=Vz(e.representee),a=XEe(ebe(HEe(jz(e.representee)),e.pWidth*e.cellSizeX,e.pHeight*e.cellSizeY),-.5),t=n.x_0-a.x_0,i=n.y_0-a.y_0,o=0;o0&&AA(this,a)}function FA(){FA=En,kA=new xm,SA=new Rv,CA=new xm}function OA(e,t,n){var r,i;for(i=t.iterator_0();i.hasNext_0();)r=Pn(i.next_1(),80),Gv(e,Pn(n.apply_0(r),34))}function GA(e,t){var n,r,i;if(lm(kA,e),t.add_2(e),n=Pn(cy(SA,e),21))for(i=n.iterator_0();i.hasNext_0();)r=Pn(i.next_1(),34),-1!=fm(kA,r,0)||GA(r,t)}function BA(e){var t,n,r,i;return n=new KA(i=Aze(e)),r=new YA(i),um(t=new xm,(!e.incomingEdges&&(e.incomingEdges=new MXe(QPe,e,8,5)),e.incomingEdges)),um(t,(!e.outgoingEdges&&(e.outgoingEdges=new MXe(QPe,e,7,4)),e.outgoingEdges)),Pn(WS(QS(YS(new ck(null,new YE(t,16)),n),r),VC(new sS,new oS,new wS,new vS,Sg(yg(KC,1),W,132,0,[(UC(),AC),zC]))),21)}function jA(e){return t=Pn(e,80),FA(),Ize(WDe(t))==Ize(YDe(t));var t}function VA(){}function HA(){}function UA(){}function qA(){}function WA(){}function KA(e){this.portParent_0=e}function YA(e){this.portParent_0=e}function XA(e,t,n){var r;switch(Jk(0!=t.size_0),r=Pn(jx(t,t.header.next_0),8),n.ordinal){case 0:r.y_0=0;break;case 2:r.y_0=e.height;break;case 3:r.x_0=0;break;default:r.x_0=e.width_0}return Zx(Gx(t,0),r),t}function JA(e,t,n){n.horizontal?HNe(e,t.y_0-e.height/2):VNe(e,t.x_0-e.width_0/2)}function ZA(e,t,n,r){var i,a,s,o,l,c,u,h,g,f,d;return o=e.x_0,h=e.y_0,l=t.x_0,g=t.y_0,c=n.x_0,f=n.y_0,new ibe(((a=o*g-h*l)*(c-(u=r.x_0))-(s=c*(d=r.y_0)-f*u)*(o-l))/(i=(o-l)*(f-d)-(h-g)*(c-u)),(a*(f-d)-s*(h-g))/i)}function QA(e,t){var n,r,i,a,s,o,l,c,u,h,g,f,d,p,_,y;for(r=new xm,o=new xm,_=t/2,f=e.size_1(),i=Pn(e.get_0(0),8),y=Pn(e.get_0(1),8),lm(r,(Zk(0,(d=eD(i.x_0,i.y_0,y.x_0,y.y_0,_)).array.length),Pn(d.array[0],8))),lm(o,(Zk(1,d.array.length),Pn(d.array[1],8))),c=2;c=0;l--)zx(n,(Zk(l,s.array.length),Pn(s.array[l],8)));return n}function eD(e,t,n,i,a){var s,o,l,c,u,h,g,f,d;return o=n-e,l=i-t,c=(s=r.Math.atan2(o,l))+Qe,u=s-Qe,h=a*r.Math.sin(c)+e,f=a*r.Math.cos(c)+t,g=a*r.Math.sin(u)+e,d=a*r.Math.cos(u)+t,Zl(Sg(yg(lbe,1),$,8,0,[new ibe(h,f),new ibe(g,d)]))}function tD(e,t,n){var r,i,a;for(ZL(a=new eA(QA(KTe(qDe(t,!1,!1)),td(Ln(wNe(t,(MA(),yA))))+e.componentSpacing)),t),gy(e.elementMapping,t,a),n.array[n.array.length]=a,!t.labels&&(t.labels=new HUe(SMe,t,1,7)),i=new BFe(t.labels);i.cursor!=i.this$01_2.size_1();)r=rD(e,Pn(OFe(i),137),!0,0,0),n.array[n.array.length]=r;return a}function nD(e,t,n){var r,i;for(i=t.map_0.keySet_0().iterator_0();i.hasNext_0();)r=Pn(i.next_1(),80),!Pn(cy(e.elementMapping,r),265)&&(Ize(WDe(r))==Ize(YDe(r))?tD(e,r,n):WDe(r)==Ize(YDe(r))?null==cy(e.incomingExtensionsMapping,r)&&null!=cy(e.elementMapping,YDe(r))&&iD(e,r,n,!1):null==cy(e.outgoingExtensionsMapping,r)&&null!=cy(e.elementMapping,WDe(r))&&iD(e,r,n,!0))}function rD(e,t,n,r,i){var a,s,o,l,c,u,h;if(!(Fn(t,238)||Fn(t,351)||Fn(t,199)))throw Vg(new gd("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return s=e.componentSpacing/2,l=t.x_0+r-s,u=t.y_0+i-s,c=l+t.width_0+e.componentSpacing,h=u+t.height+e.componentSpacing,zx(a=new fbe,new ibe(l,u)),zx(a,new ibe(l,h)),zx(a,new ibe(c,h)),zx(a,new ibe(c,u)),ZL(o=new eA(a),t),n&&gy(e.elementMapping,t,o),o}function iD(e,t,n,i){var a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x;for(d=KTe(qDe(t,!1,!1)),i&&(d=_be(d)),_=td(Ln(wNe(t,(MA(),yA)))),Jk(0!=d.size_0),f=Pn(d.header.next_0.value_0,8),u=Pn(Rl(d,1),8),d.size_0>2?(um(c=new xm,new Py(d,1,d.size_0)),ZL(p=new eA(QA(c,_+e.componentSpacing)),t),n.array[n.array.length]=p):p=Pn(cy(e.elementMapping,i?WDe(t):YDe(t)),265),o=WDe(t),i&&(o=YDe(t)),y=f,m=o,w=void 0,v=void 0,x=void 0,x=et,Kz(),v=_z,x=r.Math.abs(y.y_0),(w=r.Math.abs(m.height-y.y_0))l&&(x=0,E+=o+w,o=0),cD(y,n,x,E),t=r.Math.max(t,x+m.x_0),o=r.Math.max(o,m.y_0),x+=m.x_0+w;return y}function hD(e,t){var n,r,i,a,s,o,l,c,u;if(null==(c=Nn(ez(t,(DR(),uR))))||(Qk(c),c)){for(u=xg(h1e,We,24,t.nodes.array.length,16,1),s=function(e){var t,n,r,i,a;for(i=e.nodes.array.length,r=xg(Ri,tt,14,i,0,1),a=new Rm(e.nodes);a.i1)for(r=Gx(i,0);r.currentNode!=r.this$01.tail;)for(a=0,o=new Rm((n=Pn(eE(r),229)).nodes);o.i0)for(s=e.source.position,i=XEe(tbe(new ibe((o=e.target.position).x_0,o.y_0),s),1/(r+1)),a=new ibe(s.x_0,s.y_0),n=new Rm(e.bendpoints);n.i"+OD(e.target):"e_"+l$(e)}function bD(){this.bendpoints=new xm,this.labels=new xm}function CD(e,t,n){var r,i;return Fn(t,144)&&n?(r=Pn(t,144),i=n,e.adjacency[r.id_0][i.id_0]+e.adjacency[i.id_0][r.id_0]):0}function SD(){this.nodes=new xm,this.edges=new xm,this.labels=new xm,this.bendPoints=new xm}bn(833,1,qe,PA),i.apply_4=function(e){sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.disco.componentCompaction.strategy"),"componentCompaction"),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),cA),(lEe(),eEe)),$A),Sv((Yxe(),Lxe))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm"),"componentCompaction"),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),iEe),Mp),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.disco.debug.discoGraph"),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),rEe),or),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.disco.debug.discoPolys"),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),rEe),or),Sv(Lxe)))),NA((new LA,e))},Qn("org.eclipse.elk.alg.disco.options","DisCoMetaDataProvider",833),bn(978,1,qe,LA),i.apply_4=function(e){NA(e)},Qn("org.eclipse.elk.alg.disco.options","DisCoOptions",978),bn(979,1,{},zA),i.create_0=function(){return new Oz},i.destroy=function(e){},Qn("org.eclipse.elk.alg.disco.options","DisCoOptions/DiscoFactory",979),bn(555,167,{320:1,167:1,555:1},RA),i.cellSizeX=0,i.cellSizeY=0,i.pHeight=0,i.pWidth=0,Qn("org.eclipse.elk.alg.disco.structures","DCPolyomino",555),bn(1240,1,J,VA),i.test_0=function(e){return jA(e)},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphComponentsProcessor/lambda$0$Type",1240),bn(1241,1,{},HA),i.apply_0=function(e){return FA(),WDe(Pn(e,80))},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphComponentsProcessor/lambda$1$Type",1241),bn(1242,1,J,UA),i.test_0=function(e){return t=Pn(e,80),FA(),WDe(t)==Ize(YDe(t));var t},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphComponentsProcessor/lambda$2$Type",1242),bn(1243,1,{},qA),i.apply_0=function(e){return FA(),YDe(Pn(e,80))},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphComponentsProcessor/lambda$3$Type",1243),bn(1244,1,J,WA),i.test_0=function(e){return t=Pn(e,80),FA(),YDe(t)==Ize(WDe(t));var t},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphComponentsProcessor/lambda$4$Type",1244),bn(1245,1,J,KA),i.test_0=function(e){return t=this.portParent_0,n=Pn(e,80),FA(),t==Ize(WDe(n))||t==Ize(YDe(n));var t,n},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphComponentsProcessor/lambda$5$Type",1245),bn(1246,1,{},YA),i.apply_0=function(e){return t=this.portParent_0,n=Pn(e,80),FA(),t==WDe(n)?YDe(n):WDe(n);var t,n},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphComponentsProcessor/lambda$6$Type",1246),bn(1215,1,{},aD),i.componentSpacing=0,Qn("org.eclipse.elk.alg.disco.transform","ElkGraphTransformer",1215),bn(1216,1,{},sD),i.accept_1=function(e,t){!function(e,t,n){var r,i,a,s;e.offset=n.cp.offset,Fn(t,349)?(li(a=KTe(i=qDe(Pn(t,80),!1,!1)),r=new oD(e)),VTe(a,i),null!=t.getProperty((BSe(),ICe))&&li(Pn(t.getProperty(ICe),74),r)):((s=Pn(t,464)).setX(s.getX()+e.offset.x_0),s.setY(s.getY()+e.offset.y_0))}(this,Pn(e,160),Pn(t,265))},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphTransformer/OffsetApplier",1216),bn(1217,1,P,oD),i.accept=function(e){!function(e,t){BEe(t,e.this$11.offset.x_0,e.this$11.offset.y_0)}(this,Pn(e,8))},Qn("org.eclipse.elk.alg.disco.transform","ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1217),bn(736,1,{},gD),Qn("org.eclipse.elk.alg.force","ComponentsProcessor",736),bn(1205,1,He,fD),i.compare_1=function(e,t){return function(e,t){var n,r,i;return 0==(n=Pn(ez(t,(DR(),sR)),20).value_0-Pn(ez(e,sR),20).value_0)?(r=tbe(HEe(Pn(ez(e,(GR(),dR)),8)),Pn(ez(e,pR),8)),i=tbe(HEe(Pn(ez(t,dR),8)),Pn(ez(t,pR),8)),ad(r.x_0*r.y_0,i.x_0*i.y_0)):n}(Pn(e,229),Pn(t,229))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.force","ComponentsProcessor/1",1205),bn(723,207,Ze,yD),i.layout=function(e,t){_D(this,e,t)},Qn("org.eclipse.elk.alg.force","ForceLayoutProvider",723),bn(354,134,{3:1,354:1,94:1,134:1}),Qn("org.eclipse.elk.alg.force.graph","FParticle",354),bn(552,354,{3:1,552:1,354:1,94:1,134:1},wD),i.toString_0=function(){var e;return this.edge?(e=fm(this.edge.bendpoints,this,0))>=0?"b"+e+"["+ED(this.edge)+"]":"b["+ED(this.edge)+"]":"b_"+l$(this)},Qn("org.eclipse.elk.alg.force.graph","FBendpoint",552),bn(281,134,{3:1,281:1,94:1,134:1},bD),i.toString_0=function(){return ED(this)},Qn("org.eclipse.elk.alg.force.graph","FEdge",281),bn(229,134,{3:1,229:1,94:1,134:1},SD);var kD,$D,ID,TD,PD,MD,ND,LD,zD,AD,DD=Qn("org.eclipse.elk.alg.force.graph","FGraph",229);function RD(e){var t,n,r,i,a,s,o,l;n=Nf(Nn(ez(e,(DR(),QD)))),a=e.edge.source.position,o=e.edge.target.position,n?(s=XEe(tbe(new ibe(o.x_0,o.y_0),a),.5),l=XEe(HEe(e.size_0),.5),t=tbe(jEe(new ibe(a.x_0,a.y_0),s),l),QEe(e.position,t)):(i=td(Ln(ez(e.edge,hR))),r=e.position,a.x_0>=o.x_0?a.y_0>=o.y_0?(r.x_0=o.x_0+(a.x_0-o.x_0)/2+i,r.y_0=o.y_0+(a.y_0-o.y_0)/2-i-e.size_0.y_0):(r.x_0=o.x_0+(a.x_0-o.x_0)/2+i,r.y_0=a.y_0+(o.y_0-a.y_0)/2+i):a.y_0>=o.y_0?(r.x_0=a.x_0+(o.x_0-a.x_0)/2+i,r.y_0=o.y_0+(a.y_0-o.y_0)/2+i):(r.x_0=a.x_0+(o.x_0-a.x_0)/2+i,r.y_0=a.y_0+(o.y_0-a.y_0)/2-i-e.size_0.y_0))}function FD(e,t){mD.call(this),this.edge=e,this.text_0=t,lm(this.edge.labels,this)}function OD(e){return null==e.label_0||0==e.label_0.length?"n_"+e.id_0:"n_"+e.label_0}function GD(e){mD.call(this),this.displacement=new nbe,this.label_0=e}function BD(e,t){var n,i,a,s,o,l,c,u;if(e.graph_0=t,e.random_0=Pn(ez(t,(GR(),yR)),228),function(e){var t,n,r;for(r=e.nodes.array.length,e.adjacency=wg(u1e,[$,ie],[47,24],15,[r,r],2),n=new Rm(e.edges);n.i0){for(o=0;o0?-function(e,t){return e>0?r.Math.log(e/t):-100}(i,this.springLength)*n:function(e,t){return e>0?t/(e*e):100*t}(i,this.repulsionFactor)*Pn(ez(e,(DR(),sR)),20).value_0)/s),a},i.initialize=function(e){BD(this,e),this.maxIterations=Pn(ez(e,(DR(),tR)),20).value_0,this.springLength=td(Ln(ez(e,gR))),this.repulsionFactor=td(Ln(ez(e,lR)))},i.moreIterations=function(e){return e0?t*t/e:t*t*100}(i=r.Math.max(0,o-WEe(e.size_0)/2-WEe(t.size_0)/2),this.k)*Pn(ez(e,(DR(),sR)),20).value_0,(n=CD(this.graph_0,e,t))>0&&(s-=function(e,t){return e*e/t}(i,this.k)*n),XEe(a,s*this.temperature/o),a},i.initialize=function(e){var t,n,i,a,s,o,l;for(BD(this,e),this.temperature=td(Ln(ez(e,(DR(),fR)))),this.threshold=this.temperature/Pn(ez(e,tR),20).value_0,i=e.nodes.array.length,s=0,a=0,l=new Rm(e.nodes);l.i0},i.k=0,i.temperature=0,i.threshold=0,Qn("org.eclipse.elk.alg.force.model","FruchtermanReingoldModel",622),bn(828,1,qe,KD),i.apply_4=function(e){sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.force.model"),""),"Force Model"),"Determines the model for force calculation."),ID),(lEe(),eEe)),zR),Sv((Yxe(),Lxe))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.force.iterations"),""),"Iterations"),"The number of iterations on the force model."),Cd(300)),nEe),$d),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.force.repulsivePower"),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Cd(0)),nEe),$d),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.force.temperature"),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),rt),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.force.temperature","org.eclipse.elk.force.model",LD),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.force.repulsion"),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.force.repulsion","org.eclipse.elk.force.model",PD),RR((new FR,e))},Qn("org.eclipse.elk.alg.force.options","ForceMetaDataProvider",828),bn(418,22,{3:1,36:1,22:1,418:1},XD);var JD,ZD,QD,eR,tR,nR,rR,iR,aR,sR,oR,lR,cR,uR,hR,gR,fR,dR,pR,_R,yR,mR,wR,vR,xR,ER,bR,CR,SR,kR,$R,IR,TR,PR,MR,NR,LR,zR=er("org.eclipse.elk.alg.force.options","ForceModelStrategy",418,sl,(function(){return YD(),Sg(yg(zR,1),W,418,0,[zD,AD])}),(function(e){return YD(),il((AR(),JD),e)}));function AR(){AR=En,JD=rl((YD(),Sg(yg(zR,1),W,418,0,[zD,AD])))}function DR(){DR=En,sR=new DDe((BSe(),dSe),Cd(1)),gR=new DDe(TSe,80),hR=new DDe(bSe,5),ZD=new DDe(rCe,it),oR=new DDe(pSe,Cd(1)),uR=new DDe(mSe,(Mf(),!0)),iR=new Hj(50),rR=new DDe(HCe,iR),eR=kCe,aR=iSe,QD=new DDe(fCe,!1),WD(),nR=$D,fR=ND,tR=kD,lR=TD,cR=MD}function RR(e){ixe(e,new Pve(Fve(Lve(Rve(zve(Dve(Ave(new Ove,"org.eclipse.elk.force"),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new OR),"org.eclipse.elk.force"),kv((kDe(),Kze),Sg(yg(TDe,1),W,237,0,[qze]))))),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.priority",Cd(1)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.spacing.nodeNode",80),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.spacing.edgeLabel",5),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.aspectRatio",it),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.randomSeed",Cd(1)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.separateConnectedComponents",(Mf(),!0)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.padding",iR),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.interactive",NDe(eR)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.portConstraints",NDe(aR)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.edgeLabels.inline",!1),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.force.model",NDe(nR)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.force.temperature",NDe(fR)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.force.iterations",NDe(tR)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.force.repulsion",NDe(lR)),nxe(e,"org.eclipse.elk.force","org.eclipse.elk.force.repulsivePower",NDe(cR))}function FR(){DR()}function OR(){}function GR(){GR=En,_R=new LDe("origin"),yR=new LDe("random"),pR=new LDe("boundingBox.upLeft"),dR=new LDe("boundingBox.lowRight")}function BR(){BR=En,ER=new ADe("org.eclipse.elk.stress.fixed",(Mf(),!1)),mR=new ADe("org.eclipse.elk.stress.desiredEdgeLength",100),rF(),wR=new ADe("org.eclipse.elk.stress.dimension",vR=NR),xR=new ADe("org.eclipse.elk.stress.epsilon",rt),bR=new ADe("org.eclipse.elk.stress.iterationLimit",Cd(u))}function jR(){BR()}function VR(){VR=En,BSe(),IR=kCe,new DDe(fCe,(Mf(),!0)),PR=new Hj(10),new DDe(HCe,PR),BR(),$R=ER,SR=wR,kR=xR,TR=bR,CR=mR}function HR(e){ixe(e,new Pve(Lve(Rve(zve(Dve(Ave(new Ove,"org.eclipse.elk.stress"),"ELK Stress"),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new qR),"org.eclipse.elk.force"))),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.interactive",NDe(IR)),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.edgeLabels.inline",(Mf(),!0)),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.padding",PR),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.stress.fixed",NDe($R)),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.stress.dimension",NDe(SR)),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.stress.epsilon",NDe(kR)),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.stress.iterationLimit",NDe(TR)),nxe(e,"org.eclipse.elk.stress","org.eclipse.elk.stress.desiredEdgeLength",NDe(CR))}function UR(){VR()}function qR(){}function WR(){this.componentsProcessor=new gD,this.stressMajorization=new nF}function KR(){}function YR(e,t){var n,r,i,a,s,o,l;for(a=0,o=0,l=0,i=new Rm(e.graph_0.nodes);i.i0&&e.dim!=(rF(),LR)&&(o+=s*(r.position.x_0+e.apsp[t.id_0][r.id_0]*(t.position.x_0-r.position.x_0)/n)),n>0&&e.dim!=(rF(),MR)&&(l+=s*(r.position.y_0+e.apsp[t.id_0][r.id_0]*(t.position.y_0-r.position.y_0)/n)));switch(e.dim.ordinal){case 1:return new ibe(o/a,t.position.y_0);case 2:return new ibe(t.position.x_0,l/a);default:return new ibe(o/a,l/a)}}function XR(e){var t,n,r,i,a,s,o;for(a=0,i=e.graph_0.nodes,n=0;n=e.iterationLimit}function QR(e){var t,n,r,i,a,s;if(!(e.graph_0.nodes.array.length<=1)){t=0,i=XR(e),n=pe;do{for(t>0&&(i=n),s=new Rm(e.graph_0.nodes);s.in))}(e)&&(r=(Hn(ez(e,F9))===Hn(Pke)?Pn(ez(e,f9),292):Pn(ez(e,d9),292))==(s4(),n4)?(DW(),dW):(DW(),IW),yve(t,(TF(),gF),r)),Pn(ez(e,mee),375).ordinal){case 1:yve(t,(TF(),gF),(DW(),kW));break;case 2:pve(yve(yve(t,(TF(),hF),(DW(),kq)),gF,$q),fF,Iq)}return Hn(ez(e,u9))!==Hn((Nte(),Ite))&&yve(t,(TF(),hF),(DW(),$W)),t}(t)),rz(t,d6,nve(e.algorithmAssembler,t))}function CF(){xF(),this.algorithmAssembler=new ove(zF)}function SF(e){this.$$outer_0=e}function kF(){}function $F(e){this.$$outer_0=e}function IF(){this.elkLayered=new mF}function TF(){TF=En,cF=new PF("P1_CYCLE_BREAKING",0),uF=new PF("P2_LAYERING",1),hF=new PF("P3_NODE_ORDERING",2),gF=new PF("P4_NODE_PLACEMENT",3),fF=new PF("P5_EDGE_ROUTING",4)}function PF(e,t){nl.call(this,e,t)}bn(971,1,He,_F),i.compare_1=function(e,t){return n=this.dist_0,r=Pn(e,144),i=Pn(t,144),ad(n[r.id_0],n[i.id_0]);var n,r,i},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.force.stress","StressMajorization/lambda$0$Type",971),bn(1202,1,{},mF),Qn("org.eclipse.elk.alg.layered","ElkLayered",1202),bn(1203,1,P,wF),i.accept=function(e){var t,n;t=this.parentCms_0,n=Pn(e,38),Pn(ez(n,(zee(),w9)),333)==(m2(),p2)&&rz(n,w9,t)},Qn("org.eclipse.elk.alg.layered","ElkLayered/lambda$0$Type",1203),bn(1204,1,P,vF),i.accept=function(e){var t;t=this.rootType_0,rz(Pn(e,38),(zee(),f9),t)},Qn("org.eclipse.elk.alg.layered","ElkLayered/lambda$1$Type",1204),bn(1237,1,{},CF),Qn("org.eclipse.elk.alg.layered","GraphConfigurator",1237),bn(742,1,P,SF),i.accept=function(e){EF(this.$$outer_0,Pn(e,10))},Qn("org.eclipse.elk.alg.layered","GraphConfigurator/lambda$0$Type",742),bn(743,1,{},kF),i.apply_0=function(e){return xF(),new ck(null,new YE(Pn(e,29).nodes,16))},Qn("org.eclipse.elk.alg.layered","GraphConfigurator/lambda$1$Type",743),bn(744,1,P,$F),i.accept=function(e){EF(this.$$outer_0,Pn(e,10))},Qn("org.eclipse.elk.alg.layered","GraphConfigurator/lambda$2$Type",744),bn(1100,207,Ze,IF),i.layout=function(e,t){var n,i,a,s;n=function(e,t){var n,r,i;if(i=LV(t),ZS(new ck(null,(!t.ports&&(t.ports=new HUe($Me,t,9,9)),new YE(t.ports,16))),new UV(i)),function(e,t){var n,r,i,a,s,o,l,c,u,h,f;for(s=Nf(Nn(wNe(e,(zee(),V9)))),f=Pn(wNe(e,L7),21),l=!1,c=!1,h=new BFe((!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports));!(h.cursor==h.this$01_2.size_1()||l&&c);){for(a=Pn(OFe(h),122),o=0,i=ss(is(Sg(yg(ci,1),g,19,0,[(!a.incomingEdges&&(a.incomingEdges=new MXe(QPe,a,8,5)),a.incomingEdges),(!a.outgoingEdges&&(a.outgoingEdges=new MXe(QPe,a,7,4)),a.outgoingEdges)])));Jo(i)&&(r=Pn(Zo(i),80),u=s&&rLe(r)&&Nf(Nn(wNe(r,H9))),n=MVe((!r.sources&&(r.sources=new MXe(ZPe,r,4,7)),r.sources),a)?e==Ize(GDe(Pn(vRe((!r.targets&&(r.targets=new MXe(ZPe,r,5,8)),r.targets),0),93))):e==Ize(GDe(Pn(vRe((!r.sources&&(r.sources=new MXe(ZPe,r,4,7)),r.sources),0),93))),!((u||n)&&++o>1)););(o>0||f.contains((j$e(),D$e))&&(!a.labels&&(a.labels=new HUe(SMe,a,1,7)),a.labels).size_0>0)&&(l=!0),o>1&&(c=!0)}l&&t.add_2((Z3(),V3)),c&&t.add_2((Z3(),H3))}(t,r=Pn(ez(i,(L6(),j4)),21)),r.contains((Z3(),V3)))for(n=new BFe((!t.ports&&(t.ports=new HUe($Me,t,9,9)),t.ports));n.cursor!=n.this$01_2.size_1();)FV(e,t,i,Pn(OFe(n),122));return 0!=Pn(wNe(t,(zee(),p7)),174).size_1()&&PV(t,i),Nf(Nn(ez(i,x7)))&&r.add_2(K3),tz(i,H7)&&Oee(new Bee(td(Ln(ez(i,H7)))),i),Hn(wNe(t,F9))===Hn((Oke(),Pke))?function(e,t,n){var r,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E,b;for(s=new Hx,y=Pn(ez(n,(zee(),E9)),108),ui(s,(!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children));0!=s.size_0;)!Nf(Nn(wNe(c=Pn(0==s.size_0?null:(Jk(0!=s.size_0),jx(s,s.header.next_0)),34),m7)))&&(h=0!=(!c.children&&(c.children=new HUe(kMe,c,10,11)),c.children).size_0,f=DV(c),g=Hn(wNe(c,F9))===Hn((Oke(),Pke)),p=null,(b=!vNe(c,(BSe(),eCe))||np(An(wNe(c,eCe)),"org.eclipse.elk.layered"))&&g&&(h||f)&&(rz(p=LV(c),E9,y),tz(p,H7)&&Oee(new Bee(td(Ln(ez(p,H7)))),p),0!=Pn(wNe(c,p7),174).size_1()&&(u=p,ZS(new ck(null,(!c.ports&&(c.ports=new HUe($Me,c,9,9)),new YE(c.ports,16))),new qV(u)),PV(c,p))),m=n,(w=Pn(cy(e.nodeAndPortMap,Ize(c)),10))&&(m=w.nestedGraph),d=GV(e,c,m),p&&(d.nestedGraph=p,p.parentNode=d,ui(s,(!c.children&&(c.children=new HUe(kMe,c,10,11)),c.children))));for(Rx(s,t,s.tail.prev,s.tail);0!=s.size_0;){for(l=new BFe((!(a=Pn(0==s.size_0?null:(Jk(0!=s.size_0),jx(s,s.header.next_0)),34)).containedEdges&&(a.containedEdges=new HUe(QPe,a,12,3)),a.containedEdges));l.cursor!=l.this$01_2.size_1();)NV(o=Pn(OFe(l),80)),x=GDe(Pn(vRe((!o.sources&&(o.sources=new MXe(ZPe,o,4,7)),o.sources),0),93)),E=GDe(Pn(vRe((!o.targets&&(o.targets=new MXe(ZPe,o,5,8)),o.targets),0),93)),Nf(Nn(wNe(o,m7)))||Nf(Nn(wNe(x,m7)))||Nf(Nn(wNe(E,m7)))||(_=a,rLe(o)&&Nf(Nn(wNe(x,V9)))&&Nf(Nn(wNe(o,H9)))||JDe(E,x)?_=x:JDe(x,E)&&(_=E),m=n,(w=Pn(cy(e.nodeAndPortMap,_),10))&&(m=w.nestedGraph),rz(RV(e,o,_,m),(L6(),T4),AV(e,o,t,n)));if(g=Hn(wNe(a,F9))===Hn((Oke(),Pke)))for(i=new BFe((!a.children&&(a.children=new HUe(kMe,a,10,11)),a.children));i.cursor!=i.this$01_2.size_1();)b=!vNe(r=Pn(OFe(i),34),(BSe(),eCe))||np(An(wNe(r,eCe)),"org.eclipse.elk.layered"),v=Hn(wNe(r,F9))===Hn(Pke),b&&v&&Rx(s,r,s.tail.prev,s.tail)}}(e,t,i):function(e,t,n){var r,i,a,s,o,l,c,u,h,g,f,d,p;for(h=0,i=new BFe((!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children));i.cursor!=i.this$01_2.size_1();)Nf(Nn(wNe(r=Pn(OFe(i),34),(zee(),m7))))||(Hn(wNe(t,u9))!==Hn((Nte(),Ite))&&(xNe(r,(L6(),r6),Cd(h)),++h),GV(e,r,n));for(h=0,c=new BFe((!t.containedEdges&&(t.containedEdges=new HUe(QPe,t,12,3)),t.containedEdges));c.cursor!=c.this$01_2.size_1();)o=Pn(OFe(c),80),Hn(wNe(t,(zee(),u9)))!==Hn((Nte(),Ite))&&(xNe(o,(L6(),r6),Cd(h)),++h),d=WDe(o),p=YDe(o),u=Nf(Nn(wNe(d,V9))),f=!Nf(Nn(wNe(o,m7))),g=u&&rLe(o)&&Nf(Nn(wNe(o,H9))),a=Ize(d)==t&&Ize(d)==Ize(p),s=(Ize(d)==t&&p==t)^(Ize(p)==t&&d==t),f&&!g&&(s||a)&&RV(e,o,t,n);if(Ize(t))for(l=new BFe($ze(Ize(t)));l.cursor!=l.this$01_2.size_1();)(d=WDe(o=Pn(OFe(l),80)))==t&&rLe(o)&&(g=Nf(Nn(wNe(d,(zee(),V9))))&&Nf(Nn(wNe(o,H9))))&&RV(e,o,t,n)}(e,t,i),i}(new jV,e),Hn(wNe(e,(zee(),F9)))===Hn((Oke(),Pke))?(i=this.elkLayered,a=n,!(s=t)&&(s=dTe(new pTe,0)),sTe(s,"Layered layout",2),oB(i.compoundGraphPreprocessor,a,hTe(s,1)),function(e,t,n){var r,i,a,s,o,l,c,u,h,g,f,d;for(l=function(e){var t,n,r,i,a;for(t=new em,n=new em,Hy(t,e),Hy(n,e);n.head!=n.tail;)for(a=new Rm(Pn(Zy(n),38).layerlessNodes);a.irt,k=r.Math.abs(f.y_0-p.y_0)>rt,(!n&&S&&k||n&&(S||k))&&zx(y.bendPoints,x)),ui(y.bendPoints,i),0==i.size_0?f=x:(Jk(0!=i.size_0),f=Pn(i.tail.prev.value_0,8)),QG(d,g,_),fB(a)==C&&(yj(C.owner)!=a.graph_0&&RB(_=new nbe,yj(C.owner),w),rz(y,C6,_)),eB(d,y,w),h.map_0.put(d,h);xB(y,E),EB(y,C)}for(u=h.map_0.keySet_0().iterator_0();u.hasNext_0();)xB(c=Pn(u.next_1(),18),null),EB(c,null);oTe(t)}(a,hTe(s,1)),oTe(s)):function(e,t,n){var i,a,s,o;if(!(o=n)&&(o=dTe(new pTe,0)),sTe(o,"Layered layout",1),bF(e.graphConfigurator,t),1==(s=function(e,t){var n,r,i,a,s,o,l,c,u,h,g,f;if(e.graphPlacer=e.simpleRowGraphPlacer,g=null==(f=Nn(ez(t,(zee(),V7))))||(Qk(f),f),a=Pn(ez(t,(L6(),j4)),21).contains((Z3(),V3)),n=!((i=Pn(ez(t,P7),100))==(P$e(),E$e)||i==C$e||i==b$e),!g||!n&&a)h=new uw(Sg(yg(IB,1),st,38,0,[t]));else{for(u=new Rm(t.layerlessNodes);u.it.x_0&&(r.contains((Jbe(),Obe))?e.offset.x_0+=(n.x_0-t.x_0)/2:r.contains(Bbe)&&(e.offset.x_0+=n.x_0-t.x_0)),n.y_0>t.y_0&&(r.contains((Jbe(),Vbe))?e.offset.y_0+=(n.y_0-t.y_0)/2:r.contains(jbe)&&(e.offset.y_0+=n.y_0-t.y_0)),Pn(ez(e,(L6(),j4)),21).contains((Z3(),V3))&&(n.x_0>t.x_0||n.y_0>t.y_0))for(o=new Rm(e.layerlessNodes);o.i0&&((!HSe(e.compactor.direction)||!t.spacingIgnore.up)&&(!USe(e.compactor.direction)||!t.spacingIgnore.left)&&(t.hitbox.y_0-=r.Math.max(0,-.5)),(!HSe(e.compactor.direction)||!t.spacingIgnore.down)&&(!USe(e.compactor.direction)||!t.spacingIgnore.right)&&(t.hitbox.height+=r.Math.max(0,-1)))}(e),i=new xm,n=new Rm(e.compactor.cGraph.cNodes);n.i0&&((!HSe(e.compactor.direction)||!t.spacingIgnore.up)&&(!USe(e.compactor.direction)||!t.spacingIgnore.left)&&(t.hitbox.y_0+=r.Math.max(0,-.5)),(!HSe(e.compactor.direction)||!t.spacingIgnore.down)&&(!USe(e.compactor.direction)||!t.spacingIgnore.right)&&(t.hitbox.height-=-1))}(e)}(e)}(e.constraintAlgorithm,e),fO(e)}function fO(e){var t,n,r,i,a,s;for(i=new Rm(e.cGraph.cGroups);i.i0),a.this$01.get_0(a.last=--a.i),Iy(a,i),Jk(a.ic&&(g=0,f+=l+t,l=0),_G(s,g,f),n=r.Math.max(n,g+u.x_0),l=r.Math.max(l,u.y_0),g+=u.x_0+t;return new ibe(n+t,f+l+t)}(vG(e,(pIe(),Z$e)),t),p=CG(vG(e,Q$e),t),x=CG(vG(e,oIe),t),S=SG(vG(e,cIe),t),f=SG(vG(e,K$e),t),w=CG(vG(e,sIe),t),_=CG(vG(e,eIe),t),b=CG(vG(e,lIe),t),E=CG(vG(e,Y$e),t),k=SG(vG(e,J$e),t),m=CG(vG(e,iIe),t),v=CG(vG(e,rIe),t),C=CG(vG(e,X$e),t),$=SG(vG(e,aIe),t),d=SG(vG(e,tIe),t),y=CG(vG(e,nIe),t),n=TEe(Sg(yg(d1e,1),xe,24,15,[w.x_0,S.x_0,b.x_0,$.x_0])),i=TEe(Sg(yg(d1e,1),xe,24,15,[p.x_0,g.x_0,x.x_0,y.x_0])),a=m.x_0,s=TEe(Sg(yg(d1e,1),xe,24,15,[_.x_0,f.x_0,E.x_0,d.x_0])),u=TEe(Sg(yg(d1e,1),xe,24,15,[w.y_0,p.y_0,_.y_0,v.y_0])),c=TEe(Sg(yg(d1e,1),xe,24,15,[S.y_0,g.y_0,f.y_0,y.y_0])),h=k.y_0,l=TEe(Sg(yg(d1e,1),xe,24,15,[b.y_0,x.y_0,E.y_0,C.y_0])),yG(vG(e,Z$e),n+a,u+h),yG(vG(e,nIe),n+a,u+h),yG(vG(e,Q$e),n+a,0),yG(vG(e,oIe),n+a,u+h+c),yG(vG(e,cIe),0,u+h),yG(vG(e,K$e),n+a+i,u+h),yG(vG(e,eIe),n+a+i,0),yG(vG(e,lIe),0,u+h+c),yG(vG(e,Y$e),n+a+i,u+h+c),yG(vG(e,J$e),0,u),yG(vG(e,iIe),n,0),yG(vG(e,X$e),0,u+h+c),yG(vG(e,tIe),n+a+i,0),(o=new nbe).x_0=TEe(Sg(yg(d1e,1),xe,24,15,[n+i+a+s,k.x_0,v.x_0,C.x_0])),o.y_0=TEe(Sg(yg(d1e,1),xe,24,15,[u+c+h+l,m.y_0,$.y_0,d.y_0])),o}function CG(e,t){var n,i,a;for(a=new nbe,i=e.iterator_0();i.hasNext_0();)_G(n=Pn(i.next_1(),38),a.x_0,0),a.x_0+=n.size_0.x_0+t,a.y_0=r.Math.max(a.y_0,n.size_0.y_0);return a.y_0>0&&(a.y_0+=t),a}function SG(e,t){var n,i,a;for(a=new nbe,i=e.iterator_0();i.hasNext_0();)_G(n=Pn(i.next_1(),38),0,a.y_0),a.y_0+=n.size_0.y_0+t,a.x_0=r.Math.max(a.x_0,n.size_0.x_0);return a.x_0>0&&(a.x_0+=t),a}function kG(){this.componentGroups=new xm}function $G(e,t,n){var r;r=null,t&&(r=t.margin),DG(e,new zO(t.pos.x_0-r.left+n.x_0,t.pos.y_0-r.top_0+n.y_0)),DG(e,new zO(t.pos.x_0-r.left+n.x_0,t.pos.y_0+t.size_0.y_0+r.bottom+n.y_0)),DG(e,new zO(t.pos.x_0+t.size_0.x_0+r.right+n.x_0,t.pos.y_0-r.top_0+n.y_0)),DG(e,new zO(t.pos.x_0+t.size_0.x_0+r.right+n.x_0,t.pos.y_0+t.size_0.y_0+r.bottom+n.y_0))}function IG(e,t,n){var i,a,s,o,l,c,u,h,f,d,p,_,y,m,w,v,x,E,b,C,S;for(e.graphTopLeft=new ibe(pe,pe),e.graphBottomRight=new ibe(_e,_e),f=t.iterator_0();f.hasNext_0();)for(v=new Rm(Pn(f.next_1(),38).layerlessNodes);v.iQ)&&l<10);vO(e.compactor,new iO),XF(e),function(e){pO(e,(VSe(),ASe)),e.finished=!0}(e.compactor),function(e){var t,n,i,a,s,o,l,c;for(s=new Rm(e.cGraph.cNodes);s.i=o.xMax1.x_0)&&(o.xMax1=t),(!o.xMin1||t.x_0<=o.xMin1.x_0)&&(o.xMin2=o.xMin1,o.xMin1=t),(!o.yMax1||t.y_0>=o.yMax1.y_0)&&(o.yMax1=t),(!o.yMin1||t.y_0<=o.yMin1.y_0)&&(o.yMin1=t);return r=new iG((BO(),DO)),fG(e,WO,new uw(Sg(yg(TO,1),g,366,0,[r]))),s=new iG(OO),fG(e,qO,new uw(Sg(yg(TO,1),g,366,0,[s]))),i=new iG(RO),fG(e,UO,new uw(Sg(yg(TO,1),g,366,0,[i]))),a=new iG(FO),fG(e,HO,new uw(Sg(yg(TO,1),g,366,0,[a]))),nG(r.points,DO),nG(i.points,RO),nG(a.points,FO),nG(s.points,OO),o.hull.array=xg(or,g,1,0,5,1),um(o.hull,r.points),um(o.hull,nc(i.points)),um(o.hull,a.points),um(o.hull,nc(s.points)),o}(u)),n}function AG(){}function DG(e,t){return e.topLeft.x_0=r.Math.min(e.topLeft.x_0,t.x_0),e.topLeft.y_0=r.Math.min(e.topLeft.y_0,t.y_0),e.bottomRight.x_0=r.Math.max(e.bottomRight.x_0,t.x_0),e.bottomRight.y_0=r.Math.max(e.bottomRight.y_0,t.y_0),e.array[e.array.length]=t,!0}function RG(e,t){return DG(e,new zO(t.x_0,t.y_0))}function FG(){sm(this),this.topLeft=new ibe(pe,pe),this.bottomRight=new ibe(_e,_e)}function OG(e){var t,n,r;for(t=new xm,r=new Rm(e.externalExtensions);r.i0)for(r=new bm(Pn(jr(e.crossHierarchyMap,a),21)),hw(),mm(r,new pB(t)),i=new Ty(a.labels,0);i.i0&&(lm(e.points,new AO(t.x_0,t.y_0,e.quadrant)),e.maximalY=t.y_0)}(this,Pn(e,140))},i.maximalY=0,Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/MaximalElementsEventHandler",566),bn(1614,1,He,aG),i.compare_1=function(e,t){return n=Ln(e),r=Ln(t),rG(),ad((Qk(n),n),(Qk(r),r));var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1614),bn(1613,1,{366:1},sG),i.handle=function(e){!function(e,t){var n,r,i;e.queued&&(t.x_0!=e.queuedPnt.x_0||(r=e.queuedPnt.quadrant,i=t.quadrant,BO(),r==DO&&i==RO||r==DO&&i==FO||r==OO&&i==FO||r==OO&&i==RO))&&(lm(e.rects,e.queued),e.lastX=e.queued.x_0+e.queued.width_0,e.queued=null,e.queuedPnt=null),function(e){return e==DO||e==RO}(t.quadrant)?e.minY=t:e.maxY=t,(t.quadrant==(BO(),DO)&&!t.convex||t.quadrant==RO&&t.convex||t.quadrant==FO&&t.convex||t.quadrant==OO&&!t.convex)&&e.minY&&e.maxY&&(n=new OEe(e.lastX,e.minY.y_0,t.x_0-e.lastX,e.maxY.y_0-e.minY.y_0),e.queued=n,e.queuedPnt=t)}(this,Pn(e,140))},i.lastX=0,i.maxY=null,i.minY=null,i.queued=null,i.queuedPnt=null,Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/RectangleEventHandler",1613),bn(1615,1,He,oG),i.compare_1=function(e,t){return n=Pn(e,140),r=Pn(t,140),eG(),n.x_0==r.x_0?ad(r.y_0,n.y_0):ad(n.x_0,r.x_0);var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/lambda$0$Type",1615),bn(1616,1,He,lG),i.compare_1=function(e,t){return n=Pn(e,140),r=Pn(t,140),eG(),n.x_0==r.x_0?ad(n.y_0,r.y_0):ad(n.x_0,r.x_0);var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/lambda$1$Type",1616),bn(1617,1,He,cG),i.compare_1=function(e,t){return n=Pn(e,140),r=Pn(t,140),eG(),n.x_0==r.x_0?ad(r.y_0,n.y_0):ad(r.x_0,n.x_0);var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/lambda$2$Type",1617),bn(1618,1,He,uG),i.compare_1=function(e,t){return n=Pn(e,140),r=Pn(t,140),eG(),n.x_0==r.x_0?ad(n.y_0,r.y_0):ad(r.x_0,n.x_0);var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/lambda$3$Type",1618),bn(1619,1,He,hG),i.compare_1=function(e,t){return function(e,t){var n,r,i,a;if(eG(),e.x_0==t.x_0){if(e.quadrant==t.quadrant||(i=e.quadrant,a=t.quadrant,BO(),i==DO&&a==OO||i==OO&&a==DO||i==FO&&a==RO||i==RO&&a==FO)){if(n=(r=e.quadrant)==DO||r==OO?1:-1,e.convex&&!t.convex)return n;if(!e.convex&&t.convex)return-n}return md(e.quadrant.ordinal,t.quadrant.ordinal)}return ad(e.x_0,t.x_0)}(Pn(e,140),Pn(t,140))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.compaction.recthull","RectilinearConvexHull/lambda$4$Type",1619),bn(1620,1,{},gG),Qn("org.eclipse.elk.alg.layered.compaction.recthull","Scanline",1620),bn(1974,1,{}),Qn("org.eclipse.elk.alg.layered.components","AbstractGraphPlacer",1974),bn(503,1,{503:1},xG),Qn("org.eclipse.elk.alg.layered.components","ComponentGroup",503),bn(1265,1974,{},kG),i.combine=function(e,t){var n,r,i,a,s,o,l,c,u,h,f,d;if(this.componentGroups.array=xg(or,g,1,0,5,1),t.layerlessNodes.array=xg(or,g,1,0,5,1),e.isEmpty())return t.size_0.x_0=0,void(t.size_0.y_0=0);for(ZL(t,a=Pn(e.get_0(0),38)),r=e.iterator_0();r.hasNext_0();)EG(this,Pn(r.next_1(),38));for(d=new nbe,i=td(Ln(ez(a,(zee(),W7)))),l=new Rm(this.componentGroups);l.ii?1:0}(Pn(e,38),Pn(t,38))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.components","ComponentsProcessor/lambda$0$Type",1239),bn(1263,1974,{},YG),i.combine=function(e,t){var n,i,a,s,o,l,c,u,h,f,d,p,_,y,m,w,v,x,E,b;if(1!=e.size_1()){if(e.isEmpty())return t.layerlessNodes.array=xg(or,g,1,0,5,1),t.size_0.x_0=0,void(t.size_0.y_0=0);for(c=e.iterator_0();c.hasNext_0();){for(m=0,_=new Rm((o=Pn(c.next_1(),38)).layerlessNodes);_.i<_.this$01.array.length;)p=Pn(Am(_),10),m+=Pn(ez(p,(zee(),F7)),20).value_0;o.id_0=m}for(hw(),e.sort_0(new XG),s=Pn(e.get_0(0),38),t.layerlessNodes.array=xg(or,g,1,0,5,1),ZL(t,s),d=0,x=0,u=e.iterator_0();u.hasNext_0();)w=(o=Pn(u.next_1(),38)).size_0,d=r.Math.max(d,w.x_0),x+=w.x_0*w.y_0;for(d=r.Math.max(d,r.Math.sqrt(x)*td(Ln(ez(t,(zee(),a9))))),E=0,b=0,f=0,n=a=td(Ln(ez(t,W7))),l=e.iterator_0();l.hasNext_0();)E+(w=(o=Pn(l.next_1(),38)).size_0).x_0>d&&(E=0,b+=f+a,f=0),_G(o,E+(y=o.offset).x_0,b+y.y_0),YEe(y),n=r.Math.max(n,E+w.x_0),f=r.Math.max(f,w.y_0),E+=w.x_0+a;if(t.size_0.x_0=n,t.size_0.y_0=b+f,Nf(Nn(ez(s,o9)))){for(IG(i=new AG,e,a),h=e.iterator_0();h.hasNext_0();)jEe(YEe(Pn(h.next_1(),38).offset),i.yetAnotherOffset);jEe(YEe(t.size_0),i.compactedGraphSize)}pG(t,e)}else(v=Pn(e.get_0(0),38))!=t&&(t.layerlessNodes.array=xg(or,g,1,0,5,1),dG(t,v,0,0),ZL(t,v),nj(t.padding,v.padding),t.size_0.x_0=v.size_0.x_0,t.size_0.y_0=v.size_0.y_0)},Qn("org.eclipse.elk.alg.layered.components","SimpleRowGraphPlacer",1263),bn(1264,1,He,XG),i.compare_1=function(e,t){return function(e,t){var n;return 0==(n=t.id_0-e.id_0)&&Hn(ez(e,(zee(),u9)))===Hn((Nte(),Ite))?ad(e.size_0.x_0*e.size_0.y_0,t.size_0.x_0*t.size_0.y_0):n}(Pn(e,38),Pn(t,38))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.components","SimpleRowGraphPlacer/1",1264),bn(1236,1,Ue,tB),i.apply_1=function(e){var t;return!!(t=Pn(ez(Pn(e,242).newEdge,(zee(),W9)),74))&&0!=t.size_0},i.equals_0=function(e){return this===e},i.test_0=function(e){var t;return!!(t=Pn(ez(Pn(e,242).newEdge,(zee(),W9)),74))&&0!=t.size_0},Qn("org.eclipse.elk.alg.layered.compound","CompoundGraphPostprocessor/1",1236),bn(1235,1,ot,uB),i.process=function(e,t){oB(this,Pn(e,38),t)},Qn("org.eclipse.elk.alg.layered.compound","CompoundGraphPreprocessor",1235),bn(435,1,{435:1},hB),i.exported=!1,Qn("org.eclipse.elk.alg.layered.compound","CompoundGraphPreprocessor/ExternalPort",435),bn(242,1,{242:1},dB),i.toString_0=function(){return tl(this.type_0)+":"+bB(this.newEdge)},Qn("org.eclipse.elk.alg.layered.compound","CrossHierarchyEdge",242),bn(747,1,He,pB),i.compare_1=function(e,t){return function(e,t,n){var r,i;return t.type_0==(Wte(),Vte)&&n.type_0==jte?-1:t.type_0==jte&&n.type_0==Vte?1:(r=_B(t.graph_0,e.graph_0),i=_B(n.graph_0,e.graph_0),t.type_0==Vte?i-r:r-i)}(this,Pn(e,242),Pn(t,242))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.compound","CrossHierarchyEdgeComparator",747),bn(299,134,{3:1,299:1,94:1,134:1}),i.id_0=0,Qn("org.eclipse.elk.alg.layered.graph","LGraphElement",299),bn(18,299,{3:1,18:1,299:1,94:1,134:1},CB),i.toString_0=function(){return bB(this)};var SB=Qn("org.eclipse.elk.alg.layered.graph","LEdge",18);function kB(e){var t,n,r;for(r=xg(Rj,$,213,e.layers.array.length,0,2),n=new Ty(e.layers,0);n.is)return pIe(),q$e;break;case 4:case 3:if(u<0)return pIe(),W$e;if(u+n>a)return pIe(),uIe}return(l=(c+o/2)/s)+(r=(u+n/2)/a)<=1&&l-r<=0?(pIe(),gIe):l+r>=1&&l-r>=0?(pIe(),q$e):r<.5?(pIe(),W$e):(pIe(),uIe)}function RB(e,t,n){var r,i,a;if(t!=n){r=t;do{jEe(e,r.offset),(i=r.parentNode)&&(BEe(e,(a=r.padding).left,a.top_0),jEe(e,i.pos),r=yj(i))}while(i);r=n;do{tbe(e,r.offset),(i=r.parentNode)&&(ebe(e,(a=r.padding).left,a.top_0),tbe(e,i.pos),r=yj(i))}while(i)}}function FB(e,t,n,r,i,a,s,o,l){var c,u,h,g,f,d,p,_,y,m;switch(f=n,Ij(u=new Pj(l),(Fj(),Nj)),rz(u,(L6(),G4),s),rz(u,(zee(),P7),(P$e(),b$e)),p=td(Ln(e.getProperty(T7))),rz(u,T7,p),aV(h=new oV,u),t!=k$e&&t!=$$e||(f=r>0?vIe(o):yIe(vIe(o)),e.setProperty(A7,f)),c=new nbe,g=!1,e.hasProperty(I7)?(QEe(c,Pn(e.getProperty(I7),8)),g=!0):(_=c,y=s.x_0/2,m=s.y_0/2,_.x_0=y,_.y_0=m),f.ordinal){case 4:rz(u,X9,(z6(),$6)),rz(u,L4,(J2(),K2)),u.size_0.y_0=s.y_0,p<0&&(u.size_0.x_0=-p),sV(h,(pIe(),q$e)),g||(c.x_0=s.x_0),c.x_0-=s.x_0;break;case 2:rz(u,X9,(z6(),T6)),rz(u,L4,(J2(),q2)),u.size_0.y_0=s.y_0,p<0&&(u.size_0.x_0=-p),sV(h,(pIe(),gIe)),g||(c.x_0=0);break;case 1:rz(u,q4,(d4(),h4)),u.size_0.x_0=s.x_0,p<0&&(u.size_0.y_0=-p),sV(h,(pIe(),uIe)),g||(c.y_0=s.y_0),c.y_0-=s.y_0;break;case 3:rz(u,q4,(d4(),c4)),u.size_0.x_0=s.x_0,p<0&&(u.size_0.y_0=-p),sV(h,(pIe(),W$e)),g||(c.y_0=0)}if(QEe(h.pos,c),rz(u,I7,c),t==E$e||t==C$e||t==b$e){if(d=0,t==E$e&&e.hasProperty(M7))switch(f.ordinal){case 1:case 2:d=Pn(e.getProperty(M7),20).value_0;break;case 3:case 4:d=-Pn(e.getProperty(M7),20).value_0}else switch(f.ordinal){case 4:case 2:d=a.y_0,t==C$e&&(d/=i.y_0);break;case 1:case 3:d=a.x_0,t==C$e&&(d/=i.x_0)}rz(u,f6,d)}return rz(u,O4,f),u}function OB(e,t,n,r){var i,a,s,o,l,c;if(a=BB(r),!Nf(Nn(ez(r,(zee(),i7))))&&!Nf(Nn(ez(e,j9)))||N$e(Pn(ez(e,P7),100)))switch(aV(o=new oV,e),t?((c=o.pos).x_0=t.x_0-e.pos.x_0,c.y_0=t.y_0-e.pos.y_0,VEe(c,0,0,e.size_0.x_0,e.size_0.y_0),sV(o,DB(o,a))):(i=vIe(a),sV(o,n==(Wte(),Vte)?i:yIe(i))),s=Pn(ez(r,(L6(),j4)),21),l=o.side,a.ordinal){case 2:case 1:(l==(pIe(),W$e)||l==uIe)&&s.add_2((Z3(),W3));break;case 4:case 3:(l==(pIe(),q$e)||l==gIe)&&s.add_2((Z3(),W3))}else i=vIe(a),o=WB(e,n,n==(Wte(),Vte)?i:yIe(i));return o}function GB(e){var t,n,i,a;if(USe(Pn(ez(e.owner,(zee(),E9)),108)))return 0;for(t=0,i=new Rm(e.nodes);i.i=1?DSe:zSe:t}function jB(e,t,n,r){var i,a,s,o,l;switch((l=new abe(t.pos)).x_0+=t.size_0.x_0/2,l.y_0+=t.size_0.y_0/2,o=td(Ln(ez(t,(zee(),T7)))),a=e.size_0,s=e.padding,i=e.offset,Pn(ez(t,(L6(),O4)),61).ordinal){case 1:l.x_0+=s.left+i.x_0-n/2,l.y_0=-r-o,t.pos.y_0=-(s.top_0+o+i.y_0);break;case 2:l.x_0=a.x_0+s.left+s.right+o,l.y_0+=s.top_0+i.y_0-r/2,t.pos.x_0=a.x_0+s.right+o-i.x_0;break;case 3:l.x_0+=s.left+i.x_0-n/2,l.y_0=a.y_0+s.top_0+s.bottom+o,t.pos.y_0=a.y_0+s.bottom+o-i.y_0;break;case 4:l.x_0=-n-o,l.y_0+=s.top_0+i.y_0-r/2,t.pos.x_0=-(s.left+o+i.x_0)}return l}function VB(e,t){var n,r;return r=null,tz(e,(BSe(),SSe))&&(n=Pn(ez(e,SSe),94)).hasProperty(t)&&(r=n.getProperty(t)),null==r&&yj(e)&&(r=ez(yj(e),t)),r}function HB(e,t){var n,r;for(r=yj(n=e).parentNode;r;){if((n=r)==t)return!0;r=yj(n).parentNode}return!1}function UB(e,t,n){var r,i,a,s,o,l,c,u;for(a=new ibe(t,n),c=new Rm(e.layerlessNodes);c.i.5?y-=2*s*(d-.5):d<.5&&(y+=2*a*(.5-d)),y<(i=o.margin.left)&&(y=i),p=o.margin.right,y>_.x_0-p-u&&(y=_.x_0-p-u),o.pos.x_0=t+y}}function WB(e,t,n){var r,i,a,s,o;switch(o=null,t.ordinal){case 1:for(i=new Rm(e.ports);i.i=1&&(_-s>0&&h>=0?(l.pos.x_0+=p,l.pos.y_0+=a*s):_-s<0&&u>=0&&(l.pos.x_0+=p*_,l.pos.y_0+=a));e.size_0.x_0=t.x_0,e.size_0.y_0=t.y_0,rz(e,(zee(),p7),(RIe(),new Nv(r=Pn(Kn(YIe),9),Pn(Dk(r,r.length),9),0)))}function YB(e){return Pn(vm(e,xg(SB,lt,18,e.array.length,0,1)),468)}function XB(e){return Pn(vm(e,xg(Rj,ct,10,e.array.length,0,1)),213)}function JB(e){return Pn(vm(e,xg(gV,ut,11,e.array.length,0,1)),1915)}function ZB(){this.pos=new nbe,this.size_0=new nbe}function QB(){ej.call(this,"")}function ej(e){ZB.call(this),this.text_0=e}function tj(e,t){return e.left+=t.left,e.right+=t.right,e.top_0+=t.top_0,e.bottom+=t.bottom,e}function nj(e,t){return e.left=t.left,e.right=t.right,e.top_0=t.top_0,e.bottom=t.bottom,e}function rj(e,t,n,r,i){e.top_0=t,e.right=n,e.bottom=r,e.left=i}function ij(){}function aj(e,t,n,r){rj(this,e,t,n,r)}function sj(e,t){var n;for(n=0;n0&&sj((s$(t-1,e.length),e.charCodeAt(t-1)),")]}\"' \t\r\n");)--t;if(in.nodes.array.length))throw Vg(new gd("index must be >= 0 and <= layer node count"));e.layer&&pm(e.layer.nodes,e),e.layer=n,n&&om(n.nodes,t,e)}function $j(e,t){e.layer&&pm(e.layer.nodes,e),e.layer=t,e.layer&&lm(e.layer.nodes,e)}function Ij(e,t){e.type_0=t}function Tj(e){var t;return(t=new Jp).string+="n",e.type_0!=(Fj(),Aj)&&Wp(Wp((t.string+="(",t),tl(e.type_0).toLowerCase()),")"),Wp((t.string+="_",t),_j(e)),t.string}function Pj(e){ZB.call(this),this.type_0=(Fj(),Aj),this.ports=(za(6,"initialArraySize"),new Em(6)),this.labels=(za(2,"initialArraySize"),new Em(2)),this.margin=new gj,this.padding=new Qj,this.graph_0=e}bn(640,141,ht,gj),Qn("org.eclipse.elk.alg.layered.graph","LMargin",640),bn(10,388,{3:1,299:1,10:1,388:1,94:1,134:1},Pj),i.toString_0=function(){return Tj(this)},i.portSidesCached=!1;var Mj,Nj,Lj,zj,Aj,Dj,Rj=Qn("org.eclipse.elk.alg.layered.graph","LNode",10);function Fj(){Fj=En,Aj=new Oj("NORMAL",0),zj=new Oj("LONG_EDGE",1),Nj=new Oj("EXTERNAL_PORT",2),Dj=new Oj("NORTH_SOUTH_PORT",3),Lj=new Oj("LABEL",4),Mj=new Oj("BREAKING_POINT",5)}function Oj(e,t){nl.call(this,e,t)}bn(266,22,{3:1,36:1,22:1,266:1},Oj);var Gj,Bj=er("org.eclipse.elk.alg.layered.graph","LNode/NodeType",266,sl,(function(){return Fj(),Sg(yg(Bj,1),W,266,0,[Aj,zj,Nj,Dj,Lj,Mj])}),(function(e){return Fj(),il((jj(),Gj),e)}));function jj(){jj=En,Gj=rl((Fj(),Sg(yg(Bj,1),W,266,0,[Aj,zj,Nj,Dj,Lj,Mj])))}function Vj(){ij.call(this)}function Hj(e){aj.call(this,e,e,e,e)}function Uj(e){aj.call(this,e.top_0,e.right,e.bottom,e.left)}bn(115,205,gt,Vj,Hj,Uj);var qj,Wj,Kj,Yj,Xj,Jj,Zj=Qn("org.eclipse.elk.core.math","ElkPadding",115);function Qj(){Vj.call(this)}function eV(){eV=En,Yj=new bV,Wj=new xV,Kj=new CV,qj=new SV,Xj=new kV,Jj=new $V}function tV(e){return obe(Sg(yg(lbe,1),$,8,0,[e.owner.pos,e.pos,e.anchor]))}function nV(e){return e.incomingEdges.array.length+e.outgoingEdges.array.length}function rV(e){var t;return 0!=e.labels.array.length&&Pn(gm(e.labels,0),69).text_0?Pn(gm(e.labels,0),69).text_0:null!=(t=yB(e))?t:""+(e.owner?fm(e.owner.ports,e,0):-1)}function iV(e){return e.incomingEdges.array.length-e.outgoingEdges.array.length}function aV(e,t){e.owner&&pm(e.owner.ports,e),e.owner=t,e.owner&&lm(e.owner.ports,e)}function sV(e,t){if(!t)throw Vg(new Vd);if(e.side=t,!e.explicitlySuppliedPortAnchor)switch(e.side.ordinal){case 1:e.anchor.x_0=e.size_0.x_0/2,e.anchor.y_0=0;break;case 2:e.anchor.x_0=e.size_0.x_0,e.anchor.y_0=e.size_0.y_0/2;break;case 3:e.anchor.x_0=e.size_0.x_0/2,e.anchor.y_0=e.size_0.y_0;break;case 4:e.anchor.x_0=0,e.anchor.y_0=e.size_0.y_0/2}}function oV(){eV(),ZB.call(this),this.side=(pIe(),hIe),this.anchor=new nbe,new gj,this.labels=(za(2,"initialArraySize"),new Em(2)),this.incomingEdges=(za(4,"initialArraySize"),new Em(4)),this.outgoingEdges=(za(4,"initialArraySize"),new Em(4)),this.connectedEdges=new yV(this.incomingEdges,this.outgoingEdges)}bn(748,115,gt,Qj),Qn("org.eclipse.elk.alg.layered.graph","LPadding",748),bn(11,388,{3:1,299:1,11:1,388:1,94:1,134:1},oV),i.toString_0=function(){var e,t,n;return Wp(((e=new Jp).string+="p_",e),rV(this)),this.owner&&Wp(qp((e.string+="[",e),this.owner),"]"),1==this.incomingEdges.array.length&&0==this.outgoingEdges.array.length&&Pn(gm(this.incomingEdges,0),18).source!=this&&(t=Pn(gm(this.incomingEdges,0),18).source,Wp((e.string+=" << ",e),rV(t)),Wp(qp((e.string+="[",e),t.owner),"]")),0==this.incomingEdges.array.length&&1==this.outgoingEdges.array.length&&Pn(gm(this.outgoingEdges,0),18).target!=this&&(n=Pn(gm(this.outgoingEdges,0),18).target,Wp((e.string+=" >> ",e),rV(n)),Wp(qp((e.string+="[",e),n.owner),"]")),e.string},i.connectedToExternalNodes=!0,i.explicitlySuppliedPortAnchor=!1;var lV,cV,uV,hV,gV=Qn("org.eclipse.elk.alg.layered.graph","LPort",11);function fV(e){this.this$01=e}function dV(e){this.val$edgesIter2=e}function pV(e){this.this$01=e}function _V(e){this.val$edgesIter2=e}function yV(e,t){this.firstIterable=e,this.secondIterable=t}function mV(e){return zm(e.firstIterator)||zm(e.secondIterator)}function wV(e){this.this$11=e,this.firstIterator=new Rm(this.this$11.firstIterable),this.secondIterator=new Rm(this.this$11.secondIterable)}function vV(e){return eV(),0!=Pn(e,11).incomingEdges.array.length}function xV(){}function EV(e){return eV(),0!=Pn(e,11).outgoingEdges.array.length}function bV(){}function CV(){}function SV(){}function kV(){}function $V(){}function IV(e){return fm(e.owner.layers,e,0)}function TV(e){this.size_0=new nbe,this.nodes=new xm,this.owner=e}function PV(e,t){var n,i,a;Ize(e)&&(a=Pn(ez(t,(zee(),p7)),174),Hn(wNe(e,P7))===Hn((P$e(),$$e))&&xNe(e,P7,k$e),i=KT(new jPe(Ize(e)),new HPe(Ize(e)?new jPe(Ize(e)):null,e),!1,!0),Iv(a,(RIe(),$Ie)),(n=Pn(ez(t,_7),8)).x_0=r.Math.max(i.x_0,n.x_0),n.y_0=r.Math.max(i.y_0,n.y_0))}function MV(e){var t,n,r,i,a,s,o,l,c,u,h,g;for(a=Nf(Nn(wNe(t=Aze(e),(zee(),V9)))),u=0,i=0,c=new BFe((!e.outgoingEdges&&(e.outgoingEdges=new MXe(QPe,e,7,4)),e.outgoingEdges));c.cursor!=c.this$01_2.size_1();)s=(o=rLe(l=Pn(OFe(c),80)))&&a&&Nf(Nn(wNe(l,H9))),g=GDe(Pn(vRe((!l.targets&&(l.targets=new MXe(ZPe,l,5,8)),l.targets),0),93)),o&&s?++i:o&&!s?++u:Ize(g)==t||g==t?++i:++u;for(r=new BFe((!e.incomingEdges&&(e.incomingEdges=new MXe(QPe,e,8,5)),e.incomingEdges));r.cursor!=r.this$01_2.size_1();)s=(o=rLe(n=Pn(OFe(r),80)))&&a&&Nf(Nn(wNe(n,H9))),h=GDe(Pn(vRe((!n.sources&&(n.sources=new MXe(ZPe,n,4,7)),n.sources),0),93)),o&&s?++u:o&&!s?++i:Ize(h)==t||h==t?++u:++i;return u-i}function NV(e){if(0==(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources).size_0)throw Vg(new Jwe("Edges must have a source."));if(0==(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets).size_0)throw Vg(new Jwe("Edges must have a target."));if(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),!(e.sources.size_0<=1&&(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets.size_0<=1)))throw Vg(new Jwe("Hyperedges are not supported."))}function LV(e){var t,n,i,a,s,o;return ZL(i=new $B,e),Hn(ez(i,(zee(),E9)))===Hn((VSe(),RSe))&&rz(i,E9,BB(i)),null==ez(i,(pEe(),hEe))&&(o=Pn(UXe(e),160),rz(i,hEe,qn(o.getProperty(hEe)))),rz(i,(L6(),i6),e),rz(i,j4,new Nv(t=Pn(Kn(i4),9),Pn(Dk(t,t.length),9),0)),a=function(e,t){var n,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w;for(bN(g=new jM(e),!0,!(t==(VSe(),FSe)||t==zSe)),h=g.insideNodeLabelContainer,f=new Vj,cP(),o=0,c=(a=Sg(yg(gP,1),W,230,0,[rP,iP,aP])).length;o0&&(f.top_0+=h.padding.top_0,f.top_0+=h.gap),f.bottom>0&&(f.bottom+=h.padding.bottom,f.bottom+=h.gap),f.left>0&&(f.left+=h.padding.left,f.left+=h.gap),f.right>0&&(f.right+=h.padding.right,f.right+=h.gap),f}((Ize(e)&&new jPe(Ize(e)),new HPe(Ize(e)?new jPe(Ize(e)):null,e)),DSe),s=Pn(ez(i,w7),115),tj(n=i.padding,s),tj(n,a),i}function zV(e,t){var n,r,i;n=Pn(ez(e,(zee(),E9)),108),i=Pn(wNe(t,A7),61),(r=Pn(ez(e,P7),100))!=(P$e(),k$e)&&r!=$$e?i==(pIe(),hIe)&&(i=UTe(t,n))==hIe&&(i=vIe(n)):i=MV(t)>0?vIe(n):yIe(vIe(n)),xNe(t,A7,i)}function AV(e,t,n,r){var i,a,s,o,l;return o=GDe(Pn(vRe((!t.sources&&(t.sources=new MXe(ZPe,t,4,7)),t.sources),0),93)),l=GDe(Pn(vRe((!t.targets&&(t.targets=new MXe(ZPe,t,5,8)),t.targets),0),93)),Ize(o)==Ize(l)||JDe(l,o)?null:(s=tLe(t))==n?r:(a=Pn(cy(e.nodeAndPortMap,s),10))&&(i=a.nestedGraph)?i:null}function DV(e){var t,n;if(Nf(Nn(wNe(e,(zee(),V9)))))for(n=new Qo(Bo(ODe(e).val$inputs1.iterator_0(),new Io));Jo(n);)if(rLe(t=Pn(Zo(n),80))&&Nf(Nn(wNe(t,H9))))return!0;return!1}function RV(e,t,n,r){var i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E,b,C,S,k,$,I;if(NV(t),l=Pn(vRe((!t.sources&&(t.sources=new MXe(ZPe,t,4,7)),t.sources),0),93),u=Pn(vRe((!t.targets&&(t.targets=new MXe(ZPe,t,5,8)),t.targets),0),93),o=GDe(l),c=GDe(u),s=0==(!t.sections&&(t.sections=new HUe(eMe,t,6,6)),t.sections).size_0?null:Pn(vRe((!t.sections&&(t.sections=new HUe(eMe,t,6,6)),t.sections),0),201),E=Pn(cy(e.nodeAndPortMap,o),10),k=Pn(cy(e.nodeAndPortMap,c),10),b=null,$=null,Fn(l,199)&&(Fn(x=Pn(cy(e.nodeAndPortMap,l),299),11)?b=Pn(x,11):Fn(x,10)&&(E=Pn(x,10),b=Pn(gm(E.ports,0),11))),Fn(u,199)&&(Fn(S=Pn(cy(e.nodeAndPortMap,u),299),11)?$=Pn(S,11):Fn(S,10)&&(k=Pn(S,10),$=Pn(gm(k.ports,0),11))),!E||!k)throw Vg(new Jwe("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(ZL(p=new CB,t),rz(p,(L6(),i6),t),rz(p,(zee(),W9),null),f=Pn(ez(r,j4),21),E==k&&f.add_2((Z3(),Y3)),b||(Wte(),v=Vte,C=null,s&&N$e(Pn(ez(E,P7),100))&&(rPe(C=new ibe(s.startX,s.startY),tLe(t)),iPe(C,n),JDe(c,o)&&(v=jte,jEe(C,E.pos))),b=OB(E,C,v,r)),$||(Wte(),v=jte,I=null,s&&N$e(Pn(ez(k,P7),100))&&(rPe(I=new ibe(s.endX,s.endY),tLe(t)),iPe(I,n)),$=OB(k,I,v,yj(k))),xB(p,b),EB(p,$),(b.incomingEdges.array.length>1||b.outgoingEdges.array.length>1||$.incomingEdges.array.length>1||$.outgoingEdges.array.length>1)&&f.add_2((Z3(),H3)),g=new BFe((!t.labels&&(t.labels=new HUe(SMe,t,1,7)),t.labels));g.cursor!=g.this$01_2.size_1();)if(!Nf(Nn(wNe(h=Pn(OFe(g),137),m7)))&&h.text_0)switch(_=OV(h),lm(p.labels,_),Pn(ez(_,$9),271).ordinal){case 1:case 2:f.add_2((Z3(),j3));break;case 0:f.add_2((Z3(),G3)),rz(_,$9,(eke(),YSe))}if(a=Pn(ez(r,w9),333),y=Pn(ez(r,d7),312),i=a==(m2(),d2)||y==(ute(),ite),s&&0!=(!s.bendPoints&&(s.bendPoints=new GVe(YPe,s,5)),s.bendPoints).size_0&&i){for(m=KTe(s),d=new fbe,w=Gx(m,0);w.currentNode!=w.this$01.tail;)zx(d,new abe(Pn(eE(w),8)));rz(p,a6,d)}return p}function FV(e,t,n,r){var i,a,s,o,l,c,u,h,g,f,d,p;for(l=new ibe(r.x_0+r.width_0/2,r.y_0+r.height/2),g=MV(r),f=Pn(wNe(t,(zee(),P7)),100),p=Pn(wNe(r,A7),61),ROe(mNe(r),T7)||(d=0==r.x_0&&0==r.y_0?0:function(e,t){var n;if(!Aze(e))throw Vg(new pd("port must have a parent node to calculate the port side"));switch(n=Aze(e),t.ordinal){case 1:return-(e.y_0+e.height);case 2:return e.x_0-n.width_0;case 3:return e.y_0-n.height;case 4:return-(e.x_0+e.width_0)}return 0}(r,p),xNe(r,T7,d)),rz(i=FB(r,f,p,g,new ibe(t.width_0,t.height),l,new ibe(r.width_0,r.height),Pn(ez(n,E9),108),n),(L6(),i6),r),function(e,t){e.connectedToExternalNodes=t}(a=Pn(gm(i.ports,0),11),function(e){var t,n,r,i,a;for(a=Aze(e),i=new BFe((!e.outgoingEdges&&(e.outgoingEdges=new MXe(QPe,e,7,4)),e.outgoingEdges));i.cursor!=i.this$01_2.size_1();)if(r=Pn(OFe(i),80),!JDe(GDe(Pn(vRe((!r.targets&&(r.targets=new MXe(ZPe,r,5,8)),r.targets),0),93)),a))return!0;for(n=new BFe((!e.incomingEdges&&(e.incomingEdges=new MXe(QPe,e,8,5)),e.incomingEdges));n.cursor!=n.this$01_2.size_1();)if(t=Pn(OFe(n),80),!JDe(GDe(Pn(vRe((!t.sources&&(t.sources=new MXe(ZPe,t,4,7)),t.sources),0),93)),a))return!0;return!1}(r)),rz(i,L7,(j$e(),Sv(F$e))),u=Pn(wNe(t,L7),174).contains(D$e),o=new BFe((!r.labels&&(r.labels=new HUe(SMe,r,1,7)),r.labels));o.cursor!=o.this$01_2.size_1();)if(!Nf(Nn(wNe(s=Pn(OFe(o),137),m7)))&&s.text_0&&(h=OV(s),lm(a.labels,h),!u))switch(c=0,H$e(Pn(wNe(t,L7),21))&&(c=qTe(new ibe(s.x_0,s.y_0),new ibe(s.width_0,s.height),new ibe(r.width_0,r.height),0,p)),p.ordinal){case 2:case 4:h.size_0.x_0=c;break;case 1:case 3:h.size_0.y_0=c}rz(i,nee,Ln(wNe(Ize(t),nee))),rz(i,eee,Ln(wNe(Ize(t),eee))),lm(n.layerlessNodes,i),gy(e.nodeAndPortMap,r,i)}function OV(e){var t;return ZL(t=new ej(e.text_0),e),rz(t,(L6(),i6),e),t.size_0.x_0=e.width_0,t.size_0.y_0=e.height,t.pos.x_0=e.x_0,t.pos.y_0=e.y_0,t}function GV(e,t,n){var r,i,a,s,o,l,c,u;for(ZL(c=new Pj(n),t),rz(c,(L6(),i6),t),c.size_0.x_0=t.width_0,c.size_0.y_0=t.height,c.pos.x_0=t.x_0,c.pos.y_0=t.y_0,lm(n.layerlessNodes,c),gy(e.nodeAndPortMap,t,c),(0!=(!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children).size_0||Nf(Nn(wNe(t,(zee(),V9)))))&&rz(c,I4,(Mf(),!0)),l=Pn(ez(n,j4),21),(u=Pn(ez(c,(zee(),P7)),100))==(P$e(),$$e)?rz(c,P7,k$e):u!=k$e&&l.add_2((Z3(),q3)),r=Pn(ez(n,E9),108),o=new BFe((!t.ports&&(t.ports=new HUe($Me,t,9,9)),t.ports));o.cursor!=o.this$01_2.size_1();)Nf(Nn(wNe(s=Pn(OFe(o),122),m7)))||BV(e,s,c,l,r,u);for(a=new BFe((!t.labels&&(t.labels=new HUe(SMe,t,1,7)),t.labels));a.cursor!=a.this$01_2.size_1();)!Nf(Nn(wNe(i=Pn(OFe(a),137),m7)))&&i.text_0&&lm(c.labels,OV(i));return Nf(Nn(ez(c,s9)))&&l.add_2((Z3(),B3)),Nf(Nn(ez(c,j9)))&&(l.add_2((Z3(),U3)),l.add_2(H3),rz(c,P7,k$e)),c}function BV(e,t,n,r,i,a){var s,o,l,c,u,h;for(ZL(c=new oV,t),sV(c,Pn(wNe(t,(zee(),A7)),61)),rz(c,(L6(),i6),t),aV(c,n),(h=c.size_0).x_0=t.width_0,h.y_0=t.height,(u=c.pos).x_0=t.x_0,u.y_0=t.y_0,gy(e.nodeAndPortMap,t,c),(s=qS(QS(JS(new ck(null,(!t.outgoingEdges&&(t.outgoingEdges=new MXe(QPe,t,7,4)),new YE(t.outgoingEdges,16))),new WV),new VV),new KV(t)))||(s=qS(QS(JS(new ck(null,(!t.incomingEdges&&(t.incomingEdges=new MXe(QPe,t,8,5)),new YE(t.incomingEdges,16))),new YV),new HV),new XV(t))),s||(s=qS(new ck(null,(!t.outgoingEdges&&(t.outgoingEdges=new MXe(QPe,t,7,4)),new YE(t.outgoingEdges,16))),new JV)),rz(c,U4,(Mf(),!!s)),function(e,t,n,r){var i,a,s,o,l,c;if((o=e.side)==(pIe(),hIe)&&t!=(P$e(),k$e)&&t!=(P$e(),$$e)&&(sV(e,o=DB(e,n)),!(e.propertyMap?e.propertyMap:(hw(),hw(),Sm)).containsKey((zee(),T7))&&o!=hIe&&(0!=e.pos.x_0||0!=e.pos.y_0)&&rz(e,T7,function(e,t){var n;switch(n=e.owner,t.ordinal){case 1:return-(e.pos.y_0+e.size_0.y_0);case 2:return e.pos.x_0-n.size_0.x_0;case 3:return e.pos.y_0-n.size_0.y_0;case 4:return-(e.pos.x_0+e.size_0.x_0)}return 0}(e,o))),t==(P$e(),C$e)){switch(c=0,o.ordinal){case 1:case 3:(a=e.owner.size_0.x_0)>0&&(c=e.pos.x_0/a);break;case 2:case 4:(i=e.owner.size_0.y_0)>0&&(c=e.pos.y_0/i)}rz(e,(L6(),f6),c)}if(l=e.size_0,s=e.anchor,r)s.x_0=r.x_0,s.y_0=r.y_0,e.explicitlySuppliedPortAnchor=!0;else if(t!=k$e&&t!=$$e&&o!=hIe)switch(o.ordinal){case 1:s.x_0=l.x_0/2;break;case 2:s.x_0=l.x_0,s.y_0=l.y_0/2;break;case 3:s.x_0=l.x_0/2,s.y_0=l.y_0;break;case 4:s.y_0=l.y_0/2}else s.x_0=l.x_0/2,s.y_0=l.y_0/2}(c,a,i,Pn(wNe(t,I7),8)),l=new BFe((!t.labels&&(t.labels=new HUe(SMe,t,1,7)),t.labels));l.cursor!=l.this$01_2.size_1();)!Nf(Nn(wNe(o=Pn(OFe(l),137),m7)))&&o.text_0&&lm(c.labels,OV(o));switch(i.ordinal){case 2:case 1:(c.side==(pIe(),W$e)||c.side==uIe)&&r.add_2((Z3(),W3));break;case 4:case 3:(c.side==(pIe(),q$e)||c.side==gIe)&&r.add_2((Z3(),W3))}return c}function jV(){this.nodeAndPortMap=new Rv}function VV(){}function HV(){}function UV(e){this.topLevelGraph_1=e}function qV(e){this.finalNestedGraph_1=e}function WV(){}function KV(e){this.elkport_0=e}function YV(){}function XV(e){this.elkport_0=e}function JV(){}function ZV(){ZV=En,lV=new nbe}function QV(e,t,n){var r,i,a,s,o,l,c,u,h,g,f;if(a=Pn(ez(e,(L6(),i6)),80)){for(r=e.bendPoints,jEe(i=new abe(n),function(e){var t,n,r,i;if(i=Pn(ez(e,(L6(),T4)),38)){for(r=new nbe,t=yj(e.source.owner);t!=i;)t=yj(n=t.parentNode),BEe(jEe(jEe(r,n.pos),t.offset),t.padding.left,t.padding.top_0);return r}return lV}(e)),HB(e.target.owner,e.source.owner)?(g=e.source,tbe(h=obe(Sg(yg(lbe,1),$,8,0,[g.pos,g.anchor])),n)):h=tV(e.source),Rx(r,h,r.header,r.header.next_0),f=tV(e.target),null!=ez(e,C6)&&jEe(f,Pn(ez(e,C6),8)),Rx(r,f,r.tail.prev,r.tail),gbe(r,i),_Le(s=qDe(a,!0,!0),Pn(vRe((!a.sources&&(a.sources=new MXe(ZPe,a,4,7)),a.sources),0),93)),yLe(s,Pn(vRe((!a.targets&&(a.targets=new MXe(ZPe,a,5,8)),a.targets),0),93)),VTe(r,s),u=new Rm(e.labels);u.i=r.size_0.y_0/2}m?(y=Pn(ez(r,(L6(),S6)),14))?f?a=y:(i=Pn(ez(r,S4),14))?a=y.size_1()<=i.size_1()?y:i:(a=new xm,rz(r,S4,a)):(a=new xm,rz(r,S6,a)):(i=Pn(ez(r,(L6(),S4)),14))?h?a=i:(y=Pn(ez(r,S6),14))?a=i.size_1()<=y.size_1()?i:y:(a=new xm,rz(r,S6,a)):(a=new xm,rz(r,S4,a)),a.add_2(e),rz(e,(L6(),$4),n),t.target==n?(EB(t,null),n.incomingEdges.array.length+n.outgoingEdges.array.length==0&&aV(n,null),function(e){var t,n;(t=Pn(ez(e,(L6(),g6)),10))&&(pm((n=t.layer).nodes,t),0==n.nodes.array.length&&pm(yj(t).layers,n))}(n)):(xB(t,null),n.incomingEdges.array.length+n.outgoingEdges.array.length==0&&aV(n,null)),Vx(t.bendPoints)}function pH(){}function _H(){}function yH(e,t){var n;return!Nf(Nn(ez(t,(L6(),y6))))&&(n=t.source.owner,(e!=(z6(),k6)||n.type_0!=(Fj(),Lj))&&Pn(ez(n,(zee(),X9)),165)!=$6)}function mH(e,t){var n;return!Nf(Nn(ez(t,(L6(),y6))))&&(n=t.target.owner,(e!=(z6(),I6)||n.type_0!=(Fj(),Lj))&&Pn(ez(n,(zee(),X9)),165)!=T6)}function wH(e,t,n){var r,i,a,s,o,l,c,u;for(c=0,u=(l=JB(e.ports)).length;c=2}function GH(e){var t,n,r;for(mm(n=function(e){var t,n,r,i;for(n=new Rv,i=new Rm(e.labels);i.i1&&(r=new ibe(i,n.centerControlPointY),zx(t.bendPoints,r)),cbe(t.bendPoints,Sg(yg(lbe,1),$,8,0,[h,u]))}function ZH(e,t,n){var r,i,a,s,o,l,c,u,h,g,f;c=n.boundingBox.x_0,s=n.boundingBox.x_0+n.boundingBox.width_0,g=(a=Pn(cy(n.edgeInformation,t),453)).startY,f=a.endY,o=a.invertedLeft?new ibe(s,g):new ibe(c,g),u=a.invertedRight?new ibe(c,f):new ibe(s,f),i=c,n.isWestOfInitialLayer||(i+=e.edgeNodeSpacing),l=new ibe(i+=n.xDelta+n.rank*e.edgeEdgeSpacing,g),h=new ibe(i,f),cbe(t.bendPoints,Sg(yg(lbe,1),$,8,0,[o,l])),n.edges.map_0.size_1()>1&&(r=new ibe(i,n.centerControlPointY),zx(t.bendPoints,r)),cbe(t.bendPoints,Sg(yg(lbe,1),$,8,0,[h,u]))}function QH(e,t){var n,r,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E,b,C;o=Pn(cy(t.edgeInformation,e),453),_=t.boundingBox.x_0,l=t.boundingBox.x_0+t.boundingBox.width_0,s=(b=o.startY)<(C=o.endY),f=new ibe(_,b),y=new ibe(l,C),d=new ibe(i=(_+l)/2,b),m=new ibe(i,C),a=function(e,t,n){var r,i,a;if(r=0,i=0,e.source)for(a=new Rm(e.target.owner.ports);a.i0)?c&&(u=p.id_0,s?++u:--u,h=!(SEe(r=eU(Pn(gm(p.layer.nodes,u),10)),v,n[0])||vEe(r,v,n[0]))):h=!0),g=!1,(w=t.targetPort.owner)&&w.layer&&o.normalTargetNode&&(s&&w.id_0>0||!s&&w.id_0a)||t.lastSegment&&(a=(r=t.targetNode).layer.size_0.x_0-r.size_0.x_0/2,r.pos.x_0-n>a)))}function nU(){}function rU(){}function iU(){}function aU(){}function sU(){}function oU(e){this.$$outer_0=e}function lU(){}function cU(e){switch(e.ordinal){case 2:return pIe(),gIe;case 4:return pIe(),q$e;default:return e}}function uU(e){switch(e.ordinal){case 1:return pIe(),uIe;case 3:return pIe(),W$e;default:return e}}function hU(e,t){!function(e,t){var n,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x;if(w=0,0==t.size_0.x_0)for(y=new Rm(e);y.ie.size_0.x_0&&(h=(c-e.size_0.x_0)/2,l.left=r.Math.max(l.left,h),l.right=r.Math.max(l.right,h))}}(Pn(e,10))},Qn("org.eclipse.elk.alg.layered.intermediate","CommentNodeMarginCalculator/lambda$1$Type",1457),bn(1458,1,ot,fH),i.process=function(e,t){!function(e,t){var n,r,i,a,s,o,l;for(sTe(t,"Comment post-processing",1),a=new Rm(e.layers);a.i0||u.side==gIe&&u.incomingEdges.array.length-u.outgoingEdges.array.length<0)){t=!1;break}for(i=new Rm(u.outgoingEdges);i.i=e.degreeThreshold)return-1;if(!iq(t,n))return-1;if($o(Pn(i.apply_0(t),19)))return 1;for(a=0,o=Pn(i.apply_0(t),19).iterator_0();o.hasNext_0();){if(-1==(l=aq(e,(s=Pn(o.next_1(),18)).source.owner==t?s.target.owner:s.source.owner,n,i)))return-1;if((a=r.Math.max(a,l))>e.treeHeightThreshold-1)return-1}return a+1}function sq(e,t,n,r){var i,a,s;for($j(t,Pn(r.get_0(0),29)),s=r.subList(1,r.size_1()),a=Pn(n.apply_0(t),19).iterator_0();a.hasNext_0();)sq(e,(i=Pn(a.next_1(),18)).source.owner==t?i.target.owner:i.source.owner,n,s)}function oq(){nq()}function lq(){}function cq(){}function uq(){}function hq(e,t){var n,r,i,a,s,o,l,c,u,h;return n=Nf(Nn(ez(e,(L6(),Z4)))),o=Nf(Nn(ez(t,Z4))),r=Pn(ez(e,Q4),11),l=Pn(ez(t,Q4),11),i=Pn(ez(e,e6),11),c=Pn(ez(t,e6),11),u=!!r&&r==l,h=!!i&&i==c,n||o?(a=(!Nf(Nn(ez(e,Z4)))||Nf(Nn(ez(e,J4))))&&(!Nf(Nn(ez(t,Z4)))||Nf(Nn(ez(t,J4)))),s=!(Nf(Nn(ez(e,Z4)))&&Nf(Nn(ez(e,J4)))||Nf(Nn(ez(t,Z4)))&&Nf(Nn(ez(t,J4)))),new pq(u&&a||h&&s,u,h)):new pq(Pn(Am(new Rm(e.ports)),11).id_0==Pn(Am(new Rm(t.ports)),11).id_0,u,h)}function gq(e,t,n){var r,i,a;for(t.id_0=n,a=ss(is(Sg(yg(ci,1),g,19,0,[new fV(t),new pV(t)])));Jo(a);)-1==(r=Pn(Zo(a),11)).id_0&&gq(e,r,n);if(t.owner.type_0==(Fj(),zj))for(i=new Rm(t.owner.ports);i.i1&&(o=r.Math.min(o,r.Math.abs(Pn(Rl(l.bendPoints,1),8).y_0-f.y_0)))));else for(y=new Rm(t.ports);y.ia&&(s=p.x_0-a,o=u,i.array=xg(or,g,1,0,5,1),a=p.x_0),p.x_0>=a&&(i.array[i.array.length]=l,l.bendPoints.size_0>1&&(o=r.Math.min(o,r.Math.abs(Pn(Rl(l.bendPoints,l.bendPoints.size_0-2),8).y_0-p.y_0)))));if(0!=i.array.length&&s>t.size_0.x_0/2&&o>t.size_0.y_0/2){for(aV(_=new oV,t),sV(_,(pIe(),W$e)),_.pos.x_0=t.size_0.x_0/2,aV(m=new oV,t),sV(m,uIe),m.pos.x_0=t.size_0.x_0/2,m.pos.y_0=t.size_0.y_0,c=new Rm(i);c.i=h.y_0?xB(l,m):xB(l,_)):(h=Pn((Jk(0!=(w=l.bendPoints).size_0),jx(w,w.tail.prev)),8),(0==l.bendPoints.size_0?tV(l.source):Pn(Ox(l.bendPoints),8)).y_0>=h.y_0?EB(l,m):EB(l,_)),(d=Pn(ez(l,(zee(),W9)),74))&&hi(d,h,!0);t.pos.x_0=a-t.size_0.x_0/2}}function vq(){}function xq(){}function Eq(){}function bq(e){var t,n,i,a,s,o,l;if(0!=(l=Pn(gm(e.ports,0),11)).outgoingEdges.array.length&&0!=l.incomingEdges.array.length)throw Vg(new pd("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(0!=l.outgoingEdges.array.length){for(s=pe,n=new Rm(l.outgoingEdges);n.it.x_0&&(r.contains((Jbe(),Obe))?e.offset.x_0+=(n.x_0-t.x_0)/2:r.contains(Bbe)&&(e.offset.x_0+=n.x_0-t.x_0)),n.y_0>t.y_0&&(r.contains((Jbe(),Vbe))?e.offset.y_0+=(n.y_0-t.y_0)/2:r.contains(jbe)&&(e.offset.y_0+=n.y_0-t.y_0)),Pn(ez(e,(L6(),j4)),21).contains((Z3(),V3))&&(n.x_0>t.x_0||n.y_0>t.y_0))for(s=new Rm(e.layerlessNodes);s.i0&&(e.northernExtPortEdgeRoutingHeight=o+(h-1)*i,t.offset.y_0+=e.northernExtPortEdgeRoutingHeight,t.size_0.y_0+=e.northernExtPortEdgeRoutingHeight),0!=g.map_0.size_1()&&(h=Hce(new Uce(1,i),t,g,f,t.size_0.y_0+o-t.offset.y_0))>0&&(t.size_0.y_0+=o+(h-1)*i)}(e,t,i),function(e){var t,n,r,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E,b,C;for(w=new xm,h=new Rm(e.layers);h.i0&&eq((Zk(0,n.array.length),Pn(n.array[0],29)),e),n.array.length>1&&eq(Pn(gm(n,n.array.length-1),29),e),oTe(t)}(Pn(e,38),t)},Qn("org.eclipse.elk.alg.layered.intermediate","HierarchicalPortPositionProcessor",1487),bn(1488,1,ot,oq),i.process=function(e,t){!function(e,t){var n,i,a,s,o,l,c,h,g,f,d,p,_,y,m,w,v,x,E,b,C,S;for(e.layeredGraph=t,e.degreeThreshold=Pn(ez(t,(zee(),O9)),20).value_0,e.treeHeightThreshold=Pn(ez(t,B9),20).value_0,0==e.treeHeightThreshold&&(e.treeHeightThreshold=u),_=new Ty(t.layers,0);_.i<_.this$01_0.size_1();){for(Jk(_.i<_.this$01_0.size_1()),p=Pn(_.this$01_0.get_0(_.last=_.i++),29),l=new xm,g=-1,v=-1,w=new Rm(p.nodes);w.i=e.degreeThreshold&&(i=rq(e,m),g=r.Math.max(g,i.incTreesMaxHeight),v=r.Math.max(v,i.outTreesMaxHeight),lm(l,new zPe(m,i)));for(b=new xm,h=0;h0),_.this$01.get_0(_.last=--_.i),Iy(_,C=new TV(e.layeredGraph)),Jk(_.i<_.this$01_0.size_1()),_.this$01_0.get_0(_.last=_.i++),C));for(o=new Rm(l);o.i=n)return fK(e,t,r.id_0),!0;return!1}function pK(e,t){var n,r;for(r=new Rm(t.layers);r.i=a)return t.leftmostLayerId+n;return t.leftmostLayerId+t.leftLongEdgeDummies.size_1()}function mK(e,t,n){var i,a,s,o,l,c,u,h,g,f;for(s=t.array.length,Zk(n,t.array.length),l=(o=Pn(t.array[n],285)).labelDummy.size_0.x_0,g=o.leftmostLayerId,f=0,u=o.leftmostLayerId;u<=o.rightmostLayerId;u++){if(l<=e.layerWidths[u])return u;for(h=e.layerWidths[u],c=null,a=n+1;a=u&&(c=i);c&&(h=r.Math.max(h,c.labelDummy.size_0.x_0)),h>f&&(g=u,f=h)}return g}function wK(e,t){var n,r;for(n=(r=t.leftmostLayerId)+1;n<=t.rightmostLayerId;n++)e.layerWidths[n]>e.layerWidths[r]&&(r=n);return r}function vK(e){var t,n;return t=Pn(Zo(new Qo(Bo(mj(e.labelDummy).val$inputs1.iterator_0(),new Io))),18),n=Pn(Zo(new Qo(Bo(xj(e.labelDummy).val$inputs1.iterator_0(),new Io))),18),Nf(Nn(ez(t,(L6(),y6))))||Nf(Nn(ez(n,y6)))}function xK(e,t){var n,r,i;if(!t.isEmpty())if(Pn(t.get_0(0),285).placementStrategy==(i2(),l0))!function(e,t){var n,r,i;if(0!=(i=function(e,t){var n,r,i;for(i=new Em(t.size_1()),r=t.iterator_0();r.hasNext_0();)(n=Pn(r.next_1(),285)).leftmostLayerId==n.rightmostLayerId?fK(e,n,n.leftmostLayerId):dK(e,n)||(i.array[i.array.length]=n);return i}(e,t)).array.length)for(mm(i,new TK),n=i.array.length,r=0;r1)&&1==t&&Pn(e.array[e.head],10).type_0==(Fj(),Lj)?LK(Pn(e.array[e.head],10),(Kke(),jke)):r&&(!n||(e.tail-e.head&e.array.length-1)>1)&&1==t&&Pn(e.array[e.tail-1&e.array.length-1],10).type_0==(Fj(),Lj)?LK(Pn(e.array[e.tail-1&e.array.length-1],10),(Kke(),Vke)):2==(e.tail-e.head&e.array.length-1)?(LK(Pn(Jy(e),10),(Kke(),jke)),LK(Pn(Jy(e),10),Vke)):function(e,t){var n,r,i,a,s,o,l,c,u;for(l=Ql(e.tail-e.head&e.array.length-1),c=null,u=null,a=new am(e);a.currentIndex!=a.fence;)i=Pn(rm(a),10),n=(o=Pn(ez(i,(L6(),Q4)),11))?o.owner:null,r=(s=Pn(ez(i,e6),11))?s.owner:null,c==n&&u==r||(zK(l,t),c=n,u=r),l.array[l.array.length]=i;zK(l,t)}(e,i),qy(e)}function OK(e,t){var n,r,i,a,s;for(r=new tm(e.ports.array.length),n=null,a=new Rm(e.ports);a.i0;){for(Zk(0,o.array.length),f=Pn(o.array[0],18),Zk(0,h.array.length),i=fm((r=Pn(h.array[0],18)).target.incomingEdges,r,0),y=f,m=r.target,w=i,y.target&&pm(y.target.incomingEdges,y),y.target=m,y.target&&om(y.target.incomingEdges,w,y),xB(r,null),EB(r,null),g=f.bendPoints,t&&zx(g,new abe(_)),n=Gx(r.bendPoints,0);n.currentNode!=n.this$01.tail;)zx(g,new abe(Pn(eE(n),8)));for(p=f.labels,u=new Rm(r.labels);u.i=e.maxHeight?(++e.maxHeight,lm(e.currentWidth,Cd(1)),lm(e.currentWidthPixel,c)):(r=e.degreeDiff[t.id_0][1],ym(e.currentWidth,l,Cd(Pn(gm(e.currentWidth,l),20).value_0+1-r)),ym(e.currentWidthPixel,l,td(Ln(gm(e.currentWidthPixel,l)))+c-r*e.dummySize)),(e.promotionStrategy==(Cte(),pte)&&(Pn(gm(e.currentWidth,l),20).value_0>e.maxWidth||Pn(gm(e.currentWidth,l-1),20).value_0>e.maxWidth)||e.promotionStrategy==mte&&(td(Ln(gm(e.currentWidthPixel,l)))>e.maxWidthPixel||td(Ln(gm(e.currentWidthPixel,l-1)))>e.maxWidthPixel))&&(o=!1),a=new Qo(Bo(mj(t).val$inputs1.iterator_0(),new Io));Jo(a);)s=Pn(Zo(a),18).source.owner,e.layers[s.id_0]==l&&(i+=Pn((u=yY(e,s)).first,20).value_0,o=o&&Nf(Nn(u.second)));return e.layers[t.id_0]=l,new zPe(Cd(i+=e.degreeDiff[t.id_0][0]),(Mf(),!!o))}function mY(e,t){var n,r,i,a,s,o,l,c,u,h,g,f;o=0,f=0,l=Fm(e.layers,e.layers.length),a=e.dummyNodeCount,s=e.maxHeight,r=e.currentWidth,i=e.currentWidthPixel;do{for(g=0,c=new Rm(e.nodesWithIncomingEdges);c.i0,_=w.outgoingEdges.array.length>0,c&&_?g.array[g.array.length]=w:c?d.array[d.array.length]=w:_&&(m.array[m.array.length]=w);for(f=new Rm(d);f.i0&&a>0?t++:r>0?n++:a>0?i++:n++}hw(),mm(e.ports,new LY)}function NY(){}function LY(){}function zY(e,t){var n,r,i,a,s,o,l;for(i=e.iterator_0();i.hasNext_0();)for(r=Pn(i.next_1(),10),aV(o=new oV,r),sV(o,(pIe(),q$e)),rz(o,(L6(),h6),(Mf(),!0)),s=t.iterator_0();s.hasNext_0();)a=Pn(s.next_1(),10),aV(l=new oV,a),sV(l,gIe),rz(l,h6,!0),rz(n=new CB,h6,!0),xB(n,o),EB(n,l)}function AY(){}function DY(){}function RY(e){this.partitionToNodesMap_0=e}function FY(){}function OY(){}function GY(){}function BY(){}function jY(){}function VY(){}function HY(){HY=En,aY=new ZY,sY=new QY,iY=new eX,rY=new tX,Qk(new nX),nY=new Qw}function UY(e,t){var n,r,i,a,s;if(0==e.array.length)return new zPe(Cd(0),Cd(0));for(n=(Zk(0,e.array.length),Pn(e.array[0],11)).side,s=0,a=t.ordinal,r=t.ordinal+1;s=e.size_1())return null;for(n=t;n0&&(wI(l,!1,(VSe(),ASe)),wI(l,!0,DSe)),hm(t.joined,new JJ(e,n)),gy(e.verticalSegmentsMap,t,n)}function kJ(){EJ(),this.commentOffsets=new Rv,this.nodesMap=new Rv,this.verticalSegmentsMap=new Rv,this.lockMap=new Rv}function $J(){}function IJ(){}function TJ(){}function PJ(){}function MJ(){}function NJ(){}function LJ(){}function zJ(e){this.deltaX_0=e}function AJ(e){this.deltaX_0=e}function DJ(e){this.deltaX_0=e}function RJ(){}function FJ(){}function OJ(e){this.$$outer_0=e}function GJ(e){this.$$outer_0=e}function BJ(){}function jJ(){}function VJ(){}function HJ(){}function UJ(e){this.$$outer_0=e}function qJ(e,t){this.$$outer_0=e,this.vsNode_1=t}function WJ(){}function KJ(){}function YJ(){}function XJ(e){this.verticalSegments_0=e}function JJ(e,t){this.$$outer_0=e,this.cNode_1=t}function ZJ(){}function QJ(e){var t;return(t=new Jp).string+="VerticalSegment ",qp(t,e.hitbox),t.string+=" ",Wp(t,hr(new fr,new Rm(e.representedLEdges))),t.string}function eZ(e,t,n,i){var a,s,o;if(this.potentialGroupParents=new xm,this.representedLEdges=new xm,this.affectedBends=new xm,this.affectedBoundingBoxes=new xm,this.hitbox=new FEe,this.junctionPoints=new fbe,this.ignoreSpacing=new xI,this.constraints=new xm,this.joined=new xm,lm(this.affectedBends,e),lm(this.affectedBends,t),this.hitbox.x_0=r.Math.min(e.x_0,t.x_0),this.hitbox.y_0=r.Math.min(e.y_0,t.y_0),this.hitbox.width_0=r.Math.abs(e.x_0-t.x_0),this.hitbox.height=r.Math.abs(e.y_0-t.y_0),a=Pn(ez(i,(zee(),W9)),74))for(o=Gx(a,0);o.currentNode!=o.this$01.tail;)W$((s=Pn(eE(o),8)).x_0,e.x_0)&&zx(this.junctionPoints,s);n&&lm(this.potentialGroupParents,n),lm(this.representedLEdges,i)}function tZ(e,t,n){e.upperAdjacencies=aZ(e,t,(pIe(),q$e),e.easternAdjacencies),e.lowerAdjacencies=aZ(e,n,q$e,e.easternAdjacencies),0!=e.upperAdjacencies.currentSize&&0!=e.lowerAdjacencies.currentSize&&iZ(e)}function nZ(e,t,n){e.upperAdjacencies=aZ(e,t,(pIe(),gIe),e.westernAdjacencies),e.lowerAdjacencies=aZ(e,n,gIe,e.westernAdjacencies),0!=e.upperAdjacencies.currentSize&&0!=e.lowerAdjacencies.currentSize&&iZ(e)}function rZ(e,t,n){e.upperLowerCrossings=0,e.lowerUpperCrossings=0,t!=n&&(nZ(e,t,n),tZ(e,t,n))}function iZ(e){for(;0!=e.upperAdjacencies.currentSize&&0!=e.lowerAdjacencies.currentSize;)uZ(e.upperAdjacencies).position>uZ(e.lowerAdjacencies).position?(e.upperLowerCrossings+=e.upperAdjacencies.currentSize,hZ(e.lowerAdjacencies)):uZ(e.lowerAdjacencies).position>uZ(e.upperAdjacencies).position?(e.lowerUpperCrossings+=e.lowerAdjacencies.currentSize,hZ(e.upperAdjacencies)):(e.upperLowerCrossings+=cZ(e.upperAdjacencies),e.lowerUpperCrossings+=cZ(e.lowerAdjacencies),hZ(e.upperAdjacencies),hZ(e.lowerAdjacencies))}function aZ(e,t,n,r){var i,a,s,o,l;if(r.hashCodeMap.size_0+r.stringMap.size_0==0)for(o=0,l=(s=e.currentNodeOrder[e.freeLayerIndex]).length;o0&&sZ(this,this.freeLayerIndex-1,(pIe(),q$e)),this.freeLayerIndex0&&lm(e.nodesWithIncomingEdges,h),lm(e.nodes,h);d=c+(t-=i),u+=t*e.dummySize,ym(e.currentWidth,l,Cd(d)),ym(e.currentWidthPixel,l,u),e.maxWidth=r.Math.max(e.maxWidth,d),e.maxWidthPixel=r.Math.max(e.maxWidthPixel,u),e.dummyNodeCount+=t,t+=_}}(e),e.promotionStrategy=Pn(ez(t,(zee(),t7)),259),h=Pn(ez(e.masterGraph,e7),20).value_0,s=new vY,e.promotionStrategy.ordinal){case 2:case 1:mY(e,s);break;case 3:for(e.promotionStrategy=(Cte(),xte),mY(e,s),c=0,l=new Rm(e.currentWidth);l.ie.maxWidth&&(e.promotionStrategy=pte,mY(e,s));break;case 4:for(e.promotionStrategy=(Cte(),xte),mY(e,s),u=0,a=new Rm(e.currentWidthPixel);a.ie.maxWidthPixel&&(e.promotionStrategy=mte,mY(e,s));break;case 6:mY(e,new xY(Un(r.Math.ceil(e.layers.length*h/100))));break;case 5:mY(e,new EY(Un(r.Math.ceil(e.dummyNodeCount*h/100))));break;default:mY(e,s)}!function(e,t){var n,r,i,a,s,o;for(i=new xm,n=0;n<=e.maxHeight;n++)(r=new TV(t)).id_0=e.maxHeight-n,i.array[i.array.length]=r;for(o=new Rm(e.nodes);o.i=2){for(f=!0,n=Pn(Am(u=new Rm(i.ports)),11),h=null;u.i0);var t,n,r},Qn("org.eclipse.elk.alg.layered.intermediate","PartitionPreprocessor/lambda$2$Type",1547),bn(1548,1,P,VY),i.accept=function(e){var t,n;vB(t=Pn(e,18),!0),n=Y,tz(t,(zee(),O7))&&(n+=Pn(ez(t,O7),20).value_0),rz(t,O7,Cd(n))},Qn("org.eclipse.elk.alg.layered.intermediate","PartitionPreprocessor/lambda$3$Type",1548),bn(1549,1,ot,KY),i.process=function(e,t){!function(e,t){var n,r,i,a,s,o;for(sTe(t,"Port order processing",1),o=Pn(ez(e,(zee(),D7)),415),n=new Rm(e.layers);n.i0&&wI(l,!0,(VSe(),DSe)),s.type_0==(Fj(),Nj)&&vI(l),gy(e.nodesMap,s,t)):((c=(r=Pn((h=pj(s),xr(h),Do(new Qo(Bo(h.val$inputs1.iterator_0(),new Io)))),18)).source.owner)==s&&(c=r.target.owner),u=new zPe(c,tbe(HEe(s.pos),c.pos)),gy(e.commentOffsets,s,u))}(s),function(e){var t,n,i;switch((t=Pn(ez(e.layeredGraph,(zee(),T9)),216)).ordinal){case 2:n=function(e){var t,n,r,i,a,s,o,l,c,u,h,g,f,d,p;for(d=new xm,h=new Rm(e.layeredGraph.layers);h.ii.hitbox.y_0+i.hitbox.height?u.ignoreSpacing.up=!0:(u.ignoreSpacing.up=!0,u.ignoreSpacing.down=!0))),r.currentNode!=r.this$01.tail&&(t=n);u&&(a=Pn(cy(e.nodesMap,s.target.owner),56),t.y_0a.hitbox.y_0+a.hitbox.height?u.ignoreSpacing.up=!0:(u.ignoreSpacing.up=!0,u.ignoreSpacing.down=!0))}for(o=new Qo(Bo(mj(g).val$inputs1.iterator_0(),new Io));Jo(o);)0!=(s=Pn(Zo(o),18)).bendPoints.size_0&&(t=Pn(Ox(s.bendPoints),8),s.target.side==(pIe(),W$e)&&((p=new eZ(t,new ibe(t.x_0,i.hitbox.y_0),i,s)).ignoreSpacing.down=!0,p.aPort=s.target,d.array[d.array.length]=p),s.target.side==uIe&&((p=new eZ(t,new ibe(t.x_0,i.hitbox.y_0+i.hitbox.height),i,s)).ignoreSpacing.up=!0,p.aPort=s.target,d.array[d.array.length]=p))}return d}(e);break;case 3:i=new xm,ZS(YS(QS(JS(JS(new ck(null,new YE(e.layeredGraph.layers,16)),new WJ),new KJ),new YJ),new $J),new XJ(i)),n=i;break;default:throw Vg(new pd("Compaction not supported for "+t+" edges."))}(function(e,t){var n,i,a,s,o,l,c;if(0!=t.array.length){for(hw(),Xm(t.array,t.array.length,null),i=Pn(Am(a=new Rm(t)),145);a.it.hitbox.x_0){if((g=e.nNodes[t.cGroup.id_0])==(p=e.nNodes[u.cGroup.id_0]))continue;pT(mT(yT(wT(_T(new vT,1),100),g),p))}}}(this),function(e){var t,n,r,i,a,s,o;for(a=new Hx,i=new Rm(e.networkSimplexGraph.nodes);i.i1)for(t=TT((n=new MT,++e.index_0,n),e.networkSimplexGraph),o=Gx(a,0);o.currentNode!=o.this$01.tail;)s=Pn(eE(o),119),pT(mT(yT(wT(_T(new vT,1),0),t),s))}(this),AT(WT(this.networkSimplexGraph),new pTe),a=new Rm(this.compactor.cGraph.cNodes);a.io)}(e.switchDecider,n,r)&&(function(e,t,n){var r,i;zae(e.leftInLayerCounter,t,n,(pIe(),gIe)),zae(e.rightInLayerCounter,t,n,q$e),e.countCrossingsCausedByPortSwitch&&(i=Pn(ez(t,(L6(),i6)),11),r=Pn(ez(n,i6),11),Aae(e.parentCrossCounter,i,r))}(e.switchDecider,e.currentNodeOrder[t][n],e.currentNodeOrder[t][r]),s=(a=e.currentNodeOrder[t])[r],a[r]=a[n],a[n]=s,i=!0),i}function kZ(e,t){this.graphData=t,this.greedySwitchType=e}function $Z(e,t,n){var r,i,a,s;PZ(e,t)>PZ(e,n)?(r=Ej(n,(pIe(),q$e)),e.upperLowerCrossings=r.isEmpty()?0:nV(Pn(r.get_0(0),11)),s=Ej(t,gIe),e.lowerUpperCrossings=s.isEmpty()?0:nV(Pn(s.get_0(0),11))):(i=Ej(n,(pIe(),gIe)),e.upperLowerCrossings=i.isEmpty()?0:nV(Pn(i.get_0(0),11)),a=Ej(t,q$e),e.lowerUpperCrossings=a.isEmpty()?0:nV(Pn(a.get_0(0),11)))}function IZ(e,t){var n,r;for(n=0,r=Ej(e,t).iterator_0();r.hasNext_0();)n+=null!=ez(Pn(r.next_1(),11),(L6(),g6))?1:0;return n}function TZ(e){var t;return t=Pn(gm(e.ports,0),11),Pn(ez(t,(L6(),i6)),11)}function PZ(e,t){var n;return n=TZ(t),Pn(cy(e.portPositions,n),20).value_0}function MZ(e,t,n){var r,i,a;for(a=0,i=vae(t,n).iterator_0();i.hasNext_0();)r=Pn(i.next_1(),11),gy(e.portPositions,r,Cd(a++))}function NZ(e){this.layer=e,this.portPositions=new Rv,function(e){var t,n,r,i;for(r=0,i=(n=e.layer).length;r=t.length)throw Vg(new Ef("Greedy SwitchDecider: Free layer not in graph."));this.freeLayer=t[e],this.leftInLayerCounter=new Dae(r),Pae(this.leftInLayerCounter,this.freeLayer,(pIe(),gIe)),this.rightInLayerCounter=new Dae(r),Pae(this.rightInLayerCounter,this.freeLayer,q$e),this.northSouthCounter=new NZ(this.freeLayer),this.countCrossingsCausedByPortSwitch=!a&&i.hasParent&&!i.useBottomUp&&this.freeLayer[0].type_0==(Fj(),Nj),this.countCrossingsCausedByPortSwitch&&function(e,t,n){var r,i,a,s,o,l,c;o=(a=e.graphData.parentGraphData).currentNodeOrder,l=a.portPositions,e.parentCrossCounter=new Dae(l),r=(s=e.graphData.parent_0.layer.id_0)>0?o[s-1]:xg(Rj,ct,10,0,0,1),i=o[s],c=s1&&(e.size_0.y_0+=e.labelLabelSpacing)):(e.size_0.x_0+=n.x_0,e.size_0.y_0=r.Math.max(e.size_0.y_0,n.y_0),e.lLabels.array.length>1&&(e.size_0.x_0+=e.labelLabelSpacing))}function BZ(e){var t;this.lLabels=new xm,this.size_0=new nbe,this.position=new nbe,t=e.slHolder.lNode,this.layoutDirection=Pn(ez(yj(t),(zee(),E9)),108),this.labelLabelSpacing=td(Ln(VB(t,eee)))}function jZ(){jZ=En,mZ=new VZ("CENTER",0),wZ=new VZ("LEFT",1),vZ=new VZ("RIGHT",2),xZ=new VZ("TOP",3)}function VZ(e,t){nl.call(this,e,t)}bn(1776,1,ft,kZ),i.initAtEdgeLevel=function(e,t,n,r,i,a){},i.initAtNodeLevel=function(e,t,n){},i.alwaysImproves=function(){return this.greedySwitchType!=(Uie(),pie)},i.initAfterTraversal=function(){this.portPositions=xg(u1e,ie,24,this.nPorts,15,1)},i.initAtLayerLevel=function(e,t){t[e][0].layer.id_0=e},i.initAtPortLevel=function(e,t,n,r){++this.nPorts},i.isDeterministic=function(){return!0},i.minimizeCrossings=function(e,t,n,r){return bZ(this,e,t,n),function(e,t){var n,r;r=!1;do{r|=n=CZ(e,t)}while(n);return r}(this,t)},i.setFirstLayerOrder=function(e,t){var n;return bZ(this,e,n=function(e,t){return e?0:t-1}(t,e.length),t),CZ(this,n)},i.nPorts=0,Qn("org.eclipse.elk.alg.layered.intermediate.greedyswitch","GreedySwitchHeuristic",1776),bn(1902,1,{},NZ),i.lowerUpperCrossings=0,i.upperLowerCrossings=0,Qn("org.eclipse.elk.alg.layered.intermediate.greedyswitch","NorthSouthEdgeNeighbouringNodeCrossingsCounter",1902),bn(1889,1,{},zZ),i.countCrossingsCausedByPortSwitch=!1,Qn("org.eclipse.elk.alg.layered.intermediate.greedyswitch","SwitchDecider",1889),bn(101,1,{101:1},OZ),i.leftmostPort=null,i.rightmostPort=null,i.slLabels=null,Qn("org.eclipse.elk.alg.layered.intermediate.loops","SelfHyperLoop",101),bn(1888,1,{},BZ),i.id_0=0,i.labelLabelSpacing=0,Qn("org.eclipse.elk.alg.layered.intermediate.loops","SelfHyperLoopLabels",1888),bn(406,22,{3:1,36:1,22:1,406:1},VZ);var HZ,UZ,qZ,WZ,KZ,YZ,XZ=er("org.eclipse.elk.alg.layered.intermediate.loops","SelfHyperLoopLabels/Alignment",406,sl,(function(){return jZ(),Sg(yg(XZ,1),W,406,0,[mZ,wZ,vZ,xZ])}),(function(e){return jZ(),il((JZ(),HZ),e)}));function JZ(){JZ=En,HZ=rl((jZ(),Sg(yg(XZ,1),W,406,0,[mZ,wZ,vZ,xZ])))}function ZZ(e,t,n){this.lEdge=e,this.slSource=t,this.slTarget=n,lm(t.outgoingSLEdges,this),lm(n.incomingSLEdges,this)}function QZ(e){var t,n,r,i,a,s,o;for(i=new xm,r=new Qo(Bo(xj(e.lNode).val$inputs1.iterator_0(),new Io));Jo(r);)wB(n=Pn(Zo(r),18))&&lm(i,new ZZ(n,tQ(e,n.source),tQ(e,n.target)));for(o=new zy(new Ly(e.slPorts).this$01.entrySet_0().iterator_0());o.val$outerIter2.hasNext_0();)t=Pn(o.val$outerIter2.next_1(),43),(a=Pn(t.getValue(),112)).lPort.id_0=0;for(s=new zy(new Ly(e.slPorts).this$01.entrySet_0().iterator_0());s.val$outerIter2.hasNext_0();)t=Pn(s.val$outerIter2.next_1(),43),0==(a=Pn(t.getValue(),112)).lPort.id_0&&lm(e.slHyperLoops,eQ(e,a))}function eQ(e,t){var n,r,i,a,s,o,l,c;for(o=new OZ(e),Rx(n=new Hx,t,n.tail.prev,n.tail);0!=n.size_0;){for((r=Pn(0==n.size_0?null:(Jk(0!=n.size_0),jx(n,n.header.next_0)),112)).lPort.id_0=1,s=new Rm(r.outgoingSLEdges);s.i0);n++);if(n>0&&n0);t++);return t>0&&n0&&(l+=i),c[u]=s,s+=o*(l+r)}function M0(e,t,n){var r;switch(r=n[e.ordinal][t],e.ordinal){case 1:case 3:return new ibe(0,r);case 2:case 4:return new ibe(r,0);default:return null}}function N0(e,t,n){var i,a,s,o,l;for(a=e[n.ordinal],l=new Rm(t.slHyperLoops);l.i=-.01&&e.x_0<=Xe&&(e.x_0=0),e.y_0>=-.01&&e.y_0<=Xe&&(e.y_0=0),e}function F0(){}function O0(){O0=En,i0=new K0}function G0(e,t,n,r){var i,a,s;return null==e.portPenalties&&function(e,t){var n,r,i,a;for(a=t.lNode.ports,e.portPenalties=xg(u1e,ie,24,a.array.length,15,1),i=0,r=0;rc&&(l=n,u=i,c=r);t.leftmostPort=u,t.rightmostPort=l}function V0(e){var t,n;switch(t=null,n=null,function(e){var t,n,r,i,a;for(a=Or(e.slPortsBySide),pIe(),r=0,i=(n=Sg(yg(MIe,1),at,61,0,[hIe,W$e,q$e,uIe,gIe])).length;r=s)}function e1(e,t,n,i,a){var s,o,l,c,h,g,f,d,p,_,y,m,w,v,x,E;for(v=Pn(WS(ok(YS(new ck(null,new YE(t.slHyperLoops,16)),new n1(n)),new r1(n)),HC(new aS,new iS,new mS,Sg(yg(KC,1),W,132,0,[(UC(),zC)]))),14),f=u,g=ee,c=new Rm(t.lNode.ports);c.i0&&t=e.longestPath)break;a.array[a.array.length]=n}return a}function r2(e,t){var n,r;if(t.isEmpty())return hw(),hw(),Cm;for(lm(r=new xm,Cd(ee)),n=1;n(Zk(a+1,t.array.length),Pn(t.array[a+1],20)).value_0-r&&++o,lm(i,(Zk(a+o,t.array.length),Pn(t.array[a+o],20))),s+=(Zk(a+o,t.array.length),Pn(t.array[a+o],20)).value_0-r,++n;no?1:0):0!=t.incomingEdges.array.length&&0!=n.outgoingEdges.array.length?1:-1}(this,Pn(e,11),Pn(t,11))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.intermediate.preserveorder","ModelOrderPortComparator",1724),bn(783,1,{},f1),i.getCutIndexes=function(e,t){var n,i,a,s;for(a=d1(t),n=new xm,s=t.longestPath/a,i=1;i=_&&(lm(s,Cd(h)),w=r.Math.max(w,v[h-1]-g),l+=p,y+=v[h-1]-y,g=v[h-1],p=c[h]),p=r.Math.max(p,c[h]),++h;l+=p}(d=r.Math.min(1/w,1/t.dar/l))>i&&(i=d,n=s)}return n},i.guaranteeValid=function(){return!1},Qn("org.eclipse.elk.alg.layered.intermediate.wrapping","MSDCutIndexHeuristic",784),bn(1587,1,ot,t2),i.process=function(e,t){!function(e,t){var n,r,i,a;if(sTe(t,"Path-Like Graph Wrapping",1),0!=e.layers.array.length)if(null==(i=new W1(e)).maxWidth&&(i.maxWidth=V1(i,new K1)),n=td(i.maxWidth)*i.longestPath/(null==i.maxWidth&&(i.maxWidth=V1(i,new K1)),td(i.maxWidth)),i.dar>n)oTe(t);else{switch(Pn(ez(e,(zee(),dee)),335).ordinal){case 2:a=new Q1;break;case 0:a=new f1;break;default:a=new e2}if(r=a.getCutIndexes(e,i),!a.guaranteeValid())switch(Pn(ez(e,vee),336).ordinal){case 2:r=r2(i,r);break;case 1:r=n2(i,r)}!function(e,t,n){var r,i,a,s,o,l,c,u,h,g,f;if(!n.isEmpty()){for(s=0,u=0,g=Pn((r=n.iterator_0()).next_1(),20).value_0;s=n be true then the node is placed in the last layer of the drawing."),Cd(-1)),nEe),$d),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.layering.layerId"),"layering"),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node"),Cd(-1)),nEe),$d),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth"),"layering.minWidth"),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Cd(4)),nEe),$d),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth","org.eclipse.elk.layered.layering.strategy",j5),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor"),"layering.minWidth"),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Cd(2)),nEe),$d),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor","org.eclipse.elk.layered.layering.strategy",H5),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.layering.nodePromotion.strategy"),"layering.nodePromotion"),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),W5),eEe),Pte),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.layering.nodePromotion.maxIterations"),"layering.nodePromotion"),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Cd(0)),nEe),$d),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.layering.nodePromotion.maxIterations","org.eclipse.elk.layered.layering.nodePromotion.strategy",null),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.layering.coffmanGraham.layerBound"),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Cd(u)),nEe),$d),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.layering.coffmanGraham.layerBound","org.eclipse.elk.layered.layering.strategy",D5),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.strategy"),"crossingMinimization"),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),s5),eEe),S2),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness"),"crossingMinimization"),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness","org.eclipse.elk.hierarchyHandling",e5),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.semiInteractive"),"crossingMinimization"),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Zxe),Af),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.crossingMinimization.semiInteractive","org.eclipse.elk.layered.crossingMinimization.strategy",i5),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint"),"crossingMinimization"),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer."),Cd(-1)),nEe),$d),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.positionId"),"crossingMinimization"),"Position ID"),"Position within a layer that was determined by ELK Layered for a node."),Cd(-1)),nEe),$d),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold"),"crossingMinimization.greedySwitch"),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Cd(40)),nEe),$d),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.greedySwitch.type"),"crossingMinimization.greedySwitch"),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),J6),eEe),g4),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.crossingMinimization.greedySwitch.type","org.eclipse.elk.layered.crossingMinimization.strategy",Z6),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type"),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),W6),eEe),g4),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type","org.eclipse.elk.layered.crossingMinimization.strategy",K6),txe(e,"org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type","org.eclipse.elk.hierarchyHandling",Y6),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.nodePlacement.strategy"),"nodePlacement"),"Node Placement Strategy"),"Strategy for node placement."),p8),eEe),Ete),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.nodePlacement.favorStraightEdges"),"nodePlacement"),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Zxe),Af),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.nodePlacement.favorStraightEdges","org.eclipse.elk.layered.nodePlacement.strategy",a8),txe(e,"org.eclipse.elk.layered.nodePlacement.favorStraightEdges","org.eclipse.elk.layered.nodePlacement.strategy",s8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening"),"nodePlacement.bk"),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Q5),eEe),C3),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening","org.eclipse.elk.layered.nodePlacement.strategy",e8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment"),"nodePlacement.bk"),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),n8),eEe),A3),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment","org.eclipse.elk.layered.nodePlacement.strategy",r8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening"),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening","org.eclipse.elk.layered.nodePlacement.strategy",l8),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility"),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),eEe),lte),Sv(Nxe)))),txe(e,"org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility","org.eclipse.elk.layered.nodePlacement.strategy",f8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default"),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),h8),eEe),lte),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default","org.eclipse.elk.layered.nodePlacement.strategy",g8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.edgeRouting.selfLoopDistribution"),"edgeRouting"),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),m5),eEe),sne),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.edgeRouting.selfLoopOrdering"),"edgeRouting"),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),v5),eEe),dne),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.edgeRouting.splines.mode"),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),E5),eEe),Nne),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.edgeRouting.splines.mode","org.eclipse.elk.edgeRouting",b5),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor"),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor","org.eclipse.elk.edgeRouting",S5),txe(e,"org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor","org.eclipse.elk.layered.edgeRouting.splines.mode",k5),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth"),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth","org.eclipse.elk.edgeRouting",_5),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.spacing.baseValue"),"spacing"),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers"),"spacing"),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers"),"spacing"),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers"),"spacing"),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.priority.direction"),"priority"),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Cd(0)),nEe),$d),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.priority.shortness"),"priority"),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Cd(0)),nEe),$d),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.priority.straightness"),"priority"),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Cd(0)),nEe),$d),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.compaction.connectedComponents"),"compaction"),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),Zxe),Af),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.compaction.connectedComponents","org.eclipse.elk.separateConnectedComponents",!0),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.compaction.postCompaction.strategy"),"compaction.postCompaction"),"Post Compaction Strategy"),"Specifies whether and how post-process compaction is applied."),j6),eEe),X3),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.compaction.postCompaction.constraints"),"compaction.postCompaction"),"Post Compaction Constraint Calculation"),"Specifies whether and how post-process compaction is applied."),G6),eEe),_2),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.highDegreeNodes.treatment"),"highDegreeNodes"),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.highDegreeNodes.threshold"),"highDegreeNodes"),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Cd(16)),nEe),$d),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.highDegreeNodes.threshold","org.eclipse.elk.layered.highDegreeNodes.treatment",!0),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.highDegreeNodes.treeHeight"),"highDegreeNodes"),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Cd(5)),nEe),$d),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.highDegreeNodes.treeHeight","org.eclipse.elk.layered.highDegreeNodes.treatment",!0),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.strategy"),"wrapping"),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),Y8),eEe),Qne),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.additionalEdgeSpacing"),"wrapping"),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.additionalEdgeSpacing","org.eclipse.elk.layered.wrapping.strategy",I8),txe(e,"org.eclipse.elk.layered.wrapping.additionalEdgeSpacing","org.eclipse.elk.layered.wrapping.strategy",T8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.correctionFactor"),"wrapping"),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.correctionFactor","org.eclipse.elk.layered.wrapping.strategy",M8),txe(e,"org.eclipse.elk.layered.wrapping.correctionFactor","org.eclipse.elk.layered.wrapping.strategy",N8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.cutting.strategy"),"wrapping.cutting"),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),O8),eEe),L2),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.cutting.strategy","org.eclipse.elk.layered.wrapping.strategy",G8),txe(e,"org.eclipse.elk.layered.wrapping.cutting.strategy","org.eclipse.elk.layered.wrapping.strategy",B8),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.cutting.cuts"),"wrapping.cutting"),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),rEe),Ri),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.cutting.cuts","org.eclipse.elk.layered.wrapping.cutting.strategy",z8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.cutting.msd.freedom"),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),D8),nEe),$d),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.cutting.msd.freedom","org.eclipse.elk.layered.wrapping.cutting.strategy",R8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.validify.strategy"),"wrapping.validify"),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),e9),eEe),Gne),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.validify.strategy","org.eclipse.elk.layered.wrapping.strategy",t9),txe(e,"org.eclipse.elk.layered.wrapping.validify.strategy","org.eclipse.elk.layered.wrapping.strategy",n9),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.validify.forbiddenIndices"),"wrapping.validify"),"Valid Indices for Wrapping"),null),rEe),Ri),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.validify.forbiddenIndices","org.eclipse.elk.layered.wrapping.strategy",J8),txe(e,"org.eclipse.elk.layered.wrapping.validify.forbiddenIndices","org.eclipse.elk.layered.wrapping.strategy",Z8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.multiEdge.improveCuts"),"wrapping.multiEdge"),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Zxe),Af),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.multiEdge.improveCuts","org.eclipse.elk.layered.wrapping.strategy",U8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty"),"wrapping.multiEdge"),"Distance Penalty When Improving Cuts"),null),2),Qxe),od),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty","org.eclipse.elk.layered.wrapping.strategy",V8),txe(e,"org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty","org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",!0),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges"),"wrapping.multiEdge"),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Zxe),Af),Sv(Lxe)))),txe(e,"org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges","org.eclipse.elk.layered.wrapping.strategy",W8),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.edgeLabels.sideSelection"),"edgeLabels"),"Edge Label Side Selection"),"Method to decide on edge label sides."),d5),eEe),f3),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy"),"edgeLabels"),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),g5),eEe),c2),kv(Lxe,Sg(yg(sEe,1),W,175,0,[Mxe]))))),Aee((new Dee,e))},Qn("org.eclipse.elk.alg.layered.options","LayeredMetaDataProvider",827),bn(966,1,qe,Dee),i.apply_4=function(e){Aee(e)},Qn("org.eclipse.elk.alg.layered.options","LayeredOptions",966),bn(967,1,{},Ree),i.create_0=function(){return new IF},i.destroy=function(e){},Qn("org.eclipse.elk.alg.layered.options","LayeredOptions/LayeredFactory",967),bn(1343,1,{}),i.baseSpacing=0,Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder",1343),bn(762,1343,{},Bee),Qn("org.eclipse.elk.alg.layered.options","LayeredSpacings/LayeredSpacingsBuilder",762),bn(311,22,{3:1,36:1,22:1,311:1,245:1,233:1},Hee),i.create_1=function(){return Vee(this)},i.create_2=function(){return Vee(this)};var Uee,qee,Wee,Kee,Yee,Xee=er("org.eclipse.elk.alg.layered.options","LayeringStrategy",311,sl,(function(){return jee(),Sg(yg(Xee,1),W,311,0,[Iee,kee,Cee,See,Tee,$ee])}),(function(e){return jee(),il((Jee(),Uee),e)}));function Jee(){Jee=En,Uee=rl((jee(),Sg(yg(Xee,1),W,311,0,[Iee,kee,Cee,See,Tee,$ee])))}function Zee(){Zee=En,Kee=new ete("NONE",0),Yee=new ete("PORT_POSITION",1),Wee=new ete("NODE_SIZE_WHERE_SPACE_PERMITS",2),qee=new ete("NODE_SIZE",3)}function Qee(e){return e==Wee||e==qee}function ete(e,t){nl.call(this,e,t)}function tte(e){return Zee(),(e.propertyMap?e.propertyMap:(hw(),hw(),Sm)).containsKey((zee(),g7))?Pn(ez(e,g7),196):Pn(ez(yj(e),f7),196)}bn(196,22,{3:1,36:1,22:1,196:1},ete);var nte,rte,ite,ate,ste,ote,lte=er("org.eclipse.elk.alg.layered.options","NodeFlexibility",196,sl,(function(){return Zee(),Sg(yg(lte,1),W,196,0,[Kee,Yee,Wee,qee])}),(function(e){return Zee(),il((cte(),nte),e)}));function cte(){cte=En,nte=rl((Zee(),Sg(yg(lte,1),W,196,0,[Kee,Yee,Wee,qee])))}function ute(){ute=En,ote=new gte("SIMPLE",0),ite=new gte("INTERACTIVE",1),ate=new gte("LINEAR_SEGMENTS",2),rte=new gte("BRANDES_KOEPF",3),ste=new gte("NETWORK_SIMPLEX",4)}function hte(e){switch(e.ordinal){case 0:return new Soe;case 1:return new hse;case 2:return new _se;case 3:return new vle;case 4:return new Tse;default:throw Vg(new gd("No implementation is available for the node placer "+(null!=e.name_0?e.name_0:""+e.ordinal)))}}function gte(e,t){nl.call(this,e,t)}bn(312,22,{3:1,36:1,22:1,312:1,245:1,233:1},gte),i.create_1=function(){return hte(this)},i.create_2=function(){return hte(this)};var fte,dte,pte,_te,yte,mte,wte,vte,xte,Ete=er("org.eclipse.elk.alg.layered.options","NodePlacementStrategy",312,sl,(function(){return ute(),Sg(yg(Ete,1),W,312,0,[ote,ite,ate,rte,ste])}),(function(e){return ute(),il((bte(),fte),e)}));function bte(){bte=En,fte=rl((ute(),Sg(yg(Ete,1),W,312,0,[ote,ite,ate,rte,ste])))}function Cte(){Cte=En,vte=new Ste("NONE",0),pte=new Ste("NIKOLOV",1),mte=new Ste("NIKOLOV_PIXEL",2),_te=new Ste("NIKOLOV_IMPROVED",3),yte=new Ste("NIKOLOV_IMPROVED_PIXEL",4),dte=new Ste("DUMMYNODE_PERCENTAGE",5),wte=new Ste("NODECOUNT_PERCENTAGE",6),xte=new Ste("NO_BOUNDARY",7)}function Ste(e,t){nl.call(this,e,t)}bn(259,22,{3:1,36:1,22:1,259:1},Ste);var kte,$te,Ite,Tte,Pte=er("org.eclipse.elk.alg.layered.options","NodePromotionStrategy",259,sl,(function(){return Cte(),Sg(yg(Pte,1),W,259,0,[vte,pte,mte,_te,yte,dte,wte,xte])}),(function(e){return Cte(),il((Mte(),kte),e)}));function Mte(){Mte=En,kte=rl((Cte(),Sg(yg(Pte,1),W,259,0,[vte,pte,mte,_te,yte,dte,wte,xte])))}function Nte(){Nte=En,Ite=new Lte("NONE",0),$te=new Lte("NODES_AND_EDGES",1),Tte=new Lte("PREFER_EDGES",2)}function Lte(e,t){nl.call(this,e,t)}bn(372,22,{3:1,36:1,22:1,372:1},Lte);var zte,Ate,Dte,Rte=er("org.eclipse.elk.alg.layered.options","OrderingStrategy",372,sl,(function(){return Nte(),Sg(yg(Rte,1),W,372,0,[Ite,$te,Tte])}),(function(e){return Nte(),il((Fte(),zte),e)}));function Fte(){Fte=En,zte=rl((Nte(),Sg(yg(Rte,1),W,372,0,[Ite,$te,Tte])))}function Ote(){Ote=En,Ate=new Gte("INPUT_ORDER",0),Dte=new Gte("PORT_DEGREE",1)}function Gte(e,t){nl.call(this,e,t)}bn(415,22,{3:1,36:1,22:1,415:1},Gte);var Bte,jte,Vte,Hte,Ute=er("org.eclipse.elk.alg.layered.options","PortSortingStrategy",415,sl,(function(){return Ote(),Sg(yg(Ute,1),W,415,0,[Ate,Dte])}),(function(e){return Ote(),il((qte(),Bte),e)}));function qte(){qte=En,Bte=rl((Ote(),Sg(yg(Ute,1),W,415,0,[Ate,Dte])))}function Wte(){Wte=En,Hte=new Kte("UNDEFINED",0),jte=new Kte("INPUT",1),Vte=new Kte("OUTPUT",2)}function Kte(e,t){nl.call(this,e,t)}bn(446,22,{3:1,36:1,22:1,446:1},Kte);var Yte,Xte,Jte,Zte,Qte=er("org.eclipse.elk.alg.layered.options","PortType",446,sl,(function(){return Wte(),Sg(yg(Qte,1),W,446,0,[Hte,jte,Vte])}),(function(e){return Wte(),il((ene(),Yte),e)}));function ene(){ene=En,Yte=rl((Wte(),Sg(yg(Qte,1),W,446,0,[Hte,jte,Vte])))}function tne(){tne=En,Xte=new nne("EQUALLY",0),Jte=new nne("NORTH",1),Zte=new nne("NORTH_SOUTH",2)}function nne(e,t){nl.call(this,e,t)}bn(373,22,{3:1,36:1,22:1,373:1},nne);var rne,ine,ane,sne=er("org.eclipse.elk.alg.layered.options","SelfLoopDistributionStrategy",373,sl,(function(){return tne(),Sg(yg(sne,1),W,373,0,[Xte,Jte,Zte])}),(function(e){return tne(),il((one(),rne),e)}));function one(){one=En,rne=rl((tne(),Sg(yg(sne,1),W,373,0,[Xte,Jte,Zte])))}function lne(){lne=En,ane=new cne("STACKED",0),ine=new cne("SEQUENCED",1)}function cne(e,t){nl.call(this,e,t)}bn(374,22,{3:1,36:1,22:1,374:1},cne);var une,hne,gne,fne,dne=er("org.eclipse.elk.alg.layered.options","SelfLoopOrderingStrategy",374,sl,(function(){return lne(),Sg(yg(dne,1),W,374,0,[ane,ine])}),(function(e){return lne(),il((pne(),une),e)}));function pne(){pne=En,une=rl((lne(),Sg(yg(dne,1),W,374,0,[ane,ine])))}function _ne(e,t,n,r){var i;return i=r[t.ordinal][n.ordinal],td(Ln(ez(e.graph_0,i)))}function yne(e,t,n){var i,a,s,o,l;return o=e.type_0,l=t.type_0,a=Ln(Sne(e,i=n[o.ordinal][l.ordinal])),s=Ln(Sne(t,i)),r.Math.max((Qk(a),a),(Qk(s),s))}function mne(e,t,n){return _ne(e,t,n,e.nodeTypeSpacingOptionsVertical)}function wne(e,t,n){return yne(t,n,e.nodeTypeSpacingOptionsVertical)}function vne(e,t,n,r){Cg(e.nodeTypeSpacingOptionsVertical[t.ordinal],n.ordinal,r),Cg(e.nodeTypeSpacingOptionsVertical[n.ordinal],t.ordinal,r)}function xne(e,t,n,r,i){Cg(e.nodeTypeSpacingOptionsVertical[t.ordinal],n.ordinal,r),Cg(e.nodeTypeSpacingOptionsVertical[n.ordinal],t.ordinal,r),Cg(e.nodeTypeSpacingOptionsHorizontal[t.ordinal],n.ordinal,i),Cg(e.nodeTypeSpacingOptionsHorizontal[n.ordinal],t.ordinal,i)}function Ene(e,t,n){Cg(e.nodeTypeSpacingOptionsVertical[t.ordinal],t.ordinal,n)}function bne(e,t,n,r){Cg(e.nodeTypeSpacingOptionsVertical[t.ordinal],t.ordinal,n),Cg(e.nodeTypeSpacingOptionsHorizontal[t.ordinal],t.ordinal,r)}function Cne(e){var t;this.graph_0=e,t=(Fj(),Sg(yg(Bj,1),W,266,0,[Aj,zj,Nj,Dj,Lj,Mj])).length,this.nodeTypeSpacingOptionsHorizontal=wg(Axe,[$,dt],[584,146],0,[t,t],2),this.nodeTypeSpacingOptionsVertical=wg(Axe,[$,dt],[584,146],0,[t,t],2),bne(this,Aj,(zee(),ree),iee),xne(this,Aj,zj,J7,Z7),vne(this,Aj,Dj,J7),vne(this,Aj,Nj,J7),xne(this,Aj,Lj,ree,iee),bne(this,zj,K7,Y7),vne(this,zj,Dj,K7),vne(this,zj,Nj,K7),xne(this,zj,Lj,J7,Z7),Ene(this,Dj,K7),vne(this,Dj,Nj,K7),vne(this,Dj,Lj,tee),Ene(this,Nj,oee),vne(this,Nj,Lj,nee),bne(this,Lj,K7,K7),bne(this,Mj,K7,Y7),xne(this,Mj,Aj,J7,Z7),xne(this,Mj,Lj,J7,Z7),xne(this,Mj,zj,J7,Z7)}function Sne(e,t){var n,r;return r=null,tz(e,(zee(),Q7))&&(n=Pn(ez(e,Q7),94)).hasProperty(t)&&(r=n.getProperty(t)),null==r&&(r=ez(yj(e),t)),r}function kne(){kne=En,hne=new $ne("CONSERVATIVE",0),gne=new $ne("CONSERVATIVE_SOFT",1),fne=new $ne("SLOPPY",2)}function $ne(e,t){nl.call(this,e,t)}bn(302,1,{302:1},Cne),Qn("org.eclipse.elk.alg.layered.options","Spacings",302),bn(334,22,{3:1,36:1,22:1,334:1},$ne);var Ine,Tne,Pne,Mne,Nne=er("org.eclipse.elk.alg.layered.options","SplineRoutingMode",334,sl,(function(){return kne(),Sg(yg(Nne,1),W,334,0,[hne,gne,fne])}),(function(e){return kne(),il((Lne(),Ine),e)}));function Lne(){Lne=En,Ine=rl((kne(),Sg(yg(Nne,1),W,334,0,[hne,gne,fne])))}function zne(){zne=En,Mne=new Ane("NO",0),Tne=new Ane("GREEDY",1),Pne=new Ane("LOOK_BACK",2)}function Ane(e,t){nl.call(this,e,t)}bn(336,22,{3:1,36:1,22:1,336:1},Ane);var Dne,Rne,Fne,One,Gne=er("org.eclipse.elk.alg.layered.options","ValidifyStrategy",336,sl,(function(){return zne(),Sg(yg(Gne,1),W,336,0,[Mne,Tne,Pne])}),(function(e){return zne(),il((Bne(),Dne),e)}));function Bne(){Bne=En,Dne=rl((zne(),Sg(yg(Gne,1),W,336,0,[Mne,Tne,Pne])))}function jne(){jne=En,Fne=new Vne("OFF",0),One=new Vne("SINGLE_EDGE",1),Rne=new Vne("MULTI_EDGE",2)}function Vne(e,t){nl.call(this,e,t)}bn(375,22,{3:1,36:1,22:1,375:1},Vne);var Hne,Une,qne,Wne,Kne,Yne,Xne,Jne,Zne,Qne=er("org.eclipse.elk.alg.layered.options","WrappingStrategy",375,sl,(function(){return jne(),Sg(yg(Qne,1),W,375,0,[Fne,One,Rne])}),(function(e){return jne(),il((ere(),Hne),e)}));function ere(){ere=En,Hne=rl((jne(),Sg(yg(Qne,1),W,375,0,[Fne,One,Rne])))}function tre(){tre=En,Une=pve(new vve,(TF(),fF),(DW(),vW))}function nre(e,t){var n,r,i;if(!e.visited[t.id_0]){for(e.visited[t.id_0]=!0,e.active[t.id_0]=!0,r=new Qo(Bo(xj(t).val$inputs1.iterator_0(),new Io));Jo(r);)wB(n=Pn(Zo(r),18))||(i=n.target.owner,e.active[i.id_0]?lm(e.edgesToBeReversed,n):nre(e,i));e.active[t.id_0]=!1}}function rre(){tre()}function ire(){ire=En,qne=pve(new vve,(TF(),fF),(DW(),vW))}function are(e,t){var n,r,i,a,s,o,l,c;for(l=new Rm(t.ports);l.i0&&zx(e.sources,a)):(e.outdeg[s]-=c+1,e.outdeg[s]<=0&&e.indeg[s]>0&&zx(e.sinks,a))))}function sre(){ire(),this.sources=new Hx,this.sinks=new Hx}function ore(){ore=En,Wne=pve(yve(new vve,(TF(),cF),(DW(),Zq)),fF,vW)}function lre(e,t,n){var r,i,a,s;for(t.id_0=-1,s=bj(t,(Wte(),Vte)).iterator_0();s.hasNext_0();)for(i=new Rm(Pn(s.next_1(),11).outgoingEdges);i.i0&&lre(e,a,n));t.id_0=0}function cre(){ore()}function ure(){ure=En,Kne=yve(yve(yve(new vve,(TF(),cF),(DW(),Dq)),uF,oW),hF,sW)}function hre(e,t){var n;for(n=new Qo(Bo(xj(e).val$inputs1.iterator_0(),new Io));Jo(n);)if(Pn(Zo(n),18).target.owner.layer==t)return!1;return!0}function gre(e,t){var n;return n=new TV(e),t.array[t.array.length]=n,n}function fre(e,t,n){var r,i,a,s;if(!e.nodeMark[n.id_0]){for(r=new Qo(Bo(xj(n).val$inputs1.iterator_0(),new Io));Jo(r);){for(a=new Qo(Bo(mj(s=Pn(Zo(r),18).target.owner).val$inputs1.iterator_0(),new Io));Jo(a);)(i=Pn(Zo(a),18)).source.owner==t&&(e.edgeMark[i.id_0]=!0);fre(e,t,s)}e.nodeMark[n.id_0]=!0}}function dre(){ure(),this.inTopo=new ca}function pre(e){this.$$outer_0=e}function _re(e){this.$$outer_0=e}function yre(e,t,n){var r,i,a,s,o,l;for(t.id_0=1,i=t.layer,l=bj(t,(Wte(),Vte)).iterator_0();l.hasNext_0();)for(r=new Rm(Pn(l.next_1(),11).outgoingEdges);r.i=0)return i;for(a=1,s=new Rm(t.ports);s.i=_&&e.normSize[c.id_0]>d*e.dummySize||w>=n*_)&&(g.array[g.array.length]=l,l=new xm,ui(o,s),s.map_0.clear_0(),u-=h,f=r.Math.max(f,u*e.dummySize+p),u+=w,m=w,w=0,h=0,p=0);return new zPe(f,g)}function Sre(e){var t,n,r;for(r=0,n=new Qo(Bo(e.val$inputs1.iterator_0(),new Io));Jo(n);)(t=Pn(Zo(n),18)).source.owner==t.target.owner||++r;return r}function kre(e,t,n){var r,i;for(i=e.map_0.keySet_0().iterator_0();i.hasNext_0();)if(r=Pn(i.next_1(),10),fi(n,Pn(gm(t,r.id_0),15)))return r;return null}function $re(){bre()}function Ire(e){this.this$01=e}function Tre(){Tre=En,Zne=yve(yve(yve(new vve,(TF(),cF),(DW(),Dq)),uF,oW),hF,sW)}function Pre(e,t){var n,r,i,a;for(e.nodeVisited[t.id_0]=!0,lm(e.componentNodes,t),a=new Rm(t.ports);a.ie.maxWidth,n=e.widthUp+e.inDegree[e.selectedNode.id_0]*e.dummySize>e.maxWidth*e.upperLayerInfluence*e.dummySize,t||n}function Are(e){var t,n,i;for(t=Go(new Qo(Bo(xj(e).val$inputs1.iterator_0(),new Io))),n=new Qo(Bo(mj(e).val$inputs1.iterator_0(),new Io));Jo(n);)i=Go(new Qo(Bo(xj(Pn(Zo(n),18).source.owner).val$inputs1.iterator_0(),new Io))),t=r.Math.max(t,i);return Cd(t)}function Dre(e){var t,n;for(n=new Rm(e.tempLayerlessNodes);n.i0?(e.portBarycenter[c.id_0]=g/(c.incomingEdges.array.length+c.outgoingEdges.array.length),e.minBarycenter=r.Math.min(e.minBarycenter,e.portBarycenter[c.id_0]),e.maxBarycenter=r.Math.max(e.maxBarycenter,e.portBarycenter[c.id_0])):o&&(e.portBarycenter[c.id_0]=g)}}(e,t,n),0==e.inLayerPorts.array.length||function(e,t){var n,r,i,a,s,o,l,c,u,h;for(c=e.nodePositions[t.layer.id_0][t.id_0]+1,l=t.layer.nodes.array.length+1,o=new Rm(e.inLayerPorts);o.i0&&(e.barycenterState[t.layer.id_0][t.id_0].summedWeight+=OE(e.random_0,24)*Re*.07000000029802322-.03500000014901161,e.barycenterState[t.layer.id_0][t.id_0].barycenter=e.barycenterState[t.layer.id_0][t.id_0].summedWeight/e.barycenterState[t.layer.id_0][t.id_0].degree)}}function Yre(e,t,n,i,a){i?function(e,t){var n,r;for(r=new Rm(t);r.i1&&(hw(),mm(t,e.barycenterStateComparator),function(e,t){e.constraintsBetweenNonDummies&&(aie(e,t,!0),ZS(new ck(null,new YE(t,16)),new mie(e))),aie(e,t,!1)}(e.constraintResolver,t))}function Xre(e,t){return e?0:r.Math.max(0,t-1)}function Jre(e,t){return e.barycenterState[t.layer.id_0][t.id_0]}function Zre(e,t,n){this.barycenterStateComparator=new tie(this),this.constraintResolver=e,this.random_0=t,this.portDistributor=n}function Qre(e){this.node=e}bn(1355,1,pt,rre),i.getLayoutProcessorConfiguration=function(e){return Pn(e,38),Une},i.process=function(e,t){!function(e,t,n){var r,i,a,s,o,l,c,u;for(sTe(n,"Depth-first cycle removal",1),l=(c=t.layerlessNodes).array.length,e.sources=new xm,e.visited=xg(h1e,We,24,l,16,1),e.active=xg(h1e,We,24,l,16,1),e.edgesToBeReversed=new xm,a=0,o=new Rm(c);o.i0?$+1:1);for(s=new Rm(E.outgoingEdges);s.i0?$+1:1)}0==e.outdeg[c]?zx(e.sinks,_):0==e.indeg[c]&&zx(e.sources,_),++c}for(p=-1,d=1,h=new xm,I=Pn(ez(t,(L6(),p6)),228);L>0;){for(;0!=e.sinks.size_0;)P=Pn(Bx(e.sinks),10),e.mark[P.id_0]=p--,are(e,P),--L;for(;0!=e.sources.size_0;)M=Pn(Bx(e.sources),10),e.mark[M.id_0]=d++,are(e,M),--L;if(L>0){for(f=ee,w=new Rm(v);w.i=f&&(x>f&&(h.array=xg(or,g,1,0,5,1),f=x),h.array[h.array.length]=_);u=Pn(gm(h,FE(I,h.array.length)),10),e.mark[u.id_0]=d++,are(e,u),--L}}for(T=v.array.length+1,c=0;ce.mark[N]&&(vB(r,!0),rz(t,N4,(Mf(),!0)));e.indeg=null,e.outdeg=null,e.mark=null,Vx(e.sources),Vx(e.sinks),oTe(n)}(this,Pn(e,38),t)},Qn("org.eclipse.elk.alg.layered.p1cycles","GreedyCycleBreaker",1354),bn(1356,1,pt,cre),i.getLayoutProcessorConfiguration=function(e){return Pn(e,38),Wne},i.process=function(e,t){!function(e,t,n){var r,i,a,s,o,l,c,u,h,f,d,p;for(sTe(n,"Interactive cycle breaking",1),u=new xm,f=new Rm(t.layerlessNodes);f.i0&&lre(e,o,u);for(i=new Rm(u);i.i=E||!hre(m,r))&&(r=gre(t,u)),$j(m,r),a=new Qo(Bo(mj(m).val$inputs1.iterator_0(),new Io));Jo(a);)i=Pn(Zo(a),18),e.edgeMark[i.id_0]||(_=i.source.owner,--e.outDeg[_.id_0],0==e.outDeg[_.id_0]&&i$(PE(d,_)));for(c=u.array.length-1;c>=0;--c)lm(t.layers,(Zk(c,u.array.length),Pn(u.array[c],29)));t.layerlessNodes.array=xg(or,g,1,0,5,1),oTe(n)}else oTe(n)}(this,Pn(e,38),t)},Qn("org.eclipse.elk.alg.layered.p2layers","CoffmanGrahamLayerer",1359),bn(1360,1,He,pre),i.compare_1=function(e,t){return function(e,t,n){var r,i,a,s,o,l;for(r=Pn(jr(e.inTopo,t),14),i=Pn(jr(e.inTopo,n),14),a=r.listIterator_1(r.size_1()),s=i.listIterator_1(i.size_1());a.hasPrevious()&&s.hasPrevious();)if((o=Pn(a.previous_0(),20))!=(l=Pn(s.previous_0(),20)))return md(o.value_0,l.value_0);return a.hasNext_0()||s.hasNext_0()?a.hasNext_0()?1:-1:0}(this.$$outer_0,Pn(e,10),Pn(t,10))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p2layers","CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1360),bn(1361,1,He,_re),i.compare_1=function(e,t){return n=this.$$outer_0,r=Pn(e,10),i=Pn(t,10),-md(n.topoOrd[r.id_0],n.topoOrd[i.id_0]);var n,r,i},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p2layers","CoffmanGrahamLayerer/lambda$1$Type",1361),bn(1362,1,pt,mre),i.getLayoutProcessorConfiguration=function(e){return Pn(e,38),yve(yve(yve(new vve,(TF(),cF),(DW(),Zq)),uF,oW),hF,sW)},i.process=function(e,t){!function(e,t,n){var i,a,s,o,l,c,u,h,f,d,p,_,y,m,w;for(sTe(n,"Interactive node layering",1),i=new xm,p=new Rm(t.layerlessNodes);p.i=c){Jk(w.i>0),w.this$01.get_0(w.last=--w.i);break}y.end>u&&(a?(um(a.nodes,y.nodes),a.end=r.Math.max(a.end,y.end),ky(w)):(lm(y.nodes,f),y.start_0=r.Math.min(y.start_0,u),y.end=r.Math.max(y.end,c),a=y))}a||((a=new wre).start_0=u,a.end=c,Iy(w,a),lm(a.nodes,f))}for(l=t.layers,h=0,m=new Rm(i);m.i1)for(_=xg(u1e,ie,24,e.layeredGraph.layers.array.length,15,1),h=0,u=new Rm(e.layeredGraph.layers);u.it.id_0?-1:0}(Pn(e,10),Pn(t,10))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p2layers","StretchWidthLayerer/1",1364),bn(451,1,_t),i.initAtEdgeLevel=function(e,t,n,r,i,a){},i.distributePortsWhileSweeping=function(e,t,n){return Hre(this,e,t,n)},i.initAfterTraversal=function(){this.portRanks=xg(p1e,yt,24,this.nPorts,15,1),this.portBarycenter=xg(p1e,yt,24,this.nPorts,15,1)},i.initAtLayerLevel=function(e,t){this.nodePositions[e]=xg(u1e,ie,24,t[e].length,15,1)},i.initAtNodeLevel=function(e,t,n){n[e][t].id_0=t,this.nodePositions[e][t]=t},i.initAtPortLevel=function(e,t,n,r){Pn(gm(r[e][t].ports,n),11).id_0=this.nPorts++},i.maxBarycenter=0,i.minBarycenter=0,i.nPorts=0,Qn("org.eclipse.elk.alg.layered.p3order","AbstractBarycenterPortDistributor",451),bn(1603,1,He,Wre),i.compare_1=function(e,t){return n=this.$$outer_0,r=Pn(e,11),i=Pn(t,11),(o=r.side)!=(l=i.side)?o.ordinal-l.ordinal:(a=n.portBarycenter[r.id_0],s=n.portBarycenter[i.id_0],0==a&&0==s?0:0==a?-1:0==s?1:ad(a,s));var n,r,i,a,s,o,l},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p3order","AbstractBarycenterPortDistributor/lambda$0$Type",1603),bn(1774,1,ft,Zre),i.initAtEdgeLevel=function(e,t,n,r,i,a){},i.initAtNodeLevel=function(e,t,n){},i.initAtPortLevel=function(e,t,n,r){},i.alwaysImproves=function(){return!1},i.initAfterTraversal=function(){this.barycenterState=this.constraintResolver.barycenterStates,this.portRanks=this.portDistributor.portRanks},i.initAtLayerLevel=function(e,t){t[e][0].layer.id_0=e},i.isDeterministic=function(){return!1},i.minimizeCrossings=function(e,t,n,r){var i,a,s,o,l,c,u;for(t!=Xre(n,e.length)&&(a=e[t-(n?1:-1)],Gre(this.portDistributor,a,n?(Wte(),Vte):(Wte(),jte))),i=e[t][0],u=!r||i.type_0==(Fj(),Nj),Yre(this,c=Zl(e[t]),u,!1,n),s=0,l=new Rm(c);l.i0&&0==n.incomingConstraintsCount&&(!t&&(t=new xm),t.array[t.array.length]=n);if(t)for(;0!=t.array.length;){if((n=Pn(dm(t,0),232)).incomingConstraints&&n.incomingConstraints.array.length>0)for(!n.incomingConstraints&&(n.incomingConstraints=new xm),a=new Rm(n.incomingConstraints);a.ifm(e,n,0))return new zPe(i,n)}else if(td(sie(i.this$01,i.nodes[0]).barycenter)>td(sie(n.this$01,n.nodes[0]).barycenter))return new zPe(i,n);for(o=(!n.outgoingConstraints&&(n.outgoingConstraints=new xm),n.outgoingConstraints).iterator_0();o.hasNext_0();)!(s=Pn(o.next_1(),232)).incomingConstraints&&(s.incomingConstraints=new xm),t$(0,(l=s.incomingConstraints).array.length),Rk(l.array,0,n),s.incomingConstraintsCount==l.array.length&&(t.array[t.array.length]=s)}return null}function rie(e,t,n,r){var i,a,s,o,l,c;for(s=new hie(e,t,n),l=new Ty(r,0),i=!1;l.itd(sie(s.this$01,s.nodes[0]).barycenter)?(Jk(l.i>0),l.this$01.get_0(l.last=--l.i),Iy(l,s),i=!0):o.outgoingConstraints&&o.outgoingConstraints.size_1()>0&&(a=(!o.outgoingConstraints&&(o.outgoingConstraints=new xm),o.outgoingConstraints).remove_1(t),c=(!o.outgoingConstraints&&(o.outgoingConstraints=new xm),o.outgoingConstraints).remove_1(n),(a||c)&&((!o.outgoingConstraints&&(o.outgoingConstraints=new xm),o.outgoingConstraints).add_2(s),++s.incomingConstraintsCount));i||(r.array[r.array.length]=s)}function iie(e,t,n){var r,i,a;r=t.layer.id_0,a=t.id_0,e.constraintGroups[r][a]=new uie(e,t),n&&(e.barycenterStates[r][a]=new Qre(t),(i=Pn(ez(t,(L6(),W4)),10))&&Vr(e.layoutUnits,i,t))}function aie(e,t,n){var r,i,a,s,o,l,c,u,h;for(a=new Em(t.array.length),c=new Rm(t);c.i0&&e[0].length>0&&(this.constraintsBetweenNonDummies=Nf(Nn(ez(yj(e[0][0]),(L6(),Y4))))),this.barycenterStates=xg(eie,$,1987,e.length,0,2),this.constraintGroups=xg(yie,$,1988,e.length,0,2),this.layoutUnits=new pl}function lie(e){return!e.outgoingConstraints&&(e.outgoingConstraints=new xm),e.outgoingConstraints}function cie(e,t){var n,r,i,a;for(i=0,a=(r=e.nodes).length;i0?cie(this,this.summedWeight/this.degree):null!=sie(t.this$01,t.nodes[0]).barycenter&&null!=sie(n.this$01,n.nodes[0]).barycenter?cie(this,(td(sie(t.this$01,t.nodes[0]).barycenter)+td(sie(n.this$01,n.nodes[0]).barycenter))/2):null!=sie(t.this$01,t.nodes[0]).barycenter?cie(this,sie(t.this$01,t.nodes[0]).barycenter):null!=sie(n.this$01,n.nodes[0]).barycenter&&cie(this,sie(n.this$01,n.nodes[0]).barycenter)}bn(1775,1,He,tie),i.compare_1=function(e,t){return n=this.$$outer_0,r=Pn(e,10),i=Pn(t,10),a=n.barycenterState[r.layer.id_0][r.id_0],s=n.barycenterState[i.layer.id_0][i.id_0],null!=a.barycenter&&null!=s.barycenter?ed(a.barycenter,s.barycenter):null!=a.barycenter?-1:null!=s.barycenter?1:0;var n,r,i,a,s},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p3order","BarycenterHeuristic/lambda$0$Type",1775),bn(1768,1,ft,oie),i.initAfterTraversal=function(){},i.initAtEdgeLevel=function(e,t,n,r,i,a){},i.initAtPortLevel=function(e,t,n,r){},i.initAtLayerLevel=function(e,t){this.barycenterStates[e]=xg(eie,{3:1,4:1,5:1,1987:1},647,t[e].length,0,1),this.constraintGroups[e]=xg(yie,{3:1,4:1,5:1,1988:1},232,t[e].length,0,1)},i.initAtNodeLevel=function(e,t,n){iie(this,n[e][t],!0)},i.constraintsBetweenNonDummies=!1,Qn("org.eclipse.elk.alg.layered.p3order","ForsterConstraintResolver",1768),bn(232,1,{232:1},uie,hie),i.toString_0=function(){var e,t,n;for((t=new Jp).string+="[",e=0;e"),e=n}(this.layerSweepTypeDecider)}function Eie(e,t,n,r){var i,a,s,o,l;o=Ej(t,n),(n==(pIe(),uIe)||n==gIe)&&(o=Fn(o,151)?ds(Pn(o,151)):Fn(o,131)?Pn(o,131).forwardList:Fn(o,53)?new lc(o):new oc(o)),s=!1;do{for(i=!1,a=0;aa}function Cie(){}function Sie(){Sie=En,gie=pve(yve(yve(new vve,(TF(),hF),(DW(),uW)),gF,eW),fF,cW)}function kie(e,t){var n,r,i,a,s,o,l,c,u,h,g;switch(e.type_0.ordinal){case 1:if(r=Pn(ez(e,(L6(),i6)),18),(n=Pn(ez(r,a6),74))?Nf(Nn(ez(r,y6)))&&(n=_be(n)):n=new fbe,c=Pn(ez(e,Q4),11)){if(t<=(u=obe(Sg(yg(lbe,1),$,8,0,[c.owner.pos,c.pos,c.anchor]))).x_0)return u.y_0;Rx(n,u,n.header,n.header.next_0)}if(h=Pn(ez(e,e6),11)){if((g=obe(Sg(yg(lbe,1),$,8,0,[h.owner.pos,h.pos,h.anchor]))).x_0<=t)return g.y_0;Rx(n,g,n.tail.prev,n.tail)}if(n.size_0>=2){for(s=Pn(eE(l=Gx(n,0)),8),o=Pn(eE(l),8);o.x_0n);return i}function Lie(e,t,n){var r,i,a,s,o;sTe(n,"Minimize Crossings "+e.crossMinType,1),r=0==t.layers.array.length||!lk(YS(new ck(null,new YE(t.layers,16)),new vC(new Xie))).tryAdvance((US(),VS)),o=1==t.layers.array.length&&1==Pn(gm(t.layers,0),29).nodes.array.length,a=Hn(ez(t,(zee(),F9)))===Hn((Oke(),Pke)),r||o&&!a||(function(e,t){var n,r;for(r=Gx(e,0);r.currentNode!=r.this$01.tail;)(n=Pn(eE(r),231)).currentNodeOrder.length>0&&(t.accept(n),n.hasParent&&Die(n))}(i=function(e,t){var n,r,i,a,s;for(e.graphInfoHolders=new xm,e.random_0=Pn(ez(t,(L6(),p6)),228),e.randomSeed=function(e){return Hg(of(Xg(OE(e,32)),32),Xg(OE(e,32)))}(e.random_0),a=new Hx,i=Zl(Sg(yg(IB,1),st,38,0,[t])),s=0;s=0;i+=n?1:-1)a|=t.crossMinimizer.minimizeCrossings(o,i,n,r&&!Nf(Nn(ez(t.lGraph,(L6(),B4))))),a|=t.portDistributor.distributePortsWhileSweeping(o,i,n),a|=Oie(e,o[i],n,r);return Gv(e.graphsWhoseNodeOrderChanged,t),a}function Bie(e){Tie(),this.crossMinType=e}function jie(e){this.$$outer_0=e}function Vie(e){this.$$outer_0=e}function Hie(e){this.$$outer_0=e}function Uie(){Uie=En,die=new qie("BARYCENTER",0),pie=new qie("ONE_SIDED_GREEDY_SWITCH",1),_ie=new qie("TWO_SIDED_GREEDY_SWITCH",2)}function qie(e,t){nl.call(this,e,t)}bn(1769,1,P,mie),i.accept=function(e){iie(this.$$outer_0,Pn(e,10),!1)},Qn("org.eclipse.elk.alg.layered.p3order","ForsterConstraintResolver/lambda$0$Type",1769),bn(231,1,{231:1,235:1},xie),i.initAtEdgeLevel=function(e,t,n,r,i,a){},i.initAtLayerLevel=function(e,t){},i.initAfterTraversal=function(){this.portPositions=xg(u1e,ie,24,this.nPorts,15,1)},i.initAtNodeLevel=function(e,t,n){var r;(r=n[e][t].nestedGraph)&&lm(this.childGraphs,r)},i.initAtPortLevel=function(e,t,n,r){++this.nPorts},i.toString_0=function(){return Om(this.currentNodeOrder,new Vv)},i.hasExternalPorts=!1,i.hasParent=!1,i.nPorts=0,i.useBottomUp=!1,Qn("org.eclipse.elk.alg.layered.p3order","GraphInfoHolder",231),bn(1804,1,ft,Cie),i.initAtEdgeLevel=function(e,t,n,r,i,a){},i.initAtLayerLevel=function(e,t){},i.initAtPortLevel=function(e,t,n,r){},i.distributePortsWhileSweeping=function(e,t,n){return n&&t>0?Iae(this.crossingsCounter,e[t-1],e[t]):!n&&t0&&(n+=l.pos.x_0+l.size_0.x_0/2,++h),d=new Rm(l.ports);d.i0&&(n/=h),y=xg(d1e,xe,24,r.nodes.array.length,15,1),o=0,c=new Rm(r.nodes);c.ii.id_0?(sV(a,uIe),a.explicitlySuppliedPortAnchor&&(o=a.size_0.y_0,t=a.anchor.y_0,a.anchor.y_0=o-t)):a.side==uIe&&i.id_0>e.id_0&&(sV(a,W$e),a.explicitlySuppliedPortAnchor&&(o=a.size_0.y_0,t=a.anchor.y_0,a.anchor.y_0=-(o-t)));break}return i}function lae(e){var t,n,r,i,a;if(null==e)return null;for(n=xg(Rj,$,213,e.length,0,2),t=0;t0&&(e.portPos[H.id_0]=Q++)}for(ae=0,A=0,F=(N=n).length;A0;){for(Jk(K.i>0),W=0,l=new Rm((H=Pn(K.this$01.get_0(K.last=--K.i),11)).incomingEdges);l.i0&&(H.side==(pIe(),W$e)?(e.portPos[H.id_0]=ae,++ae):(e.portPos[H.id_0]=ae+O+B,++B))}ae+=B}for(q=new Rv,_=new Tx,L=0,D=(P=t).length;Lu.lowerLeft&&(u.lowerLeft=Y)):H.owner.layer==Z&&(Yu.lowerRight&&(u.lowerRight=Y));for(Km(y,0,y.length,null),re=xg(u1e,ie,24,y.length,15,1),i=xg(u1e,ie,24,ae+1,15,1),w=0;w0;)S%2>0&&(a+=le[S+1]),++le[S=(S-1)/2|0];for($=xg(Qae,g,359,2*y.length,0,1),E=0;Ee.portPositions[i.id_0]&&(n+=yae(e.indexTree,r)*Pn(s.second,20).value_0,Hy(e.ends,Cd(r)));for(;!Xy(e.ends);)pae(e.indexTree,Pn(Zy(e.ends),20).value_0)}return n}(e,n)}(e.crossingCounter,i)),s}function dae(e){this.inLayerEdgeCounts=xg(u1e,ie,24,e.length,15,1),this.hasNorthSouthPorts=xg(h1e,We,24,e.length,16,1),this.hasHyperEdgesEastOfIndex=xg(h1e,We,24,e.length,16,1),this.nPorts=0}function pae(e,t){var n;for(++e.size_0,++e.numsPerIndex[t],n=t+1;n0;)r+=e.binarySums[n],n-=n&-n;return r}function mae(e,t){var n,r;if(0!=(r=e.numsPerIndex[t]))for(e.numsPerIndex[t]=0,e.size_0-=r,n=t+1;ne.portPositions[s.id_0]&&(n+=yae(e.indexTree,a),Hy(e.ends,Cd(a)));for(;!Xy(e.ends);)pae(e.indexTree,Pn(Zy(e.ends),20).value_0)}return n}function Cae(e,t,n,r){var i,a,s;return s=Sae(e,a=function(e,t,n,r){var i,a,s,o,l,c,u,h;for(h=new pC(new Oae(e)),o=0,l=(s=Sg(yg(Rj,1),ct,10,0,[t,n])).length;oe.portPositions[o.id_0]&&(n+=yae(e.indexTree,a),Hy(e.ends,Cd(a))):++s;for(n+=e.indexTree.size_0*s;!Xy(e.ends);)pae(e.indexTree,Pn(Zy(e.ends),20).value_0)}return n}function kae(e,t,n){return Sae(e,Pae(e,t,n))}function $ae(e,t,n,r,i){var a,s,o;for(s=i;t.head!=t.tail;)a=Pn(Zy(t),10),o=Pn(Ej(a,r).get_0(0),11),e.portPositions[o.id_0]=s++,n.array[n.array.length]=o;return s}function Iae(e,t,n){var r;r=Tae(e,t,n),e.indexTree=new wae(r.array.length)}function Tae(e,t,n){var r;return Mae(e,t,r=new xm,(pIe(),q$e),!0,!1),Mae(e,n,r,gIe,!1,!1),r}function Pae(e,t,n){var r;return Mae(e,t,r=new xm,n,!0,!0),e.indexTree=new wae(r.array.length),r}function Mae(e,t,n,r,i,a){var s,o,l,c,u,h;for(c=n.array.length,a&&(e.nodeCardinalities=xg(u1e,ie,24,t.length,15,1)),s=i?0:t.length-1;i?s=0;s+=i?1:-1){for(o=t[s],l=r==(pIe(),q$e)?i?Ej(o,r):nc(Ej(o,r)):i?nc(Ej(o,r)):Ej(o,r),a&&(e.nodeCardinalities[o.id_0]=l.size_1()),h=l.iterator_0();h.hasNext_0();)u=Pn(h.next_1(),11),e.portPositions[u.id_0]=c++;um(n,l)}}function Nae(e){return e.source.owner.layer==e.target.owner.layer}function Lae(e,t){return e.portPositions[t.id_0]}function zae(e,t,n,r){var i,a,s;for(s=vae(t,r).iterator_0();s.hasNext_0();)i=Pn(s.next_1(),11),e.portPositions[i.id_0]=e.portPositions[i.id_0]+e.nodeCardinalities[n.id_0];for(a=vae(n,r).iterator_0();a.hasNext_0();)i=Pn(a.next_1(),11),e.portPositions[i.id_0]=e.portPositions[i.id_0]-e.nodeCardinalities[t.id_0]}function Aae(e,t,n){var r;r=e.portPositions[t.id_0],e.portPositions[t.id_0]=e.portPositions[n.id_0],e.portPositions[n.id_0]=r}function Dae(e){xae(),this.portPositions=e,this.ends=new em}function Rae(e){this.$$outer_0=e}function Fae(e){this.$$outer_0=e}function Oae(e){this.$$outer_0=e}function Gae(e){this.$$outer_0=e}function Bae(e){this.targetsAndDegrees_0=e}function jae(e){this.port_0=e}function Vae(e,t){var n,r;n=e.targetsAndDegrees_0,r=Pn(t,11),xae(),lm(n,new zPe(r,Cd(r.incomingEdges.array.length+r.outgoingEdges.array.length)))}function Hae(e){this.targetsAndDegrees_0=e}function Uae(e,t){this.stack_0=e,this.current_1=t}function qae(){}function Wae(e){this.portPos=e}function Kae(){this.edges=new xm,this.ports=new xm}bn(1772,1,Ue,rae),i.apply_1=function(e){return mV(new wV(Pn(e,11).connectedEdges))},i.equals_0=function(e){return this===e},i.test_0=function(e){return mV(new wV(Pn(e,11).connectedEdges))},Qn("org.eclipse.elk.alg.layered.p3order","LayerSweepTypeDecider/lambda$0$Type",1772),bn(1773,1,Ue,iae),i.apply_1=function(e){return mV(new wV(Pn(e,11).connectedEdges))},i.equals_0=function(e){return this===e},i.test_0=function(e){return mV(new wV(Pn(e,11).connectedEdges))},Qn("org.eclipse.elk.alg.layered.p3order","LayerSweepTypeDecider/lambda$1$Type",1773),bn(1805,451,_t,aae),i.calculatePortRanks=function(e,t,n){var r,i,a,s,o,l,c,u,h;switch(c=this.portRanks,n.ordinal){case 1:for(r=0,i=0,l=new Rm(e.ports);l.i1&&(i.side==(pIe(),q$e)?this.hasHyperEdgesEastOfIndex[e]=!0:i.side==gIe&&e>0&&(this.hasHyperEdgesEastOfIndex[e-1]=!0))},i.nPorts=0,Qn("org.eclipse.elk.alg.layered.p3order.counting","AllCrossingsCounter",1770),bn(578,1,{},wae),i.maxNum=0,i.size_0=0,Qn("org.eclipse.elk.alg.layered.p3order.counting","BinaryIndexedTree",578),bn(517,1,{},Dae),Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter",517),bn(1878,1,He,Rae),i.compare_1=function(e,t){return n=this.$$outer_0,r=Pn(e,11),i=Pn(t,11),md(n.portPositions[r.id_0],n.portPositions[i.id_0]);var n,r,i},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$0$Type",1878),bn(1879,1,He,Fae),i.compare_1=function(e,t){return n=this.$$outer_0,r=Pn(e,11),i=Pn(t,11),md(n.portPositions[r.id_0],n.portPositions[i.id_0]);var n,r,i},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$1$Type",1879),bn(1880,1,He,Oae),i.compare_1=function(e,t){return n=this.$$outer_0,r=Pn(e,11),i=Pn(t,11),md(n.portPositions[r.id_0],n.portPositions[i.id_0]);var n,r,i},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$2$Type",1880),bn(1881,1,He,Gae),i.compare_1=function(e,t){return n=this.$$outer_0,r=Pn(e,11),i=Pn(t,11),md(n.portPositions[r.id_0],n.portPositions[i.id_0]);var n,r,i},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$3$Type",1881),bn(1882,1,P,Bae),i.accept=function(e){var t,n;t=this.targetsAndDegrees_0,n=Pn(e,11),xae(),lm(t,new zPe(n,Cd(n.incomingEdges.array.length+n.outgoingEdges.array.length)))},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$4$Type",1882),bn(1883,1,J,jae),i.test_0=function(e){return t=this.port_0,n=Pn(e,11),xae(),n!=t;var t,n},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$5$Type",1883),bn(1884,1,P,Hae),i.accept=function(e){Vae(this,e)},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$6$Type",1884),bn(1885,1,P,Uae),i.accept=function(e){var t;xae(),Hy(this.stack_0,(t=this.current_1,Pn(e,11),t))},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$7$Type",1885),bn(805,1,Ue,qae),i.apply_1=function(e){return xae(),tz(Pn(e,11),(L6(),g6))},i.equals_0=function(e){return this===e},i.test_0=function(e){return xae(),tz(Pn(e,11),(L6(),g6))},Qn("org.eclipse.elk.alg.layered.p3order.counting","CrossingsCounter/lambda$8$Type",805),bn(1877,1,{},Wae),Qn("org.eclipse.elk.alg.layered.p3order.counting","HyperedgeCrossingsCounter",1877),bn(461,1,{36:1,461:1},Kae),i.compareTo_0=function(e){return function(e,t){return e.upperLeftt.upperLeft?1:e.upperRightt.upperRight?1:In(e)-In(t)}(this,Pn(e,461))},i.lowerLeft=0,i.lowerRight=0,i.upperLeft=0,i.upperRight=0;var Yae=Qn("org.eclipse.elk.alg.layered.p3order.counting","HyperedgeCrossingsCounter/Hyperedge",461);function Xae(e,t,n,r){this.hyperedge=e,this.position=t,this.oppositePosition=n,this.type_0=r}bn(359,1,{36:1,359:1},Xae),i.compareTo_0=function(e){return function(e,t){return e.positiont.position?1:e.oppositePositiont.oppositePosition?1:e.hyperedge!=t.hyperedge?In(e.hyperedge)-In(t.hyperedge):e.type_0==(ese(),Zae)&&t.type_0==Jae?-1:e.type_0==Jae&&t.type_0==Zae?1:0}(this,Pn(e,359))},i.oppositePosition=0,i.position=0;var Jae,Zae,Qae=Qn("org.eclipse.elk.alg.layered.p3order.counting","HyperedgeCrossingsCounter/HyperedgeCorner",359);function ese(){ese=En,Zae=new tse("UPPER",0),Jae=new tse("LOWER",1)}function tse(e,t){nl.call(this,e,t)}bn(516,22,{3:1,36:1,22:1,516:1},tse);var nse,rse,ise,ase,sse,ose=er("org.eclipse.elk.alg.layered.p3order.counting","HyperedgeCrossingsCounter/HyperedgeCorner/Type",516,sl,(function(){return ese(),Sg(yg(ose,1),W,516,0,[Zae,Jae])}),(function(e){return ese(),il((lse(),nse),e)}));function lse(){lse=En,nse=rl((ese(),Sg(yg(ose,1),W,516,0,[Zae,Jae])))}function cse(){cse=En,rse=yve(new vve,(TF(),fF),(DW(),qq))}function use(e,t){var n,i,a,s,o,l,c;for(n=_e,Fj(),l=Aj,a=new Rm(t.nodes);a.i=u&&E>=y&&(f+=p.pos.y_0+_.pos.y_0+_.anchor.y_0-x,++l));if(n)for(o=new Rm(w.incomingEdges);o.i=u&&E>=y&&(f+=p.pos.y_0+_.pos.y_0+_.anchor.y_0-x,++l))}l>0&&(b+=f/l,++d)}d>0?(t.deflection=a*b/d,t.weight=d):(t.deflection=0,t.weight=0)}function dse(e,t,n){var r,i,a,s,o;if(r=t.type_0,t.id_0>=0)return!1;if(t.id_0=n.id_0,lm(n.nodes,t),r==(Fj(),zj)||r==Dj)for(i=new Rm(t.ports);i.is.pos.y_0-s.margin.top_0+u.deflection+g&&(f=c.weight+u.weight,u.deflection=(u.weight*u.deflection+c.weight*c.deflection)/f,u.weight=f,c.refSegment=u,n=!0)),a=s,c=u;return n}function _se(){gse()}function yse(e){var t;for(t=e;t.refSegment;)t=t.refSegment;return t}function mse(e,t,n){var r,i,a,s;for(s=fm(e.nodes,t,0),(a=new wse).id_0=n,r=new Ty(e.nodes,s);r.i=0){for(l=null,o=new Ty(u.nodes,c+1);o.i0&&c[i]&&(p=wne(e.spacings,c[i],a)),_=r.Math.max(_,a.layer.size_0.y_0+p);for(s=new Rm(h.nodes);s.iE)?(c=2,o=u):0==c?(c=1,o=C):(c=0,o=C):(d=C>=o||o-C0?(g=Pn(gm(f.layer.nodes,s-1),10),S=wne(e.spacings,f,g),y=f.pos.y_0-f.margin.top_0-(g.pos.y_0+g.size_0.y_0+g.margin.bottom+S)):y=f.pos.y_0-f.margin.top_0,c=r.Math.min(y,c),s0&&(a=Pn(gm(y.layer.nodes,b-1),10),o=e.nodeReps[a.id_0],S=r.Math.ceil(wne(e.spacings,a,y)),s=E.head.layer-y.margin.top_0-(o.head.layer+a.size_0.y_0+a.margin.bottom)-S),u=pe,b0&&C.left.target.layer-C.left.delta-(C.right.target.layer-C.right.delta)<0,p=v.left.target.layer-v.left.delta-(v.right.target.layer-v.right.delta)<0&&C.left.target.layer-C.left.delta-(C.right.target.layer-C.right.delta)>0,d=v.left.target.layer+v.right.deltaC.right.target.layer+C.left.delta,x=0,!_&&!p&&(f?s+g>0?x=g:u-i>0&&(x=i):d&&(s+l>0?x=l:u-w>0&&(x=w))),E.head.layer+=x,E.isFlexible&&(E.tail.layer+=x),1)))}function kse(e,t,n){var i,a,s,o,l,c,u;if(sTe(n,"Network simplex node placement",1),e.lGraph=t,e.spacings=Pn(ez(t,(L6(),w6)),302),function(e){var t,n,i,a,s,o,l,c,u,h,f,d;for(e.nGraph=new ET,l=0,i=0,a=new Rm(e.lGraph.layers);a.i=c.this$01.array.length?Cse((Fj(),Aj),zj):Cse((Fj(),zj),zj),u*=2,a=n.left.weight,n.left.weight=r.Math.max(a,a+(u-a)),s=n.right.weight,n.right.weight=r.Math.max(s,s+(u-s)),i=t}else Vse(o),Pse((Zk(0,o.array.length),Pn(o.array[0],18)).target.owner)||lm(e.twoPaths,o)}(e),oTe(s)),function(e){var t,n,r,i;for(n=0,r=new Rm(e.nodes);r.i1&&(i=function(e,t){var n,r,i;for(n=TT(new MT,e),i=new Rm(t);i.ie.size_0.y_0)return!1;if(n=Ej(e,q$e),t.top_0+t.bottom+(n.size_1()-1)*i>e.size_0.y_0)return!1}return!0}function Mse(e){return r.Math.abs(e.source.layer-e.target.layer)-e.delta}function Nse(){}function Lse(){}function zse(e,t){this.left=e,this.right=t}bn(1377,1,pt,Tse),i.getLayoutProcessorConfiguration=function(e){return Pn(ez(Pn(e,38),(L6(),j4)),21).contains((Z3(),V3))?vse:null},i.process=function(e,t){kse(this,Pn(e,38),t)},i.edgeCount=0,i.nodeCount=0,Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer",1377),bn(1396,1,He,Nse),i.compare_1=function(e,t){return md(Pn(e,20).value_0,Pn(t,20).value_0)},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/0methodref$compare$Type",1396),bn(1398,1,He,Lse),i.compare_1=function(e,t){return md(Pn(e,20).value_0,Pn(t,20).value_0)},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/1methodref$compare$Type",1398),bn(639,1,{639:1},zse);var Ase=Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/EdgeRep",639);function Dse(e,t,n,r){this.origin_0=e,this.isFlexible=t,this.head=n,this.tail=r}bn(397,1,{397:1},Dse),i.isFlexible=!1;var Rse,Fse,Ose,Gse=Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/NodeRep",397);function Bse(e,t){var n;return 0!=e.array.length&&(n=tte((Zk(0,e.array.length),Pn(e.array[0],18)).source.owner),Ese(),n==(Zee(),Wee)||n==qee||qS(QS(new ck(null,new YE(e,16)),new Wse),new Kse(t)))}function jse(e){return 0!=e.array.length&&((Zk(0,e.array.length),Pn(e.array[0],18)).source.owner.type_0==(Fj(),zj)||qS(QS(new ck(null,new YE(e,16)),new Use),new qse))}function Vse(e){var t,n;if(2!=e.array.length)throw Vg(new pd("Order only allowed for two paths."));Zk(0,e.array.length),t=Pn(e.array[0],18),Zk(1,e.array.length),n=Pn(e.array[1],18),t.target.owner!=n.source.owner&&(e.array=xg(or,g,1,0,5,1),e.array[e.array.length]=n,e.array[e.array.length]=t)}function Hse(){xm.call(this)}function Use(){}function qse(){}function Wse(){}function Kse(e){this.p_0=e}function Yse(){}function Xse(e,t){this.$$outer_0=e,this.singleNode_1=t}function Jse(e){this.$$outer_0=e}function Zse(){}function Qse(e){this.$$outer_0=e}function eoe(){}function toe(){}function noe(){}function roe(){}function ioe(e,t,n,r){this.minLayer_0=e,this.globalSource_1=t,this.usedLayers_2=n,this.globalSink_3=r}function aoe(){}function soe(e){this.sizeDelta_0=e}function ooe(){}function loe(e){this.$$outer_0=e}function coe(e){return Ese(),Qee(Pn(e,196))}function uoe(){}function hoe(){}function goe(e){this.$$outer_0=e}function foe(e,t){this.$$outer_0=e,this.paths_1=t}function doe(){}function poe(){}function _oe(e){this.$$outer_0=e}function yoe(){}function moe(){}function woe(e){this.$$outer_0=e}function voe(){}function xoe(){}function Eoe(){}function boe(){}function Coe(){Coe=En,Rse=yve(new vve,(TF(),fF),(DW(),qq))}function Soe(){Coe()}function koe(e,t){var n,r;return n=e.layer,(r=t.nodeIndex[e.id_0])0?Pn(gm(n.nodes,r-1),10):null}function Ioe(e){var t,n,i,a,s,o,l;for(i=pe,n=_e,t=new Rm(e.layeredGraph.layers);t.i1},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$18$Type",1400),bn(1401,1,P,ioe),i.accept=function(e){var t,n,r,i,a;t=this.minLayer_0,n=this.globalSource_1,r=this.usedLayers_2,i=this.globalSink_3,a=Pn(e,397),Ese(),pT(mT(yT(_T(wT(new vT,0),a.tail.layer-t),n),a.tail)),pT(mT(yT(_T(wT(new vT,0),r-a.head.layer),a.head),i))},i.minLayer_0=0,i.usedLayers_2=0,Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$19$Type",1401),bn(1384,1,{},aoe),i.apply_0=function(e){return Ese(),new ck(null,new YE(Pn(e,29).nodes,16))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$2$Type",1384),bn(1402,1,P,soe),i.accept=function(e){var t,n;t=this.sizeDelta_0,n=Pn(e,11),Ese(),n.pos.y_0+=t},i.sizeDelta_0=0,Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$20$Type",1402),bn(1403,1,{},ooe),i.apply_0=function(e){return Ese(),new ck(null,new YE(Pn(e,29).nodes,16))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$21$Type",1403),bn(1404,1,P,loe),i.accept=function(e){var t,n;t=this.$$outer_0,n=Pn(e,10),t.nodeState[n.id_0]=function(e){var t,n,r,i;for(t=0,n=0,i=new Rm(e.ports);i.i1||n>1)return 2;return t+n==1?2:0}(n)},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$22$Type",1404),bn(1405,1,J,uoe),i.test_0=function(e){return coe(e)},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$23$Type",1405),bn(1406,1,{},hoe),i.apply_0=function(e){return Ese(),new ck(null,new YE(Pn(e,29).nodes,16))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$24$Type",1406),bn(1407,1,J,goe),i.test_0=function(e){return t=this.$$outer_0,n=Pn(e,10),2==t.nodeState[n.id_0];var t,n},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$25$Type",1407),bn(1408,1,P,foe),i.accept=function(e){!function(e,t,n){var r,i,a;for(i=new Qo(Bo(pj(n).val$inputs1.iterator_0(),new Io));Jo(i);)wB(r=Pn(Zo(i),18))||!wB(r)&&r.source.owner.layer==r.target.owner.layer||(a=bse(e,r,n,new Hse)).array.length>1&&(t.array[t.array.length]=a)}(this.$$outer_0,this.paths_1,Pn(e,10))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$26$Type",1408),bn(1409,1,J,doe),i.test_0=function(e){return Ese(),!wB(Pn(e,18))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$27$Type",1409),bn(1410,1,J,poe),i.test_0=function(e){return Ese(),!wB(Pn(e,18))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$28$Type",1410),bn(1411,1,{},_oe),i.apply_3=function(e,t){return n=this.$$outer_0,r=Pn(e,29),i=Pn(t,29),function(e,t,n){var r,i,a,s,o,l,c,u;for(l=new xm,o=new Rm(t.nodes);o.i0),a=Pn(c.this$01.get_0(c.last=--c.i),18);a!=r&&c.i>0;)e.crossing[a.id_0]=!0,e.crossing[r.id_0]=!0,Jk(c.i>0),a=Pn(c.this$01.get_0(c.last=--c.i),18);c.i>0&&ky(c)}}(n,r,i),i;var n,r,i},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$29$Type",1411),bn(1385,1,{},yoe),i.apply_0=function(e){return Ese(),new ck(null,new XE(new Qo(Bo(xj(Pn(e,10)).val$inputs1.iterator_0(),new Io))))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$3$Type",1385),bn(1386,1,J,moe),i.test_0=function(e){return Ese(),t=Pn(e,18),Ese(),!(wB(t)||!wB(t)&&t.source.owner.layer==t.target.owner.layer);var t},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$4$Type",1386),bn(1387,1,P,woe),i.accept=function(e){var t,n,i,a,s,o,l,c,u,h,g,f,d;t=this.$$outer_0,n=Pn(e,18),i=TT(new MT,t.nGraph),c=t.nodeReps[n.source.owner.id_0],f=t.nodeReps[n.target.owner.id_0],l=n.source,g=n.target,o=l.anchor.y_0,h=g.anchor.y_0,c.isFlexible||(o+=l.pos.y_0),f.isFlexible||(h+=g.pos.y_0),u=Un(r.Math.max(0,o-h)),s=Un(r.Math.max(0,h-o)),d=r.Math.max(1,Pn(ez(n,(zee(),B7)),20).value_0)*Cse(n.source.owner.type_0,n.target.owner.type_0),a=new zse(pT(mT(yT(_T(wT(new vT,d),s),i),Pn(cy(t.portMap,n.source),119))),pT(mT(yT(_T(wT(new vT,d),u),i),Pn(cy(t.portMap,n.target),119)))),t.edgeReps[n.id_0]=a},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$5$Type",1387),bn(1388,1,{},voe),i.apply_0=function(e){return Ese(),new ck(null,new YE(Pn(e,29).nodes,16))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$6$Type",1388),bn(1389,1,J,xoe),i.test_0=function(e){return Ese(),Pn(e,10).type_0==(Fj(),Aj)},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$7$Type",1389),bn(1390,1,{},Eoe),i.apply_0=function(e){return Ese(),new ck(null,new XE(new Qo(Bo(pj(Pn(e,10)).val$inputs1.iterator_0(),new Io))))},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$8$Type",1390),bn(1391,1,J,boe),i.test_0=function(e){return Ese(),!wB(t=Pn(e,18))&&t.source.owner.layer==t.target.owner.layer;var t},Qn("org.eclipse.elk.alg.layered.p4nodes","NetworkSimplexPlacer/lambda$9$Type",1391),bn(1373,1,pt,Soe),i.getLayoutProcessorConfiguration=function(e){return Pn(ez(Pn(e,38),(L6(),j4)),21).contains((Z3(),V3))?Rse:null},i.process=function(e,t){!function(e,t){var n,i,a,s,o,l,c,u,h,g;for(sTe(t,"Simple node placement",1),g=Pn(ez(e,(L6(),w6)),302),l=0,s=new Rm(e.layers);s.i0)if(i=g.size_1(),c=Un(r.Math.floor((i+1)/2))-1,a=Un(r.Math.ceil((i+1)/2))-1,t.vdir==Aoe)for(h=a;h>=c;h--)t.align_0[x.id_0]==x&&(_=Pn(g.get_0(h),46),p=Pn(_.first,10),!Bv(n,_.second)&&d>e.ni.nodeIndex[p.id_0]&&(t.align_0[p.id_0]=x,t.root[x.id_0]=t.root[p.id_0],t.align_0[x.id_0]=t.root[x.id_0],t.od[t.root[x.id_0].id_0]=(Mf(),!!(Nf(t.od[t.root[x.id_0].id_0])&x.type_0==(Fj(),zj))),d=e.ni.nodeIndex[p.id_0]));else for(h=c;h<=a;h++)t.align_0[x.id_0]==x&&(m=Pn(g.get_0(h),46),y=Pn(m.first,10),!Bv(n,m.second)&&d_e||t.vdir==zoe&&u0||n.vdir==Aoe&&ac&&r>c)){i=!1,n.recordLogs&&cTe(n,"bk node placement breaks on "+o+" which should have been after "+u);break}u=o,c=td(t.y_0[o.id_0])+td(t.innerShift[o.id_0])+o.size_0.y_0+o.margin.bottom}if(!i)break}return n.recordLogs&&cTe(n,t+" is feasible: "+i),i}function wle(e,t,n,r){var i,a;if(t.type_0==(Fj(),zj))for(a=new Qo(Bo(mj(t).val$inputs1.iterator_0(),new Io));Jo(a);)if((i=Pn(Zo(a),18)).source.owner.type_0==zj&&e.ni.layerIndex[i.source.owner.layer.id_0]==r&&e.ni.layerIndex[t.layer.id_0]==n)return!0;return!1}function vle(){yle(),this.markedEdges=new Vv}function xle(e){var t,n,r,i,a,s;for(yle(),n=new wx,r=new Rm(e.layeredGraph.layers);r.i0&&a0):a<0&&-a0)}function Nle(){kle.call(this)}function Lle(){Lle=En,joe=new vv(mke)}function zle(e){switch(e.edgeRoutingStrategy.ordinal){case 1:return new Hle;case 3:return new pue;default:return new Rle}}function Ale(){}function Dle(){Dle=En,qoe=yve(new vve,(TF(),gF),(DW(),Yq)),Koe=yve(new vve,hF,Qq),Yoe=pve(yve(new vve,hF,fW),fF,gW),Uoe=pve(yve(yve(new vve,hF,Vq),gF,Hq),fF,Uq),Xoe=dve(dve(mve(pve(yve(new vve,cF,bW),fF,EW),gF),xW),CW),Woe=pve(new vve,fF,Xq),Voe=pve(yve(yve(yve(new vve,uF,nW),gF,iW),gF,aW),fF,rW),Hoe=pve(yve(yve(new vve,gF,aW),gF,Fq),fF,Rq)}function Rle(){Dle()}function Fle(){Fle=En,tle=new qle,Joe=yve(new vve,(TF(),hF),(DW(),Qq)),ele=pve(yve(new vve,hF,fW),fF,gW),nle=dve(dve(mve(pve(yve(new vve,cF,bW),fF,EW),gF),xW),CW),Zoe=pve(yve(yve(yve(new vve,uF,nW),gF,iW),gF,aW),fF,rW),Qoe=pve(yve(yve(new vve,gF,aW),gF,Fq),fF,Rq)}function Ole(e,t,n,r,i){var a,s;(wB(t)||t.source.owner.layer!=t.target.owner.layer)&&qEe(obe(Sg(yg(lbe,1),$,8,0,[i.owner.pos,i.pos,i.anchor])),n)||wB(t)||(t.source==i?Al(t.bendPoints,0,new abe(n)):zx(t.bendPoints,new abe(n)),r&&!Bv(e.createdJunctionPoints,n)&&((s=Pn(ez(t,(zee(),W9)),74))||(s=new fbe,rz(t,W9,s)),Rx(s,a=new abe(n),s.tail.prev,s.tail),Gv(e.createdJunctionPoints,a)))}function Gle(e){var t,n,i,a,s,o;for(t=0,n=new Rm(e.nodes);n.i1,u=new wV(f.connectedEdges);zm(u.firstIterator)||zm(u.secondIterator);)g=(c=Pn(zm(u.firstIterator)?Am(u.firstIterator):Am(u.secondIterator),18)).source==f?c.target:c.source,r.Math.abs(obe(Sg(yg(lbe,1),$,8,0,[g.owner.pos,g.pos,g.anchor])).y_0-o.y_0)>1&&Ole(e,c,o,s,f)}}function Hle(){Fle(),this.createdJunctionPoints=new Vv}function Ule(e){var t;return t=Pn(ez(e,(L6(),O4)),61),e.type_0==(Fj(),Nj)&&(t==(pIe(),gIe)||t==q$e)}function qle(){}function Wle(e,t,n){var r,i,a,s,o,l,c;for(a=new xm,function(e,t,n,r){var i,a,s,o,l,c,u;for(o=-1,u=new Rm(e);u.i0&&p.criticalInDepWeight<=0){l.array=xg(or,g,1,0,5,1),l.array[l.array.length]=p;break}(d=p.outDepWeight-p.inDepWeight)>=o&&(d>o&&(l.array=xg(or,g,1,0,5,1),o=d),l.array[l.array.length]=p)}0!=l.array.length&&(s=Pn(gm(l,FE(i,l.array.length)),111),Rb(v.map_0,s),s.mark=u++,Kle(s,t,n,r),l.array=xg(or,g,1,0,5,1))}for(y=e.array.length+1,f=new Rm(e);f.ir.target.mark&&(a.array[a.array.length]=r);return a}function Kle(e,t,n,r){var i,a,s,o,l,c,u;for(s=new Rm(e.outgoingSegmentDependencies);s.i0&&(ace(l,l.inDepWeight-i.weight),i.type_0==(dce(),rle)&&(c=l,u=l.criticalInDepWeight-i.weight,c.criticalInDepWeight=u),l.inDepWeight<=0&&l.outDepWeight>0&&Rx(t,l,t.tail.prev,t.tail));for(a=new Rm(e.incomingSegmentDependencies);a.i0&&(sce(o,o.outDepWeight-i.weight),i.type_0==(dce(),rle)&&ice(o,o.criticalOutDepWeight-i.weight),o.outDepWeight<=0&&o.inDepWeight>0&&Rx(n,o,n.tail.prev,n.tail))}function Yle(){}function Xle(){}function Jle(){}function Zle(){}function Qle(){}function ece(){}function tce(e,t,n){var r,i,a;for(n.put(t,e),lm(e.ports,t),a=e.routingStrategy.getPortPositionOnHyperNode(t),t.side==e.routingStrategy.getSourcePortSide()?cce(e.incomingConnectionCoordinates,a):cce(e.outgoingConnectionCoordinates,a),nce(e),i=ss(is(Sg(yg(ci,1),g,19,0,[new fV(t),new pV(t)])));Jo(i);)r=Pn(Zo(i),11),n.containsKey(r)||tce(e,r,n)}function nce(e){e.startPosition=NaN,e.endPosition=NaN,rce(e,e.incomingConnectionCoordinates),rce(e,e.outgoingConnectionCoordinates)}function rce(e,t){0!=t.size_0&&(isNaN(e.startPosition)?e.startPosition=td((Jk(0!=t.size_0),Ln(t.header.next_0.value_0))):e.startPosition=r.Math.min(e.startPosition,td((Jk(0!=t.size_0),Ln(t.header.next_0.value_0)))),isNaN(e.endPosition)?e.endPosition=td((Jk(0!=t.size_0),Ln(t.tail.prev.value_0))):e.endPosition=r.Math.max(e.endPosition,td((Jk(0!=t.size_0),Ln(t.tail.prev.value_0)))))}function ice(e,t){e.criticalOutDepWeight=t}function ace(e,t){e.inDepWeight=t}function sce(e,t){e.outDepWeight=t}function oce(e,t){e.routingSlot=t}function lce(e){this.ports=new xm,this.incomingConnectionCoordinates=new Hx,this.outgoingConnectionCoordinates=new Hx,this.outgoingSegmentDependencies=new xm,this.incomingSegmentDependencies=new xm,this.routingStrategy=e}function cce(e,t){var n,r;for(n=Gx(e,0);n.currentNode!=n.this$01.tail;){if((r=rd(Ln(eE(n))))==t)return;if(r>t){tE(n);break}}Zx(n,t)}function uce(e){hce(e,null),gce(e,null)}function hce(e,t){e.source&&pm(e.source.outgoingSegmentDependencies,e),e.source=t,e.source&&lm(e.source.outgoingSegmentDependencies,e)}function gce(e,t){e.target&&pm(e.target.incomingSegmentDependencies,e),e.target=t,e.target&&lm(e.target.incomingSegmentDependencies,e)}function fce(e,t,n,r){this.type_0=e,this.weight=r,hce(this,t),gce(this,n)}function dce(){dce=En,ile=new pce("REGULAR",0),rle=new pce("CRITICAL",1)}function pce(e,t){nl.call(this,e,t)}bn(1604,1,{},cle),Qn("org.eclipse.elk.alg.layered.p4nodes.bk","BKAligner",1604),bn(1607,1,{},fle),Qn("org.eclipse.elk.alg.layered.p4nodes.bk","BKCompactor",1607),bn(643,1,{643:1},dle),i.separation=0,Qn("org.eclipse.elk.alg.layered.p4nodes.bk","BKCompactor/ClassEdge",643),bn(452,1,{452:1},_le),i.classShift=null,i.indegree=0,Qn("org.eclipse.elk.alg.layered.p4nodes.bk","BKCompactor/ClassNode",452),bn(1376,1,pt,vle),i.getLayoutProcessorConfiguration=function(e){return Pn(ez(Pn(e,38),(L6(),j4)),21).contains((Z3(),V3))?Boe:null},i.process=function(e,t){!function(e,t,n){var i,a,s,o,l,c,h,f,d,p,_,y,m,w,v,x,E,b,C;switch(sTe(n,"Brandes & Koepf node placement",1),e.lGraph=t,e.ni=function(e){var t,n,r,i,a,s,o,l,c,u,h;for((h=new ble).nodeCount=0,s=new Rm(e.layers);s.is&&(s=i,c.array=xg(or,g,1,0,5,1)),i==s&&lm(c,new zPe(n.source.owner,n)));hw(),mm(c,e.neighborComparator),om(e.leftNeighbors,o.id_0,c)}}(h,e),h.rightNeighbors=Ql(h.nodeCount),function(e,t){var n,r,i,a,s,o,l,c;for(a=new Rm(t.layers);a.is&&(s=i,c.array=xg(or,g,1,0,5,1)),i==s&&lm(c,new zPe(n.target.owner,n)));hw(),mm(c,e.neighborComparator),om(e.rightNeighbors,o.id_0,c)}}(h,e),h}(t),i=Pn(ez(t,(zee(),c7)),272),_=Nf(Nn(ez(t,u7))),e.produceBalancedLayout=i==(k3(),x3)&&!_||i==m3,function(e,t){var n,r,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w;if(!((p=t.layers.array.length)<3)){for(f=xg(u1e,ie,24,p,15,1),h=0,u=new Rm(t.layers);u.is)&&Gv(e.markedEdges,Pn(_.second,18));++o}a=s}}}(e,t),b=null,C=null,w=null,v=null,za(4,"initialArraySize"),m=new Em(4),Pn(ez(t,c7),272).ordinal){case 3:w=new Poe(t,e.ni.nodeCount,(Foe(),zoe),(Moe(),Fse)),m.array[m.array.length]=w;break;case 1:v=new Poe(t,e.ni.nodeCount,(Foe(),Aoe),(Moe(),Fse)),m.array[m.array.length]=v;break;case 4:b=new Poe(t,e.ni.nodeCount,(Foe(),zoe),(Moe(),Ose)),m.array[m.array.length]=b;break;case 2:C=new Poe(t,e.ni.nodeCount,(Foe(),Aoe),(Moe(),Ose)),m.array[m.array.length]=C;break;default:w=new Poe(t,e.ni.nodeCount,(Foe(),zoe),(Moe(),Fse)),v=new Poe(t,e.ni.nodeCount,Aoe,Fse),b=new Poe(t,e.ni.nodeCount,zoe,Ose),C=new Poe(t,e.ni.nodeCount,Aoe,Ose),m.array[m.array.length]=b,m.array[m.array.length]=C,m.array[m.array.length]=w,m.array[m.array.length]=v}for(a=new cle(t,e.ni),l=new Rm(m);l.iC[c]&&(_=c),g=new Rm(e.lGraph.layers);g.iIoe(s))&&(d=s);for(!d&&(Zk(0,m.array.length),d=Pn(m.array[0],182)),y=new Rm(t.layers);y.i0?(f=(d-1)*n,o&&(f+=r),u&&(f+=r),f0&&(v-=d),qB(o,v),h=0,f=new Rm(o.nodes);f.i0),l.this$01.get_0(l.last=--l.i)),c=.4*i*h,!s&&l.i"+this.target+" ("+(null!=(e=this.type_0).name_0?e.name_0:""+e.ordinal)+")";var e},i.weight=0,Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentDependency",129),bn(513,22,{3:1,36:1,22:1,513:1},pce);var _ce,yce,mce,wce,vce,xce,Ece,bce,Cce=er("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentDependency/DependencyType",513,sl,(function(){return dce(),Sg(yg(Cce,1),W,513,0,[ile,rle])}),(function(e){return dce(),il((Sce(),_ce),e)}));function Sce(){Sce=En,_ce=rl((dce(),Sg(yg(Cce,1),W,513,0,[ile,rle])))}function kce(e,t){return Wce(e.outgoingConnectionCoordinates,t.startPosition,t.endPosition)+Wce(t.incomingConnectionCoordinates,e.startPosition,e.endPosition)}function $ce(e,t,n,r){if(t.crossingsn.size_0)return!0}return!1}function Ice(e,t,n,r,i){lm(t,function(e,t){for(e.splitPartner=new lce(e.routingStrategy),function(e,t){e.splitPartner=t}(e.splitPartner,e),ui(e.splitPartner.outgoingConnectionCoordinates,e.outgoingConnectionCoordinates),Vx(e.outgoingConnectionCoordinates),zx(e.outgoingConnectionCoordinates,t),zx(e.splitPartner.incomingConnectionCoordinates,t),nce(e),nce(e.splitPartner);0!=e.incomingSegmentDependencies.array.length;)uce(Pn(gm(e.incomingSegmentDependencies,0),129));for(;0!=e.outgoingSegmentDependencies.array.length;)uce(Pn(gm(e.outgoingSegmentDependencies,0),129));return e.splitPartner}(i,function(e,t,n){var r,i,a,s,o,l,c;for(a=-1,o=-1,s=0;se.endPosition));s++)i.endPosition>=e.startPosition&&(a<0&&(a=s),o=s);return l=(e.startPosition+e.endPosition)/2,a>=0&&(r=function(e,t,n,r){var i,a,s,o,l,c,u,h,g,f,d;if(a=n,n=n&&(r=t,a=(l=(o.startPosition+o.endPosition)/2)-n,o.startPosition<=l-n&&om(e,r++,new zce(o.startPosition,a)),(s=l+n)<=o.endPosition&&(i=new zce(s,o.endPosition),t$(r,e.array.length),Rk(e.array,r,i)))}(t,r,n)),l}(i,n,r))),function(e,t,n){var r,i,a,s;for(a=t.splitBy,s=t.splitPartner,new fce((dce(),rle),t,a,1),new fce(rle,a,s,1),i=new Rm(n);i.i=2*t&&lm(n,new zce(s[r-1]+t,s[r]-t));return n}(n,r),ZS(ok(new ck(null,new YE(function(e){var t,n,r,i,a,s,o;for(a=new Tx,n=new Rm(e);n.i2&&o.incomingConnectionCoordinates.size_0+o.outgoingConnectionCoordinates.size_0<=2&&(i=o,r=s),a.map_0.put(i,a),i.splitBy=r);return a}(t),1)),new Ace),new Dce(e,n,i,r)))}function Mce(e,t,n){var i,a;(i=Wce(t.outgoingConnectionCoordinates,n.startPosition,n.endPosition)+Wce(n.incomingConnectionCoordinates,t.startPosition,t.endPosition))==(a=Wce(n.outgoingConnectionCoordinates,t.startPosition,t.endPosition)+Wce(t.incomingConnectionCoordinates,n.startPosition,n.endPosition))?i>0&&(e.dependencies+=2,e.crossings+=i):(e.dependencies+=1,e.crossings+=r.Math.min(i,a))}function Nce(e){this.routingGenerator=e}function Lce(){this.dependencies=0,this.crossings=0}function zce(e,t){this.startPosition=e,this.endPosition=t,this.size_0=t-e}function Ace(){}function Dce(e,t,n,r){this.$$outer_0=e,this.segments_1=t,this.freeAreas_2=n,this.criticalConflictThreshold_3=r}function Rce(){}function Fce(){}function Oce(){}function Gce(e,t,n){var r,i,a,s,o,l;if(r=0,0!=t.size_0&&0!=n.size_0){a=Gx(t,0),s=Gx(n,0),o=td(Ln(eE(a))),l=td(Ln(eE(s))),i=!0;do{if(o>l-e.criticalConflictThreshold&&ol-e.conflictThreshold&&ou?new fce((dce(),ile),n,t,c-u):c>0&&u>0&&(new fce((dce(),ile),t,n,0),new fce(ile,n,t,0))),s)}function jce(e,t,n,r,i){var a,s,o,l;if(t)for(s=t.iterator_0();s.hasNext_0();)for(l=Cj(Pn(s.next_1(),10),(Wte(),Vte),n).iterator_0();l.hasNext_0();)o=Pn(l.next_1(),11),(a=Pn(ai(Zv(i.hashCodeMap,o)),111))||(a=new lce(e.routingStrategy),r.array[r.array.length]=a,tce(a,o,i))}function Vce(e){var t,n,i,a,s,o;if(a=Pn(WS(($S(o=sk(e)),YS(o,new pk(new Vv))),HC(new aS,new iS,new mS,Sg(yg(KC,1),W,132,0,[(UC(),zC)]))),14),i=et,a.size_1()>=2)for(t=Ln((n=a.iterator_0()).next_1());n.hasNext_0();)s=t,t=Ln(n.next_1()),i=r.Math.min(i,(Qk(t),t-(Qk(s),s)));return i}function Hce(e,t,n,i,a){var s,o,l,c,u,h,g,f,d,p,_,y,m;for(g=new Rv,o=new xm,jce(e,n,e.routingStrategy.getSourcePortSide(),o,g),jce(e,i,e.routingStrategy.getTargetPortSide(),o,g),e.criticalConflictThreshold=.2*(_=Vce(JS(new ck(null,new YE(o,16)),new Kce)),y=Vce(JS(new ck(null,new YE(o,16)),new Yce)),r.Math.min(_,y)),s=0,l=0;l=2&&(m=Wle(o,!0,f),!e.segmentSplitter&&(e.segmentSplitter=new Nce(e)),Pce(e.segmentSplitter,m,o,e.criticalConflictThreshold)),qce(o,f),function(e){var t,n,i,a,s,o,l,c,u;for(c=new xm,o=new xm,s=new Rm(e);s.i-1){for(a=new Rm(o);a.i0||(oce(l,r.Math.min(l.routingSlot,i.routingSlot-1)),sce(l,l.outDepWeight-1),0==l.outDepWeight&&(o.array[o.array.length]=l))}}(o),d=-1,h=new Rm(o);h.in);)i>=t&&++r;return r}function Kce(){}function Yce(){}function Xce(e,t,n,i,a){var s,o,l,c,u;l=a?i.y_0:i.x_0,Bv(e.createdJunctionPoints,i)||(u=l>n.startPosition&&lvt;){for(s=t,o=0;r.Math.abs(t-s)0),a.this$01.get_0(a.last=--a.i),nue(e,e.dimNUBS-o,s,i,a),Jk(a.i0),i.this$01.get_0(i.last=--i.i)}if(!e.isClamped)for(n=0;nvt)return n;r>-1e-6&&++n}return n}(e,n),o=0;o0),r.this$01.get_0(r.last=--r.i),u>h+o&&ky(r);for(a=new Rm(g);a.i0),r.this$01.get_0(r.last=--r.i)}}function rue(e){var t,n,r,i,a,s;for(this.knotVector=new xm,this.controlPoints=new xm,n=e.size_0-1;n<3;n++)Al(e,0,Pn(Rl(e,0),8));if(e.size_0<4)throw Vg(new gd("At (least dimension + 1) control points are necessary!"));for(this.dimNUBS=3,this.isClamped=!0,this.isBezier=!1,function(e,t){var n,r,i,a,s;if(t<2*e.dimNUBS)throw Vg(new gd("The knot vector must have at least two time the dimension elements."));for(e.maxKnot=1,i=0;ivt&&(this.polarCoordinate.add_2(n),o=!1),this.polarCoordinate.add_2(l);o&&this.polarCoordinate.add_2(n)}function aue(e,t){var n;n=new ibe(e.x_0,e.y_0),this.cp=n,function(e,t){e.polarCoordinate=t}(this,tc(t))}function sue(){sue=En,yce=yve(pve(new vve,(TF(),fF),(DW(),Bq)),hF,Qq),xce=dve(dve(mve(pve(yve(new vve,cF,bW),fF,EW),gF),xW),CW),mce=pve(yve(yve(yve(new vve,uF,nW),gF,iW),gF,aW),fF,rW),vce=yve(yve(new vve,hF,fW),fF,gW),wce=pve(yve(yve(new vve,gF,aW),gF,Fq),fF,Rq)}function oue(e,t,n){var r,i,a,s,o,l,c,u,h,f;if(e.leftPortsLayer.map_0.clear_0(),e.rightPortsLayer.map_0.clear_0(),e.edgesRemainingLayer.array=xg(or,g,1,0,5,1),e.splineSegmentsLayer.array=xg(or,g,1,0,5,1),e.selfLoopsLayer.map_0.clear_0(),t)for(s=new Rm(t.nodes);s.it.hyperEdgeBottomYPos||t.hyperEdgeTopYPos>e.hyperEdgeBottomYPos)){for(n=0,r=0,s=e.rightPorts.map_0.keySet_0().iterator_0();s.hasNext_0();)i=Pn(s.next_1(),11),Fue(obe(Sg(yg(lbe,1),$,8,0,[i.owner.pos,i.pos,i.anchor])).y_0,t.hyperEdgeTopYPos,t.hyperEdgeBottomYPos)&&++n;for(o=e.leftPorts.map_0.keySet_0().iterator_0();o.hasNext_0();)i=Pn(o.next_1(),11),Fue(obe(Sg(yg(lbe,1),$,8,0,[i.owner.pos,i.pos,i.anchor])).y_0,t.hyperEdgeTopYPos,t.hyperEdgeBottomYPos)&&--n;for(l=t.rightPorts.map_0.keySet_0().iterator_0();l.hasNext_0();)i=Pn(l.next_1(),11),Fue(obe(Sg(yg(lbe,1),$,8,0,[i.owner.pos,i.pos,i.anchor])).y_0,e.hyperEdgeTopYPos,e.hyperEdgeBottomYPos)&&++r;for(a=t.leftPorts.map_0.keySet_0().iterator_0();a.hasNext_0();)i=Pn(a.next_1(),11),Fue(obe(Sg(yg(lbe,1),$,8,0,[i.owner.pos,i.pos,i.anchor])).y_0,e.hyperEdgeTopYPos,e.hyperEdgeBottomYPos)&&--r;n=p&&(w>p&&(d.array=xg(or,g,1,0,5,1),p=w),d.array[d.array.length]=s);0!=d.array.length&&(f=Pn(gm(d,FE(t,d.array.length)),128),I.map_0.remove_0(f),f.mark=_++,_ue(f,k,b),d.array=xg(or,g,1,0,5,1))}for(x=e.array.length+1,o=new Rm(e);o.i$.mark&&(ky(n),pm($.incoming,r),r.weight>0&&(r.source=$,lm($.outgoing,r),r.target=C,lm(C.incoming,r)))}(e.splineSegmentsLayer,Pn(ez(e.lGraph,(L6(),p6)),228)),function(e){var t,n,i,a,s,o,l,c,u;for(c=new Hx,o=new Hx,a=new Rm(e);a.i-1){for(i=Gx(o,0);i.currentNode!=i.this$01.tail;)(n=Pn(eE(i),128)).rank=s;for(;0!=o.size_0;)for(t=new Rm((n=Pn(Fl(o,0),128)).incoming);t.i1)for(li(w,new Tue(e,f=new Due(d,w,i))),o.array[o.array.length]=f,h=w.map_0.keySet_0().iterator_0();h.hasNext_0();)pm(s,Pn(h.next_1(),46).second);if(l.map_0.size_1()>1)for(li(l,new Pue(e,f=new Due(d,l,i))),o.array[o.array.length]=f,h=l.map_0.keySet_0().iterator_0();h.hasNext_0();)pm(s,Pn(h.next_1(),46).second)}}function gue(e,t){var n,r,i;(r=(i=t.target.owner).type_0)!=(Fj(),Aj)&&r!=Mj&&Jo(n=new Qo(Bo(xj(i).val$inputs1.iterator_0(),new Io)))&&gy(e.successingEdge,t,Pn(Zo(n),18))}function fue(e,t){var n,r;r=new xm,n=t;do{r.array[r.array.length]=n,n=Pn(cy(e.successingEdge,n),18)}while(n);return r}function due(e,t){var n,r,i,a,s;s=new xm,n=t;do{(a=Pn(cy(e.edgeToSegmentMap,n),128)).sourcePort=n.source,a.targetPort=n.target,s.array[s.array.length]=a,n=Pn(cy(e.successingEdge,n),18)}while(n);return Zk(0,s.array.length),(r=Pn(s.array[0],128)).initialSegment=!0,r.sourceNode=Pn(r.edges.map_0.keySet_0().iterator_0().next_1(),18).source.owner,(i=Pn(gm(s,s.array.length-1),128)).lastSegment=!0,i.targetNode=Pn(i.edges.map_0.keySet_0().iterator_0().next_1(),18).target.owner,s}function pue(){sue(),this.edgesRemainingLayer=new xm,this.splineSegmentsLayer=new xm,this.leftPortsLayer=new Tx,this.rightPortsLayer=new Tx,this.selfLoopsLayer=new Tx,this.startEdges=new xm,this.allSplineSegments=new xm,this.edgeToSegmentMap=new Rv,this.successingEdge=new Rv}function _ue(e,t,n){var r,i,a;for(a=new Rm(e.outgoing);a.i0&&(r.target.inweight-=r.weight,r.target.inweight<=0&&r.target.outweight>0&&zx(t,r.target));for(i=new Rm(e.incoming);i.i0&&(r.source.outweight-=r.weight,r.source.outweight<=0&&r.source.inweight>0&&zx(n,r.source))}function yue(e,t,n){this.source=e,this.target=t,this.weight=n,lm(e.outgoing,this),lm(t.incoming,this)}function mue(){mue=En,Ece=new wue("LEFT",0),bce=new wue("RIGHT",1)}function wue(e,t){nl.call(this,e,t)}bn(1787,1,{},Nce),Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter",1787),bn(1788,1,{},Lce),i.crossings=0,i.dependencies=0,Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter/AreaRating",1788),bn(327,1,{327:1},zce),i.endPosition=0,i.size_0=0,i.startPosition=0,Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter/FreeArea",327),bn(1789,1,He,Ace),i.compare_1=function(e,t){return n=Pn(e,111),r=Pn(t,111),ad(n.endPosition-n.startPosition,r.endPosition-r.startPosition);var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter/lambda$0$Type",1789),bn(1790,1,P,Dce),i.accept=function(e){Ice(this.$$outer_0,this.segments_1,this.freeAreas_2,this.criticalConflictThreshold_3,Pn(e,111))},i.criticalConflictThreshold_3=0,Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter/lambda$1$Type",1790),bn(1791,1,{},Rce),i.apply_0=function(e){return new ck(null,new YE(Pn(e,111).incomingConnectionCoordinates,16))},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter/lambda$2$Type",1791),bn(1792,1,{},Fce),i.apply_0=function(e){return new ck(null,new YE(Pn(e,111).outgoingConnectionCoordinates,16))},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter/lambda$3$Type",1792),bn(1793,1,{},Oce),i.applyAsDouble=function(e){return td(Ln(e))},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","HyperEdgeSegmentSplitter/lambda$4$Type",1793),bn(644,1,{},Uce),i.conflictThreshold=0,i.criticalConflictThreshold=0,i.edgeSpacing=0,Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","OrthogonalRoutingGenerator",644),bn(1608,1,{},Kce),i.apply_0=function(e){return new ck(null,new YE(Pn(e,111).incomingConnectionCoordinates,16))},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","OrthogonalRoutingGenerator/lambda$0$Type",1608),bn(1609,1,{},Yce),i.apply_0=function(e){return new ck(null,new YE(Pn(e,111).outgoingConnectionCoordinates,16))},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal","OrthogonalRoutingGenerator/lambda$1$Type",1609),bn(649,1,{}),Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal.direction","BaseRoutingDirectionStrategy",649),bn(1779,649,{},Zce),i.calculateBendPoints=function(e,t,n){var i,a,s,o,l,c,u,h,g,f,d,p,_;if(!e.splitPartner||e.splitBy)for(h=t+e.routingSlot*n,u=new Rm(e.ports);u.irt&&(a=e,i=new ibe(g,s=h),zx(o.bendPoints,i),Xce(this,o,a,i,!1),(f=e.splitPartner)&&(i=new ibe(d=td(Ln(Rl(f.incomingConnectionCoordinates,0))),s),zx(o.bendPoints,i),Xce(this,o,a,i,!1),a=f,i=new ibe(d,s=t+f.routingSlot*n),zx(o.bendPoints,i),Xce(this,o,a,i,!1)),i=new ibe(_,s),zx(o.bendPoints,i),Xce(this,o,a,i,!1)))},i.getPortPositionOnHyperNode=function(e){return e.owner.pos.x_0+e.pos.x_0+e.anchor.x_0},i.getSourcePortSide=function(){return pIe(),uIe},i.getTargetPortSide=function(){return pIe(),W$e},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal.direction","NorthToSouthRoutingStrategy",1779),bn(1780,649,{},Qce),i.calculateBendPoints=function(e,t,n){var i,a,s,o,l,c,u,h,g,f,d,p,_;if(!e.splitPartner||e.splitBy)for(h=t-e.routingSlot*n,u=new Rm(e.ports);u.irt&&(a=e,i=new ibe(g,s=h),zx(o.bendPoints,i),Xce(this,o,a,i,!1),(f=e.splitPartner)&&(i=new ibe(d=td(Ln(Rl(f.incomingConnectionCoordinates,0))),s),zx(o.bendPoints,i),Xce(this,o,a,i,!1),a=f,i=new ibe(d,s=t-f.routingSlot*n),zx(o.bendPoints,i),Xce(this,o,a,i,!1)),i=new ibe(_,s),zx(o.bendPoints,i),Xce(this,o,a,i,!1)))},i.getPortPositionOnHyperNode=function(e){return e.owner.pos.x_0+e.pos.x_0+e.anchor.x_0},i.getSourcePortSide=function(){return pIe(),W$e},i.getTargetPortSide=function(){return pIe(),uIe},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal.direction","SouthToNorthRoutingStrategy",1780),bn(1778,649,{},eue),i.calculateBendPoints=function(e,t,n){var i,a,s,o,l,c,u,h,g,f,d,p,_;if(!e.splitPartner||e.splitBy)for(h=t+e.routingSlot*n,u=new Rm(e.ports);u.irt&&(a=e,i=new ibe(s=h,g),zx(o.bendPoints,i),Xce(this,o,a,i,!0),(f=e.splitPartner)&&(i=new ibe(s,d=td(Ln(Rl(f.incomingConnectionCoordinates,0)))),zx(o.bendPoints,i),Xce(this,o,a,i,!0),a=f,i=new ibe(s=t+f.routingSlot*n,d),zx(o.bendPoints,i),Xce(this,o,a,i,!0)),i=new ibe(s,_),zx(o.bendPoints,i),Xce(this,o,a,i,!0)))},i.getPortPositionOnHyperNode=function(e){return e.owner.pos.y_0+e.pos.y_0+e.anchor.y_0},i.getSourcePortSide=function(){return pIe(),q$e},i.getTargetPortSide=function(){return pIe(),gIe},Qn("org.eclipse.elk.alg.layered.p5edges.orthogonal.direction","WestToEastRoutingStrategy",1778),bn(794,1,{},rue),i.toString_0=function(){return _i(this.controlPoints)},i.dimNUBS=0,i.isBezier=!1,i.isClamped=!1,i.maxKnot=0,Qn("org.eclipse.elk.alg.layered.p5edges.splines","NubSpline",794),bn(402,1,{402:1},iue,aue),Qn("org.eclipse.elk.alg.layered.p5edges.splines","NubSpline/PolarCP",402),bn(1422,1,pt,pue),i.getLayoutProcessorConfiguration=function(e){return function(e){var t,n;return _ve(t=new vve,yce),(n=Pn(ez(e,(L6(),j4)),21)).contains((Z3(),Y3))&&_ve(t,xce),n.contains(G3)&&_ve(t,mce),n.contains(W3)&&_ve(t,vce),n.contains(j3)&&_ve(t,wce),t}(Pn(e,38))},i.process=function(e,t){!function(e,t,n){var i,a,s,o,l,c,u,h,f,d,p,_,y,m,w,v,x,E,b,C,S,k,$,I,T;if(sTe(n,"Spline edge routing",1),0==t.layers.array.length)return t.size_0.x_0=0,void oTe(n);w=td(Ln(ez(t,(zee(),iee)))),l=td(Ln(ez(t,Z7))),o=td(Ln(ez(t,Y7))),S=Pn(ez(t,z9),334)==(kne(),fne),C=td(Ln(ez(t,A9))),e.lGraph=t,e.startEdges.array=xg(or,g,1,0,5,1),e.allSplineSegments.array=xg(or,g,1,0,5,1),py(e.successingEdge),h=Co((c=Pn(gm(t.layers,0),29)).nodes,(Fle(),tle)),f=Co((_=Pn(gm(t.layers,t.layers.array.length-1),29)).nodes,tle),y=new Rm(t.layers),m=null,T=0;do{for(oue(e,m,v=y.i0?(u=0,m&&(u+=l),u+=(k-1)*o,v&&(u+=l),S&&v&&(u=r.Math.max(u,lue(v,o,w,C))),u("+this.weight+") "+this.target},i.weight=0,Qn("org.eclipse.elk.alg.layered.p5edges.splines","SplineEdgeRouter/Dependency",267),bn(448,22,{3:1,36:1,22:1,448:1},wue);var vue,xue,Eue,bue,Cue,Sue=er("org.eclipse.elk.alg.layered.p5edges.splines","SplineEdgeRouter/SideToProcess",448,sl,(function(){return mue(),Sg(yg(Sue,1),W,448,0,[Ece,bce])}),(function(e){return mue(),il((kue(),vue),e)}));function kue(){kue=En,vue=rl((mue(),Sg(yg(Sue,1),W,448,0,[Ece,bce])))}function $ue(){}function Iue(){}function Tue(e,t){this.$$outer_0=e,this.seg_1=t}function Pue(e,t){this.$$outer_0=e,this.seg_1=t}function Mue(e){e.leftPorts=new Vv,e.rightPorts=new Vv,e.outgoing=new xm,e.incoming=new xm,e.edges=new Vv,e.boundingBox=new FEe,e.edgeInformation=new Rv}function Nue(e,t){var n,r,i;Gv(e.edges,t),n=new Rue,gy(e.edgeInformation,t,n),n.startY=Lue(t.source),n.endY=Lue(t.target),n.normalSourceNode=(sue(),(i=t.source.owner.type_0)==(Fj(),Aj)||i==Mj),n.normalTargetNode=(r=t.target.owner.type_0)==Aj||r==Mj,n.invertedLeft=t.source.side==(pIe(),gIe),n.invertedRight=t.target.side==q$e}function Lue(e){return(pIe(),iIe).contains(e.side)?td(Ln(ez(e,(L6(),x6)))):obe(Sg(yg(lbe,1),$,8,0,[e.owner.pos,e.pos,e.anchor])).y_0}function zue(e,t,n,i){e.boundingBox.y_0=r.Math.min(t,n),e.boundingBox.height=r.Math.max(t,i)-e.boundingBox.y_0,tEt?e-n>Et:n-e>Et)}function Oue(e){switch(e.ordinal){case 1:return bt;default:case 2:return 0;case 3:return Qe;case 4:return Ct}}function Gue(e,t,n){var r,i,a;if(!e.visited[t.id_0]){for(e.visited[t.id_0]=!0,!(r=n)&&(r=new ihe),zx(r.nodes,t),a=e.incidence[t.id_0].iterator_0();a.hasNext_0();)(i=Pn(a.next_1(),188)).source!=t&&Gue(e,i.source,r),i.target!=t&&Gue(e,i.target,r),zx(r.edges,i);return r}return null}function Bue(e,t,n,r){var i,a,s,o,l,c;for(tbe(o=new ibe(n,r),Pn(ez(t,(xge(),$he)),8)),c=Gx(t.nodes,0);c.currentNode!=c.this$01.tail;)jEe((l=Pn(eE(c),83)).pos,o),zx(e.nodes,l);for(s=Gx(t.edges,0);s.currentNode!=s.this$01.tail;){for(i=Gx((a=Pn(eE(s),188)).bendPoints,0);i.currentNode!=i.this$01.tail;)jEe(Pn(eE(i),8),o);zx(e.edges,a)}}function jue(){}function Vue(){}function Hue(e,t,n){var i,a,s,o,l,c,u;l=n.x_0/2,s=n.y_0/2,c=1,u=1,(i=r.Math.abs(t.x_0-e.x_0))>l&&(c=l/i),(a=r.Math.abs(t.y_0-e.y_0))>s&&(u=s/a),o=r.Math.min(c,u),e.x_0+=o*(t.x_0-e.x_0),e.y_0+=o*(t.y_0-e.y_0)}function Uue(e,t,n){return sTe(n,"Tree layout",1),rve(e.algorithmAssembler),sve(e.algorithmAssembler,(Wue(),xue),xue),sve(e.algorithmAssembler,Eue,Eue),sve(e.algorithmAssembler,bue,bue),sve(e.algorithmAssembler,Cue,Cue),e.algorithm=nve(e.algorithmAssembler,t),function(e,t,n){var r,i,a;if(!(i=n)&&(i=new pTe),sTe(i,"Layout",e.algorithm.array.length),Nf(Nn(ez(t,(Cge(),Xhe)))))for(t_(),r=0;r1)for(r=new Rm(i);r.if&&(I=0,T+=g+C,g=0),Bue(E,o,I,T),t=r.Math.max(t,I+b.x_0),g=r.Math.max(g,b.y_0),I+=b.x_0+C;for(x=new Rv,n=new Rv,k=new Rm(e);k.i"+lhe(this.target):"e_"+In(this)},Qn("org.eclipse.elk.alg.mrtree.graph","TEdge",188),bn(135,134,{3:1,135:1,94:1,134:1},ihe),i.toString_0=function(){var e,t,n,r,i;for(i=null,r=Gx(this.nodes,0);r.currentNode!=r.this$01.tail;)i+=(null==(n=Pn(eE(r),83)).label_0||0==n.label_0.length?"n_"+n.id_0:"n_"+n.label_0)+"\n";for(t=Gx(this.edges,0);t.currentNode!=t.this$01.tail;)i+=((e=Pn(eE(t),188)).source&&e.target?lhe(e.source)+"->"+lhe(e.target):"e_"+In(e))+"\n";return i};var ahe=Qn("org.eclipse.elk.alg.mrtree.graph","TGraph",135);function she(e){var t,n;for(t=new Hx,n=Gx(e.outgoingEdges,0);n.currentNode!=n.this$01.tail;)zx(t,Pn(eE(n),188).target);return t}function ohe(e){var t;return 0==(t=e.incomingEdges).size_0?null:Pn(Rl(t,0),188).source}function lhe(e){return null==e.label_0||0==e.label_0.length?"n_"+e.id_0:"n_"+e.label_0}function che(e,t,n){this.id_0=e,this.pos=new nbe,this.size_0=new nbe,this.outgoingEdges=new Hx,this.incomingEdges=new Hx,this.graph_0=t,this.label_0=n}bn(623,493,{3:1,493:1,623:1,94:1,134:1}),Qn("org.eclipse.elk.alg.mrtree.graph","TShape",623),bn(83,623,{3:1,493:1,83:1,623:1,94:1,134:1},che),i.toString_0=function(){return lhe(this)};var uhe,hhe,ghe,fhe,dhe,phe,_he=Qn("org.eclipse.elk.alg.mrtree.graph","TNode",83);function yhe(e){this.this$01=e}function mhe(e){this.val$edgesIter2=e}function whe(e,t){var n,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m;if(0!=t.size_0){for(g=new Hx,s=null,f=null,n=Un(r.Math.floor(r.Math.log(t.size_0)*r.Math.LOG10E)+1),o=0,m=Gx(t,0);m.currentNode!=m.this$01.tail;)for(_=Pn(eE(m),83),Hn(f)!==Hn(ez(_,(xge(),Mhe)))&&(f=An(ez(_,Mhe)),o=0),s=null!=f?f+Ehe(o++,n):Ehe(o++,n),rz(_,Mhe,s),p=new mhe(Gx(new yhe(_).this$01.outgoingEdges,0));Qx(p.val$edgesIter2);)Rx(g,d=Pn(eE(p.val$edgesIter2),188).target,g.tail.prev,g.tail),rz(d,Mhe,s);for(h=new Rv,a=0;aSt&&(o-=St),g=(u=Pn(wNe(s,fSe),8)).x_0,d=u.y_0+n,(l=r.Math.atan2(d,g))<0&&(l+=St),(l+=i)>St&&(l-=St),au(),lu(1e-10),r.Math.abs(o-l)<=1e-10||o==l||isNaN(o)&&isNaN(l)?0:ol?1:cu(isNaN(o),isNaN(l));var n,i,a,s,o,l,c,u,h,g,f,d},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},i.nodeOffsetY_0=0,i.radialOffset_2=0,Qn("org.eclipse.elk.alg.radial","RadialUtil/lambda$0$Type",544),bn(1346,1,ot,Ife),i.process=function(e,t){!function(e){var t,n,i,a,s,o,l,c,u,h,g,f,d,p,_,y;for(o=et,l=et,a=kt,s=kt,h=new BFe((!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children));h.cursor!=h.this$01_2.size_1();)d=(c=Pn(OFe(h),34)).x_0,p=c.y_0,y=c.width_0,n=c.height,i=Pn(wNe(c,(BSe(),PCe)),141),o=r.Math.min(o,d-i.left),l=r.Math.min(l,p-i.top_0),a=r.Math.max(a,d+y+i.right),s=r.Math.max(s,p+n+i.bottom);for(g=new ibe(o-(f=Pn(wNe(e,(BSe(),HCe)),115)).left,l-f.top_0),u=new BFe((!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children));u.cursor!=u.this$01_2.size_1();)VNe(c=Pn(OFe(u),34),c.x_0-g.x_0),HNe(c,c.y_0-g.y_0);_=a-o+(f.left+f.right),t=s-l+(f.top_0+f.bottom),jNe(e,_),GNe(e,t)}(Pn(e,34))},Qn("org.eclipse.elk.alg.radial.intermediate","CalculateGraphSize",1346),bn(436,22,{3:1,36:1,22:1,436:1,233:1},Pfe),i.create_1=function(){switch(this.ordinal){case 0:return new nde;case 1:return new Ufe;case 2:return new Ife;default:throw Vg(new gd("No implementation is available for the layout processor "+(null!=this.name_0?this.name_0:""+this.ordinal)))}};var Mfe,Nfe,Lfe,zfe=er("org.eclipse.elk.alg.radial.intermediate","IntermediateProcessorStrategy",436,sl,(function(){return Tfe(),Sg(yg(zfe,1),W,436,0,[_fe,dfe,pfe])}),(function(e){return Tfe(),il((Afe(),Mfe),e)}));function Afe(){Afe=En,Mfe=rl((Tfe(),Sg(yg(zfe,1),W,436,0,[_fe,dfe,pfe])))}function Dfe(e,t,n){var i,a,s,o,l,c,u,h;for(s=t.iterator_0();s.hasNext_0();)c=(a=Pn(s.next_1(),34)).x_0+a.width_0/2,h=a.y_0+a.height/2,l=c-((o=e.root_0).x_0+o.width_0/2),u=h-(o.y_0+o.height/2),i=r.Math.sqrt(l*l+u*u),l*=e.compactionStep/i,u*=e.compactionStep/i,n?(c-=l,h-=u):(c+=l,h+=u),VNe(a,c-a.width_0/2),HNe(a,h-a.height/2)}function Rfe(e,t,n){var r,i,a,s,o,l,c,u;return o=t.x_0-e.spacing/2,l=n.x_0-e.spacing/2,c=t.y_0-e.spacing/2,u=n.y_0-e.spacing/2,a=t.width_0+e.spacing/2,s=n.width_0+e.spacing/2,r=t.height+e.spacing/2,i=n.height+e.spacing/2,oIt?mm(c,e.compLeft):i<=It&&i>Tt?mm(c,e.compTop):i<=Tt&&i>Pt?mm(c,e.compRight):i<=Pt&&mm(c,e.compBottom),s=mpe(e,c,s);return a}function wpe(){this.compRight=new $fe(0),this.compLeft=new $fe(Ct),this.compTop=new $fe(bt),this.compBottom=new $fe(Qe)}function vpe(){}function xpe(){}function Epe(e,t,n,i,a,s,o){var l,c,u,h,g,f,d,p;switch(d=0,p=0,c=a.drawingWidth,l=a.drawingHeight,h=n.height,f=n.width_0,t.ordinal){case 0:d=i.x_0+i.width_0+o,p=e.lpShift?function(e,t,n,r){var i,a,s,o,l;for(a=null,i=0,o=new Rm(t);o.i1&&(l=c.filterList(l,e.aspectRatio));return 1==l.array.length?Pn(gm(l,l.array.length-1),218):2==l.array.length?function(e,t,n,i){var a,s,o,l,c,u,h,g,f,d,p,_,y;return s=e.placementOption,h=t.placementOption,o=s==(Z_e(),q_e)||s==K_e,l=s==W_e||s==q_e,g=h==W_e||h==q_e,!o||h!=q_e&&h!=K_e?(s==W_e||s==Y_e)&&(h==W_e||h==Y_e)?e.placementOption==Y_e?e:t:l&&g?(s==W_e?(u=e,c=t):(u=t,c=e),f=n.y_0+n.height,d=u.nextYcoordinate+i.height,p=r.Math.max(f,d)-r.Math.min(n.y_0,u.nextYcoordinate),a=(u.nextXcoordinate+i.width_0-n.x_0)*p,_=n.x_0+n.width_0,y=c.nextXcoordinate+i.width_0,a<=(r.Math.max(_,y)-r.Math.min(n.x_0,c.nextXcoordinate))*(c.nextYcoordinate+i.height-n.y_0)?e.placementOption==W_e?e:t:e.placementOption==q_e?e:t):e:e.placementOption==K_e?e:t}((Zk(0,l.array.length),Pn(l.array[0],218)),(Zk(1,l.array.length),Pn(l.array[1],218)),o,s):null}function Cpe(e,t,n){this.aspectRatio=e,this.goal=t,this.lpShift=n}bn(1418,1,pt,ope),i.getLayoutProcessorConfiguration=function(e){return Pn(e,34),null},i.process=function(e,t){!function(e,t){e.root=Pn(wNe(t,(cfe(),jge)),34),e.radius=td(Ln(wNe(t,(jde(),Pde)))),e.sorter=tpe(Pn(wNe(t,Mde),293)),e.annulusWedgeCriteria=function(e){switch(e.ordinal){case 0:return new lpe;case 1:return new upe;default:throw Vg(new gd("No implementation is available for the layout option "+(null!=e.name_0?e.name_0:""+e.ordinal)))}}(Pn(wNe(t,Lde),420)),e.optimizer=function(e){switch(e.ordinal){case 1:return new Zfe;case 2:return new Qfe;case 3:return new Jfe;case 0:return null;default:throw Vg(new gd("No implementation is available for the layout option "+(null!=e.name_0?e.name_0:""+e.ordinal)))}}(Pn(wNe(t,$de),337)),function(e){var t,n,r,i,a;if(r=0,i=et,e.optimizer)for(t=0;t<360;t++)n=.017453292519943295*t,spe(e,e.root,0,0,St,n),(a=e.optimizer.evaluate(e.root))t){if(w_e(l,Pn(gm(l.children,l.children.array.length-1),181),s,t,n))continue;i+=l.height,c.array[c.array.length]=l,oye(l=new gye(i),new T_e(0,l.y_0,l,n))}0==(r=Pn(gm(l.children,l.children.array.length-1),181)).children.array.length||s.height+n>=r.smallestRectHeight&&s.height+n<=r.minHeight||.5*r.averageHeight<=s.height+n&&1.5*r.averageHeight>=s.height+n?E_e(r,s):(oye(l,a=new T_e(r.x_0+r.width_0,l.y_0,l,n)),E_e(a,s))}return c.array[c.array.length]=l,c}(t,n,e.nodeNodeSpacing),a.recordLogs&&a.recordLogs&&!!s&&uTe(a,BXe(s),(IPe(),vPe)),e.compaction)for(p=0;p<_.array.length;p++)Zk(p,_.array.length),u=Pn(_.array[p],180),0!=p&&(Zk(p-1,_.array.length),hye(u,(g=Pn(_.array[p-1],180)).y_0+g.height)),p_e(p,_,n,e.nodeNodeSpacing),v_e(u);else for(d=new Rm(_);d.ia?1:0;var n,r,i,a},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.alg.rectpacking","RectPackingLayoutProvider/lambda$0$Type",1110),bn(1230,1,{},Cpe),i.aspectRatio=0,i.lpShift=!1,Qn("org.eclipse.elk.alg.rectpacking.firstiteration","AreaApproximation",1230);var Spe,kpe,$pe,Ipe=tr("org.eclipse.elk.alg.rectpacking.firstiteration","BestCandidateFilter");function Tpe(){}function Ppe(){}function Mpe(){}function Npe(){Npe=En,kpe=new Lpe("ASPECT_RATIO_DRIVEN",0),$pe=new Lpe("MAX_SCALE_DRIVEN",1),Spe=new Lpe("AREA_DRIVEN",2)}function Lpe(e,t){nl.call(this,e,t)}bn(628,1,{519:1},Tpe),i.filterList=function(e,t){var n,i,a,s,o,l;for(l=new xm,a=pe,o=new Rm(e);o.ic&&0==(Zk(c,t.array.length),Pn(t.array[c],180)).children.array.length;)pm(t,(Zk(c,t.array.length),t.array[c]));if(!(t.array.length>c)){l=null;break}l=Pn(gm((Zk(c,t.array.length),Pn(t.array[c],180)).children,0),181)}if(!l)continue;if(__e(t,u,i,l,g,n,c)){h=!0;continue}if(g){if(y_e(t,u,i,l,n,c)){h=!0;continue}if(m_e(u,i)){i.fixed_0=!0,h=!0;continue}}else if(m_e(u,i)){i.fixed_0=!0,h=!0;continue}if(h)continue}m_e(u,i)?(i.fixed_0=!0,h=!0,l&&(l.positionFixed=!1)):B_e(i.stack_0)}else t_(),uye(u,i),--a,h=!0;return h}function __e(e,t,n,r,i,a,s){var o;return o=!1,k_e(n,a-n.x_0,!1).height+k_e(r,a-n.x_0,!1).height<=t.height&&(k_e(n,a-n.x_0,!0),n.fixed_0=!0,k_e(r,a-n.x_0,!0),I_e(r,n.x_0,n.y_0+n.height),r.positionFixed=!0,D_e(n.stack_0,r),o=!0,i&&(oye(t,r),r.parentRow=t,e.array.length>s&&(uye((Zk(s,e.array.length),Pn(e.array[s],180)),r),0==(Zk(s,e.array.length),Pn(e.array[s],180)).children.array.length&&dm(e,s)))),o}function y_e(e,t,n,r,i,a){var s,o,l,c;return l=!1,s=F_e(n.stack_0,t.y_0+t.height-n.stack_0.y_0),!((c=i-(n.stack_0.x_0+s))a&&(uye((Zk(a,e.array.length),Pn(e.array[a],180)),r),0==(Zk(a,e.array.length),Pn(e.array[a],180)).children.array.length&&dm(e,a)),l=!0),l)}function m_e(e,t){var n,r,i;return r=!1,n=t.stack_0.width_0,t.heighti&&(O_e(t.stack_0,i),r=n!=t.stack_0.width_0)),r}function w_e(e,t,n,r,i){var a,s;if(n.height+i>=t.smallestRectHeight&&n.height+i<=t.minHeight||.5*t.averageHeight<=n.height+i&&1.5*t.averageHeight>=n.height+i){if(n.width_0+i<=r-((a=Pn(gm(t.rows_0,t.rows_0.array.length-1),209)).x_0+a.width_0)&&(Pn(gm(t.rows_0,t.rows_0.array.length-1),209).y_0-e.y_0+n.height+i<=e.height||1==e.children.array.length))return E_e(t,n),!0;if(n.width_0<=r-t.x_0&&(t.height+n.height+i<=e.height||1==e.children.array.length))return lm(t.children,n),s=Pn(gm(t.rows_0,t.rows_0.array.length-1),209),lm(t.rows_0,new A_e(t.x_0,s.y_0+s.height,t.nodeNodeSpacing)),P_e(Pn(gm(t.rows_0,t.rows_0.array.length-1),209),n),b_e(t,n),!0}return!1}function v_e(e){var t,n,i,a;for(t=0,n=0,a=new Rm(e.stacks);a.it&&l>0&&(s=0,o+=l,a=r.Math.max(a,f),i+=l,l=0,f=0,n&&(++h,lm(e.rows_0,new A_e(e.x_0,o,e.nodeNodeSpacing)))),f+=c.width_0+e.nodeNodeSpacing,l=r.Math.max(l,c.height+e.nodeNodeSpacing),n&&P_e(Pn(gm(e.rows_0,h),209),c),s+=c.width_0+e.nodeNodeSpacing;return a=r.Math.max(a,f),i+=l,n&&(e.width_0=a,e.height=i,cye(e.parentRow)),new OEe(e.x_0,e.y_0,a,i)}function $_e(e,t){var n,i;for(pm(e.children,t),i=new Rm(e.rows_0);i.i0&&e.drawingHeight>0&&(e.area=e.drawingWidth*e.drawingHeight,e.aspectRatio=e.drawingWidth/e.drawingHeight,e.scaleMeasure=(t=e.drawingWidth,n=e.drawingHeight,i=e.dar,r.Math.min(i/t,1/n)))}(this)}bn(835,1,qe,c_e),i.apply_4=function(e){sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.optimizationGoal"),""),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),Bpe),(lEe(),eEe)),s_e),Sv((Yxe(),Nxe))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.lastPlaceShift"),""),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),(Mf(),!0)),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.currentPosition"),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Cd(-1)),nEe),$d),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.desiredPosition"),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Cd(-1)),nEe),$d),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.onlyFirstIteration"),""),"Only Area Approximation"),"If enabled only the width approximation step is executed and the nodes are placed accordingly. The nodes are layouted according to the packingStrategy. If set to true not expansion of nodes is taking place."),!1),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.rowCompaction"),""),"Compact Rows"),"Enables compaction. Compacts blocks if they do not use the full height of the row. This option allows to have a smaller drawing. If this option is disabled all nodes are placed next to each other in rows."),!0),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.expandToAspectRatio"),""),"Fit Aspect Ratio"),"Expands nodes if expandNodes is true to fit the aspect ratio instead of only in their bounds. The option is only useful if the used packingStrategy is ASPECT_RATIO_DRIVEN, otherwise this may result in unreasonable ndoe expansion."),!1),Zxe),Af),Sv(Nxe)))),txe(e,"org.eclipse.elk.rectpacking.expandToAspectRatio","org.eclipse.elk.expandNodes",null),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.rectpacking.targetWidth"),""),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio."),-1),Qxe),od),Sv(Nxe)))),h_e((new g_e,e))},Qn("org.eclipse.elk.alg.rectpacking.options","RectPackingMetaDataProvider",835),bn(984,1,qe,g_e),i.apply_4=function(e){h_e(e)},Qn("org.eclipse.elk.alg.rectpacking.options","RectPackingOptions",984),bn(985,1,{},f_e),i.create_0=function(){return new vpe},i.destroy=function(e){},Qn("org.eclipse.elk.alg.rectpacking.options","RectPackingOptions/RectpackingFactory",985),bn(1231,1,{},x_e),i.aspectRatio=0,i.compaction=!1,i.drawingHeight=0,i.drawingWidth=0,i.expandNodes=!1,i.expandToAspectRatio=!1,i.nodeNodeSpacing=0,Qn("org.eclipse.elk.alg.rectpacking.seconditeration","RowFillingAndCompaction",1231),bn(181,1,{181:1},T_e),i.averageHeight=0,i.fixed_0=!1,i.height=0,i.maxHeight=0,i.minHeight=0,i.minWidth=0,i.nodeNodeSpacing=0,i.positionFixed=!1,i.smallestRectHeight=pe,i.smallestRectWidth=pe,i.width_0=0,i.x_0=0,i.y_0=0,Qn("org.eclipse.elk.alg.rectpacking.util","Block",181),bn(209,1,{209:1},A_e),i.height=0,i.nodeNodeSpacing=0,i.width_0=0,i.x_0=0,i.y_0=0,Qn("org.eclipse.elk.alg.rectpacking.util","BlockRow",209),bn(437,1,{437:1},j_e),i.height=0,i.width_0=0,i.x_0=0,i.y_0=0,Qn("org.eclipse.elk.alg.rectpacking.util","BlockStack",437),bn(218,1,{218:1},H_e,U_e),i.area=0,i.aspectRatio=0,i.dar=0,i.drawingHeight=0,i.drawingWidth=0,i.nextXcoordinate=0,i.nextYcoordinate=0,i.scaleMeasure=0;var q_e,W_e,K_e,Y_e,X_e,J_e=Qn("org.eclipse.elk.alg.rectpacking.util","DrawingData",218);function Z_e(){Z_e=En,W_e=new Q_e("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),q_e=new Q_e("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),Y_e=new Q_e("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),K_e=new Q_e("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),X_e=new Q_e("WHOLE_DRAWING",4)}function Q_e(e,t){nl.call(this,e,t)}bn(352,22,{3:1,36:1,22:1,352:1},Q_e);var eye,tye,nye,rye,iye=er("org.eclipse.elk.alg.rectpacking.util","DrawingDataDescriptor",352,sl,(function(){return Z_e(),Sg(yg(iye,1),W,352,0,[W_e,q_e,Y_e,K_e,X_e])}),(function(e){return Z_e(),il((aye(),eye),e)}));function aye(){aye=En,eye=rl((Z_e(),Sg(yg(iye,1),W,352,0,[W_e,q_e,Y_e,K_e,X_e])))}function sye(e){var t,n;for(n=new BFe(e);n.cursor!=n.this$01_2.size_1();)VNe(t=Pn(OFe(n),34),0),HNe(t,0)}function oye(e,t){lm(e.children,t),e.height=r.Math.max(e.height,t.height),e.width_0+=t.width_0}function lye(e,t,n){var r,i,a,s,o;for(i=(t-e.width_0)/e.stacks.array.length,a=0,o=new Rm(e.stacks);o.i0?1:cu(isNaN(i),isNaN(0)))>=0^(lu(wt),(r.Math.abs(l)<=wt||0==l||isNaN(l)&&isNaN(0)?0:l<0?-1:l>0?1:cu(isNaN(l),isNaN(0)))>=0)?r.Math.max(l,i):(lu(wt),(r.Math.abs(i)<=wt||0==i||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:cu(isNaN(i),isNaN(0)))>0?r.Math.sqrt(l*l+i*i):-r.Math.sqrt(l*l+i*i))}(o=a.rect,l=s.rect))>=0?i:(c=WEe(tbe(new ibe(l.x_0+l.width_0/2,l.y_0+l.height/2),new ibe(o.x_0+o.width_0/2,o.y_0+o.height/2))),-(Fz(o,l)-1)*c);var t,n,i,a,s,o,l,c},Qn("org.eclipse.elk.alg.spore","ElkGraphImporter/lambda$4$Type",1223),bn(1106,207,Ze,Eye),i.layout=function(e,t){var n,r,i,a,s,o,l,c,u,h;for(vNe(e,(Hme(),mme))&&(h=An(wNe(e,(Xme(),Gme))),(a=Kve(exe(),h))&&Pn(SPe(a.providerPool),207).layout(e,hTe(t,1))),xNe(e,fme,(Kye(),Hye)),xNe(e,dme,(ime(),Qye)),xNe(e,pme,(lwe(),awe)),s=Pn(wNe(e,(Xme(),Dme)),20).value_0,sTe(t,"Overlap removal",1),Nf(Nn(wNe(e,Ame))),l=new Cye(o=new Vv),n=dye(r=new _ye,e),c=!0,i=0;i1)for(r=new Rm(e.algorithm);r.i1&&(e.overlapsExisted=!0),Sz(Pn(n.node,63),jEe(HEe(Pn(t.node,63).vertex),XEe(tbe(HEe(Pn(n.node,63).originalVertex),Pn(t.node,63).originalVertex),i))),Ewe(e,t),bwe(e,n)}function Cwe(e,t,n){sTe(n,"Grow Tree",1),e.root=t.tree,Nf(Nn(ez(t,(bz(),fz))))?(e.svg=new Az,Ewe(e,null)):e.svg=new Az,e.overlapsExisted=!1,bwe(e,t.tree),rz(t,dz,(Mf(),!!e.overlapsExisted)),oTe(n)}function Swe(){}function kwe(e,t,n){this.$$outer_0=e,this.img_1=t,this.t_2=n}function $we(){}function Iwe(e,t,n){this.$$outer_0=e,this.svg_1=t,this.t_2=n}bn(1412,1,pt,dwe),i.getLayoutProcessorConfiguration=function(e){return Pn(e,300),new vve},i.process=function(e,t){!function(e,t){var n;sTe(t,"Delaunay triangulation",1),n=new xm,hm(e.vertices,new pwe(n)),Nf(Nn(ez(e,(bz(),fz)))),e.tEdges?ui(e.tEdges,p$(n)):e.tEdges=p$(n),oTe(t)}(Pn(e,300),t)},Qn("org.eclipse.elk.alg.spore.p1structure","DelaunayTriangulationPhase",1412),bn(1413,1,P,pwe),i.accept=function(e){lm(this.vertices_0,Pn(e,63).originalVertex)},Qn("org.eclipse.elk.alg.spore.p1structure","DelaunayTriangulationPhase/lambda$0$Type",1413),bn(765,1,pt,mwe),i.getLayoutProcessorConfiguration=function(e){return Pn(e,300),new vve},i.process=function(e,t){this.process_0(Pn(e,300),t)},i.process_0=function(e,t){var n;sTe(t,"Minimum spanning tree construction",1),n=e.preferredRoot?e.preferredRoot.originalVertex:Pn(gm(e.vertices,0),63).originalVertex,ywe(this,(Nf(Nn(ez(e,(bz(),fz)))),w$(e.tEdges,n,e.costFunction)),e),oTe(t)},Qn("org.eclipse.elk.alg.spore.p2processingorder","MinSTPhase",765),bn(1415,765,pt,wwe),i.process_0=function(e,t){var n,r;sTe(t,"Maximum spanning tree construction",1),n=new vwe(e),r=e.preferredRoot?e.preferredRoot.vertex:Pn(gm(e.vertices,0),63).vertex,ywe(this,(Nf(Nn(ez(e,(bz(),fz)))),w$(e.tEdges,r,n)),e),oTe(t)},Qn("org.eclipse.elk.alg.spore.p2processingorder","MaxSTPhase",1415),bn(1416,1,{},vwe),i.cost=function(e){return t=e,-this.graph_0.costFunction.cost(t);var t},Qn("org.eclipse.elk.alg.spore.p2processingorder","MaxSTPhase/lambda$0$Type",1416),bn(1414,1,P,xwe),i.accept=function(e){var t,n;t=this.$$outer_0,n=Pn(e,63),gy(t.nodeMap,n.originalVertex,n)},Qn("org.eclipse.elk.alg.spore.p2processingorder","MinSTPhase/lambda$0$Type",1414),bn(767,1,pt,Swe),i.getLayoutProcessorConfiguration=function(e){return Pn(e,300),new vve},i.process=function(e,t){Cwe(this,Pn(e,300),t)},i.overlapsExisted=!1,Qn("org.eclipse.elk.alg.spore.p3execution","GrowTreePhase",767),bn(768,1,P,kwe),i.accept=function(e){var t,n,r,i;t=this.$$outer_0,n=this.img_1,r=this.t_2,i=Pn(e,219),Pn(r.node,63),Pn(r.node,63),Pn(i.node,63),Pn(i.node,63),Pn(i.node,63),hm(i.children,new kwe(t,n,i))},Qn("org.eclipse.elk.alg.spore.p3execution","GrowTreePhase/lambda$0$Type",768),bn(1417,1,pt,$we),i.getLayoutProcessorConfiguration=function(e){return Pn(e,300),new vve},i.process=function(e,t){!function(e,t,n){sTe(n,"Shrinking tree compaction",1),Nf(Nn(ez(t,(bz(),fz))))?(function(e,t){var n;n=new Az,Pn(t.node,63),Pn(t.node,63),Pn(t.node,63),hm(t.children,new Iwe(e,n,t))}(e,t.tree),sz(t.tree,t.orthogonalCompaction)):sz(t.tree,t.orthogonalCompaction),oTe(n)}(this,Pn(e,300),t)},Qn("org.eclipse.elk.alg.spore.p3execution","ShrinkTreeCompactionPhase",1417),bn(766,1,P,Iwe),i.accept=function(e){var t,n,r,i,a;t=this.$$outer_0,n=this.svg_1,r=this.t_2,i=Pn(e,219),Pn(r.node,63),Pn(r.node,63),Pn(i.node,63),Pn(i.node,63),ZEe(a=tbe(HEe(Pn(r.node,63).vertex),Pn(i.node,63).vertex),Cz(Pn(r.node,63),Pn(i.node,63),a)),Pn(i.node,63),Pn(i.node,63),Pn(i.node,63).vertex.x_0,a.x_0,Pn(i.node,63).vertex.y_0,a.y_0,Pn(i.node,63),hm(i.children,new Iwe(t,n,i))},Qn("org.eclipse.elk.alg.spore.p3execution","ShrinkTreeCompactionPhase/lambda$0$Type",766);var Twe,Pwe,Mwe=tr("org.eclipse.elk.core.util","IGraphElementVisitor");function Nwe(){Nwe=En,new LDe("org.eclipse.elk.addLayoutConfig"),Pwe=new Owe,Twe=new Gwe,new jwe}function Lwe(e,t){var n;return(n=Pn(cy(e.classOptionMap,t),134))||(n=new iz,gy(e.classOptionMap,t,n)),n}function zwe(){Nwe(),this.elementOptionMap=new Rv,this.classOptionMap=new Rv,this.optionFilters=new xm}bn(839,1,{520:1},zwe),i.visit=function(e){var t;t=function(e,t){var n;return n=new iz,t&&ZL(n,Pn(cy(e.classOptionMap,XPe),94)),Fn(t,464)&&ZL(n,Pn(cy(e.classOptionMap,JPe),94)),Fn(t,351)?(ZL(n,Pn(cy(e.classOptionMap,SMe),94)),n):(Fn(t,93)&&ZL(n,Pn(cy(e.classOptionMap,ZPe),94)),Fn(t,238)?(ZL(n,Pn(cy(e.classOptionMap,kMe),94)),n):Fn(t,199)?(ZL(n,Pn(cy(e.classOptionMap,$Me),94)),n):(Fn(t,349)&&ZL(n,Pn(cy(e.classOptionMap,QPe),94)),n))}(this,e),ZL(t,Pn(cy(this.elementOptionMap,e),94)),function(e,t,n){var r,i;if(0==e.optionFilters.array.length)t.copyProperties(n);else for(i=(n.propertyMap?n.propertyMap:(hw(),hw(),Sm)).entrySet_0().iterator_0();i.hasNext_0();)r=Pn(i.next_1(),43),!lk(YS(new ck(null,new YE(e.optionFilters,16)),new vC(new Vwe(t,r)))).tryAdvance((US(),VS))&&t.setProperty(Pn(r.getKey(),146),r.getValue())}(this,e,t)},Qn("org.eclipse.elk.core","LayoutConfigurator",839);var Awe,Dwe,Rwe,Fwe=tr("org.eclipse.elk.core","LayoutConfigurator/IPropertyHolderOptionFilter");function Owe(){}function Gwe(){}function Bwe(e,t){return function(e,t){var n,r,i;if(Nwe(),n=Xve(exe(),t.getId())){if(r=n.targets,Fn(e,238))return!(i=Pn(e,34)).children&&(i.children=new HUe(kMe,i,10,11)),i.children.size_0>0?Pv(r,(Yxe(),Nxe))||Pv(r,Lxe):Pv(r,(Yxe(),Nxe));if(Fn(e,349))return Pv(r,(Yxe(),Pxe));if(Fn(e,199))return Pv(r,(Yxe(),zxe));if(Fn(e,351))return Pv(r,(Yxe(),Mxe))}return!0}(e,t)}function jwe(){}function Vwe(e,t){this.element_0=e,this.entry_1=t}function Hwe(e,t,n){var r,i,a,s;for(a=(!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children).size_0,i=new BFe((!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children));i.cursor!=i.this$01_2.size_1();)0==(!(r=Pn(OFe(i),34)).children&&(r.children=new HUe(kMe,r,10,11)),r.children).size_0||(a+=Hwe(e,r,!1));if(n)for(s=Ize(t);s;)a+=(!s.children&&(s.children=new HUe(kMe,s,10,11)),s.children).size_0,s=Ize(s);return a}function Uwe(e,t){var n,r,i,a,s;for(a=(!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children).size_0,i=new BFe((!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children));i.cursor!=i.this$01_2.size_1();)Hn(wNe(r=Pn(OFe(i),34),(BSe(),xCe)))!==Hn((Oke(),Nke))&&((s=Pn(wNe(t,_Se),149))==(n=Pn(wNe(r,_Se),149))||s&&Ive(s,n))&&0!=(!r.children&&(r.children=new HUe(kMe,r,10,11)),r.children).size_0&&(a+=Uwe(e,r));return a}function qwe(e){var t;Hn(wNe(e,(BSe(),xCe)))===Hn((Oke(),Mke))&&(Ize(e)?(t=Pn(wNe(Ize(e),xCe),332),xNe(e,xCe,t)):xNe(e,xCe,Nke))}function Wwe(e,t,n,r){var i,a,s,o,l,c,u,h,g,f,d,p;if(Nf(Nn(wNe(t,(BSe(),VCe)))))return hw(),hw(),Cm;if(l=0!=(!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children).size_0,c=!(u=function(e){var t,n,r;if(Nf(Nn(wNe(e,(BSe(),CCe))))){for(r=new xm,n=new Qo(Bo(ODe(e).val$inputs1.iterator_0(),new Io));Jo(n);)rLe(t=Pn(Zo(n),80))&&Nf(Nn(wNe(t,SCe)))&&(r.array[r.array.length]=t);return r}return hw(),hw(),Cm}(t)).isEmpty(),l||c){if(!(i=Pn(wNe(t,_Se),149)))throw Vg(new Xwe("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(p=Tve(i,(kDe(),Wze)),qwe(t),!l&&c&&!p)return hw(),hw(),Cm;if(o=new xm,Hn(wNe(t,xCe))===Hn((Oke(),Pke))&&(Tve(i,Hze)||Tve(i,Vze)))for(g=Uwe(e,t),ui(f=new Hx,(!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children));0!=f.size_0;)qwe(h=Pn(0==f.size_0?null:(Jk(0!=f.size_0),jx(f,f.header.next_0)),34)),Hn(wNe(h,xCe))===Hn(Nke)||vNe(h,eCe)&&!Ive(i,wNe(h,_Se))?(um(o,Wwe(e,h,n,r)),xNe(h,xCe,Nke),jTe(h)):ui(f,(!h.children&&(h.children=new HUe(kMe,h,10,11)),h.children));else for(g=(!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children).size_0,s=new BFe((!t.children&&(t.children=new HUe(kMe,t,10,11)),t.children));s.cursor!=s.this$01_2.size_1();)um(o,Wwe(e,a=Pn(OFe(s),34),n,r)),jTe(a);for(d=new Rm(o);d.i=0&&re)throw Vg(new gd("k must be smaller than n"));return 0==t||t==e?1:0==e?0:bEe(e)/(bEe(t)*bEe(e-t))}function mEe(e,t,n){var i,a,s,o,l,c;return _Ee(),o=t/2,s=n/2,l=1,c=1,(i=r.Math.abs(e.x_0))>o&&(l=o/i),(a=r.Math.abs(e.y_0))>s&&(c=s/a),XEe(e,r.Math.min(l,c)),e}function wEe(e,t){var n,r,i,a;return i=e.x_0,n=e.x_0+e.width_0,a=e.y_0,r=e.y_0+e.height,t.x_0>i&&t.x_0a&&t.y_0=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,r-=1);return t<0?1/i:i}(e,e)/PEe(2.718281828459045,e))}function CEe(e,t){var n,r,i,a,s,o;for(i=t.length-1,s=0,o=0,r=0;r<=i;r++)a=t[r],n=yEe(i,r)*PEe(1-e,i-r)*PEe(e,r),s+=a.x_0*n,o+=a.y_0*n;return new ibe(s,o)}function SEe(e,t,n){return _Ee(),(!wEe(e,t)||!wEe(e,n))&&($Ee(new ibe(e.x_0,e.y_0),new ibe(e.x_0+e.width_0,e.y_0),t,n)||$Ee(new ibe(e.x_0+e.width_0,e.y_0),new ibe(e.x_0+e.width_0,e.y_0+e.height),t,n)||$Ee(new ibe(e.x_0+e.width_0,e.y_0+e.height),new ibe(e.x_0,e.y_0+e.height),t,n)||$Ee(new ibe(e.x_0,e.y_0+e.height),new ibe(e.x_0,e.y_0),t,n))}function kEe(e,t){var n,r,i,a;if(_Ee(),t.size_0<2)return!1;for(r=n=Pn(eE(a=Gx(t,0)),8);a.currentNode!=a.this$01.tail;){if(SEe(e,r,i=Pn(eE(a),8)))return!0;r=i}return!!SEe(e,r,n)}function $Ee(e,t,n,i){var a,s,o,l,c,u,h,g,f,d,p,_,y,m,w;return l=e,u=tbe(new ibe(t.x_0,t.y_0),e),c=n,h=tbe(new ibe(i.x_0,i.y_0),n),g=l.x_0,_=l.y_0,d=c.x_0,m=c.y_0,f=u.x_0,y=u.y_0,a=(p=h.x_0)*y-f*(w=h.y_0),au(),lu(wt),!(r.Math.abs(0-a)<=wt||0==a||isNaN(0)&&isNaN(a))&&(s=1/a*((g-d)*y-(_-m)*f),o=1/a*-(-(g-d)*w+(_-m)*p),lu(wt),(r.Math.abs(0-s)<=wt||0==s||isNaN(0)&&isNaN(s)?0:0s?1:cu(isNaN(0),isNaN(s)))<0&&(lu(wt),(r.Math.abs(s-1)<=wt||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:cu(isNaN(s),isNaN(1)))<0)&&(lu(wt),(r.Math.abs(0-o)<=wt||0==o||isNaN(0)&&isNaN(o)?0:0o?1:cu(isNaN(0),isNaN(o)))<0)&&(lu(wt),(r.Math.abs(o-1)<=wt||1==o||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:cu(isNaN(o),isNaN(1)))<0))}function IEe(e,t,n,i){var a,s,o,l,c,u,h,g,f;return u=(c=tbe(new ibe(n.x_0,n.y_0),e)).x_0*t.y_0-c.y_0*t.x_0,h=t.x_0*i.y_0-t.y_0*i.x_0,g=(c.x_0*i.y_0-c.y_0*i.x_0)/h,f=u/h,0==h?0==u?(s=UEe(e,a=jEe(new ibe(n.x_0,n.y_0),XEe(new ibe(i.x_0,i.y_0),.5))),o=UEe(jEe(new ibe(e.x_0,e.y_0),t),a),l=.5*r.Math.sqrt(i.x_0*i.x_0+i.y_0*i.y_0),s=0&&g<=1&&f>=0&&f<=1?jEe(new ibe(e.x_0,e.y_0),XEe(new ibe(t.x_0,t.y_0),g)):null}function TEe(e){var t,n;for(_Ee(),n=-17976931348623157e292,t=0;tn&&(n=e[t]);return n}function PEe(e,t){var n,r,i;for(i=1,n=e,r=t>=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,r-=1);return t<0?1/i:i}function MEe(e,t,n,i,a){var s,o,l,c;return c=pe,o=!1,s=!!(l=IEe(e,tbe(new ibe(t.x_0,t.y_0),e),jEe(new ibe(n.x_0,n.y_0),a),tbe(new ibe(i.x_0,i.y_0),n)))&&!(r.Math.abs(l.x_0-e.x_0)<=Lt&&r.Math.abs(l.y_0-e.y_0)<=Lt||r.Math.abs(l.x_0-t.x_0)<=Lt&&r.Math.abs(l.y_0-t.y_0)<=Lt),(l=IEe(e,tbe(new ibe(t.x_0,t.y_0),e),n,a))&&((r.Math.abs(l.x_0-e.x_0)<=Lt&&r.Math.abs(l.y_0-e.y_0)<=Lt)==(r.Math.abs(l.x_0-t.x_0)<=Lt&&r.Math.abs(l.y_0-t.y_0)<=Lt)||s?c=r.Math.min(c,WEe(tbe(l,n))):o=!0),(l=IEe(e,tbe(new ibe(t.x_0,t.y_0),e),i,a))&&(o||(r.Math.abs(l.x_0-e.x_0)<=Lt&&r.Math.abs(l.y_0-e.y_0)<=Lt)==(r.Math.abs(l.x_0-t.x_0)<=Lt&&r.Math.abs(l.y_0-t.y_0)<=Lt)||s)&&(c=r.Math.min(c,WEe(tbe(l,i)))),c}function NEe(e){return new ibe(e.x_0,e.y_0+e.height)}function LEe(e){return new ibe(e.x_0+e.width_0,e.y_0+e.height)}function zEe(e){return new ibe(e.x_0+e.width_0/2,e.y_0+e.height/2)}function AEe(e){return new ibe(e.x_0,e.y_0)}function DEe(e,t,n,r,i){e.x_0=t,e.y_0=n,e.width_0=r,e.height=i}function REe(e,t){var n,i,a,s,o;i=r.Math.min(e.x_0,t.x_0),s=r.Math.min(e.y_0,t.y_0),(a=r.Math.max(e.x_0+e.width_0,t.x_0+t.width_0))r&&(e.x_0=r),e.y_0i&&(e.y_0=i),e}function HEe(e){return new ibe(e.x_0,e.y_0)}function UEe(e,t){var n,i;return n=e.x_0-t.x_0,i=e.y_0-t.y_0,r.Math.sqrt(n*n+i*i)}function qEe(e,t){var n;return!!Fn(t,8)&&(n=Pn(t,8),e.x_0==n.x_0&&e.y_0==n.y_0)}function WEe(e){return r.Math.sqrt(e.x_0*e.x_0+e.y_0*e.y_0)}function KEe(e){return e.x_0=-e.x_0,e.y_0=-e.y_0,e}function YEe(e){return e.x_0=0,e.y_0=0,e}function XEe(e,t){return e.x_0*=t,e.y_0*=t,e}function JEe(e,t,n){return e.x_0*=t,e.y_0*=n,e}function ZEe(e,t){return function(e){var t;(t=r.Math.sqrt(e.x_0*e.x_0+e.y_0*e.y_0))>0&&(e.x_0/=t,e.y_0/=t)}(e),e.x_0*=t,e.y_0*=t,e}function QEe(e,t){return e.x_0=t.x_0,e.y_0=t.y_0,e}function ebe(e,t,n){return e.x_0-=t,e.y_0-=n,e}function tbe(e,t){return e.x_0-=t.x_0,e.y_0-=t.y_0,e}function nbe(){this.x_0=0,this.y_0=0}function rbe(e){this.x_0=r.Math.cos(e),this.y_0=r.Math.sin(e)}function ibe(e,t){this.x_0=e,this.y_0=t}function abe(e){this.x_0=e.x_0,this.y_0=e.y_0}function sbe(e,t){var n;for(n=0;n0&&sbe((s$(t-1,e.length),e.charCodeAt(t-1)),")]}\"' \t\r\n");)--t;if(n>=t)throw Vg(new gd("The given string does not contain any numbers."));if(2!=(r=hp(e.substr(n,t-n),",|;|\r|\n")).length)throw Vg(new gd("Exactly two numbers are expected, "+r.length+" were found."));try{this.x_0=Df(yp(r[0])),this.y_0=Df(yp(r[1]))}catch(e){throw Fn(e=jg(e),127)?Vg(new gd("The given string contains parts that cannot be parsed as numbers."+e)):Vg(e)}},i.toString_0=function(){return"("+this.x_0+","+this.y_0+")"},i.x_0=0,i.y_0=0;var lbe=Qn("org.eclipse.elk.core.math","KVector",8);function cbe(e,t){var n,r,i;for(r=0,i=(n=t).length;r0&&(i%2==0?r=Df(n[t]):a=Df(n[t]),i>0&&i%2!=0&&zx(this,new ibe(r,a)),++i),++t}catch(e){throw Fn(e=jg(e),127)?Vg(new gd("The given string does not match the expected format for vectors."+e)):Vg(e)}},i.toString_0=function(){var e,t,n;for(e=new Qp("("),t=Gx(this,0);t.currentNode!=t.this$01.tail;)Wp(e,(n=Pn(eE(t),8)).x_0+","+n.y_0),t.currentNode!=t.this$01.tail&&(e.string+="; ");return(e.string+=")",e).string};var ybe,mbe,wbe,vbe,xbe,Ebe,bbe=Qn("org.eclipse.elk.core.math","KVectorChain",74);function Cbe(){Cbe=En,ybe=new Sbe("AUTOMATIC",0),vbe=new Sbe("LEFT",1),xbe=new Sbe("RIGHT",2),Ebe=new Sbe("TOP",3),mbe=new Sbe("BOTTOM",4),wbe=new Sbe("CENTER",5)}function Sbe(e,t){nl.call(this,e,t)}bn(247,22,{3:1,36:1,22:1,247:1},Sbe);var kbe,$be,Ibe,Tbe,Pbe,Mbe,Nbe,Lbe,zbe,Abe,Dbe,Rbe,Fbe,Obe,Gbe,Bbe,jbe,Vbe,Hbe,Ube=er("org.eclipse.elk.core.options","Alignment",247,sl,(function(){return Cbe(),Sg(yg(Ube,1),W,247,0,[ybe,vbe,xbe,Ebe,mbe,wbe])}),(function(e){return Cbe(),il((qbe(),kbe),e)}));function qbe(){qbe=En,kbe=rl((Cbe(),Sg(yg(Ube,1),W,247,0,[ybe,vbe,xbe,Ebe,mbe,wbe])))}function Wbe(){Wbe=En,Dbe=new Hj(15),Abe=new DDe((BSe(),HCe),Dbe),Fbe=new DDe(TSe,15),Rbe=new DDe(dSe,Cd(0)),Pbe=vCe,Nbe=DCe,zbe=BCe,$be=new DDe(rCe,zt),Mbe=kCe,Lbe=OCe,Ibe=aCe,Tbe=lCe}function Kbe(e){ixe(e,new Pve(Rve(zve(Dve(Ave(new Ove,"org.eclipse.elk.box"),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new Xbe))),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.padding",Dbe),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.spacing.nodeNode",15),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.priority",Cd(0)),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.expandNodes",NDe(Pbe)),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.nodeSize.constraints",NDe(Nbe)),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.nodeSize.options",NDe(zbe)),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.aspectRatio",zt),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.interactive",NDe(Mbe)),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.nodeSize.minimum",NDe(Lbe)),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.box.packingMode",NDe(Ibe)),nxe(e,"org.eclipse.elk.box","org.eclipse.elk.contentAlignment",NDe(Tbe))}function Ybe(){Wbe()}function Xbe(){}function Jbe(){Jbe=En,Hbe=new Zbe("V_TOP",0),Vbe=new Zbe("V_CENTER",1),jbe=new Zbe("V_BOTTOM",2),Gbe=new Zbe("H_LEFT",3),Obe=new Zbe("H_CENTER",4),Bbe=new Zbe("H_RIGHT",5)}function Zbe(e,t){nl.call(this,e,t)}bn(943,1,qe,Ybe),i.apply_4=function(e){Kbe(e)},Qn("org.eclipse.elk.core.options","BoxLayouterOptions",943),bn(944,1,{},Xbe),i.create_0=function(){return new yTe},i.destroy=function(e){},Qn("org.eclipse.elk.core.options","BoxLayouterOptions/BoxFactory",944),bn(290,22,{3:1,36:1,22:1,290:1},Zbe);var Qbe,eCe,tCe,nCe,rCe,iCe,aCe,sCe,oCe,lCe,cCe,uCe,hCe,gCe,fCe,dCe,pCe,_Ce,yCe,mCe,wCe,vCe,xCe,ECe,bCe,CCe,SCe,kCe,$Ce,ICe,TCe,PCe,MCe,NCe,LCe,zCe,ACe,DCe,RCe,FCe,OCe,GCe,BCe,jCe,VCe,HCe,UCe,qCe,WCe,KCe,YCe,XCe,JCe,ZCe,QCe,eSe,tSe,nSe,rSe,iSe,aSe,sSe,oSe,lSe,cSe,uSe,hSe,gSe,fSe,dSe,pSe,_Se,ySe,mSe,wSe,vSe,xSe,ESe,bSe,CSe,SSe,kSe,$Se,ISe,TSe,PSe,MSe,NSe,LSe,zSe,ASe,DSe,RSe,FSe,OSe=er("org.eclipse.elk.core.options","ContentAlignment",290,sl,(function(){return Jbe(),Sg(yg(OSe,1),W,290,0,[Hbe,Vbe,jbe,Gbe,Obe,Bbe])}),(function(e){return Jbe(),il((GSe(),Qbe),e)}));function GSe(){GSe=En,Qbe=rl((Jbe(),Sg(yg(OSe,1),W,290,0,[Hbe,Vbe,jbe,Gbe,Obe,Bbe])))}function BSe(){var e,t;BSe=En,eCe=new LDe("org.eclipse.elk.algorithm"),_Se=new LDe("org.eclipse.elk.resolvedAlgorithm"),Cbe(),tCe=new ADe("org.eclipse.elk.alignment",nCe=ybe),new fPe,rCe=new ADe("org.eclipse.elk.aspectRatio",null),iCe=new LDe("org.eclipse.elk.bendPoints"),Jbe(),cCe=kv(Hbe,Sg(yg(OSe,1),W,290,0,[Gbe])),lCe=new ADe("org.eclipse.elk.contentAlignment",cCe),uCe=new ADe("org.eclipse.elk.debugMode",(Mf(),!1)),VSe(),hCe=new ADe("org.eclipse.elk.direction",gCe=RSe),cke(),_Ce=new ADe("org.eclipse.elk.edgeRouting",yCe=ske),vCe=new ADe("org.eclipse.elk.expandNodes",!1),Oke(),xCe=new ADe("org.eclipse.elk.hierarchyHandling",ECe=Mke),UCe=new Hj(12),HCe=new ADe("org.eclipse.elk.padding",UCe),kCe=new ADe("org.eclipse.elk.interactive",!1),$Ce=new ADe("org.eclipse.elk.interactiveLayout",!1),P$e(),iSe=new ADe("org.eclipse.elk.portConstraints",aSe=$$e),fSe=new LDe("org.eclipse.elk.position"),dSe=new LDe("org.eclipse.elk.priority"),pSe=new LDe("org.eclipse.elk.randomSeed"),mSe=new LDe("org.eclipse.elk.separateConnectedComponents"),TCe=new fbe,ICe=new ADe("org.eclipse.elk.junctionPoints",TCe),oCe=new ADe("org.eclipse.elk.commentBox",!1),bCe=new ADe("org.eclipse.elk.hypernode",!1),new LDe("org.eclipse.elk.labelManager"),MCe=new oj,PCe=new ADe("org.eclipse.elk.margins",MCe),VCe=new ADe("org.eclipse.elk.noLayout",!1),new fPe,ySe=new ADe("org.eclipse.elk.scaleFactor",1),new ADe("org.eclipse.elk.animate",!0),Cd(0),new ADe("org.eclipse.elk.animTimeFactor",Cd(100)),new ADe("org.eclipse.elk.layoutAncestors",!1),Cd(0),new ADe("org.eclipse.elk.maxAnimTime",Cd(4e3)),Cd(0),new ADe("org.eclipse.elk.minAnimTime",Cd(400)),new ADe("org.eclipse.elk.progressBar",!1),new ADe("org.eclipse.elk.validateGraph",!1),new ADe("org.eclipse.elk.validateOptions",!0),new ADe("org.eclipse.elk.zoomToFit",!1),$Te(),aCe=new ADe("org.eclipse.elk.box.packingMode",sCe=rTe),wSe=new ADe("org.eclipse.elk.spacing.commentComment",10),vSe=new ADe("org.eclipse.elk.spacing.commentNode",10),xSe=new ADe("org.eclipse.elk.spacing.componentComponent",20),ESe=new ADe("org.eclipse.elk.spacing.edgeEdge",10),bSe=new ADe("org.eclipse.elk.spacing.edgeLabel",2),CSe=new ADe("org.eclipse.elk.spacing.edgeNode",10),kSe=new ADe("org.eclipse.elk.spacing.labelLabel",0),$Se=new ADe("org.eclipse.elk.spacing.labelNode",5),ISe=new ADe("org.eclipse.elk.spacing.labelPort",1),TSe=new ADe("org.eclipse.elk.spacing.nodeNode",20),PSe=new ADe("org.eclipse.elk.spacing.nodeSelfLoop",10),LSe=new ADe("org.eclipse.elk.spacing.portPort",10),SSe=new LDe("org.eclipse.elk.spacing.individual"),NSe=new lj,MSe=new ADe("org.eclipse.elk.spacing.portsSurrounding",NSe),KCe=new LDe("org.eclipse.elk.partitioning.partition"),qCe=new ADe("org.eclipse.elk.partitioning.activate",WCe=!1),LCe=new Hj(5),NCe=new ADe("org.eclipse.elk.nodeLabels.padding",LCe),c$e(),t=Pn(Kn(y$e),9),ACe=new Nv(t,Pn(Dk(t,t.length),9),0),zCe=new ADe("org.eclipse.elk.nodeLabels.placement",ACe),w$e(),XCe=new ADe("org.eclipse.elk.portAlignment.default",JCe=d$e),QCe=new LDe("org.eclipse.elk.portAlignment.north"),eSe=new LDe("org.eclipse.elk.portAlignment.south"),tSe=new LDe("org.eclipse.elk.portAlignment.west"),ZCe=new LDe("org.eclipse.elk.portAlignment.east"),e=Pn(Kn(YIe),9),RCe=new Nv(e,Pn(Dk(e,e.length),9),0),DCe=new ADe("org.eclipse.elk.nodeSize.constraints",RCe),jCe=Sv((JIe(),jIe)),BCe=new ADe("org.eclipse.elk.nodeSize.options",jCe),GCe=new ibe(0,0),OCe=new ADe("org.eclipse.elk.nodeSize.minimum",GCe),FCe=new ADe("org.eclipse.elk.nodeSize.fixedGraphSize",!1),eke(),dCe=new ADe("org.eclipse.elk.edgeLabels.placement",pCe=YSe),fCe=new ADe("org.eclipse.elk.edgeLabels.inline",!1),new LDe("org.eclipse.elk.font.name"),Cd(1),new ADe("org.eclipse.elk.font.size",null),nSe=new LDe("org.eclipse.elk.port.anchor"),sSe=new LDe("org.eclipse.elk.port.index"),pIe(),hSe=new ADe("org.eclipse.elk.port.side",gSe=hIe),rSe=new LDe("org.eclipse.elk.port.borderOffset"),j$e(),cSe=Sv(F$e),lSe=new ADe("org.eclipse.elk.portLabels.placement",cSe),oSe=new ADe("org.eclipse.elk.portLabels.nextToPortIfPossible",!1),uSe=new ADe("org.eclipse.elk.portLabels.treatAsGroup",!0),CCe=new ADe("org.eclipse.elk.insideSelfLoops.activate",!1),SCe=new ADe("org.eclipse.elk.insideSelfLoops.yo",!1),mCe=new ADe("org.eclipse.elk.edge.thickness",1),vke(),new ADe("org.eclipse.elk.edge.type",wCe=_ke),YCe=!0}function jSe(){BSe()}function VSe(){VSe=En,RSe=new WSe("UNDEFINED",0),DSe=new WSe("RIGHT",1),ASe=new WSe("LEFT",2),zSe=new WSe("DOWN",3),FSe=new WSe("UP",4)}function HSe(e){return e==ASe||e==DSe}function USe(e){return e==FSe||e==zSe}function qSe(e){switch(e.ordinal){case 2:return DSe;case 1:return ASe;case 4:return zSe;case 3:return FSe;default:return RSe}}function WSe(e,t){nl.call(this,e,t)}bn(671,1,qe,jSe),i.apply_4=function(e){sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.algorithm"),""),"Layout Algorithm"),"Select a specific layout algorithm."),(lEe(),iEe)),Mp),Sv((Yxe(),Lxe))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.resolvedAlgorithm"),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),rEe),Nve),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.alignment"),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),nCe),eEe),Ube),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.aspectRatio"),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.bendPoints"),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),rEe),bbe),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.contentAlignment"),""),"Content Alignment"),"Specifies how the content of compound nodes is to be aligned, e.g. top-left."),cCe),tEe),OSe),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.debugMode"),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Mf(),!1)),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.direction"),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),gCe),eEe),ZSe),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.edgeRouting"),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),yCe),eEe),mke),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.expandNodes"),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.hierarchyHandling"),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),ECe),eEe),qke),kv(Lxe,Sg(yg(sEe,1),W,175,0,[Nxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.padding"),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),UCe),rEe),Zj),kv(Lxe,Sg(yg(sEe,1),W,175,0,[Nxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.interactive"),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.interactiveLayout"),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portConstraints"),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),aSe),eEe),G$e),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.position"),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),rEe),lbe),kv(Nxe,Sg(yg(sEe,1),W,175,0,[zxe,Mxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.priority"),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),nEe),$d),kv(Nxe,Sg(yg(sEe,1),W,175,0,[Pxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.randomSeed"),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),nEe),$d),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.separateConnectedComponents"),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.junctionPoints"),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),TCe),rEe),bbe),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.commentBox"),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.hypernode"),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.labelManager"),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),rEe),y1e),kv(Lxe,Sg(yg(sEe,1),W,175,0,[Mxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.margins"),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),MCe),rEe),hj),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.noLayout"),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),Zxe),Af),kv(Nxe,Sg(yg(sEe,1),W,175,0,[Pxe,zxe,Mxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.scaleFactor"),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qxe),od),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.animate"),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.animTimeFactor"),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Cd(100)),nEe),$d),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.layoutAncestors"),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.maxAnimTime"),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Cd(4e3)),nEe),$d),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.minAnimTime"),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Cd(400)),nEe),$d),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.progressBar"),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.validateGraph"),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.validateOptions"),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.zoomToFit"),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.box.packingMode"),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),sCe),eEe),PTe),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.commentComment"),"spacing"),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.commentNode"),"spacing"),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.componentComponent"),"spacing"),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.edgeEdge"),"spacing"),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.edgeLabel"),"spacing"),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.edgeNode"),"spacing"),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.labelLabel"),"spacing"),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.labelNode"),"spacing"),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.labelPort"),"spacing"),"Label Port Spacing"),"Spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.nodeNode"),"spacing"),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.nodeSelfLoop"),"spacing"),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qxe),od),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.portPort"),"spacing"),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qxe),od),kv(Lxe,Sg(yg(sEe,1),W,175,0,[Nxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.individual"),"spacing"),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),rEe),bPe),kv(Nxe,Sg(yg(sEe,1),W,175,0,[Pxe,zxe,Mxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.spacing.portsSurrounding"),"spacing"),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),NSe),rEe),hj),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.partitioning.partition"),"partitioning"),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),nEe),$d),kv(Lxe,Sg(yg(sEe,1),W,175,0,[Nxe]))))),txe(e,"org.eclipse.elk.partitioning.partition","org.eclipse.elk.partitioning.activate",YCe),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.partitioning.activate"),"partitioning"),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),WCe),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.nodeLabels.padding"),"nodeLabels"),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),LCe),rEe),Zj),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.nodeLabels.placement"),"nodeLabels"),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),ACe),tEe),y$e),kv(Nxe,Sg(yg(sEe,1),W,175,0,[Mxe]))))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portAlignment.default"),"portAlignment"),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),JCe),eEe),I$e),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portAlignment.north"),"portAlignment"),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),eEe),I$e),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portAlignment.south"),"portAlignment"),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),eEe),I$e),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portAlignment.west"),"portAlignment"),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),eEe),I$e),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portAlignment.east"),"portAlignment"),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),eEe),I$e),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.nodeSize.constraints"),"nodeSize"),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),RCe),tEe),YIe),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.nodeSize.options"),"nodeSize"),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),jCe),tEe),iTe),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.nodeSize.minimum"),"nodeSize"),"Node Size Minimum"),"The minimal size to which a node can be reduced."),GCe),rEe),lbe),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.nodeSize.fixedGraphSize"),"nodeSize"),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),Zxe),Af),Sv(Lxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.edgeLabels.placement"),"edgeLabels"),"Edge Label Placement"),"Gives a hint on where to put edge labels."),pCe),eEe),oke),Sv(Mxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.edgeLabels.inline"),"edgeLabels"),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),Zxe),Af),Sv(Mxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.font.name"),"font"),"Font Name"),"Font name used for a label."),iEe),Mp),Sv(Mxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.font.size"),"font"),"Font Size"),"Font size used for a label."),nEe),$d),Sv(Mxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.port.anchor"),"port"),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),rEe),lbe),Sv(zxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.port.index"),"port"),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),nEe),$d),Sv(zxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.port.side"),"port"),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),gSe),eEe),MIe),Sv(zxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.port.borderOffset"),"port"),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qxe),od),Sv(zxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portLabels.placement"),"portLabels"),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),cSe),tEe),fIe),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portLabels.nextToPortIfPossible"),"portLabels"),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.portLabels.treatAsGroup"),"portLabels"),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.insideSelfLoops.activate"),"insideSelfLoops"),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),Zxe),Af),Sv(Nxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.insideSelfLoops.yo"),"insideSelfLoops"),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Zxe),Af),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.edge.thickness"),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qxe),od),Sv(Pxe)))),sxe(e,new Oxe(qxe(Uxe(Wxe(Gxe(Bxe(Hxe(jxe(Vxe(new Kxe,"org.eclipse.elk.edge.type"),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),wCe),eEe),Lke),Sv(Pxe)))),axe(e,new jve(Vve(Uve(Hve(new qve,"org.eclipse.elk.layered"),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),axe(e,new jve(Vve(Uve(Hve(new qve,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),axe(e,new jve(Vve(Uve(Hve(new qve,"org.eclipse.elk.force"),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),axe(e,new jve(Vve(Uve(Hve(new qve,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),axe(e,new jve(Vve(Uve(Hve(new qve,"org.eclipse.elk.tree"),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),axe(e,new jve(Vve(Uve(Hve(new qve,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),axe(e,new jve(Vve(Uve(Hve(new qve,"org.eclipse.elk.radial"),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Dke((new Rke,e)),Kbe((new Ybe,e)),zIe((new AIe,e))},Qn("org.eclipse.elk.core.options","CoreOptions",671),bn(108,22,{3:1,36:1,22:1,108:1},WSe);var KSe,YSe,XSe,JSe,ZSe=er("org.eclipse.elk.core.options","Direction",108,sl,(function(){return VSe(),Sg(yg(ZSe,1),W,108,0,[RSe,DSe,ASe,zSe,FSe])}),(function(e){return VSe(),il((QSe(),KSe),e)}));function QSe(){QSe=En,KSe=rl((VSe(),Sg(yg(ZSe,1),W,108,0,[RSe,DSe,ASe,zSe,FSe])))}function eke(){eke=En,YSe=new tke("CENTER",0),XSe=new tke("HEAD",1),JSe=new tke("TAIL",2)}function tke(e,t){nl.call(this,e,t)}bn(271,22,{3:1,36:1,22:1,271:1},tke);var nke,rke,ike,ake,ske,oke=er("org.eclipse.elk.core.options","EdgeLabelPlacement",271,sl,(function(){return eke(),Sg(yg(oke,1),W,271,0,[YSe,XSe,JSe])}),(function(e){return eke(),il((lke(),nke),e)}));function lke(){lke=En,nke=rl((eke(),Sg(yg(oke,1),W,271,0,[YSe,XSe,JSe])))}function cke(){cke=En,ske=new uke("UNDEFINED",0),ike=new uke("POLYLINE",1),rke=new uke("ORTHOGONAL",2),ake=new uke("SPLINES",3)}function uke(e,t){nl.call(this,e,t)}bn(216,22,{3:1,36:1,22:1,216:1},uke);var hke,gke,fke,dke,pke,_ke,yke,mke=er("org.eclipse.elk.core.options","EdgeRouting",216,sl,(function(){return cke(),Sg(yg(mke,1),W,216,0,[ske,ike,rke,ake])}),(function(e){return cke(),il((wke(),hke),e)}));function wke(){wke=En,hke=rl((cke(),Sg(yg(mke,1),W,216,0,[ske,ike,rke,ake])))}function vke(){vke=En,_ke=new xke("NONE",0),dke=new xke("DIRECTED",1),yke=new xke("UNDIRECTED",2),gke=new xke("ASSOCIATION",3),pke=new xke("GENERALIZATION",4),fke=new xke("DEPENDENCY",5)}function xke(e,t){nl.call(this,e,t)}bn(310,22,{3:1,36:1,22:1,310:1},xke);var Eke,bke,Cke,Ske,kke,$ke,Ike,Tke,Pke,Mke,Nke,Lke=er("org.eclipse.elk.core.options","EdgeType",310,sl,(function(){return vke(),Sg(yg(Lke,1),W,310,0,[_ke,dke,yke,gke,pke,fke])}),(function(e){return vke(),il((zke(),Eke),e)}));function zke(){zke=En,Eke=rl((vke(),Sg(yg(Lke,1),W,310,0,[_ke,dke,yke,gke,pke,fke])))}function Ake(){Ake=En,Ike=new Hj(15),$ke=new DDe((BSe(),HCe),Ike),Tke=fSe,bke=iCe,Cke=DCe,kke=OCe,Ske=FCe}function Dke(e){ixe(e,new Pve(Rve(zve(Dve(Ave(new Ove,"org.eclipse.elk.fixed"),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new Fke))),nxe(e,"org.eclipse.elk.fixed","org.eclipse.elk.padding",Ike),nxe(e,"org.eclipse.elk.fixed","org.eclipse.elk.position",NDe(Tke)),nxe(e,"org.eclipse.elk.fixed","org.eclipse.elk.bendPoints",NDe(bke)),nxe(e,"org.eclipse.elk.fixed","org.eclipse.elk.nodeSize.constraints",NDe(Cke)),nxe(e,"org.eclipse.elk.fixed","org.eclipse.elk.nodeSize.minimum",NDe(kke)),nxe(e,"org.eclipse.elk.fixed","org.eclipse.elk.nodeSize.fixedGraphSize",NDe(Ske))}function Rke(){Ake()}function Fke(){}function Oke(){Oke=En,Mke=new Gke("INHERIT",0),Pke=new Gke("INCLUDE_CHILDREN",1),Nke=new Gke("SEPARATE_CHILDREN",2)}function Gke(e,t){nl.call(this,e,t)}bn(941,1,qe,Rke),i.apply_4=function(e){Dke(e)},Qn("org.eclipse.elk.core.options","FixedLayouterOptions",941),bn(942,1,{},Fke),i.create_0=function(){return new pPe},i.destroy=function(e){},Qn("org.eclipse.elk.core.options","FixedLayouterOptions/FixedFactory",942),bn(332,22,{3:1,36:1,22:1,332:1},Gke);var Bke,jke,Vke,Hke,Uke,qke=er("org.eclipse.elk.core.options","HierarchyHandling",332,sl,(function(){return Oke(),Sg(yg(qke,1),W,332,0,[Mke,Pke,Nke])}),(function(e){return Oke(),il((Wke(),Bke),e)}));function Wke(){Wke=En,Bke=rl((Oke(),Sg(yg(qke,1),W,332,0,[Mke,Pke,Nke])))}function Kke(){Kke=En,Uke=new Xke("UNKNOWN",0),jke=new Xke("ABOVE",1),Vke=new Xke("BELOW",2),Hke=new Xke("INLINE",3),new zDe("org.eclipse.elk.labelSide",Uke)}function Yke(e){switch(e.ordinal){case 1:return Vke;case 2:return jke;case 3:return Hke;default:return Uke}}function Xke(e,t){nl.call(this,e,t)}bn(284,22,{3:1,36:1,22:1,284:1},Xke);var Jke,Zke,Qke,e$e,t$e,n$e,r$e,i$e,a$e,s$e,o$e=er("org.eclipse.elk.core.options","LabelSide",284,sl,(function(){return Kke(),Sg(yg(o$e,1),W,284,0,[Uke,jke,Vke,Hke])}),(function(e){return Kke(),il((l$e(),Jke),e)}));function l$e(){l$e=En,Jke=rl((Kke(),Sg(yg(o$e,1),W,284,0,[Uke,jke,Vke,Hke])))}function c$e(){c$e=En,Qke=new u$e("H_LEFT",0),Zke=new u$e("H_CENTER",1),t$e=new u$e("H_RIGHT",2),s$e=new u$e("V_TOP",3),a$e=new u$e("V_CENTER",4),i$e=new u$e("V_BOTTOM",5),n$e=new u$e("INSIDE",6),r$e=new u$e("OUTSIDE",7),e$e=new u$e("H_PRIORITY",8)}function u$e(e,t){nl.call(this,e,t)}bn(92,22,{3:1,36:1,22:1,92:1},u$e);var h$e,g$e,f$e,d$e,p$e,_$e,y$e=er("org.eclipse.elk.core.options","NodeLabelPlacement",92,sl,(function(){return c$e(),Sg(yg(y$e,1),W,92,0,[Qke,Zke,t$e,s$e,a$e,i$e,n$e,r$e,e$e])}),(function(e){return c$e(),il((m$e(),h$e),e)}));function m$e(){m$e=En,h$e=rl((c$e(),Sg(yg(y$e,1),W,92,0,[Qke,Zke,t$e,s$e,a$e,i$e,n$e,r$e,e$e])))}function w$e(){w$e=En,d$e=new v$e("DISTRIBUTED",0),_$e=new v$e("JUSTIFIED",1),g$e=new v$e("BEGIN",2),f$e=new v$e("CENTER",3),p$e=new v$e("END",4)}function v$e(e,t){nl.call(this,e,t)}bn(248,22,{3:1,36:1,22:1,248:1},v$e);var x$e,E$e,b$e,C$e,S$e,k$e,$$e,I$e=er("org.eclipse.elk.core.options","PortAlignment",248,sl,(function(){return w$e(),Sg(yg(I$e,1),W,248,0,[d$e,_$e,g$e,f$e,p$e])}),(function(e){return w$e(),il((T$e(),x$e),e)}));function T$e(){T$e=En,x$e=rl((w$e(),Sg(yg(I$e,1),W,248,0,[d$e,_$e,g$e,f$e,p$e])))}function P$e(){P$e=En,$$e=new L$e("UNDEFINED",0),k$e=new L$e("FREE",1),S$e=new L$e("FIXED_SIDE",2),E$e=new L$e("FIXED_ORDER",3),C$e=new L$e("FIXED_RATIO",4),b$e=new L$e("FIXED_POS",5)}function M$e(e){return e==E$e||e==C$e||e==b$e}function N$e(e){return e!=k$e&&e!=$$e}function L$e(e,t){nl.call(this,e,t)}bn(100,22,{3:1,36:1,22:1,100:1},L$e);var z$e,A$e,D$e,R$e,F$e,O$e,G$e=er("org.eclipse.elk.core.options","PortConstraints",100,sl,(function(){return P$e(),Sg(yg(G$e,1),W,100,0,[$$e,k$e,S$e,E$e,C$e,b$e])}),(function(e){return P$e(),il((B$e(),z$e),e)}));function B$e(){B$e=En,z$e=rl((P$e(),Sg(yg(G$e,1),W,100,0,[$$e,k$e,S$e,E$e,C$e,b$e])))}function j$e(){j$e=En,F$e=new V$e("OUTSIDE",0),D$e=new V$e("INSIDE",1),R$e=new V$e("NEXT_TO_PORT_IF_POSSIBLE",2),A$e=new V$e("ALWAYS_SAME_SIDE",3),O$e=new V$e("SPACE_EFFICIENT",4)}function V$e(e,t){nl.call(this,e,t)}function H$e(e){return j$e(),!e.contains(D$e)&&!e.contains(F$e)}bn(291,22,{3:1,36:1,22:1,291:1},V$e);var U$e,q$e,W$e,K$e,Y$e,X$e,J$e,Z$e,Q$e,eIe,tIe,nIe,rIe,iIe,aIe,sIe,oIe,lIe,cIe,uIe,hIe,gIe,fIe=er("org.eclipse.elk.core.options","PortLabelPlacement",291,sl,(function(){return j$e(),Sg(yg(fIe,1),W,291,0,[F$e,D$e,R$e,A$e,O$e])}),(function(e){return j$e(),il((dIe(),U$e),e)}));function dIe(){dIe=En,U$e=rl((j$e(),Sg(yg(fIe,1),W,291,0,[F$e,D$e,R$e,A$e,O$e])))}function pIe(){var e;pIe=En,hIe=new wIe("UNDEFINED",0),W$e=new wIe("NORTH",1),q$e=new wIe("EAST",2),uIe=new wIe("SOUTH",3),gIe=new wIe("WEST",4),hw(),Z$e=new Hw(new Nv(e=Pn(Kn(MIe),9),Pn(Dk(e,e.length),9),0)),Q$e=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[]))),K$e=lo(kv(q$e,Sg(yg(MIe,1),at,61,0,[]))),oIe=lo(kv(uIe,Sg(yg(MIe,1),at,61,0,[]))),cIe=lo(kv(gIe,Sg(yg(MIe,1),at,61,0,[]))),iIe=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[uIe]))),J$e=lo(kv(q$e,Sg(yg(MIe,1),at,61,0,[gIe]))),sIe=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[gIe]))),eIe=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[q$e]))),lIe=lo(kv(uIe,Sg(yg(MIe,1),at,61,0,[gIe]))),Y$e=lo(kv(q$e,Sg(yg(MIe,1),at,61,0,[uIe]))),rIe=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[q$e,gIe]))),X$e=lo(kv(q$e,Sg(yg(MIe,1),at,61,0,[uIe,gIe]))),aIe=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[uIe,gIe]))),tIe=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[q$e,uIe]))),nIe=lo(kv(W$e,Sg(yg(MIe,1),at,61,0,[q$e,uIe,gIe])))}function _Ie(e){switch(e.ordinal){case 1:return gIe;case 2:return W$e;case 3:return q$e;case 4:return uIe;default:return hIe}}function yIe(e){switch(e.ordinal){case 1:return uIe;case 2:return gIe;case 3:return W$e;case 4:return q$e;default:return hIe}}function mIe(e){switch(e.ordinal){case 1:return q$e;case 2:return uIe;case 3:return gIe;case 4:return W$e;default:return hIe}}function wIe(e,t){nl.call(this,e,t)}function vIe(e){switch(pIe(),e.ordinal){case 4:return W$e;case 1:return q$e;case 3:return uIe;case 2:return gIe;default:return hIe}}bn(61,22,{3:1,36:1,22:1,61:1},wIe);var xIe,EIe,bIe,CIe,SIe,kIe,$Ie,IIe,TIe,PIe,MIe=er("org.eclipse.elk.core.options","PortSide",61,sl,(function(){return pIe(),Sg(yg(MIe,1),at,61,0,[hIe,W$e,q$e,uIe,gIe])}),(function(e){return pIe(),il((NIe(),xIe),e)}));function NIe(){NIe=En,xIe=rl((pIe(),Sg(yg(MIe,1),at,61,0,[hIe,W$e,q$e,uIe,gIe])))}function LIe(){LIe=En,CIe=new Hj(15),bIe=new DDe((BSe(),HCe),CIe),kIe=new DDe(TSe,15),SIe=new DDe(pSe,Cd(0)),EIe=new DDe(rCe,it)}function zIe(e){ixe(e,new Pve(Rve(zve(Dve(Ave(new Ove,"org.eclipse.elk.random"),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new DIe))),nxe(e,"org.eclipse.elk.random","org.eclipse.elk.padding",CIe),nxe(e,"org.eclipse.elk.random","org.eclipse.elk.spacing.nodeNode",15),nxe(e,"org.eclipse.elk.random","org.eclipse.elk.randomSeed",Cd(0)),nxe(e,"org.eclipse.elk.random","org.eclipse.elk.aspectRatio",it)}function AIe(){LIe()}function DIe(){}function RIe(){RIe=En,TIe=new FIe("PORTS",0),PIe=new FIe("PORT_LABELS",1),IIe=new FIe("NODE_LABELS",2),$Ie=new FIe("MINIMUM_SIZE",3)}function FIe(e,t){nl.call(this,e,t)}bn(945,1,qe,AIe),i.apply_4=function(e){zIe(e)},Qn("org.eclipse.elk.core.options","RandomLayouterOptions",945),bn(946,1,{},DIe),i.create_0=function(){return new FPe},i.destroy=function(e){},Qn("org.eclipse.elk.core.options","RandomLayouterOptions/RandomFactory",946),bn(371,22,{3:1,36:1,22:1,371:1},FIe);var OIe,GIe,BIe,jIe,VIe,HIe,UIe,qIe,WIe,KIe,YIe=er("org.eclipse.elk.core.options","SizeConstraint",371,sl,(function(){return RIe(),Sg(yg(YIe,1),W,371,0,[TIe,PIe,IIe,$Ie])}),(function(e){return RIe(),il((XIe(),OIe),e)}));function XIe(){XIe=En,OIe=rl((RIe(),Sg(yg(YIe,1),W,371,0,[TIe,PIe,IIe,$Ie])))}function JIe(){JIe=En,jIe=new ZIe("DEFAULT_MINIMUM_SIZE",0),HIe=new ZIe("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),BIe=new ZIe("COMPUTE_PADDING",2),UIe=new ZIe("OUTSIDE_NODE_LABELS_OVERHANG",3),qIe=new ZIe("PORTS_OVERHANG",4),KIe=new ZIe("UNIFORM_PORT_SPACING",5),WIe=new ZIe("SPACE_EFFICIENT_PORT_LABELS",6),VIe=new ZIe("FORCE_TABULAR_NODE_LABELS",7),GIe=new ZIe("ASYMMETRICAL",8)}function ZIe(e,t){nl.call(this,e,t)}bn(258,22,{3:1,36:1,22:1,258:1},ZIe);var QIe,eTe,tTe,nTe,rTe,iTe=er("org.eclipse.elk.core.options","SizeOptions",258,sl,(function(){return JIe(),Sg(yg(iTe,1),W,258,0,[jIe,HIe,BIe,UIe,qIe,KIe,WIe,VIe,GIe])}),(function(e){return JIe(),il((aTe(),QIe),e)}));function aTe(){aTe=En,QIe=rl((JIe(),Sg(yg(iTe,1),W,258,0,[jIe,HIe,BIe,UIe,qIe,KIe,WIe,VIe,GIe])))}function sTe(e,t,n){if(e.closed_0)throw Vg(new pd("The task is already done."));return null==e.taskName&&(e.taskName=t,e.totalWork=n,e.recordExecutionTime&&(e.startTime=(t_(),tf(Xg(Date.now()),Y))),!0)}function oTe(e){var t;if(null==e.taskName)throw Vg(new pd("The task has not begun yet."));e.closed_0||(e.recordExecutionTime&&(t_(),t=tf(Xg(Date.now()),Y),e.totalTime=1e-9*gf(uf(t,e.startTime))),e.completedWork0&&e.completedWork0&&0!=e.maxLevels&&lTe(e.parentMonitor,t/e.totalWork*e.parentMonitor.currentChildWork))}function cTe(e,t){var n;e.recordLogs&&(n=t,lm(e.logMessages,n))}function uTe(e,t,n){var r;e.recordLogs&&t&&n&&(r=new $Pe,lm(e.logGraphs,r))}function hTe(e,t){var n;return e.closed_0?null:(n=function(e,t){var n;return n=t>0?t-1:t,gTe(function(e,t){return e.persistLogs=t,e}(fTe(dTe(new pTe,n),e.recordLogs),e.persistLogs),e.recordExecutionTime)}(e,e.maxLevels),zx(e.children,n),n.parentMonitor=e,e.currentChildWork=t,n)}function gTe(e,t){return e.recordExecutionTime=t,e}function fTe(e,t){return e.recordLogs=t,e.recordLogs?(e.logMessages=new xm,e.logGraphs=new xm):(e.logMessages=null,e.logGraphs=null),e}function dTe(e,t){return e.maxLevels=t<0?-1:t,e}function pTe(){this.children=new Hx}function _Te(e,t,n,i,a,s,o){var l,c,u,h,f,d,p,_,y,m,w,v,x,E,b,C,S,k,$,I,T,P,M,N;for(y=0,I=0,u=new Rm(e.groups);u.iy&&(s&&(Dx(C,p),Dx(k,Cd(h.i-1)),lm(e.right,_),l.array=xg(or,g,1,0,5,1)),M=n.left,N+=p+t,p=0,f=r.Math.max(f,n.left+n.right+P)),l.array[l.array.length]=c,bTe(c,M,N),f=r.Math.max(f,M+P+n.right),p=r.Math.max(p,d),M+=P+t,_=c;if(um(e.bottom,l),lm(e.right,Pn(gm(l,l.array.length-1),157)),f=r.Math.max(f,i),(T=N+p+n.bottom)d&&(s&&(Dx(E,f),Dx(C,Cd(u.i-1))),T=n.left,P+=f+t,f=0,h=r.Math.max(h,n.left+n.right+I)),VNe(l,T),HNe(l,P),h=r.Math.max(h,T+I+n.right),f=r.Math.max(f,g),T+=I+t;if(h=r.Math.max(h,i),($=P+f+n.bottom)2*a?(u=new STe(h),c=vTe(s)/wTe(s),l=_Te(u,t,new Vj,n,r,i,c),jEe(YEe(u.size_0),l),h.array=xg(or,g,1,0,5,1),a=0,h.array[h.array.length]=u,h.array[h.array.length]=s,a=vTe(u)*wTe(u)+vTe(s)*wTe(s)):(h.array[h.array.length]=s,a+=vTe(s)*wTe(s));return h}(o,t,h.x_0,h.y_0,(c=i,Qk(a),c));break;case 1:p=function(e,t,n,r,i){var a,s,o,l,c,u,h,f,d;for(hw(),mm(e,new NTe),s=tc(e),d=new xm,f=new xm,o=null,l=0;0!=s.size_0;)a=Pn(0==s.size_0?null:(Jk(0!=s.size_0),jx(s,s.header.next_0)),157),!o||vTe(o)*wTe(o)/21&&(l>vTe(o)*wTe(o)/2||0==s.size_0)&&(h=new STe(f),u=vTe(o)/wTe(o),c=_Te(h,t,new Vj,n,r,i,u),jEe(YEe(h.size_0),c),o=h,d.array[d.array.length]=h,l=0,f.array=xg(or,g,1,0,5,1)));return um(d,f),d}(o,t,h.x_0,h.y_0,(u=i,Qk(a),u));break;default:p=function(e,t,n,r,i){var a,s,o,l,c,u,h,f,d;for(o=xg(d1e,xe,24,e.array.length,15,1),$E(f=new zE(new LTe),e),c=0,d=new xm;0!=f.heap.array.length;)if(s=Pn(0==f.heap.array.length?null:gm(f.heap,0),157),c>1&&vTe(s)*wTe(s)/2>o[0]){for(a=0;ao[a];)++a;h=new STe(new Py(d,0,a+1)),u=vTe(s)/wTe(s),l=_Te(h,t,new Vj,n,r,i,u),jEe(YEe(h.size_0),l),i$(PE(f,h)),$E(f,new Py(d,a+1,d.array.length)),d.array=xg(or,g,1,0,5,1),c=0,Hm(o,o.length,0)}else null!=(0==f.heap.array.length?null:gm(f.heap,0))&&LE(f,0),c>0&&(o[c]=o[c-1]),o[c]+=vTe(s)*wTe(s),++c,d.array[d.array.length]=s;return d}(o,t,h.x_0,h.y_0,(l=i,Qk(a),l))}nPe(e,(d=_Te(new STe(p),t,n,h.x_0,h.y_0,i,(Qk(a),a))).x_0,d.y_0,!1,!0)}(e,a,s,n)}oTe(t)},Qn("org.eclipse.elk.core.util","BoxLayoutProvider",936),bn(937,1,He,mTe),i.compare_1=function(e,t){return function(e,t,n){var r,i,a;if(!(i=Pn(wNe(t,(Wbe(),Rbe)),20))&&(i=Cd(0)),!(a=Pn(wNe(n,Rbe),20))&&(a=Cd(0)),i.value_0>a.value_0)return-1;if(i.value_0a)return pIe(),q$e;break;case 4:case 3:if(l<0)return pIe(),W$e;if(l+e.height>i)return pIe(),uIe}return(s=(o+e.width_0/2)/a)+(n=(l+e.height/2)/i)<=1&&s-n<=0?(pIe(),gIe):s+n>=1&&s-n>=0?(pIe(),q$e):n<.5?(pIe(),W$e):(pIe(),uIe)}function qTe(e,t,n,i,a){var s;switch(s=0,a.ordinal){case 1:s=r.Math.max(0,t.y_0+e.y_0-(n.y_0+i));break;case 3:s=r.Math.max(0,-e.y_0-i);break;case 2:s=r.Math.max(0,-e.x_0-i);break;case 4:s=r.Math.max(0,t.x_0+e.x_0-(n.x_0+i))}return s}function WTe(e,t){var n;return qTe(new ibe((n=ZTe(e)).x_0,n.y_0),new ibe(n.width_0,n.height),e.getSize(),t,e.getSide())}function KTe(e){var t,n,r;for(zx(r=new fbe,new ibe(e.startX,e.startY)),n=new BFe((!e.bendPoints&&(e.bendPoints=new GVe(YPe,e,5)),e.bendPoints));n.cursor!=n.this$01_2.size_1();)zx(r,new ibe((t=Pn(OFe(n),463)).x_0,t.y_0));return zx(r,new ibe(e.endX,e.endY)),r}function YTe(e){var t;if(1!=(!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections).size_0)throw Vg(new gd("The edge needs to have exactly one edge section. Found: "+(!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections).size_0));return t=new fbe,BDe(Pn(vRe((!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources),0),93))&&ui(t,XTe(e,BDe(Pn(vRe((!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources),0),93)),!1)),BDe(Pn(vRe((!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets),0),93))&&ui(t,XTe(e,BDe(Pn(vRe((!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets),0),93)),!0)),t}function XTe(e,t,n){var i,a,s,o,l,c,u,h,f,d,p,_,y,m,w,v,x,E,b,C;for(b=Pn(vRe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections),0),201),h=new fbe,E=new Rv,C=QTe(b),Qv(E.hashCodeMap,b,C),d=new Rv,i=new Hx,_=ss(is(Sg(yg(ci,1),g,19,0,[(!t.incomingEdges&&(t.incomingEdges=new MXe(QPe,t,8,5)),t.incomingEdges),(!t.outgoingEdges&&(t.outgoingEdges=new MXe(QPe,t,7,4)),t.outgoingEdges)])));Jo(_);){if(p=Pn(Zo(_),80),1!=(!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections).size_0)throw Vg(new gd("The edge needs to have exactly one edge section. Found: "+(!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections).size_0));p!=e&&(Rx(i,m=Pn(vRe((!p.sections&&(p.sections=new HUe(eMe,p,6,6)),p.sections),0),201),i.tail.prev,i.tail),(y=Pn(ai(Zv(E.hashCodeMap,m)),12))||(y=QTe(m),Qv(E.hashCodeMap,m,y)),f=n?tbe(new abe(Pn(gm(C,C.array.length-1),8)),Pn(gm(y,y.array.length-1),8)):tbe(new abe((Zk(0,C.array.length),Pn(C.array[0],8))),(Zk(0,y.array.length),Pn(y.array[0],8))),Qv(d.hashCodeMap,m,f))}if(0!=i.size_0)for(w=Pn(gm(C,n?C.array.length-1:0),8),u=1;u1&&Rx(h,w,h.tail.prev,h.tail),nE(a)));w=v}return h}function JTe(e){var t,n;return Pn(wNe(e,(BSe(),DCe)),21).contains((RIe(),$Ie))?(n=Pn(wNe(e,BCe),21),t=Pn(wNe(e,OCe),8),n.contains((JIe(),jIe))&&(t.x_0<=0&&(t.x_0=20),t.y_0<=0&&(t.y_0=20)),t):new nbe}function ZTe(e){var t,n,r,i;for(t=null,i=new Rm(e.getLabels());i.i0&&(t.string+=", "),ePe(Pn(OFe(s),160),t);for(t.string+=" -> ",o=new HFe((!r.targets&&(r.targets=new MXe(ZPe,r,5,8)),r.targets));o.cursor!=o.this$01_2.size_1();)o.cursor>0&&(t.string+=", "),ePe(Pn(OFe(o),160),t);t.string+=")"}}}function tPe(e){var t,n,i,a,s,o,l,c,u,h,g,f;if((f=Pn(wNe(e,(BSe(),DCe)),21)).isEmpty())return null;if(l=0,o=0,f.contains((RIe(),TIe))){for(h=Pn(wNe(e,iSe),100),i=2,n=2,a=2,s=2,t=Ize(e)?Pn(wNe(Ize(e),hCe),108):Pn(wNe(e,hCe),108),u=new BFe((!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports));u.cursor!=u.this$01_2.size_1();)if(c=Pn(OFe(u),122),(g=Pn(wNe(c,hSe),61))==(pIe(),hIe)&&(g=UTe(c,t),xNe(c,hSe,g)),h==(P$e(),b$e))switch(g.ordinal){case 1:i=r.Math.max(i,c.x_0+c.width_0);break;case 2:n=r.Math.max(n,c.y_0+c.height);break;case 3:a=r.Math.max(a,c.x_0+c.width_0);break;case 4:s=r.Math.max(s,c.y_0+c.height)}else switch(g.ordinal){case 1:i+=c.width_0+2;break;case 2:n+=c.height+2;break;case 3:a+=c.width_0+2;break;case 4:s+=c.height+2}l=r.Math.max(i,a),o=r.Math.max(n,s)}return nPe(e,l,o,!0,!0)}function nPe(e,t,n,i,a){var s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E,b;if(y=new ibe(e.width_0,e.height),(_=JTe(e)).x_0=r.Math.max(_.x_0,t),_.y_0=r.Math.max(_.y_0,n),b=_.x_0/y.x_0,h=_.y_0/y.y_0,x=_.x_0-y.x_0,c=_.y_0-y.y_0,i)for(o=Ize(e)?Pn(wNe(Ize(e),(BSe(),hCe)),108):Pn(wNe(e,(BSe(),hCe)),108),l=Hn(wNe(e,(BSe(),iSe)))===Hn((P$e(),b$e)),w=new BFe((!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports));w.cursor!=w.this$01_2.size_1();)switch(m=Pn(OFe(w),122),(v=Pn(wNe(m,hSe),61))==(pIe(),hIe)&&(v=UTe(m,o),xNe(m,hSe,v)),v.ordinal){case 1:l||VNe(m,m.x_0*b);break;case 2:VNe(m,m.x_0+x),l||HNe(m,m.y_0*h);break;case 3:l||VNe(m,m.x_0*b),HNe(m,m.y_0+c);break;case 4:l||HNe(m,m.y_0*h)}if(ONe(e,_.x_0,_.y_0),a)for(f=new BFe((!e.labels&&(e.labels=new HUe(SMe,e,1,7)),e.labels));f.cursor!=f.this$01_2.size_1();)d=(g=Pn(OFe(f),137)).x_0+g.width_0/2,p=g.y_0+g.height/2,(E=d/y.x_0)+(u=p/y.y_0)>=1&&(E-u>0&&p>=0?(VNe(g,g.x_0+x),HNe(g,g.y_0+c*u)):E-u<0&&d>=0&&(VNe(g,g.x_0+x*E),HNe(g,g.y_0+c)));return xNe(e,(BSe(),DCe),(RIe(),new Nv(s=Pn(Kn(YIe),9),Pn(Dk(s,s.length),9),0))),new ibe(b,h)}function rPe(e,t){var n;for(n=t;n;)BEe(e,n.x_0,n.y_0),n=Ize(n);return e}function iPe(e,t){var n;for(n=t;n;)BEe(e,-n.x_0,-n.y_0),n=Ize(n);return e}function aPe(e,t,n){var r,i;for(i=new BFe((!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children));i.cursor!=i.this$01_2.size_1();)BNe(r=Pn(OFe(i),34),r.x_0+t,r.y_0+n);li((!e.containedEdges&&(e.containedEdges=new HUe(QPe,e,12,3)),e.containedEdges),new cPe(t,n))}function sPe(e,t,n){var r,i,a;r=Pn(wNe(e,(BSe(),lCe)),21),i=0,a=0,t.x_0>n.x_0&&(r.contains((Jbe(),Obe))?i=(t.x_0-n.x_0)/2:r.contains(Bbe)&&(i=t.x_0-n.x_0)),t.y_0>n.y_0&&(r.contains((Jbe(),Vbe))?a=(t.y_0-n.y_0)/2:r.contains(jbe)&&(a=t.y_0-n.y_0)),aPe(e,i,a)}function oPe(e){return NNe(Pn(e,122))}function lPe(){}function cPe(e,t){this.xoffset_0=e,this.yoffset_2=t}function uPe(e,t){this.xoffset_0=e,this.yoffset_2=t}function hPe(e,t){this.xoffset_0=e,this.yoffset_2=t}function gPe(e){this.points_0=e}function fPe(){this.exclusiveLowerBound=0}function dPe(e){var t,n,i,a,s,o,l,c,u,h,g;if(h=Ize(GDe(Pn(vRe((!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources),0),93)))==Ize(GDe(Pn(vRe((!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets),0),93))),o=new nbe,(t=Pn(wNe(e,(Ake(),bke)),74))&&t.size_0>=2){if(0==(!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections).size_0)rMe(),n=new bLe,eRe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections),n);else if((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections).size_0>1)for(g=new HFe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections));g.cursor!=g.this$01_2.size_1();)GFe(g);VTe(t,Pn(vRe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections),0),201))}if(h)for(i=new BFe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections));i.cursor!=i.this$01_2.size_1();)for(c=new BFe((!(n=Pn(OFe(i),201)).bendPoints&&(n.bendPoints=new GVe(YPe,n,5)),n.bendPoints));c.cursor!=c.this$01_2.size_1();)l=Pn(OFe(c),463),o.x_0=r.Math.max(o.x_0,l.x_0),o.y_0=r.Math.max(o.y_0,l.y_0);for(s=new BFe((!e.labels&&(e.labels=new HUe(SMe,e,1,7)),e.labels));s.cursor!=s.this$01_2.size_1();)a=Pn(OFe(s),137),(u=Pn(wNe(a,Tke),8))&&BNe(a,u.x_0,u.y_0),h&&(o.x_0=r.Math.max(o.x_0,a.x_0+a.width_0),o.y_0=r.Math.max(o.y_0,a.y_0+a.height));return o}function pPe(){}function _Pe(){}function yPe(e){(this.propertyMap?this.propertyMap:(hw(),hw(),Sm)).putAll(e.propertyMap?e.propertyMap:(hw(),hw(),Sm))}function mPe(e,t){var n,r;return r=null,e.hasProperty((BSe(),SSe))&&(n=Pn(e.getProperty(SSe),94)).hasProperty(t)&&(r=n.getProperty(t)),null==r&&e.getGraph()&&(r=e.getGraph().getProperty(t)),null==r&&(r=NDe(t)),r}bn(938,1,He,NTe),i.compare_1=function(e,t){return n=Pn(e,157),r=Pn(t,157),-ad(vTe(n)*wTe(n),vTe(r)*wTe(r));var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.core.util","BoxLayoutProvider/lambda$0$Type",938),bn(939,1,He,LTe),i.compare_1=function(e,t){return n=Pn(e,157),r=Pn(t,157),ad(vTe(n)*wTe(n),vTe(r)*wTe(r));var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.core.util","BoxLayoutProvider/lambda$1$Type",939),bn(940,1,He,zTe),i.compare_1=function(e,t){return n=Pn(e,157),r=Pn(t,157),ad(vTe(n)*wTe(n),vTe(r)*wTe(r));var n,r},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.core.util","BoxLayoutProvider/lambda$2$Type",940),bn(1336,1,{810:1},ATe),i.accept_4=function(e,t){return Fee(),!Fn(t,160)||Bwe((Nwe(),Pn(e,160)),t)},Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1336),bn(1337,1,P,DTe),i.accept=function(e){var t,n,r;t=this.$$outer_0,n=Pn(e,146),r=null!=NDe((Gee(),Eee))&&null!=n.getDefault()?td(Ln(n.getDefault()))/td(Ln(NDe(Eee))):1,gy(t.factorMap,n,r)},Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1337),bn(1338,1,P,RTe),i.accept=function(e){Pn(e,94),Fee()},Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1338),bn(1342,1,P,FTe),i.accept=function(e){var t,n;t=this.$$outer_0,n=Pn(e,94),ZS(YS(new ck(null,new YE(new My(t.factorMap),1)),new OTe(t,n)),new BTe(t,n))},Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1342),bn(1340,1,J,OTe),i.test_0=function(e){return t=this.$$outer_0,n=this.element_1,r=Pn(e,146),!lk(YS(new ck(null,new YE(t.filters,16)),new vC(new GTe(n,r)))).tryAdvance((US(),VS));var t,n,r},Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1340),bn(1339,1,J,GTe),i.test_0=function(e){return t=this.element_0,n=this.p_1,r=Pn(e,810),Fee(),r.accept_4(t,n);var t,n,r},Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1339),bn(1341,1,P,BTe),i.accept=function(e){var t,n,r;t=this.$$outer_0,n=this.element_1,r=Pn(e,146),n.setProperty(r,td(Ln(cy(t.factorMap,r)))*t.baseSpacing)},Qn("org.eclipse.elk.core.util","ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1341),bn(914,1,{},lPe),i.apply_0=function(e){return oPe(e)},i.equals_0=function(e){return this===e},Qn("org.eclipse.elk.core.util","ElkUtil/lambda$0$Type",914),bn(915,1,P,cPe),i.accept=function(e){var t,n,r,i;t=this.xoffset_0,n=this.yoffset_2,ZS(new ck(null,(!(r=Pn(e,80)).sections&&(r.sections=new HUe(eMe,r,6,6)),new YE(r.sections,16))),new uPe(t,n)),ZS(new ck(null,(!r.labels&&(r.labels=new HUe(SMe,r,1,7)),new YE(r.labels,16))),new hPe(t,n)),(i=Pn(wNe(r,(BSe(),ICe)),74))&&hbe(i,t,n)},i.xoffset_0=0,i.yoffset_2=0,Qn("org.eclipse.elk.core.util","ElkUtil/lambda$1$Type",915),bn(916,1,P,uPe),i.accept=function(e){var t,n;t=this.xoffset_0,n=this.yoffset_2,function(e,t,n){var r,i;for(wLe(e,e.startX+t,e.startY+n),i=new BFe((!e.bendPoints&&(e.bendPoints=new GVe(YPe,e,5)),e.bendPoints));i.cursor!=i.this$01_2.size_1();)ENe(r=Pn(OFe(i),463),r.x_0+t,r.y_0+n);gLe(e,e.endX+t,e.endY+n)}(Pn(e,201),t,n)},i.xoffset_0=0,i.yoffset_2=0,Qn("org.eclipse.elk.core.util","ElkUtil/lambda$2$Type",916),bn(917,1,P,hPe),i.accept=function(e){var t,n,r;t=this.xoffset_0,n=this.yoffset_2,BNe(r=Pn(e,137),r.x_0+t,r.y_0+n)},i.xoffset_0=0,i.yoffset_2=0,Qn("org.eclipse.elk.core.util","ElkUtil/lambda$3$Type",917),bn(918,1,P,gPe),i.accept=function(e){var t;lm(this.points_0,new ibe((t=Pn(e,463)).x_0,t.y_0))},Qn("org.eclipse.elk.core.util","ElkUtil/lambda$4$Type",918),bn(338,1,{36:1,338:1},fPe),i.compareTo_0=function(e){return function(e,t){return e.exclusiveLowerBound0&&d.y_0>0&&nPe(p,d.x_0,d.y_0,!0,!0)),g=r.Math.max(g,p.x_0+p.width_0),f=r.Math.max(f,p.y_0+p.height),u=new BFe((!p.labels&&(p.labels=new HUe(SMe,p,1,7)),p.labels));u.cursor!=u.this$01_2.size_1();)l=Pn(OFe(u),137),(b=Pn(wNe(l,Tke),8))&&BNe(l,b.x_0,b.y_0),g=r.Math.max(g,p.x_0+l.x_0+l.width_0),f=r.Math.max(f,p.y_0+l.y_0+l.height);for(v=new BFe((!p.ports&&(p.ports=new HUe($Me,p,9,9)),p.ports));v.cursor!=v.this$01_2.size_1();)for(w=Pn(OFe(v),122),(b=Pn(wNe(w,Tke),8))&&BNe(w,b.x_0,b.y_0),x=p.x_0+w.x_0,E=p.y_0+w.y_0,g=r.Math.max(g,x+w.width_0),f=r.Math.max(f,E+w.height),c=new BFe((!w.labels&&(w.labels=new HUe(SMe,w,1,7)),w.labels));c.cursor!=c.this$01_2.size_1();)l=Pn(OFe(c),137),(b=Pn(wNe(l,Tke),8))&&BNe(l,b.x_0,b.y_0),g=r.Math.max(g,x+l.x_0+l.width_0),f=r.Math.max(f,E+l.y_0+l.height);for(a=new Qo(Bo(ODe(p).val$inputs1.iterator_0(),new Io));Jo(a);)h=dPe(n=Pn(Zo(a),80)),g=r.Math.max(g,h.x_0),f=r.Math.max(f,h.y_0);for(i=new Qo(Bo(FDe(p).val$inputs1.iterator_0(),new Io));Jo(i);)Ize(WDe(n=Pn(Zo(i),80)))!=e&&(h=dPe(n),g=r.Math.max(g,h.x_0),f=r.Math.max(f,h.y_0))}if(s==(cke(),rke))for(_=new BFe((!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children));_.cursor!=_.this$01_2.size_1();)for(i=new Qo(Bo(ODe(p=Pn(OFe(_),34)).val$inputs1.iterator_0(),new Io));Jo(i);)0==(o=YTe(n=Pn(Zo(i),80))).size_0?xNe(n,ICe,null):xNe(n,ICe,o);Nf(Nn(wNe(e,(Ake(),Ske))))||nPe(e,g+(m=Pn(wNe(e,$ke),115)).left+m.right,f+m.top_0+m.bottom,!0,!0),oTe(t)},Qn("org.eclipse.elk.core.util","FixedLayoutProvider",1111),bn(370,134,{3:1,409:1,370:1,94:1,134:1},_Pe,yPe),i.parse_0=function(e){var t,n,r,i,a,s,o;if(e)try{for(s=hp(e,";,;"),i=0,a=(r=s).length;i1)for(f=new HFe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections));f.cursor!=f.this$01_2.size_1();)GFe(f);for(p=I,I>v+w?p=v+w:Ix+d?_=x+d:Tv-w&&px-d&&_I+$?b=I+$:vT+E?C=T+E:xI-$&&bT-E&&Cn&&(h=n-1),(g=L+OE(t,24)*Re*u-u/2)<0?g=1:g>i&&(g=i-1),rMe(),bNe(a=new SNe,h),CNe(a,g),eRe((!o.bendPoints&&(o.bendPoints=new GVe(YPe,o,5)),o.bendPoints),a)}function FPe(){}function OPe(){OPe=En,MPe=new DDe((BSe(),rSe),0)}function GPe(e){this.element=e}function BPe(e){var t,n;if(!e.childNodes)for(e.childNodes=ec(kze(Pn(e.element,34)).size_0),n=new BFe(kze(Pn(e.element,34)));n.cursor!=n.this$01_2.size_1();)t=Pn(OFe(n),34),lm(e.childNodes,new HPe(e,t));return e.childNodes}function jPe(e){OPe(),this.element=e}function VPe(e){OPe(),this.element=e}function HPe(e,t){OPe(),this.element=t,this.parentGraphAdapter=e}function UPe(e){this.element=e}bn(46,1,{19:1,46:1},zPe),i.forEach_0=function(e){li(this,e)},i.equals_0=function(e){var t,n,r;return!!Fn(e,46)&&(n=Pn(e,46),t=null==this.first?null==n.first:kn(this.first,n.first),r=null==this.second?null==n.second:kn(this.second,n.second),t&&r)},i.hashCode_1=function(){var e,t,n;return e=-65536&(t=null==this.first?0:In(this.first)),t&re^(-65536&(n=null==this.second?0:In(this.second)))>>16&re|e^(n&re)<<16},i.iterator_0=function(){return new APe(this)},i.toString_0=function(){return null==this.first&&null==this.second?"pair(null,null)":null==this.first?"pair(null,"+wn(this.second)+")":null==this.second?"pair("+wn(this.first)+",null)":"pair("+wn(this.first)+","+wn(this.second)+")"},Qn("org.eclipse.elk.core.util","Pair",46),bn(947,1,_,APe),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return!this.visitedSecond&&(!this.visitedFirst&&null!=this.this$01.first||null!=this.this$01.second)},i.next_1=function(){if(!this.visitedSecond&&!this.visitedFirst&&null!=this.this$01.first)return this.visitedFirst=!0,this.this$01.first;if(!this.visitedSecond&&null!=this.this$01.second)return this.visitedSecond=!0,this.this$01.second;throw Vg(new lE)},i.remove=function(){throw this.visitedSecond&&null!=this.this$01.second?this.this$01.second=null:this.visitedFirst&&null!=this.this$01.first&&(this.this$01.first=null),Vg(new dd)},i.visitedFirst=!1,i.visitedSecond=!1,Qn("org.eclipse.elk.core.util","Pair/1",947),bn(442,1,{442:1},DPe),i.equals_0=function(e){return cE(this.first,Pn(e,442).first)&&cE(this.second,Pn(e,442).second)&&cE(this.third,Pn(e,442).third)&&cE(this.fourth,Pn(e,442).fourth)},i.hashCode_1=function(){return Wm(Sg(yg(or,1),g,1,5,[this.first,this.second,this.third,this.fourth]))},i.toString_0=function(){return"("+this.first+", "+this.second+", "+this.third+", "+this.fourth+")"},Qn("org.eclipse.elk.core.util","Quadruple",442),bn(1099,207,Ze,FPe),i.layout=function(e,t){var n;sTe(t,"Random Layout",1),0!=(!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children).size_0?(function(e,t,n,i,a){var s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E,b,C,S;for(w=0,p=0,d=0,f=1,m=new BFe((!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children));m.cursor!=m.this$01_2.size_1();)f+=Go(new Qo(Bo(ODe(_=Pn(OFe(m),34)).val$inputs1.iterator_0(),new Io))),b=_.width_0,p=r.Math.max(p,b),g=_.height,d=r.Math.max(d,g),w+=b*g;for(o=w+2*i*i*f*(!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children).size_0,s=r.Math.sqrt(o),c=r.Math.max(s*n,p),l=r.Math.max(s/n,d),y=new BFe((!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children));y.cursor!=y.this$01_2.size_1();)_=Pn(OFe(y),34),C=a.left+(OE(t,26)*ze+OE(t,27)*Ae)*(c-_.width_0),S=a.left+(OE(t,26)*ze+OE(t,27)*Ae)*(l-_.height),VNe(_,C),HNe(_,S);for(E=c+(a.left+a.right),x=l+(a.top_0+a.bottom),v=new BFe((!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children));v.cursor!=v.this$01_2.size_1();)for(h=new Qo(Bo(ODe(Pn(OFe(v),34)).val$inputs1.iterator_0(),new Io));Jo(h);)nLe(u=Pn(Zo(h),80))||RPe(u,t,E,x);nPe(e,E+=a.left+a.right,x+=a.top_0+a.bottom,!1,!0)}(e,(n=Pn(wNe(e,(LIe(),SIe)),20))&&0!=n.value_0?new jE(n.value_0):new BE,rd(Ln(wNe(e,EIe))),rd(Ln(wNe(e,kIe))),Pn(wNe(e,bIe),115)),oTe(t)):oTe(t)},Qn("org.eclipse.elk.core.util","RandomLayoutProvider",1099),bn(542,1,{}),i.getPosition=function(){return new ibe(this.element.x_0,this.element.y_0)},i.getProperty=function(e){return MDe(e,(BSe(),rSe))?wNe(this.element,MPe):wNe(this.element,e)},i.getSize=function(){return new ibe(this.element.width_0,this.element.height)},i.getVolatileId=function(){return this.id_0},i.hasProperty=function(e){return vNe(this.element,e)},i.setPosition=function(e){VNe(this.element,e.x_0),HNe(this.element,e.y_0)},i.setSize=function(e){jNe(this.element,e.x_0),GNe(this.element,e.y_0)},i.setVolatileId=function(e){this.id_0=e},i.id_0=0,Qn("org.eclipse.elk.core.util.adapters","ElkGraphAdapters/AbstractElkGraphElementAdapter",542),bn(543,1,{818:1},GPe),i.getLabels=function(){var e,t;if(!this.labelAdapters)for(this.labelAdapters=ec(NNe(this.element).size_0),t=new BFe(NNe(this.element));t.cursor!=t.this$01_2.size_1();)e=Pn(OFe(t),137),lm(this.labelAdapters,new VPe(e));return this.labelAdapters},i.labelAdapters=null,Qn("org.eclipse.elk.core.util.adapters","ElkGraphAdapters/ElkEdgeAdapter",543),bn(433,542,{},jPe),i.getNodes=function(){return BPe(this)},i.childNodes=null,Qn("org.eclipse.elk.core.util.adapters","ElkGraphAdapters/ElkGraphAdapter",433),bn(618,542,{183:1},VPe),Qn("org.eclipse.elk.core.util.adapters","ElkGraphAdapters/ElkLabelAdapter",618),bn(617,542,{816:1},HPe),i.getLabels=function(){return function(e){var t,n;if(!e.labelAdapters)for(e.labelAdapters=ec(Pn(e.element,34).getLabels_0().size_0),n=new BFe(Pn(e.element,34).getLabels_0());n.cursor!=n.this$01_2.size_1();)t=Pn(OFe(n),137),lm(e.labelAdapters,new VPe(t));return e.labelAdapters}(this)},i.getMargin=function(){var e;return!(e=Pn(wNe(this.element,(BSe(),PCe)),141))&&(e=new oj),e},i.getPorts=function(){return function(e){var t,n;if(!e.portAdapters)for(e.portAdapters=ec(Tze(Pn(e.element,34)).size_0),n=new BFe(Tze(Pn(e.element,34)));n.cursor!=n.this$01_2.size_1();)t=Pn(OFe(n),122),lm(e.portAdapters,new UPe(t));return e.portAdapters}(this)},i.setMargin=function(e){var t;t=new uj(e),xNe(this.element,(BSe(),PCe),t)},i.setPadding=function(e){xNe(this.element,(BSe(),HCe),new Uj(e))},i.getGraph=function(){return this.parentGraphAdapter},i.getIncomingEdges=function(){var e,t;if(!this.incomingEdgeAdapters)for(this.incomingEdgeAdapters=new xm,t=new Qo(Bo(FDe(Pn(this.element,34)).val$inputs1.iterator_0(),new Io));Jo(t);)e=Pn(Zo(t),80),lm(this.incomingEdgeAdapters,new GPe(e));return this.incomingEdgeAdapters},i.getOutgoingEdges=function(){var e,t;if(!this.outgoingEdgeAdapters)for(this.outgoingEdgeAdapters=new xm,t=new Qo(Bo(ODe(Pn(this.element,34)).val$inputs1.iterator_0(),new Io));Jo(t);)e=Pn(Zo(t),80),lm(this.outgoingEdgeAdapters,new GPe(e));return this.outgoingEdgeAdapters},i.isCompoundNode=function(){return 0!=kze(Pn(this.element,34)).size_0||Nf(Nn(Pn(this.element,34).getProperty((BSe(),CCe))))},i.incomingEdgeAdapters=null,i.labelAdapters=null,i.outgoingEdgeAdapters=null,i.parentGraphAdapter=null,i.portAdapters=null,Qn("org.eclipse.elk.core.util.adapters","ElkGraphAdapters/ElkNodeAdapter",617),bn(1214,542,{817:1},UPe),i.getLabels=function(){return function(e){var t,n;if(!e.labelAdapters)for(e.labelAdapters=ec(Pn(e.element,122).getLabels_0().size_0),n=new BFe(Pn(e.element,122).getLabels_0());n.cursor!=n.this$01_2.size_1();)t=Pn(OFe(n),137),lm(e.labelAdapters,new VPe(t));return e.labelAdapters}(this)},i.getIncomingEdges=function(){var e,t;if(!this.incomingEdgeAdapters)for(this.incomingEdgeAdapters=Ql(Pn(this.element,122).getIncomingEdges_0().size_0),t=new BFe(Pn(this.element,122).getIncomingEdges_0());t.cursor!=t.this$01_2.size_1();)e=Pn(OFe(t),80),lm(this.incomingEdgeAdapters,new GPe(e));return this.incomingEdgeAdapters},i.getOutgoingEdges=function(){var e,t;if(!this.outgoingEdgeAdapters)for(this.outgoingEdgeAdapters=Ql(Pn(this.element,122).getOutgoingEdges_0().size_0),t=new BFe(Pn(this.element,122).getOutgoingEdges_0());t.cursor!=t.this$01_2.size_1();)e=Pn(OFe(t),80),lm(this.outgoingEdgeAdapters,new GPe(e));return this.outgoingEdgeAdapters},i.getSide=function(){return Pn(Pn(this.element,122).getProperty((BSe(),hSe)),61)},i.hasCompoundConnections=function(){var e,t,n,r,i,a,s;for(r=Aze(Pn(this.element,122)),n=new BFe(Pn(this.element,122).getOutgoingEdges_0());n.cursor!=n.this$01_2.size_1();)for(s=new BFe((!(e=Pn(OFe(n),80)).targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets));s.cursor!=s.this$01_2.size_1();){if(JDe(GDe(a=Pn(OFe(s),93)),r))return!0;if(GDe(a)==r&&Nf(Nn(wNe(e,(BSe(),SCe)))))return!0}for(t=new BFe(Pn(this.element,122).getIncomingEdges_0());t.cursor!=t.this$01_2.size_1();)for(i=new BFe((!(e=Pn(OFe(t),80)).sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources));i.cursor!=i.this$01_2.size_1();)if(JDe(GDe(Pn(OFe(i),93)),r))return!0;return!1},i.incomingEdgeAdapters=null,i.labelAdapters=null,i.outgoingEdgeAdapters=null,Qn("org.eclipse.elk.core.util.adapters","ElkGraphAdapters/ElkPortAdapter",1214);var qPe,WPe=tr("org.eclipse.emf.ecore","EObject"),KPe=tr("org.eclipse.elk.graph","EMapPropertyHolder"),YPe=tr("org.eclipse.elk.graph","ElkBendPoint"),XPe=tr("org.eclipse.elk.graph","ElkGraphElement"),JPe=tr("org.eclipse.elk.graph","ElkShape"),ZPe=tr("org.eclipse.elk.graph","ElkConnectableShape"),QPe=tr("org.eclipse.elk.graph","ElkEdge"),eMe=tr("org.eclipse.elk.graph","ElkEdgeSection"),tMe=tr("org.eclipse.emf.ecore","EModelElement"),nMe=tr("org.eclipse.emf.ecore","EFactory");function rMe(){rMe=En,qPe=function(){var e,t;$Le();try{if(t=Pn(KUe((sBe(),tBe),"http://www.eclipse.org/elk/ElkGraph"),1983))return t}catch(t){if(!Fn(t=jg(t),102))throw Vg(t);e=t,XRe(($Ke(),e))}return new ALe}()}var iMe,aMe,sMe,oMe,lMe,cMe,uMe,hMe,gMe,fMe,dMe,pMe,_Me=tr("org.eclipse.emf.ecore","ENamedElement"),yMe=tr("org.eclipse.emf.ecore","EPackage");function mMe(){var e,t;mMe=En,iMe=_ze?Pn(YUe((sBe(),tBe),"http://www.eclipse.org/elk/ElkGraph"),1985):(t=Pn(Fn(uy((sBe(),tBe),"http://www.eclipse.org/elk/ElkGraph"),549)?uy(tBe,"http://www.eclipse.org/elk/ElkGraph"):new pze,549),_ze=!0,(e=t).isCreated||(e.isCreated=!0,e.iPropertyHolderEClass=WLe(e,0),e.eMapPropertyHolderEClass=WLe(e,1),ZLe(e.eMapPropertyHolderEClass,0),e.elkGraphElementEClass=WLe(e,2),ZLe(e.elkGraphElementEClass,1),qLe(e.elkGraphElementEClass,2),e.elkShapeEClass=WLe(e,3),qLe(e.elkShapeEClass,3),qLe(e.elkShapeEClass,4),qLe(e.elkShapeEClass,5),qLe(e.elkShapeEClass,6),e.elkLabelEClass=WLe(e,4),ZLe(e.elkLabelEClass,7),qLe(e.elkLabelEClass,8),e.elkConnectableShapeEClass=WLe(e,5),ZLe(e.elkConnectableShapeEClass,7),ZLe(e.elkConnectableShapeEClass,8),e.elkNodeEClass=WLe(e,6),ZLe(e.elkNodeEClass,9),ZLe(e.elkNodeEClass,10),ZLe(e.elkNodeEClass,11),ZLe(e.elkNodeEClass,12),qLe(e.elkNodeEClass,13),e.elkPortEClass=WLe(e,7),ZLe(e.elkPortEClass,9),e.elkEdgeEClass=WLe(e,8),ZLe(e.elkEdgeEClass,3),ZLe(e.elkEdgeEClass,4),ZLe(e.elkEdgeEClass,5),ZLe(e.elkEdgeEClass,6),qLe(e.elkEdgeEClass,7),qLe(e.elkEdgeEClass,8),qLe(e.elkEdgeEClass,9),qLe(e.elkEdgeEClass,10),e.elkBendPointEClass=WLe(e,9),qLe(e.elkBendPointEClass,0),qLe(e.elkBendPointEClass,1),e.elkEdgeSectionEClass=WLe(e,10),qLe(e.elkEdgeSectionEClass,1),qLe(e.elkEdgeSectionEClass,2),qLe(e.elkEdgeSectionEClass,3),qLe(e.elkEdgeSectionEClass,4),ZLe(e.elkEdgeSectionEClass,5),ZLe(e.elkEdgeSectionEClass,6),ZLe(e.elkEdgeSectionEClass,7),ZLe(e.elkEdgeSectionEClass,8),ZLe(e.elkEdgeSectionEClass,9),ZLe(e.elkEdgeSectionEClass,10),qLe(e.elkEdgeSectionEClass,11),e.elkPropertyToValueMapEntryEClass=WLe(e,11),qLe(e.elkPropertyToValueMapEntryEClass,0),qLe(e.elkPropertyToValueMapEntryEClass,1),e.iPropertyEDataType=KLe(e,12),e.propertyValueEDataType=KLe(e,13)),function(e){var t,n,r,i,a,s,o;e.isInitialized||(e.isInitialized=!0,DLe(e,"graph"),hze(e,"graph"),gze(e,"http://www.eclipse.org/elk/ElkGraph"),jLe(e.iPropertyEDataType,"T"),eRe(CVe(e.eMapPropertyHolderEClass),e.iPropertyHolderEClass),eRe(CVe(e.elkGraphElementEClass),e.eMapPropertyHolderEClass),eRe(CVe(e.elkShapeEClass),e.elkGraphElementEClass),eRe(CVe(e.elkLabelEClass),e.elkShapeEClass),eRe(CVe(e.elkConnectableShapeEClass),e.elkShapeEClass),eRe(CVe(e.elkNodeEClass),e.elkConnectableShapeEClass),eRe(CVe(e.elkPortEClass),e.elkConnectableShapeEClass),eRe(CVe(e.elkEdgeEClass),e.elkGraphElementEClass),eRe(CVe(e.elkEdgeSectionEClass),e.eMapPropertyHolderEClass),ize(e.iPropertyHolderEClass,JL,"IPropertyHolder",!0,!0,!1),o=VLe(s=OLe(e.iPropertyHolderEClass,e.iPropertyHolderEClass,"setProperty")),t=YLe(e.iPropertyEDataType),n=new UHe,eRe((!t.eTypeArguments&&(t.eTypeArguments=new GVe(iBe,t,1)),t.eTypeArguments),n),GHe(n,r=XLe(o)),BLe(s,t,"property"),BLe(s,t=XLe(o),"value"),o=VLe(s=OLe(e.iPropertyHolderEClass,null,"getProperty")),t=YLe(e.iPropertyEDataType),n=XLe(o),eRe((!t.eTypeArguments&&(t.eTypeArguments=new GVe(iBe,t,1)),t.eTypeArguments),n),BLe(s,t,"property"),!!(a=vje(s,t=XLe(o),null))&&a.dispatch_0(),s=OLe(e.iPropertyHolderEClass,e.ecorePackage.eBooleanEDataType,"hasProperty"),t=YLe(e.iPropertyEDataType),n=new UHe,eRe((!t.eTypeArguments&&(t.eTypeArguments=new GVe(iBe,t,1)),t.eTypeArguments),n),BLe(s,t,"property"),GLe(s=OLe(e.iPropertyHolderEClass,e.iPropertyHolderEClass,"copyProperties"),e.iPropertyHolderEClass,"source"),s=OLe(e.iPropertyHolderEClass,null,"getAllProperties"),t=YLe(e.ecorePackage.eMapEDataType),n=YLe(e.iPropertyEDataType),eRe((!t.eTypeArguments&&(t.eTypeArguments=new GVe(iBe,t,1)),t.eTypeArguments),n),r=new UHe,eRe((!n.eTypeArguments&&(n.eTypeArguments=new GVe(iBe,n,1)),n.eTypeArguments),r),n=YLe(e.ecorePackage.eJavaObjectEDataType),eRe((!t.eTypeArguments&&(t.eTypeArguments=new GVe(iBe,t,1)),t.eTypeArguments),n),!!(i=vje(s,t,null))&&i.dispatch_0(),ize(e.eMapPropertyHolderEClass,KPe,"EMapPropertyHolder",!0,!1,!0),lze(Pn(vRe(EVe(e.eMapPropertyHolderEClass),0),17),e.elkPropertyToValueMapEntryEClass,null,"properties",0,-1,KPe,!1,!1,!0,!0,!1,!1,!1),ize(e.elkGraphElementEClass,XPe,"ElkGraphElement",!0,!1,!0),lze(Pn(vRe(EVe(e.elkGraphElementEClass),0),17),e.elkLabelEClass,Pn(vRe(EVe(e.elkLabelEClass),0),17),"labels",0,-1,XPe,!1,!1,!0,!0,!1,!1,!1),nze(Pn(vRe(EVe(e.elkGraphElementEClass),1),32),e.ecorePackage.eStringEDataType,"identifier",null,0,1,XPe,!1,!1,!0,!1,!0,!1),ize(e.elkShapeEClass,JPe,"ElkShape",!0,!1,!0),nze(Pn(vRe(EVe(e.elkShapeEClass),0),32),e.ecorePackage.eDoubleEDataType,"height","0.0",1,1,JPe,!1,!1,!0,!1,!0,!1),nze(Pn(vRe(EVe(e.elkShapeEClass),1),32),e.ecorePackage.eDoubleEDataType,"width","0.0",1,1,JPe,!1,!1,!0,!1,!0,!1),nze(Pn(vRe(EVe(e.elkShapeEClass),2),32),e.ecorePackage.eDoubleEDataType,"x","0.0",1,1,JPe,!1,!1,!0,!1,!0,!1),nze(Pn(vRe(EVe(e.elkShapeEClass),3),32),e.ecorePackage.eDoubleEDataType,"y","0.0",1,1,JPe,!1,!1,!0,!1,!0,!1),GLe(s=OLe(e.elkShapeEClass,null,"setDimensions"),e.ecorePackage.eDoubleEDataType,"width"),GLe(s,e.ecorePackage.eDoubleEDataType,"height"),GLe(s=OLe(e.elkShapeEClass,null,"setLocation"),e.ecorePackage.eDoubleEDataType,"x"),GLe(s,e.ecorePackage.eDoubleEDataType,"y"),ize(e.elkLabelEClass,SMe,"ElkLabel",!1,!1,!0),lze(Pn(vRe(EVe(e.elkLabelEClass),0),17),e.elkGraphElementEClass,Pn(vRe(EVe(e.elkGraphElementEClass),0),17),"parent",0,1,SMe,!1,!1,!0,!1,!1,!1,!1),nze(Pn(vRe(EVe(e.elkLabelEClass),1),32),e.ecorePackage.eStringEDataType,"text","",0,1,SMe,!1,!1,!0,!1,!0,!1),ize(e.elkConnectableShapeEClass,ZPe,"ElkConnectableShape",!0,!1,!0),lze(Pn(vRe(EVe(e.elkConnectableShapeEClass),0),17),e.elkEdgeEClass,Pn(vRe(EVe(e.elkEdgeEClass),1),17),"outgoingEdges",0,-1,ZPe,!1,!1,!0,!1,!0,!1,!1),lze(Pn(vRe(EVe(e.elkConnectableShapeEClass),1),17),e.elkEdgeEClass,Pn(vRe(EVe(e.elkEdgeEClass),2),17),"incomingEdges",0,-1,ZPe,!1,!1,!0,!1,!0,!1,!1),ize(e.elkNodeEClass,kMe,"ElkNode",!1,!1,!0),lze(Pn(vRe(EVe(e.elkNodeEClass),0),17),e.elkPortEClass,Pn(vRe(EVe(e.elkPortEClass),0),17),"ports",0,-1,kMe,!1,!1,!0,!0,!1,!1,!1),lze(Pn(vRe(EVe(e.elkNodeEClass),1),17),e.elkNodeEClass,Pn(vRe(EVe(e.elkNodeEClass),2),17),"children",0,-1,kMe,!1,!1,!0,!0,!1,!1,!1),lze(Pn(vRe(EVe(e.elkNodeEClass),2),17),e.elkNodeEClass,Pn(vRe(EVe(e.elkNodeEClass),1),17),"parent",0,1,kMe,!1,!1,!0,!1,!1,!1,!1),lze(Pn(vRe(EVe(e.elkNodeEClass),3),17),e.elkEdgeEClass,Pn(vRe(EVe(e.elkEdgeEClass),0),17),"containedEdges",0,-1,kMe,!1,!1,!0,!0,!1,!1,!1),nze(Pn(vRe(EVe(e.elkNodeEClass),4),32),e.ecorePackage.eBooleanEDataType,"hierarchical",null,0,1,kMe,!0,!0,!1,!1,!0,!0),ize(e.elkPortEClass,$Me,"ElkPort",!1,!1,!0),lze(Pn(vRe(EVe(e.elkPortEClass),0),17),e.elkNodeEClass,Pn(vRe(EVe(e.elkNodeEClass),0),17),"parent",0,1,$Me,!1,!1,!0,!1,!1,!1,!1),ize(e.elkEdgeEClass,QPe,"ElkEdge",!1,!1,!0),lze(Pn(vRe(EVe(e.elkEdgeEClass),0),17),e.elkNodeEClass,Pn(vRe(EVe(e.elkNodeEClass),3),17),"containingNode",0,1,QPe,!1,!1,!0,!1,!1,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeEClass),1),17),e.elkConnectableShapeEClass,Pn(vRe(EVe(e.elkConnectableShapeEClass),0),17),"sources",0,-1,QPe,!1,!1,!0,!1,!0,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeEClass),2),17),e.elkConnectableShapeEClass,Pn(vRe(EVe(e.elkConnectableShapeEClass),1),17),"targets",0,-1,QPe,!1,!1,!0,!1,!0,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeEClass),3),17),e.elkEdgeSectionEClass,Pn(vRe(EVe(e.elkEdgeSectionEClass),5),17),"sections",0,-1,QPe,!1,!1,!0,!0,!1,!1,!1),nze(Pn(vRe(EVe(e.elkEdgeEClass),4),32),e.ecorePackage.eBooleanEDataType,"hyperedge",null,0,1,QPe,!0,!0,!1,!1,!0,!0),nze(Pn(vRe(EVe(e.elkEdgeEClass),5),32),e.ecorePackage.eBooleanEDataType,"hierarchical",null,0,1,QPe,!0,!0,!1,!1,!0,!0),nze(Pn(vRe(EVe(e.elkEdgeEClass),6),32),e.ecorePackage.eBooleanEDataType,"selfloop",null,0,1,QPe,!0,!0,!1,!1,!0,!0),nze(Pn(vRe(EVe(e.elkEdgeEClass),7),32),e.ecorePackage.eBooleanEDataType,"connected",null,0,1,QPe,!0,!0,!1,!1,!0,!0),ize(e.elkBendPointEClass,YPe,"ElkBendPoint",!1,!1,!0),nze(Pn(vRe(EVe(e.elkBendPointEClass),0),32),e.ecorePackage.eDoubleEDataType,"x","0.0",1,1,YPe,!1,!1,!0,!1,!0,!1),nze(Pn(vRe(EVe(e.elkBendPointEClass),1),32),e.ecorePackage.eDoubleEDataType,"y","0.0",1,1,YPe,!1,!1,!0,!1,!0,!1),GLe(s=OLe(e.elkBendPointEClass,null,"set"),e.ecorePackage.eDoubleEDataType,"x"),GLe(s,e.ecorePackage.eDoubleEDataType,"y"),ize(e.elkEdgeSectionEClass,eMe,"ElkEdgeSection",!1,!1,!0),nze(Pn(vRe(EVe(e.elkEdgeSectionEClass),0),32),e.ecorePackage.eDoubleEDataType,"startX",null,0,1,eMe,!1,!1,!0,!1,!0,!1),nze(Pn(vRe(EVe(e.elkEdgeSectionEClass),1),32),e.ecorePackage.eDoubleEDataType,"startY",null,0,1,eMe,!1,!1,!0,!1,!0,!1),nze(Pn(vRe(EVe(e.elkEdgeSectionEClass),2),32),e.ecorePackage.eDoubleEDataType,"endX",null,0,1,eMe,!1,!1,!0,!1,!0,!1),nze(Pn(vRe(EVe(e.elkEdgeSectionEClass),3),32),e.ecorePackage.eDoubleEDataType,"endY",null,0,1,eMe,!1,!1,!0,!1,!0,!1),lze(Pn(vRe(EVe(e.elkEdgeSectionEClass),4),17),e.elkBendPointEClass,null,"bendPoints",0,-1,eMe,!1,!1,!0,!0,!1,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeSectionEClass),5),17),e.elkEdgeEClass,Pn(vRe(EVe(e.elkEdgeEClass),3),17),"parent",0,1,eMe,!1,!1,!0,!1,!1,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeSectionEClass),6),17),e.elkConnectableShapeEClass,null,"outgoingShape",0,1,eMe,!1,!1,!0,!1,!0,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeSectionEClass),7),17),e.elkConnectableShapeEClass,null,"incomingShape",0,1,eMe,!1,!1,!0,!1,!0,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeSectionEClass),8),17),e.elkEdgeSectionEClass,Pn(vRe(EVe(e.elkEdgeSectionEClass),9),17),"outgoingSections",0,-1,eMe,!1,!1,!0,!1,!0,!1,!1),lze(Pn(vRe(EVe(e.elkEdgeSectionEClass),9),17),e.elkEdgeSectionEClass,Pn(vRe(EVe(e.elkEdgeSectionEClass),8),17),"incomingSections",0,-1,eMe,!1,!1,!0,!1,!0,!1,!1),nze(Pn(vRe(EVe(e.elkEdgeSectionEClass),10),32),e.ecorePackage.eStringEDataType,"identifier",null,0,1,eMe,!1,!1,!0,!1,!0,!1),GLe(s=OLe(e.elkEdgeSectionEClass,null,"setStartLocation"),e.ecorePackage.eDoubleEDataType,"x"),GLe(s,e.ecorePackage.eDoubleEDataType,"y"),GLe(s=OLe(e.elkEdgeSectionEClass,null,"setEndLocation"),e.ecorePackage.eDoubleEDataType,"x"),GLe(s,e.ecorePackage.eDoubleEDataType,"y"),ize(e.elkPropertyToValueMapEntryEClass,ea,"ElkPropertyToValueMapEntry",!1,!1,!1),t=YLe(e.iPropertyEDataType),n=new UHe,eRe((!t.eTypeArguments&&(t.eTypeArguments=new GVe(iBe,t,1)),t.eTypeArguments),n),rze(Pn(vRe(EVe(e.elkPropertyToValueMapEntryEClass),0),32),t,"key",ea,!1,!1,!0,!1),nze(Pn(vRe(EVe(e.elkPropertyToValueMapEntryEClass),1),32),e.propertyValueEDataType,"value",null,0,1,ea,!1,!1,!0,!1,!0,!1),sze(e.iPropertyEDataType,Axe,"IProperty",!0),sze(e.propertyValueEDataType,or,"PropertyValue",!0),QLe(e,"http://www.eclipse.org/elk/ElkGraph"))}(t),tze(t),fy(tBe,"http://www.eclipse.org/elk/ElkGraph",t),t)}function wMe(){wMe=En,mMe(),pMe=iMe.eMapPropertyHolderEClass,Pn(vRe(EVe(iMe.eMapPropertyHolderEClass),0),17),cMe=iMe.elkGraphElementEClass,Pn(vRe(EVe(iMe.elkGraphElementEClass),0),17),Pn(vRe(EVe(iMe.elkGraphElementEClass),1),32),dMe=iMe.elkShapeEClass,Pn(vRe(EVe(iMe.elkShapeEClass),0),32),Pn(vRe(EVe(iMe.elkShapeEClass),1),32),Pn(vRe(EVe(iMe.elkShapeEClass),2),32),Pn(vRe(EVe(iMe.elkShapeEClass),3),32),uMe=iMe.elkLabelEClass,Pn(vRe(EVe(iMe.elkLabelEClass),0),17),Pn(vRe(EVe(iMe.elkLabelEClass),1),32),sMe=iMe.elkConnectableShapeEClass,Pn(vRe(EVe(iMe.elkConnectableShapeEClass),0),17),Pn(vRe(EVe(iMe.elkConnectableShapeEClass),1),17),hMe=iMe.elkNodeEClass,Pn(vRe(EVe(iMe.elkNodeEClass),0),17),Pn(vRe(EVe(iMe.elkNodeEClass),1),17),Pn(vRe(EVe(iMe.elkNodeEClass),2),17),Pn(vRe(EVe(iMe.elkNodeEClass),3),17),Pn(vRe(EVe(iMe.elkNodeEClass),4),32),gMe=iMe.elkPortEClass,Pn(vRe(EVe(iMe.elkPortEClass),0),17),oMe=iMe.elkEdgeEClass,Pn(vRe(EVe(iMe.elkEdgeEClass),0),17),Pn(vRe(EVe(iMe.elkEdgeEClass),1),17),Pn(vRe(EVe(iMe.elkEdgeEClass),2),17),Pn(vRe(EVe(iMe.elkEdgeEClass),3),17),Pn(vRe(EVe(iMe.elkEdgeEClass),4),32),Pn(vRe(EVe(iMe.elkEdgeEClass),5),32),Pn(vRe(EVe(iMe.elkEdgeEClass),6),32),Pn(vRe(EVe(iMe.elkEdgeEClass),7),32),aMe=iMe.elkBendPointEClass,Pn(vRe(EVe(iMe.elkBendPointEClass),0),32),Pn(vRe(EVe(iMe.elkBendPointEClass),1),32),lMe=iMe.elkEdgeSectionEClass,Pn(vRe(EVe(iMe.elkEdgeSectionEClass),0),32),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),1),32),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),2),32),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),3),32),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),4),17),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),5),17),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),6),17),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),7),17),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),8),17),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),9),17),Pn(vRe(EVe(iMe.elkEdgeSectionEClass),10),32),fMe=iMe.elkPropertyToValueMapEntryEClass,Pn(vRe(EVe(iMe.elkPropertyToValueMapEntryEClass),0),32),Pn(vRe(EVe(iMe.elkPropertyToValueMapEntryEClass),1),32)}var vMe,xMe,EMe,bMe,CMe,SMe=tr("org.eclipse.elk.graph","ElkLabel"),kMe=tr("org.eclipse.elk.graph","ElkNode"),$Me=tr("org.eclipse.elk.graph","ElkPort");function IMe(e,t){var n,r,i;if(null!=(n=e.eBasicAdapterArray())&&e.eDeliver())for(r=0,i=n.length;r=0&&o!=n&&(a=new hUe(e,1,o,s,null),r?r.add_4(a):r=a),n>=0&&(a=new hUe(e,1,n,o==n?s:null,t),r?r.add_4(a):r=a)),r}function MMe(e){var t,n,r,i,a;return(a=e.eInternalContainer())&&a.eIsProxy()&&(i=JMe(e,a))!=a?(n=e.eContainerFeatureID_0(),r=(t=e.eContainerFeatureID_0())>=0?e.eBasicRemoveFromContainerFeature(null):e.eInternalContainer().eInverseRemove(e,-1-t,null,null),e.eBasicSetContainer(Pn(i,48),n),r&&r.dispatch_0(),e.eBasicHasAdapters()&&e.eDeliver()&&n>-1&&IMe(e,new hUe(e,9,n,a,i)),i):a}function NMe(e,t,n,r,i){return t<0?WMe(e,n,r):Pn(n,65).getSettingDelegate().dynamicGet_0(e,e.eSettings_0(),t,r,i)}function LMe(e,t,n){return t<0?KMe(e,n):Pn(n,65).getSettingDelegate().dynamicIsSet(e,e.eSettings_0(),t)}function zMe(e,t,n,r){if(t<0)YMe(e,n,r);else{if(!n.isChangeable())throw Vg(new gd("The feature '"+n.getName()+"' is not a valid changeable feature"));Pn(n,65).getSettingDelegate().dynamicSet_0(e,e.eSettings_0(),t,r)}}function AMe(e,t,n){if(t<0)XMe(e,n);else{if(!n.isChangeable())throw Vg(new gd("The feature '"+n.getName()+"' is not a valid changeable feature"));Pn(n,65).getSettingDelegate().dynamicUnset_0(e,e.eSettings_0(),t)}}function DMe(e,t,n,r){var i,a,s;return a=vVe(e.eClass_0(),t),(i=t-e.eStaticFeatureCount())<0?(s=e.eDerivedStructuralFeatureID_0(a))>=0?e.eGet(s,n,!0):WMe(e,a,n):Pn(a,65).getSettingDelegate().dynamicGet_0(e,e.eSettings_0(),i,n,r)}function RMe(e,t){var n;return(n=e.eDerivedStructuralFeatureID_0(t))>=0?e.eGet(n,!0,!0):WMe(e,t,!0)}function FMe(e,t,n){var r;return(r=e.eDerivedStructuralFeatureID_0(t))>=0?e.eGet(r,n,!0):WMe(e,t,n)}function OMe(e,t){var n;return(n=kVe(e.eClass,t))>=0?DMe(e,n,!0,!0):WMe(e,t,!0)}function GMe(e){var t,n,r;if(!(r=e.eDirectResource()))for(t=0,n=e.eInternalContainer();n;n=n.eInternalContainer()){if(++t>Ee)return n.eInternalResource();if((r=n.eDirectResource())||n==e)break}return r}function BMe(e,t,n,r){var i;return n>=0?e.eInverseAdd_0(t,n,r):(e.eInternalContainer()&&(r=(i=e.eContainerFeatureID_0())>=0?e.eBasicRemoveFromContainerFeature(r):e.eInternalContainer().eInverseRemove(e,-1-i,null,r)),e.eBasicSetContainer_0(t,n,r))}function jMe(e,t,n,r){return n>=0?e.eInverseRemove_0(t,n,r):e.eBasicSetContainer_0(null,n,r)}function VMe(e,t){var n,r,i;return r=vVe(e.eClass_0(),t),(n=t-e.eStaticFeatureCount())<0?(i=e.eDerivedStructuralFeatureID_0(r))>=0?e.eIsSet(i):KMe(e,r):n<0?KMe(e,r):Pn(r,65).getSettingDelegate().dynamicIsSet(e,e.eSettings_0(),n)}function HMe(e,t){var n;return(n=e.eDerivedStructuralFeatureID_0(t))>=0?e.eIsSet(n):KMe(e,t)}function UMe(e){return e.eBasicHasAdapters()&&e.eDeliver()}function qMe(e,t){var n,r,i,a,s,o,l,c;if(s$(o=t.length-1,t.length),93==(s=t.charCodeAt(o))){if((a=sp(t,mp(91)))>=0)return i=function(e,t){var n;if(Fn(n=xVe(e.eClass_0(),t),97))return Pn(n,17);throw Vg(new gd("The feature '"+t+"' is not a valid reference"))}(e,t.substr(1,a-1)),function(e,t,n){var r,i,a,s,o,l,c,u,h,g;for(l=new xm,h=t.length,s=tqe(n),c=0;c=0?e.eGet(c,!1,!0):WMe(e,n,!1),57).iterator_0();a.hasNext_0();){for(i=Pn(a.next_1(),55),u=0;u=0){r=Pn(FMe(e,tNe(e,t.substr(1,n-1)),!1),57),l=0;try{l=Rf(t.substr(n+1),ee,u)}catch(e){throw Fn(e=jg(e),127)?Vg(new HGe(e)):Vg(e)}if(l=0?e.eGet(r,!0,!0):WMe(e,a,!0),152),Pn(i,212).get_7(t,n);throw Vg(new gd("The feature '"+t.getName()+"' is not a valid feature"))}function KMe(e,t){var n,r,i;if(i=HKe((BKe(),MKe),e.eClass_0(),t))return rJe(),Pn(i,65).isFeatureMap_0()||(i=gYe(XKe(MKe,i))),r=Pn((n=e.eDerivedStructuralFeatureID_0(i))>=0?e.eGet(n,!0,!0):WMe(e,i,!0),152),Pn(r,212).isSet_1(t);throw Vg(new gd("The feature '"+t.getName()+"' is not a valid feature"))}function YMe(e,t,n){var r,i,a;if(!(a=HKe((BKe(),MKe),e.eClass_0(),t)))throw Vg(new gd("The feature '"+t.getName()+"' is not a valid changeable feature"));if(rJe(),!Pn(a,65).isFeatureMap_0()&&!(a=gYe(XKe(MKe,a))))throw Vg(new gd("The feature '"+t.getName()+"' is not a valid changeable feature"));i=Pn((r=e.eDerivedStructuralFeatureID_0(a))>=0?e.eGet(r,!0,!0):WMe(e,a,!0),152),Pn(i,212).set_3(t,n)}function XMe(e,t){var n,r,i;if(!(i=HKe((BKe(),MKe),e.eClass_0(),t)))throw Vg(new gd("The feature '"+t.getName()+"' is not a valid changeable feature"));rJe(),Pn(i,65).isFeatureMap_0()||(i=gYe(XKe(MKe,i))),r=Pn((n=e.eDerivedStructuralFeatureID_0(i))>=0?e.eGet(n,!0,!0):WMe(e,i,!0),152),Pn(r,212).unset_0(t)}function JMe(e,t){var n,r,i,a;return(a=WXe((r=t,(i=e?GMe(e):null)&&i.getResourceSet(),r)))==t&&(n=GMe(e))&&n.getResourceSet(),a}function ZMe(e,t,n){var r,i,a;if(i=vVe(e.eClass_0(),t),(r=t-e.eStaticFeatureCount())<0){if(!i)throw Vg(new gd("The feature ID"+t+" is not a valid feature ID"));if(!i.isChangeable())throw Vg(new gd("The feature '"+i.getName()+"' is not a valid changeable feature"));(a=e.eDerivedStructuralFeatureID_0(i))>=0?e.eSet(a,n):YMe(e,i,n)}else zMe(e,r,i,n)}function QMe(e,t,n){var r;(r=e.eDerivedStructuralFeatureID_0(t))>=0?e.eSet(r,n):YMe(e,t,n)}function eNe(e){var t;return e.eHasSettings()||(t=SVe(e.eClass_0())-e.eStaticFeatureCount(),e.eProperties_0().allocateSettings(t)),e.eBasicProperties()}function tNe(e,t){var n;if(!(n=xVe(e.eClass_0(),t)))throw Vg(new gd("The feature '"+t+"' is not a valid feature"));return n}function nNe(e,t){var n,r,i;if(r=vVe(e.eClass_0(),t),(n=t-e.eStaticFeatureCount())<0){if(!r)throw Vg(new gd("The feature ID"+t+" is not a valid feature ID"));if(!r.isChangeable())throw Vg(new gd("The feature '"+r.getName()+"' is not a valid changeable feature"));(i=e.eDerivedStructuralFeatureID_0(r))>=0?e.eUnset(i):XMe(e,r)}else AMe(e,n,r)}function rNe(e){var t;return(t=new Qp(Yn(e.___clazz))).string+="@",Wp(t,(In(e)>>>0).toString(16)),e.eIsProxy()?(t.string+=" (eProxyURI: ",qp(t,e.eProxyURI_0()),e.eDynamicClass()&&(t.string+=" eClass: ",qp(t,e.eDynamicClass())),t.string+=")"):e.eDynamicClass()&&(t.string+=" (eClass: ",qp(t,e.eDynamicClass()),t.string+=")"),t.string}function iNe(e,t,n){var r,i,a,s,o,l;if(t){if(n<=-1){if(Fn(r=vVe(t.eClass_0(),-1-n),97))return Pn(r,17);for(o=0,l=(s=Pn(t.eGet_0(r),152)).size_1();o>16==3?e.eContainer.eInverseRemove(e,12,kMe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(wMe(),oMe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function tLe(e){return e.eFlags_0>>16!=3?null:Pn(e.eContainer,34)}function nLe(e){var t,n,r;for(t=null,n=ss(is(Sg(yg(ci,1),g,19,0,[(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources),(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets)])));Jo(n);)if(r=GDe(Pn(Zo(n),93)),t){if(t!=Ize(r))return!0}else t=Ize(r);return!1}function rLe(e){var t,n,r;for(t=null,n=ss(is(Sg(yg(ci,1),g,19,0,[(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources),(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets)])));Jo(n);)if(r=GDe(Pn(Zo(n),93)),t){if(t!=r)return!1}else t=r;return!0}function iLe(e,t){var n,r;if(t!=e.eContainer||e.eFlags_0>>16!=3&&t){if(qXe(e,t))throw Vg(new gd("Recursive containment not allowed for "+aLe(e)));r=null,e.eContainer&&(r=(n=e.eFlags_0>>16)>=0?eLe(e,r):e.eContainer.eInverseRemove(e,-1-n,null,r)),t&&(r=BMe(t,e,12,r)),(r=QNe(e,t,r))&&r.dispatch_0()}else 0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,3,t,t))}function aLe(e){var t,n,r,i;return 0!=(64&e.eFlags_0)?zNe(e):(t=new Qp("ElkEdge"),(r=e.identifier)?Wp(Wp((t.string+=' "',t),r),'"'):(!e.labels&&(e.labels=new HUe(SMe,e,1,7)),e.labels.size_0>0&&(!(i=(!e.labels&&(e.labels=new HUe(SMe,e,1,7)),Pn(vRe(e.labels,0),137)).text_0)||Wp(Wp((t.string+=' "',t),i),'"'))),!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),n=!(e.sources.size_0<=1&&(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets.size_0<=1)),t.string+=n?" [":" ",Wp(t,hr(new fr,new BFe(e.sources))),n&&(t.string+="]"),t.string+=" -> ",n&&(t.string+="["),Wp(t,hr(new fr,new BFe(e.targets))),n&&(t.string+="]"),t.string)}function sLe(){}function oLe(e,t,n){return PMe(e,t,6,n)}function lLe(e,t){var n;return e.eFlags_0>>16==6?e.eContainer.eInverseRemove(e,6,QPe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(wMe(),lMe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function cLe(e){var t;return e.incomingShape&&e.incomingShape.eIsProxy()&&(t=Pn(e.incomingShape,48),e.incomingShape=Pn(JMe(e,t),93),e.incomingShape!=t&&0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,9,8,t,e.incomingShape))),e.incomingShape}function uLe(e){var t;return e.outgoingShape&&e.outgoingShape.eIsProxy()&&(t=Pn(e.outgoingShape,48),e.outgoingShape=Pn(JMe(e,t),93),e.outgoingShape!=t&&0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,9,7,t,e.outgoingShape))),e.outgoingShape}function hLe(e){return e.eFlags_0>>16!=6?null:Pn(e.eContainer,80)}function gLe(e,t,n){fLe(e,t),dLe(e,n)}function fLe(e,t){var n;n=e.endX,e.endX=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new cUe(e,3,n,e.endX))}function dLe(e,t){var n;n=e.endY,e.endY=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new cUe(e,4,n,e.endY))}function pLe(e,t){var n;n=e.identifier,e.identifier=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,11,n,e.identifier))}function _Le(e,t){var n;n=e.incomingShape,e.incomingShape=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,8,n,e.incomingShape))}function yLe(e,t){var n;n=e.outgoingShape,e.outgoingShape=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,7,n,e.outgoingShape))}function mLe(e,t){var n,r;if(t!=e.eContainer||e.eFlags_0>>16!=6&&t){if(qXe(e,t))throw Vg(new gd("Recursive containment not allowed for "+ELe(e)));r=null,e.eContainer&&(r=(n=e.eFlags_0>>16)>=0?lLe(e,r):e.eContainer.eInverseRemove(e,-1-n,null,r)),t&&(r=BMe(t,e,6,r)),(r=oLe(e,t,r))&&r.dispatch_0()}else 0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,6,t,t))}function wLe(e,t,n){vLe(e,t),xLe(e,n)}function vLe(e,t){var n;n=e.startX,e.startX=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new cUe(e,1,n,e.startX))}function xLe(e,t){var n;n=e.startY,e.startY=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new cUe(e,2,n,e.startY))}function ELe(e){var t;return 0!=(64&e.eFlags_0)?rNe(e):((t=new Gp(rNe(e))).string+=" (startX: ",Lp(t,e.startX),t.string+=", startY: ",Lp(t,e.startY),t.string+=", endX: ",Lp(t,e.endX),t.string+=", endY: ",Lp(t,e.endY),t.string+=", identifier: ",Dp(t,e.identifier),t.string+=")",t.string)}function bLe(){}function CLe(e,t){var n,r,i,a,s,o,l,c,h,g,f,d,p,_,y,m,w;if((g=t.length)>0&&(s$(0,t.length),64!=(o=t.charCodeAt(0)))){if(37==o&&(l=!1,0!=(h=t.lastIndexOf("%"))&&(h==g-1||(s$(h+1,t.length),l=46==t.charCodeAt(h+1))))){if(w=np("%",s=t.substr(1,h-1))?null:pGe(s),r=0,l)try{r=Rf(t.substr(h+2),ee,u)}catch(e){throw Fn(e=jg(e),127)?Vg(new HGe(e)):Vg(e)}for(_=YHe(e.eContents_0());_.hasNext_0();)if(Fn(d=QHe(_),502)&&(m=(i=Pn(d,581)).source,(null==w?null==m:np(w,m))&&0==r--))return i;return null}if(f=-1==(c=t.lastIndexOf("."))?t:t.substr(0,c),n=0,-1!=c)try{n=Rf(t.substr(c+1),ee,u)}catch(e){if(!Fn(e=jg(e),127))throw Vg(e);f=t}for(f=np("%",f)?null:pGe(f),p=YHe(e.eContents_0());p.hasNext_0();)if(Fn(d=QHe(p),191)&&(y=(a=Pn(d,191)).getName(),(null==f?null==y:np(f,y))&&0==n--))return a;return null}return qMe(e,t)}function SLe(e){Fn(e,150)&&Pn(e,150).freeze()}function kLe(e,t){var n,r,i,a,s;if(e.eAnnotations)if(e.eAnnotations){if((s=e.eAnnotations.size_0)>0)if(i=Pn(e.eAnnotations.data_0,1906),null==t){for(a=0;a>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw Vg(new qd("Invalid hexadecimal"))}}function ALe(){}function DLe(e,t){var n;n=e.name_0,e.name_0=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,1,n,e.name_0))}function RLe(e){var t;return 0!=(64&e.eFlags_0)?rNe(e):((t=new Gp(rNe(e))).string+=" (name: ",Dp(t,e.name_0),t.string+=")",t.string)}function FLe(e,t,n){var r,i,a,s,o,l;for(uje(i=new gje,(Qk(t),t)),!i.details&&(i.details=new _je((HBe(),ABe),wqe,i)),o=i.details,s=1;s>16!=7?null:Pn(e.eContainer,234)}function ULe(e,t,n){var r,i;return i=e.eFactoryInstance,e.eFactoryInstance=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&(r=new hUe(e,1,4,i,t),n?n.add_4(r):n=r),n}function qLe(e,t){var n;(n=new Xje).featureID=t,eRe((!e.eStructuralFeatures&&(e.eStructuralFeatures=new HUe(KGe,e,21,17)),e.eStructuralFeatures),n)}function WLe(e,t){var n;return(n=new PVe).metaObjectID=t,!e.eClassifiers&&(e.eClassifiers=new qUe(e,XGe,e)),eRe(e.eClassifiers,n),n}function KLe(e,t){var n;return(n=new mHe).metaObjectID=t,!e.eClassifiers&&(e.eClassifiers=new qUe(e,XGe,e)),eRe(e.eClassifiers,n),n}function YLe(e){var t;return OHe(t=new UHe,e),t}function XLe(e){var t;return jHe(t=new UHe,e),t}function JLe(e){var t;t=new DUe,eRe((!e.eOperations&&(e.eOperations=new HUe(aBe,e,11,10)),e.eOperations),t)}function ZLe(e,t){var n;(n=new aqe).featureID=t,eRe((!e.eStructuralFeatures&&(e.eStructuralFeatures=new HUe(KGe,e,21,17)),e.eStructuralFeatures),n)}function QLe(e,t){var n;return(n=GMe(e))||(!CMe&&(CMe=new WUe),cGe(),eRe((n=new DKe(dGe(t))).getContents(),e)),n}function eze(e,t){var n;return e.eFlags_0>>16==7?e.eContainer.eInverseRemove(e,6,yMe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(HBe(),NBe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function tze(e){var t,n;if(e.eClassifiers)for(t=0,n=e.eClassifiers.size_0;t=0?this.eBasicRemoveFromContainerFeature(t):this.eInternalContainer().eInverseRemove(this,-1-n,null,t),t=this.eBasicSetContainer_0(null,-1,t))),this.eSetDirectResource(e),t},i.eSetting=function(e){var t,n,r,i,a,s,o;if((a=kVe(n=this.eClass_0(),e))>=(t=this.eStaticFeatureCount()))return Pn(e,65).getSettingDelegate().dynamicSetting(this,this.eSettings_0(),a-t);if(a<=-1){if(!(s=HKe((BKe(),MKe),n,e)))throw Vg(new gd("The feature '"+e.getName()+"' is not a valid feature"));if(rJe(),Pn(s,65).isFeatureMap_0()||(s=gYe(XKe(MKe,s))),i=Pn((r=this.eDerivedStructuralFeatureID_0(s))>=0?this.eGet(r,!0,!0):WMe(this,s,!0),152),(o=s.getUpperBound())>1||-1==o)return Pn(Pn(i,212).get_7(e,!1),76)}else if(e.isMany())return Pn((r=this.eDerivedStructuralFeatureID_0(e))>=0?this.eGet(r,!1,!0):WMe(this,e,!1),76);return new ZBe(this,e)},i.eSettings_0=function(){return eNe(this)},i.eStaticClass=function(){return(VBe(),pBe).eObjectEClass},i.eStaticFeatureCount=function(){return SVe(this.eStaticClass())},i.eUnset=function(e){nNe(this,e)},i.toString_0=function(){return rNe(this)},Qn("org.eclipse.emf.ecore.impl","BasicEObjectImpl",96),bn(113,96,{104:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1}),i.dynamicGet=function(e){return lNe(this)[e]},i.dynamicSet=function(e,t){Cg(lNe(this),e,t)},i.dynamicUnset=function(e){Cg(lNe(this),e,null)},i.eBasicAdapterArray=function(){return Pn(hNe(this,4),124)},i.eBasicAdapters=function(){throw Vg(new i_)},i.eBasicHasAdapters=function(){return 0!=(4&this.eFlags_0)},i.eBasicProperties=function(){throw Vg(new i_)},i.eBasicSetContainer_1=function(e){gNe(this,2,e)},i.eBasicSetContainer=function(e,t){this.eFlags_0=t<<16|255&this.eFlags_0,this.eBasicSetContainer_1(e)},i.eClass_0=function(){return oNe(this)},i.eContainerFeatureID_0=function(){return this.eFlags_0>>16},i.eContents_0=function(){var e;return WHe(),null==(e=KVe(_Ve(Pn(hNe(this,16),26)||this.eStaticClass())))?$He:new XHe(this,e)},i.eDeliver=function(){return 0==(1&this.eFlags_0)},i.eDirectResource=function(){return Pn(hNe(this,128),1907)},i.eDynamicClass=function(){return Pn(hNe(this,16),26)},i.eHasSettings=function(){return 0!=(32&this.eFlags_0)},i.eInternalContainer=function(){return Pn(hNe(this,2),48)},i.eIsProxy=function(){return 0!=(64&this.eFlags_0)},i.eProperties_0=function(){throw Vg(new i_)},i.eProxyURI_0=function(){return Pn(hNe(this,64),279)},i.eSetClass=function(e){gNe(this,16,e)},i.eSetDirectResource=function(e){gNe(this,128,e)},i.eSetProxyURI=function(e){gNe(this,64,e)},i.eSettings_0=function(){return cNe(this)},i.eFlags_0=0,Qn("org.eclipse.emf.ecore.impl","MinimalEObjectImpl",113),bn(116,113,{104:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),i.eBasicSetContainer_1=function(e){this.eContainer=e},i.eInternalContainer=function(){return this.eContainer},Qn("org.eclipse.emf.ecore.impl","MinimalEObjectImpl/Container",116),bn(1957,116,{104:1,408:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),i.copyProperties=function(e){return!this.properties&&(this.properties=new pje((wMe(),fMe),Jze,this,0)),COe(this.properties,e.propertyMap?e.propertyMap:(hw(),hw(),Sm)),this},i.eGet=function(e,t,n){return fNe(this,e,t,n)},i.eInverseRemove_0=function(e,t,n){return dNe(this,e,t,n)},i.eIsSet=function(e){return pNe(this,e)},i.eSet=function(e,t){_Ne(this,e,t)},i.eStaticClass=function(){return wMe(),pMe},i.eUnset=function(e){yNe(this,e)},i.getAllProperties=function(){return mNe(this)},i.getProperty=function(e){return wNe(this,e)},i.hasProperty=function(e){return vNe(this,e)},i.setProperty=function(e,t){return xNe(this,e,t)},Qn("org.eclipse.elk.graph.impl","EMapPropertyHolderImpl",1957),bn(560,116,{104:1,463:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},SNe),i.eGet=function(e,t,n){switch(e){case 0:return this.x_0;case 1:return this.y_0}return DMe(this,e,t,n)},i.eIsSet=function(e){switch(e){case 0:return 0!=this.x_0;case 1:return 0!=this.y_0}return VMe(this,e)},i.eSet=function(e,t){switch(e){case 0:return void bNe(this,td(Ln(t)));case 1:return void CNe(this,td(Ln(t)))}ZMe(this,e,t)},i.eStaticClass=function(){return wMe(),aMe},i.eUnset=function(e){switch(e){case 0:return void bNe(this,0);case 1:return void CNe(this,0)}nNe(this,e)},i.toString_0=function(){var e;return 0!=(64&this.eFlags_0)?rNe(this):((e=new Gp(rNe(this))).string+=" (x: ",Lp(e,this.x_0),e.string+=", y: ",Lp(e,this.y_0),e.string+=")",e.string)},i.x_0=0,i.y_0=0,Qn("org.eclipse.elk.graph.impl","ElkBendPointImpl",560),bn(710,1957,{104:1,408:1,160:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),i.eGet=function(e,t,n){return kNe(this,e,t,n)},i.eInverseAdd_0=function(e,t,n){return $Ne(this,e,t,n)},i.eInverseRemove_0=function(e,t,n){return INe(this,e,t,n)},i.eIsSet=function(e){return TNe(this,e)},i.eSet=function(e,t){PNe(this,e,t)},i.eStaticClass=function(){return wMe(),cMe},i.eUnset=function(e){MNe(this,e)},i.getIdentifier=function(){return this.identifier},i.getLabels_0=function(){return NNe(this)},i.toString_0=function(){return zNe(this)},i.identifier=null,Qn("org.eclipse.elk.graph.impl","ElkGraphElementImpl",710),bn(711,710,{104:1,408:1,160:1,464:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),i.eGet=function(e,t,n){return ANe(this,e,t,n)},i.eIsSet=function(e){return DNe(this,e)},i.eSet=function(e,t){RNe(this,e,t)},i.eStaticClass=function(){return wMe(),dMe},i.eUnset=function(e){FNe(this,e)},i.getHeight=function(){return this.height},i.getWidth=function(){return this.width_0},i.getX=function(){return this.x_0},i.getY=function(){return this.y_0},i.setDimensions=function(e,t){ONe(this,e,t)},i.setLocation=function(e,t){BNe(this,e,t)},i.setX=function(e){VNe(this,e)},i.setY=function(e){HNe(this,e)},i.toString_0=function(){return UNe(this)},i.height=0,i.width_0=0,i.x_0=0,i.y_0=0,Qn("org.eclipse.elk.graph.impl","ElkShapeImpl",711),bn(712,711,{104:1,408:1,93:1,160:1,464:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),i.eGet=function(e,t,n){return qNe(this,e,t,n)},i.eInverseAdd_0=function(e,t,n){return WNe(this,e,t,n)},i.eInverseRemove_0=function(e,t,n){return KNe(this,e,t,n)},i.eIsSet=function(e){return YNe(this,e)},i.eSet=function(e,t){XNe(this,e,t)},i.eStaticClass=function(){return wMe(),sMe},i.eUnset=function(e){JNe(this,e)},i.getIncomingEdges_0=function(){return!this.incomingEdges&&(this.incomingEdges=new MXe(QPe,this,8,5)),this.incomingEdges},i.getOutgoingEdges_0=function(){return!this.outgoingEdges&&(this.outgoingEdges=new MXe(QPe,this,7,4)),this.outgoingEdges},Qn("org.eclipse.elk.graph.impl","ElkConnectableShapeImpl",712),bn(349,710,{104:1,408:1,80:1,160:1,349:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},sLe),i.eBasicRemoveFromContainerFeature=function(e){return eLe(this,e)},i.eGet=function(e,t,n){switch(e){case 3:return tLe(this);case 4:return!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),this.sources;case 5:return!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),this.targets;case 6:return!this.sections&&(this.sections=new HUe(eMe,this,6,6)),this.sections;case 7:return Mf(),!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),!(this.sources.size_0<=1&&(!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),this.targets.size_0<=1));case 8:return Mf(),!!nLe(this);case 9:return Mf(),!!rLe(this);case 10:return Mf(),!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),0!=this.sources.size_0&&(!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),0!=this.targets.size_0)}return kNe(this,e,t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 3:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?eLe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),QNe(this,Pn(e,34),n);case 4:return!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),TFe(this.sources,e,n);case 5:return!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),TFe(this.targets,e,n);case 6:return!this.sections&&(this.sections=new HUe(eMe,this,6,6)),TFe(this.sections,e,n)}return $Ne(this,e,t,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 3:return QNe(this,null,n);case 4:return!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),PFe(this.sources,e,n);case 5:return!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),PFe(this.targets,e,n);case 6:return!this.sections&&(this.sections=new HUe(eMe,this,6,6)),PFe(this.sections,e,n)}return INe(this,e,t,n)},i.eIsSet=function(e){switch(e){case 3:return!!tLe(this);case 4:return!!this.sources&&0!=this.sources.size_0;case 5:return!!this.targets&&0!=this.targets.size_0;case 6:return!!this.sections&&0!=this.sections.size_0;case 7:return!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),!(this.sources.size_0<=1&&(!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),this.targets.size_0<=1));case 8:return nLe(this);case 9:return rLe(this);case 10:return!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),0!=this.sources.size_0&&(!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),0!=this.targets.size_0)}return TNe(this,e)},i.eSet=function(e,t){switch(e){case 3:return void iLe(this,Pn(t,34));case 4:return!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),MFe(this.sources),!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),void nRe(this.sources,Pn(t,15));case 5:return!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),MFe(this.targets),!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),void nRe(this.targets,Pn(t,15));case 6:return!this.sections&&(this.sections=new HUe(eMe,this,6,6)),MFe(this.sections),!this.sections&&(this.sections=new HUe(eMe,this,6,6)),void nRe(this.sections,Pn(t,15))}PNe(this,e,t)},i.eStaticClass=function(){return wMe(),oMe},i.eUnset=function(e){switch(e){case 3:return void iLe(this,null);case 4:return!this.sources&&(this.sources=new MXe(ZPe,this,4,7)),void MFe(this.sources);case 5:return!this.targets&&(this.targets=new MXe(ZPe,this,5,8)),void MFe(this.targets);case 6:return!this.sections&&(this.sections=new HUe(eMe,this,6,6)),void MFe(this.sections)}MNe(this,e)},i.toString_0=function(){return aLe(this)},Qn("org.eclipse.elk.graph.impl","ElkEdgeImpl",349),bn(432,1957,{104:1,408:1,201:1,432:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},bLe),i.eBasicRemoveFromContainerFeature=function(e){return lLe(this,e)},i.eGet=function(e,t,n){switch(e){case 1:return this.startX;case 2:return this.startY;case 3:return this.endX;case 4:return this.endY;case 5:return!this.bendPoints&&(this.bendPoints=new GVe(YPe,this,5)),this.bendPoints;case 6:return hLe(this);case 7:return t?uLe(this):this.outgoingShape;case 8:return t?cLe(this):this.incomingShape;case 9:return!this.outgoingSections&&(this.outgoingSections=new MXe(eMe,this,9,10)),this.outgoingSections;case 10:return!this.incomingSections&&(this.incomingSections=new MXe(eMe,this,10,9)),this.incomingSections;case 11:return this.identifier}return fNe(this,e,t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 6:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?lLe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),oLe(this,Pn(e,80),n);case 9:return!this.outgoingSections&&(this.outgoingSections=new MXe(eMe,this,9,10)),TFe(this.outgoingSections,e,n);case 10:return!this.incomingSections&&(this.incomingSections=new MXe(eMe,this,10,9)),TFe(this.incomingSections,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(wMe(),lMe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((wMe(),lMe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 5:return!this.bendPoints&&(this.bendPoints=new GVe(YPe,this,5)),PFe(this.bendPoints,e,n);case 6:return oLe(this,null,n);case 9:return!this.outgoingSections&&(this.outgoingSections=new MXe(eMe,this,9,10)),PFe(this.outgoingSections,e,n);case 10:return!this.incomingSections&&(this.incomingSections=new MXe(eMe,this,10,9)),PFe(this.incomingSections,e,n)}return dNe(this,e,t,n)},i.eIsSet=function(e){switch(e){case 1:return 0!=this.startX;case 2:return 0!=this.startY;case 3:return 0!=this.endX;case 4:return 0!=this.endY;case 5:return!!this.bendPoints&&0!=this.bendPoints.size_0;case 6:return!!hLe(this);case 7:return!!this.outgoingShape;case 8:return!!this.incomingShape;case 9:return!!this.outgoingSections&&0!=this.outgoingSections.size_0;case 10:return!!this.incomingSections&&0!=this.incomingSections.size_0;case 11:return null!=this.identifier}return pNe(this,e)},i.eSet=function(e,t){switch(e){case 1:return void vLe(this,td(Ln(t)));case 2:return void xLe(this,td(Ln(t)));case 3:return void fLe(this,td(Ln(t)));case 4:return void dLe(this,td(Ln(t)));case 5:return!this.bendPoints&&(this.bendPoints=new GVe(YPe,this,5)),MFe(this.bendPoints),!this.bendPoints&&(this.bendPoints=new GVe(YPe,this,5)),void nRe(this.bendPoints,Pn(t,15));case 6:return void mLe(this,Pn(t,80));case 7:return void yLe(this,Pn(t,93));case 8:return void _Le(this,Pn(t,93));case 9:return!this.outgoingSections&&(this.outgoingSections=new MXe(eMe,this,9,10)),MFe(this.outgoingSections),!this.outgoingSections&&(this.outgoingSections=new MXe(eMe,this,9,10)),void nRe(this.outgoingSections,Pn(t,15));case 10:return!this.incomingSections&&(this.incomingSections=new MXe(eMe,this,10,9)),MFe(this.incomingSections),!this.incomingSections&&(this.incomingSections=new MXe(eMe,this,10,9)),void nRe(this.incomingSections,Pn(t,15));case 11:return void pLe(this,An(t))}_Ne(this,e,t)},i.eStaticClass=function(){return wMe(),lMe},i.eUnset=function(e){switch(e){case 1:return void vLe(this,0);case 2:return void xLe(this,0);case 3:return void fLe(this,0);case 4:return void dLe(this,0);case 5:return!this.bendPoints&&(this.bendPoints=new GVe(YPe,this,5)),void MFe(this.bendPoints);case 6:return void mLe(this,null);case 7:return void yLe(this,null);case 8:return void _Le(this,null);case 9:return!this.outgoingSections&&(this.outgoingSections=new MXe(eMe,this,9,10)),void MFe(this.outgoingSections);case 10:return!this.incomingSections&&(this.incomingSections=new MXe(eMe,this,10,9)),void MFe(this.incomingSections);case 11:return void pLe(this,null)}yNe(this,e)},i.toString_0=function(){return ELe(this)},i.endX=0,i.endY=0,i.identifier=null,i.startX=0,i.startY=0,Qn("org.eclipse.elk.graph.impl","ElkEdgeSectionImpl",432),bn(150,116,{104:1,91:1,89:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1}),i.eGet=function(e,t,n){return 0==e?(!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations):NMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t,n)},i.eInverseAdd_0=function(e,t,n){return 0==t?(!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n)):Pn(vVe(Pn(hNe(this,16),26)||this.eStaticClass(),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe(this.eStaticClass()),e,n)},i.eInverseRemove_0=function(e,t,n){return 0==t?(!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n)):Pn(vVe(Pn(hNe(this,16),26)||this.eStaticClass(),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe(this.eStaticClass()),e,n)},i.eIsSet=function(e){return 0==e?!!this.eAnnotations&&0!=this.eAnnotations.size_0:LMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.eObjectForURIFragmentSegment=function(e){return CLe(this,e)},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15))}zMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t)},i.eSetDirectResource=function(e){gNe(this,128,e)},i.eStaticClass=function(){return HBe(),$Be},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations)}AMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.freeze=function(){this.eFlags|=1},i.getEAnnotation=function(e){return kLe(this,e)},i.eFlags=0,Qn("org.eclipse.emf.ecore.impl","EModelElementImpl",150),bn(696,150,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1},LLe),i.convertToString=function(e,t){return TLe(this,e,t)},i.create_3=function(e){var t,n,r,i;if(this.ePackage!=tVe(e)||0!=(256&e.eFlags))throw Vg(new gd("The class '"+e.name_0+"' is not a valid classifier"));for(n=CVe(e);0!=mVe(n.this$01).size_0;){if(nVe(t=Pn(oHe(n,0,Fn(i=Pn(vRe(mVe(n.this$01),0),86).eRawType,87)?Pn(i,26):(HBe(),TBe)),26)))return Pn(r=tVe(t).getEFactoryInstance().create_3(t),48).eSetClass(e),r;n=CVe(t)}return"java.util.Map$Entry"==(null!=e.instanceClassName?e.instanceClassName:e.generatedInstanceClassName)?new ije(e):new rje(e)},i.createFromString=function(e,t){return PLe(this,e,t)},i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.ePackage}return NMe(this,e-SVe((HBe(),CBe)),vVe(Pn(hNe(this,16),26)||CBe,e),t,n)},i.eInverseAdd_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 1:return this.ePackage&&(n=Pn(this.ePackage,48).eInverseRemove(this,4,yMe,n)),ILe(this,Pn(e,234),n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),CBe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),CBe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 1:return ILe(this,null,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),CBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),CBe)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return!!this.ePackage}return LMe(this,e-SVe((HBe(),CBe)),vVe(Pn(hNe(this,16),26)||CBe,e))},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void MLe(this,Pn(t,234))}zMe(this,e-SVe((HBe(),CBe)),vVe(Pn(hNe(this,16),26)||CBe,e),t)},i.eStaticClass=function(){return HBe(),CBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void MLe(this,null)}AMe(this,e-SVe((HBe(),CBe)),vVe(Pn(hNe(this,16),26)||CBe,e))},Qn("org.eclipse.emf.ecore.impl","EFactoryImpl",696),bn(1012,696,{104:1,1983:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1},ALe),i.convertToString=function(e,t){switch(e.getClassifierID()){case 12:return Pn(t,146).getId();case 13:return wn(t);default:throw Vg(new gd("The datatype '"+e.getName()+"' is not a valid classifier"))}},i.create_3=function(e){var t;switch(-1==e.metaObjectID&&(e.metaObjectID=(t=tVe(e))?zVe(t.getEClassifiers(),e):-1),e.metaObjectID){case 4:return new bze;case 6:return new Nze;case 7:return new Fze;case 8:return new sLe;case 9:return new SNe;case 10:return new bLe;case 11:return new jze;default:throw Vg(new gd("The class '"+e.name_0+"' is not a valid classifier"))}},i.createFromString=function(e,t){switch(e.getClassifierID()){case 13:case 12:return null;default:throw Vg(new gd("The datatype '"+e.getName()+"' is not a valid classifier"))}},Qn("org.eclipse.elk.graph.impl","ElkGraphFactoryImpl",1012),bn(431,150,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1}),i.eContents_0=function(){var e;return null==(e=KVe(_Ve(Pn(hNe(this,16),26)||this.eStaticClass())))?(WHe(),WHe(),$He):new JHe(this,e)},i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.getName()}return NMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0}return LMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void this.setName(An(t))}zMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t)},i.eStaticClass=function(){return HBe(),IBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void this.setName(null)}AMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.getName=function(){return this.name_0},i.setName=function(e){DLe(this,e)},i.toString_0=function(){return RLe(this)},i.name_0=null,Qn("org.eclipse.emf.ecore.impl","ENamedElementImpl",431),bn(179,431,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1},fze),i.eBasicRemoveFromContainerFeature=function(e){return eze(this,e)},i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return this.nsURI;case 3:return this.nsPrefix;case 4:return this.eFactoryInstance;case 5:return!this.eClassifiers&&(this.eClassifiers=new qUe(this,XGe,this)),this.eClassifiers;case 6:return!this.eSubpackages&&(this.eSubpackages=new UUe(yMe,this,6,7)),this.eSubpackages;case 7:return t?this.eFlags_0>>16==7?Pn(this.eContainer,234):null:HLe(this)}return NMe(this,e-SVe((HBe(),NBe)),vVe(Pn(hNe(this,16),26)||NBe,e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 4:return this.eFactoryInstance&&(n=Pn(this.eFactoryInstance,48).eInverseRemove(this,1,nMe,n)),ULe(this,Pn(e,465),n);case 5:return!this.eClassifiers&&(this.eClassifiers=new qUe(this,XGe,this)),TFe(this.eClassifiers,e,n);case 6:return!this.eSubpackages&&(this.eSubpackages=new UUe(yMe,this,6,7)),TFe(this.eSubpackages,e,n);case 7:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?eze(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,7,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),NBe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),NBe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 4:return ULe(this,null,n);case 5:return!this.eClassifiers&&(this.eClassifiers=new qUe(this,XGe,this)),PFe(this.eClassifiers,e,n);case 6:return!this.eSubpackages&&(this.eSubpackages=new UUe(yMe,this,6,7)),PFe(this.eSubpackages,e,n);case 7:return PMe(this,null,7,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),NBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),NBe)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return null!=this.nsURI;case 3:return null!=this.nsPrefix;case 4:return!!this.eFactoryInstance;case 5:return!!this.eClassifiers&&0!=this.eClassifiers.size_0;case 6:return!!this.eSubpackages&&0!=this.eSubpackages.size_0;case 7:return!!HLe(this)}return LMe(this,e-SVe((HBe(),NBe)),vVe(Pn(hNe(this,16),26)||NBe,e))},i.eObjectForURIFragmentSegment=function(e){return function(e,t){var n,r,i,a,s,o;if(!e.eNameToEClassifierMap){for(!e.eClassifiers&&(e.eClassifiers=new qUe(e,XGe,e)),o=new Fv((a=e.eClassifiers).size_0),i=new BFe(a);i.cursor!=i.this$01_2.size_1();)r=Pn(OFe(i),138),(n=Pn(null==(s=r.getName())?Qv(o.hashCodeMap,null,r):ox(o.stringMap,s,r),138))&&(null==s?Qv(o.hashCodeMap,null,n):ox(o.stringMap,s,n));e.eNameToEClassifierMap=o}return Pn(uy(e.eNameToEClassifierMap,t),138)}(this,e)||CLe(this,e)},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void DLe(this,An(t));case 2:return void gze(this,An(t));case 3:return void hze(this,An(t));case 4:return void uze(this,Pn(t,465));case 5:return!this.eClassifiers&&(this.eClassifiers=new qUe(this,XGe,this)),MFe(this.eClassifiers),!this.eClassifiers&&(this.eClassifiers=new qUe(this,XGe,this)),void nRe(this.eClassifiers,Pn(t,15));case 6:return!this.eSubpackages&&(this.eSubpackages=new UUe(yMe,this,6,7)),MFe(this.eSubpackages),!this.eSubpackages&&(this.eSubpackages=new UUe(yMe,this,6,7)),void nRe(this.eSubpackages,Pn(t,15))}zMe(this,e-SVe((HBe(),NBe)),vVe(Pn(hNe(this,16),26)||NBe,e),t)},i.eSetProxyURI=function(e){var t,n;if(e&&this.eClassifiers)for(n=new BFe(this.eClassifiers);n.cursor!=n.this$01_2.size_1();)Fn(t=OFe(n),348)&&(Pn(t,348).ePackage=null);gNe(this,64,e)},i.eStaticClass=function(){return HBe(),NBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void DLe(this,null);case 2:return void gze(this,null);case 3:return void hze(this,null);case 4:return void uze(this,null);case 5:return!this.eClassifiers&&(this.eClassifiers=new qUe(this,XGe,this)),void MFe(this.eClassifiers);case 6:return!this.eSubpackages&&(this.eSubpackages=new UUe(yMe,this,6,7)),void MFe(this.eSubpackages)}AMe(this,e-SVe((HBe(),NBe)),vVe(Pn(hNe(this,16),26)||NBe,e))},i.freeze=function(){tze(this)},i.getEClassifiers=function(){return!this.eClassifiers&&(this.eClassifiers=new qUe(this,XGe,this)),this.eClassifiers},i.getEFactoryInstance=function(){return this.eFactoryInstance},i.getExtendedMetaData=function(){return this.ePackageExtendedMetaData},i.getNsPrefix=function(){return this.nsPrefix},i.getNsURI=function(){return this.nsURI},i.setExtendedMetaData=function(e){this.ePackageExtendedMetaData=e},i.toString_0=function(){var e;return 0!=(64&this.eFlags_0)?RLe(this):((e=new Gp(RLe(this))).string+=" (nsURI: ",Dp(e,this.nsURI),e.string+=", nsPrefix: ",Dp(e,this.nsPrefix),e.string+=")",e.string)},i.nsPrefix=null,i.nsURI=null,Qn("org.eclipse.emf.ecore.impl","EPackageImpl",179),bn(549,179,{104:1,1985:1,549:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1},pze),i.isCreated=!1,i.isInitialized=!1;var _ze=!1;function yze(e,t,n){return PMe(e,Pn(t,48),7,n)}function mze(e,t){var n;return e.eFlags_0>>16==7?e.eContainer.eInverseRemove(e,1,XPe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(wMe(),uMe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function wze(e){return e.eFlags_0>>16!=7?null:Pn(e.eContainer,160)}function vze(e,t){var n,r;if(t!=e.eContainer||e.eFlags_0>>16!=7&&t){if(qXe(e,t))throw Vg(new gd("Recursive containment not allowed for "+Eze(e)));r=null,e.eContainer&&(r=(n=e.eFlags_0>>16)>=0?mze(e,r):e.eContainer.eInverseRemove(e,-1-n,null,r)),t&&(r=Pn(t,48).eInverseAdd(e,1,XPe,r)),(r=yze(e,t,r))&&r.dispatch_0()}else 0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,7,t,t))}function xze(e,t){var n;n=e.text_0,e.text_0=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,8,n,e.text_0))}function Eze(e){var t;return 0!=(64&e.eFlags_0)?UNe(e):(t=new Qp("ElkLabel"),!e.text_0||Wp(Wp((t.string+=' "',t),e.text_0),'"'),Wp(jp(Wp(jp(Wp(jp(Wp(jp((t.string+=" (",t),e.x_0),","),e.y_0)," | "),e.width_0),","),e.height),")"),t.string)}function bze(){}function Cze(e,t,n){return PMe(e,t,11,n)}function Sze(e,t){var n;return e.eFlags_0>>16==11?e.eContainer.eInverseRemove(e,10,kMe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(wMe(),hMe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function kze(e){return!e.children&&(e.children=new HUe(kMe,e,10,11)),e.children}function $ze(e){return!e.containedEdges&&(e.containedEdges=new HUe(QPe,e,12,3)),e.containedEdges}function Ize(e){return e.eFlags_0>>16!=11?null:Pn(e.eContainer,34)}function Tze(e){return!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports}function Pze(e,t){var n,r;if(t!=e.eContainer||e.eFlags_0>>16!=11&&t){if(qXe(e,t))throw Vg(new gd("Recursive containment not allowed for "+Mze(e)));r=null,e.eContainer&&(r=(n=e.eFlags_0>>16)>=0?Sze(e,r):e.eContainer.eInverseRemove(e,-1-n,null,r)),t&&(r=BMe(t,e,10,r)),(r=Cze(e,t,r))&&r.dispatch_0()}else 0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,11,t,t))}function Mze(e){var t,n,r;return 0!=(64&e.eFlags_0)?UNe(e):(t=new Qp("ElkNode"),(n=e.identifier)?Wp(Wp((t.string+=' "',t),n),'"'):(!e.labels&&(e.labels=new HUe(SMe,e,1,7)),e.labels.size_0>0&&(!(r=(!e.labels&&(e.labels=new HUe(SMe,e,1,7)),Pn(vRe(e.labels,0),137)).text_0)||Wp(Wp((t.string+=' "',t),r),'"'))),Wp(jp(Wp(jp(Wp(jp(Wp(jp((t.string+=" (",t),e.x_0),","),e.y_0)," | "),e.width_0),","),e.height),")"),t.string)}function Nze(){ZNe.call(this)}function Lze(e,t,n){return PMe(e,t,9,n)}function zze(e,t){var n;return e.eFlags_0>>16==9?e.eContainer.eInverseRemove(e,9,kMe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(wMe(),gMe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function Aze(e){return e.eFlags_0>>16!=9?null:Pn(e.eContainer,34)}function Dze(e,t){var n,r;if(t!=e.eContainer||e.eFlags_0>>16!=9&&t){if(qXe(e,t))throw Vg(new gd("Recursive containment not allowed for "+Rze(e)));r=null,e.eContainer&&(r=(n=e.eFlags_0>>16)>=0?zze(e,r):e.eContainer.eInverseRemove(e,-1-n,null,r)),t&&(r=BMe(t,e,9,r)),(r=Lze(e,t,r))&&r.dispatch_0()}else 0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,9,t,t))}function Rze(e){var t,n,r;return 0!=(64&e.eFlags_0)?UNe(e):(t=new Qp("ElkPort"),(n=e.identifier)?Wp(Wp((t.string+=' "',t),n),'"'):(!e.labels&&(e.labels=new HUe(SMe,e,1,7)),e.labels.size_0>0&&(!(r=(!e.labels&&(e.labels=new HUe(SMe,e,1,7)),Pn(vRe(e.labels,0),137)).text_0)||Wp(Wp((t.string+=' "',t),r),'"'))),Wp(jp(Wp(jp(Wp(jp(Wp(jp((t.string+=" (",t),e.x_0),","),e.y_0)," | "),e.width_0),","),e.height),")"),t.string)}function Fze(){ZNe.call(this)}Qn("org.eclipse.elk.graph.impl","ElkGraphPackageImpl",549),bn(351,711,{104:1,408:1,160:1,137:1,464:1,351:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},bze),i.eBasicRemoveFromContainerFeature=function(e){return mze(this,e)},i.eGet=function(e,t,n){switch(e){case 7:return wze(this);case 8:return this.text_0}return ANe(this,e,t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 7:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?mze(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),yze(this,Pn(e,160),n)}return $Ne(this,e,t,n)},i.eInverseRemove_0=function(e,t,n){return 7==t?yze(this,null,n):INe(this,e,t,n)},i.eIsSet=function(e){switch(e){case 7:return!!wze(this);case 8:return!np("",this.text_0)}return DNe(this,e)},i.eSet=function(e,t){switch(e){case 7:return void vze(this,Pn(t,160));case 8:return void xze(this,An(t))}RNe(this,e,t)},i.eStaticClass=function(){return wMe(),uMe},i.eUnset=function(e){switch(e){case 7:return void vze(this,null);case 8:return void xze(this,"")}FNe(this,e)},i.toString_0=function(){return Eze(this)},i.text_0="",Qn("org.eclipse.elk.graph.impl","ElkLabelImpl",351),bn(238,712,{104:1,408:1,93:1,160:1,34:1,464:1,238:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},Nze),i.eBasicRemoveFromContainerFeature=function(e){return Sze(this,e)},i.eGet=function(e,t,n){switch(e){case 9:return!this.ports&&(this.ports=new HUe($Me,this,9,9)),this.ports;case 10:return!this.children&&(this.children=new HUe(kMe,this,10,11)),this.children;case 11:return Ize(this);case 12:return!this.containedEdges&&(this.containedEdges=new HUe(QPe,this,12,3)),this.containedEdges;case 13:return Mf(),!this.children&&(this.children=new HUe(kMe,this,10,11)),this.children.size_0>0}return qNe(this,e,t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 9:return!this.ports&&(this.ports=new HUe($Me,this,9,9)),TFe(this.ports,e,n);case 10:return!this.children&&(this.children=new HUe(kMe,this,10,11)),TFe(this.children,e,n);case 11:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?Sze(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),Cze(this,Pn(e,34),n);case 12:return!this.containedEdges&&(this.containedEdges=new HUe(QPe,this,12,3)),TFe(this.containedEdges,e,n)}return WNe(this,e,t,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 9:return!this.ports&&(this.ports=new HUe($Me,this,9,9)),PFe(this.ports,e,n);case 10:return!this.children&&(this.children=new HUe(kMe,this,10,11)),PFe(this.children,e,n);case 11:return Cze(this,null,n);case 12:return!this.containedEdges&&(this.containedEdges=new HUe(QPe,this,12,3)),PFe(this.containedEdges,e,n)}return KNe(this,e,t,n)},i.eIsSet=function(e){switch(e){case 9:return!!this.ports&&0!=this.ports.size_0;case 10:return!!this.children&&0!=this.children.size_0;case 11:return!!Ize(this);case 12:return!!this.containedEdges&&0!=this.containedEdges.size_0;case 13:return!this.children&&(this.children=new HUe(kMe,this,10,11)),this.children.size_0>0}return YNe(this,e)},i.eSet=function(e,t){switch(e){case 9:return!this.ports&&(this.ports=new HUe($Me,this,9,9)),MFe(this.ports),!this.ports&&(this.ports=new HUe($Me,this,9,9)),void nRe(this.ports,Pn(t,15));case 10:return!this.children&&(this.children=new HUe(kMe,this,10,11)),MFe(this.children),!this.children&&(this.children=new HUe(kMe,this,10,11)),void nRe(this.children,Pn(t,15));case 11:return void Pze(this,Pn(t,34));case 12:return!this.containedEdges&&(this.containedEdges=new HUe(QPe,this,12,3)),MFe(this.containedEdges),!this.containedEdges&&(this.containedEdges=new HUe(QPe,this,12,3)),void nRe(this.containedEdges,Pn(t,15))}XNe(this,e,t)},i.eStaticClass=function(){return wMe(),hMe},i.eUnset=function(e){switch(e){case 9:return!this.ports&&(this.ports=new HUe($Me,this,9,9)),void MFe(this.ports);case 10:return!this.children&&(this.children=new HUe(kMe,this,10,11)),void MFe(this.children);case 11:return void Pze(this,null);case 12:return!this.containedEdges&&(this.containedEdges=new HUe(QPe,this,12,3)),void MFe(this.containedEdges)}JNe(this,e)},i.toString_0=function(){return Mze(this)},Qn("org.eclipse.elk.graph.impl","ElkNodeImpl",238),bn(199,712,{104:1,408:1,93:1,160:1,122:1,464:1,199:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},Fze),i.eBasicRemoveFromContainerFeature=function(e){return zze(this,e)},i.eGet=function(e,t,n){return 9==e?Aze(this):qNe(this,e,t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 9:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?zze(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),Lze(this,Pn(e,34),n)}return WNe(this,e,t,n)},i.eInverseRemove_0=function(e,t,n){return 9==t?Lze(this,null,n):KNe(this,e,t,n)},i.eIsSet=function(e){return 9==e?!!Aze(this):YNe(this,e)},i.eSet=function(e,t){switch(e){case 9:return void Dze(this,Pn(t,34))}XNe(this,e,t)},i.eStaticClass=function(){return wMe(),gMe},i.eUnset=function(e){switch(e){case 9:return void Dze(this,null)}JNe(this,e)},i.toString_0=function(){return Rze(this)},Qn("org.eclipse.elk.graph.impl","ElkPortImpl",199);var Oze=tr("org.eclipse.emf.common.util","BasicEMap/Entry");function Gze(e,t){var n;n=e.key,e.key=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,0,n,e.key))}function Bze(e,t){var n;n=e.value_0,e.value_0=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,1,n,e.value_0))}function jze(){}bn(1072,116,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1,113:1,116:1},jze),i.equals_0=function(e){return this===e},i.getKey=function(){return this.key},i.hashCode_1=function(){return l$(this)},i.setKey=function(e){Gze(this,Pn(e,146))},i.eGet=function(e,t,n){switch(e){case 0:return this.key;case 1:return this.value_0}return DMe(this,e,t,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.key;case 1:return null!=this.value_0}return VMe(this,e)},i.eSet=function(e,t){switch(e){case 0:return void Gze(this,Pn(t,146));case 1:return void Bze(this,t)}ZMe(this,e,t)},i.eStaticClass=function(){return wMe(),fMe},i.eUnset=function(e){switch(e){case 0:return void Gze(this,null);case 1:return void Bze(this,null)}nNe(this,e)},i.getHash=function(){var e;return-1==this.hash&&(e=this.key,this.hash=e?In(e):0),this.hash},i.getValue=function(){return this.value_0},i.setHash=function(e){this.hash=e},i.setValue=function(e){var t;return t=this.value_0,Bze(this,e),t},i.toString_0=function(){var e;return 0!=(64&this.eFlags_0)?rNe(this):(Wp(Wp(Wp(e=new Jp,this.key?this.key.getId():"null")," -> "),wp(this.value_0)),e.string)},i.hash=-1,i.value_0=null;var Vze,Hze,Uze,qze,Wze,Kze,Yze,Xze,Jze=Qn("org.eclipse.elk.graph.impl","ElkPropertyToValueMapEntryImpl",1072);function Zze(e,t){var n;Bh(e,n=e.jsArray.length),jh(e,n,t)}function Qze(e,t){var n;if(n=!1,jn(t)&&(n=!0,Zze(e,new pg(An(t)))),n||Fn(t,236)&&(n=!0,Zze(e,new Qh(Of(Pn(t,236))))),!n)throw Vg(new $f("Severe implementation error in the Json to ElkGraph importer."))}function eAe(e,t,n){rg(e,t,new Qh(Of(n)))}function tAe(e,t,n,r){var i;if(i=!1,jn(r)&&(i=!0,nAe(t,n,An(r))),i||On(r)&&(i=!0,tAe(e,t,n,r)),i||Fn(r,236)&&(i=!0,eAe(t,n,Pn(r,236))),!i)throw Vg(new $f("Severe implementation error in the Json to ElkGraph importer."))}function nAe(e,t,n){rg(e,t,new pg(n))}function rAe(e){var t,n;if(t=!1,Fn(e,202))return t=!0,Pn(e,202).value_0;if(!t&&Fn(e,257)&&Pn(e,257).value_0%1==0)return t=!0,Cd(Un((Qk(n=Pn(e,257).value_0),n)));throw Vg(new gAe("Id must be a string or an integer: '"+e+"'."))}function iAe(e){if(!("id"in e.jsObject))throw Vg(new gAe("Every element must have an id."));return rAe(ng(e,"id"))}function aAe(e,t){var n;return t in e.jsObject&&(n=ng(e,t).isNumber())?n.value_0:null}function sAe(e,t){var n,r;return r=null,(n=ng(e,t))&&(r=n.isArray_0()),r}function oAe(e,t){var n,r;return r=null,(n=Bh(e,t))&&(r=n.isObject()),r}function lAe(e,t){var n,r;return r=null,(n=ng(e,t))&&(r=n.isObject()),r}function cAe(e,t){var n,r;return r=null,(n=ng(e,t))&&(r=uAe(n)),r}function uAe(e){var t,n;if(n=null,t=!1,Fn(e,202)&&(t=!0,n=Pn(e,202).value_0),t||Fn(e,257)&&(t=!0,n=""+Pn(e,257).value_0),t||Fn(e,477)&&(t=!0,n=""+Pn(e,477).value_0),!t)throw Vg(new $f("Severe implementation error in the Json to ElkGraph importer."));return n}function hAe(){}function gAe(e){bu.call(this,e)}function fAe(e,t){if(Fn(t,238))return function(e,t){return Ws(Ls(e.nodeIdMap),t)}(e,Pn(t,34));if(Fn(t,199))return function(e,t){return Ws(Ls(e.portIdMap),t)}(e,Pn(t,122));if(Fn(t,432))return function(e,t){return Ws(Ls(e.edgeSectionIdMap),t)}(e,Pn(t,201));throw Vg(new gd("Unhandled parameter types: "+_i(new uw(Sg(yg(or,1),g,1,5,[t])))))}function dAe(e,t){jDe(e,td(aAe(t,"x")),td(aAe(t,"y")))}function pAe(e,t,n,r,i){var a,s,o,l,c,u,h,g,f,d,p,_,y;pLe(f=function(e,t,n){var r;return r=iAe(n),zs(e.edgeSectionIdMap,r,t),gy(e.edgeSectionJsonMap,t,n),t}(e,HDe(t),i),cAe(i,"id")),_xblockexpression=null,p=lAe(d=i,"startPoint"),function(e,t){var n,r;if(!t)throw Vg(new gAe("All edge sections need a start point."));n=aAe(t,"x"),vLe(new HAe(e).section_0,(Qk(n),n)),r=aAe(t,"y"),xLe(new UAe(e).section_0,(Qk(r),r))}(new jAe(f).section_1,p),_=lAe(d,"endPoint"),function(e,t){var n,r;if(!t)throw Vg(new gAe("All edge sections need an end point."));n=aAe(t,"x"),fLe(new WAe(e).section_0,(Qk(n),n)),r=aAe(t,"y"),dLe(new KAe(e).section_0,(Qk(r),r))}(new qAe(f).section_1,_),y=sAe(d,"bendPoints"),function(e,t){var n,r,i;if(t)for(i=((n=new r1e(t.jsArray.length)).last-n.first)*n.step<0?(n1e(),$0e):new a1e(n);i.hasNext_0();)r=oAe(t,Pn(i.next_1(),20).value_0),_Ae(new XAe(e).section_1,r)}(new YAe(f).section_1,y),h=cAe(i,"incomingShape"),function(e,t,n){null!=n&&_Le(t,vAe(e,n))}((a=new FAe(e,f)).$$outer_0,a.elkSection_1,h),g=cAe(i,"outgoingShape"),function(e,t,n){null!=n&&yLe(t,vAe(e,n))}((s=new OAe(e,f)).$$outer_0,s.elkSection_1,g),c=sAe(i,"incomingSections"),function(e,t,n){var r,i;if(n)for(i=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);i.hasNext_0();)Vr(e,t,rAe(Bh(n,Pn(i.next_1(),20).value_0)))}((o=new GAe(n,f)).incomingSectionIdentifiers_1,o.elkSection_2,c),u=sAe(i,"outgoingSections"),function(e,t,n){var r,i;if(n)for(i=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);i.hasNext_0();)Vr(e,t,rAe(Bh(n,Pn(i.next_1(),20).value_0)))}((l=new BAe(r,f)).outgoingSectionIdentifiers_1,l.elkSection_2,u)}function _Ae(e,t){jDe(e,td(aAe(t,"x")),td(aAe(t,"y")))}function yAe(e,t,n){var r;return r=iAe(n),gy(e.edgeIdMap,r,t),gy(e.edgeJsonMap,t,n),t}function mAe(e,t,n){var r;return r=iAe(n),zs(e.portIdMap,r,t),gy(e.portJsonMap,t,n),t}function wAe(e,t,n){var r,i,a,s;return r=null,(a=Jve(exe(),t))&&(i=null,null!=(s=Fxe(a,n))&&(i=e.setProperty(a,s)),r=i),r}function vAe(e,t){var n,r;if(n=Pn(Ms(e.nodeIdMap,t),34))return n;if(r=Pn(Ms(e.portIdMap,t),122))return r;throw Vg(new gAe("Referenced shape does not exist: "+t))}function xAe(e,t){if(Fn(t,238))return function(e,t){var n;if(null==(n=Ms(e.nodeJsonMap,t)))throw Vg(new gAe("Node did not exist in input."));return EAe(t,n),null}(e,Pn(t,34));if(Fn(t,199))return function(e,t){var n;if(null==(n=cy(e.portJsonMap,t)))throw Vg(new gAe("Port did not exist in input."));return EAe(t,n),null}(e,Pn(t,122));if(Fn(t,351))return function(e,t){return EAe(t,cy(e.labelJsonMap,t)),null}(e,Pn(t,137));if(Fn(t,349))return function(e,t){var n,r,i,a,s,o,l;if(!(s=Pn(cy(e.edgeJsonMap,t),185)))throw Vg(new gAe("Edge did not exist in input."));return r=iAe(s),!o1e((!t.sections&&(t.sections=new HUe(eMe,t,6,6)),t.sections))&&(n=new cDe(e,r,o=new Vh),!t.sections&&(t.sections=new HUe(eMe,t,6,6)),l=n,function(e,t){var n;for(n=0;e.cursor!=e.this$01_2.size_1();)lDe(t,OFe(e),Cd(n)),n!=u&&++n}(new BFe(t.sections),l),rg(s,"sections",o)),vNe(t,(BSe(),ICe))&&!(!(i=Pn(wNe(t,ICe),74))||s1e(i))&&(li(i,new dDe(a=new Vh)),rg(s,"junctionPoints",a)),null}(e,Pn(t,80));if(t)return null;throw Vg(new gd("Unhandled parameter types: "+_i(new uw(Sg(yg(or,1),g,1,5,[t])))))}function EAe(e,t){var n;eAe(n=Pn(t,185),"x",e.x_0),eAe(n,"y",e.y_0),eAe(n,"width",e.width_0),eAe(n,"height",e.height)}function bAe(e,t,n){var r,i,a,s,o,l;if(l=t,LNe(o=yAe(e,VDe(n),l),cAe(l,"id")),a=sAe(l,"sources"),function(e,t,n){var r,i,a;if(n)for(i=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);i.hasNext_0();)(a=vAe(e,rAe(Bh(n,Pn(i.next_1(),20).value_0))))&&(!t.sources&&(t.sources=new MXe(ZPe,t,4,7)),eRe(t.sources,a))}((r=new zAe(e,o)).$$outer_0,r.edge_1,a),s=sAe(l,"targets"),function(e,t,n){var r,i,a;if(n)for(i=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);i.hasNext_0();)(a=vAe(e,rAe(Bh(n,Pn(i.next_1(),20).value_0))))&&(!t.targets&&(t.targets=new MXe(ZPe,t,5,8)),eRe(t.targets,a))}((i=new AAe(e,o)).$$outer_0,i.edge_1,s),0==(!o.sources&&(o.sources=new MXe(ZPe,o,4,7)),o.sources).size_0||0==(!o.targets&&(o.targets=new MXe(ZPe,o,5,8)),o.targets).size_0)throw Vg(new gAe("An edge must have at least one source and one target (edge id: '"+cAe(l,"id")+"')."));return IAe(l,o),function(e,t,n){var r,i,a,s,o,l,c,u,h,g,f,d,p,_,y;for(u=t,c=new ro,h=new ro,i=sAe(u,"sections"),function(e,t,n,r,i){var a,s,o,l;if(i)for(l=((a=new r1e(i.jsArray.length)).last-a.first)*a.step<0?(n1e(),$0e):new a1e(a);l.hasNext_0();)o=oAe(i,Pn(l.next_1(),20).value_0),pAe((s=new RAe(e,t,n,r)).$$outer_0,s.edge_1,s.incomingSectionIdentifiers_2,s.outgoingSectionIdentifiers_3,o)}((r=new DAe(e,n,c,h)).$$outer_0,r.edge_1,r.incomingSectionIdentifiers_2,r.outgoingSectionIdentifiers_3,i),d=(c.keySet||(c.keySet=new Si(c,c.map_0))).iterator_0();d.hasNext_0();)for(f=Pn(d.next_1(),201),s=Pn(jr(c,f),21).iterator_0();s.hasNext_0();){if(a=s.next_1(),!(g=Pn(Ms(e.edgeSectionIdMap,a),201)))throw Vg(new gAe("Referenced edge section does not exist: "+a+" (edge id: '"+cAe(u,"id")+"')."));!f.incomingSections&&(f.incomingSections=new MXe(eMe,f,10,9)),eRe(f.incomingSections,g)}for(_=(h.keySet||(h.keySet=new Si(h,h.map_0))).iterator_0();_.hasNext_0();)for(p=Pn(_.next_1(),201),l=Pn(jr(h,p),21).iterator_0();l.hasNext_0();){if(o=l.next_1(),!(g=Pn(Ms(e.edgeSectionIdMap,o),201)))throw Vg(new gAe("Referenced edge section does not exist: "+o+" (edge id: '"+cAe(u,"id")+"')."));!p.outgoingSections&&(p.outgoingSections=new MXe(eMe,p,9,10)),eRe(p.outgoingSections,g)}!n.sources&&(n.sources=new MXe(ZPe,n,4,7)),0!=n.sources.size_0&&(!n.targets&&(n.targets=new MXe(ZPe,n,5,8)),0!=n.targets.size_0)&&(!n.sources&&(n.sources=new MXe(ZPe,n,4,7)),n.sources.size_0<=1&&(!n.targets&&(n.targets=new MXe(ZPe,n,5,8)),n.targets.size_0<=1))&&1==(!n.sections&&(n.sections=new HUe(eMe,n,6,6)),n.sections).size_0&&(cLe(y=Pn(vRe((!n.sections&&(n.sections=new HUe(eMe,n,6,6)),n.sections),0),201))||uLe(y)||(_Le(y,Pn(vRe((!n.sources&&(n.sources=new MXe(ZPe,n,4,7)),n.sources),0),93)),yLe(y,Pn(vRe((!n.targets&&(n.targets=new MXe(ZPe,n,5,8)),n.targets),0),93))))}(e,l,o),SAe(e,l,o)}function CAe(e,t){var n,r,i,a,s;if(a=t,!(s=Pn(Ws(Ls(e.nodeJsonMap),a),34)))throw Vg(new gAe("Unable to find elk node for json object '"+cAe(a,"id")+"' Panic!"));r=sAe(a,"edges"),function(e,t,n){var r,i,a;if(n)for(a=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);a.hasNext_0();)"sources"in(i=oAe(n,Pn(a.next_1(),20).value_0)).jsObject||"targets"in i.jsObject?bAe(e,i,t):$Ae(e,i,t)}((n=new NAe(e,s)).$$outer_0,n.node_1,r),i=sAe(a,"children"),function(e,t){var n,r,i;if(t)for(i=((n=new r1e(t.jsArray.length)).last-n.first)*n.step<0?(n1e(),$0e):new a1e(n);i.hasNext_0();)(r=oAe(t,Pn(i.next_1(),20).value_0))&&CAe(e,r)}(new VAe(e).$$outer_0,i)}function SAe(e,t,n){var r,i;return i=sAe(t,"labels"),function(e,t,n){var r,i,a,s;if(n)for(i=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);i.hasNext_0();)(a=oAe(n,Pn(i.next_1(),20).value_0))&&(s=UDe(cAe(a,"text"),t),gy(e.labelJsonMap,s,a),"id"in a.jsObject&&LNe(s,cAe(a,"id")),IAe(a,s),TAe(a,s))}((r=new QAe(e,n)).$$outer_0,r.element_1,i),i}function kAe(e,t,n){var r,i,a,s,o,l,c,u,h,g;return LNe(r=function(e,t,n){var r;return r=iAe(n),zs(e.nodeIdMap,r,t),zs(e.nodeJsonMap,t,n),t}(e,(rMe(),i=new Nze,!!n&&Pze(i,n),i),t),cAe(t,"id")),IAe(t,r),o=r,(h=lAe(t,"individualSpacings"))&&(!vNe(o,(BSe(),SSe))&&(l=new _Pe,xNe(o,SSe,l)),u=Pn(wNe(o,SSe),370),c=null,(g=h)&&(c=new og(g,tg(g,xg(Mp,$,2,0,6,1)))),c&&li(c,new ZAe(g,u))),TAe(t,r),_xblockexpression=null,a=sAe(t,"ports"),function(e,t,n){var r,i,a,s,o;if(n)for(a=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);a.hasNext_0();)(i=oAe(n,Pn(a.next_1(),20).value_0))&&(_xblockexpression=null,LNe(s=mAe(e,(rMe(),o=new Fze,!!t&&Dze(o,t),o),i),cAe(i,"id")),IAe(i,s),TAe(i,s),SAe(e,i,s))}((s=new tDe(e,r)).$$outer_0,s.parent_1,a),SAe(e,t,r),function(e,t,n){var r,i;i=sAe(t,"children"),function(e,t,n){var r,i,a;if(n)for(a=((r=new r1e(n.jsArray.length)).last-r.first)*r.step<0?(n1e(),$0e):new a1e(r);a.hasNext_0();)(i=oAe(n,Pn(a.next_1(),20).value_0))&&kAe(e,i,t)}((r=new MAe(e,n)).$$outer_0,r.parent_1,i)}(e,t,r),r}function $Ae(e,t,n){var r,i,a,s,o,l,c,u,h,g;if(l=t,LNe(o=yAe(e,VDe(n),l),cAe(l,"id")),c=Pn(Ms(e.nodeIdMap,rAe(ng(l,"source"))),34),r=null,(a=ng(l,"sourcePort"))&&(r=rAe(a)),u=Pn(Ms(e.portIdMap,r),122),!c)throw Vg(new gAe("An edge must have a source node (edge id: '"+iAe(l)+"')."));if(u&&!dr(Aze(u),c))throw Vg(new gAe("The source port of an edge must be a port of the edge's source node (edge id: '"+cAe(l,"id")+"')."));if(!o.sources&&(o.sources=new MXe(ZPe,o,4,7)),eRe(o.sources,u||c),h=Pn(Ms(e.nodeIdMap,rAe(ng(l,"target"))),34),i=null,(s=ng(l,"targetPort"))&&(i=rAe(s)),g=Pn(Ms(e.portIdMap,i),122),!h)throw Vg(new gAe("An edge must have a target node (edge id: '"+iAe(l)+"')."));if(g&&!dr(Aze(g),h))throw Vg(new gAe("The target port of an edge must be a port of the edge's target node (edge id: '"+cAe(l,"id")+"')."));if(!o.targets&&(o.targets=new MXe(ZPe,o,5,8)),eRe(o.targets,g||h),0==(!o.sources&&(o.sources=new MXe(ZPe,o,4,7)),o.sources).size_0||0==(!o.targets&&(o.targets=new MXe(ZPe,o,5,8)),o.targets).size_0)throw Vg(new gAe("An edge must have at least one source and one target (edge id: '"+cAe(l,"id")+"')."));return IAe(l,o),function(e,t){var n,r,i,a,s,o,l,c,u;("sourcePoint"in(a=e).jsObject||"targetPoint"in a.jsObject||"bendPoints"in a.jsObject)&&(s=HDe(t),r=lAe(a,"sourcePoint"),o=new eDe(s).section_1,(l=r)&&(c=aAe(l,"x"),vLe(new fDe(o).section_0,(Qk(c),c)),u=aAe(l,"y"),xLe(new pDe(o).section_0,(Qk(u),u))),i=lAe(a,"targetPoint"),function(e,t){var n,r;t&&(n=aAe(t,"x"),fLe(new yDe(e).section_0,(Qk(n),n)),r=aAe(t,"y"),dLe(new mDe(e).section_0,(Qk(r),r)))}(new _De(s).section_1,i),n=sAe(a,"bendPoints"),function(e,t){var n,r,i;if(t)for(i=((n=new r1e(t.jsArray.length)).last-n.first)*n.step<0?(n1e(),$0e):new a1e(n);i.hasNext_0();)r=oAe(t,Pn(i.next_1(),20).value_0),dAe(new LAe(e).section_1,r)}(new wDe(s).section_1,n))}(l,o),SAe(e,l,o)}function IAe(e,t){var n,r,i,a;!(i=lAe(r=e,"layoutOptions"))&&(i=lAe(r,"properties")),i&&(n=null,(a=i)&&(n=new og(a,tg(a,xg(Mp,$,2,0,6,1)))),n&&li(n,new JAe(a,t)))}function TAe(e,t){var n,r,i,a,s,o;return n=aAe(s=e,"x"),VNe(new nDe(t).shape_1,null==(o=n)||sd((Qk(o),o))||isNaN((Qk(o),o))?0:(Qk(o),o)),r=aAe(s,"y"),function(e,t){HNe(e,null==t||sd((Qk(t),t))||isNaN((Qk(t),t))?0:(Qk(t),t))}(new rDe(t).shape_1,r),i=aAe(s,"width"),function(e,t){jNe(e,null==t||sd((Qk(t),t))||isNaN((Qk(t),t))?0:(Qk(t),t))}(new iDe(t).shape_1,i),a=aAe(s,"height"),function(e,t){GNe(e,null==t||sd((Qk(t),t))||isNaN((Qk(t),t))?0:(Qk(t),t))}(new aDe(t).shape_1,a),a}function PAe(){this._jsonAdapter=new hAe,this.nodeIdMap=new Fs,this.portIdMap=new Fs,this.edgeIdMap=new Rv,this.edgeSectionIdMap=new Fs,this.nodeJsonMap=new Fs,this.portJsonMap=new Rv,this.edgeJsonMap=new Rv,this.edgeSectionJsonMap=new Rv,this.labelJsonMap=new Rv}function MAe(e,t){this.$$outer_0=e,this.parent_1=t}function NAe(e,t){this.$$outer_0=e,this.node_1=t}function LAe(e){this.section_1=e}function zAe(e,t){this.$$outer_0=e,this.edge_1=t}function AAe(e,t){this.$$outer_0=e,this.edge_1=t}function DAe(e,t,n,r){this.$$outer_0=e,this.edge_1=t,this.incomingSectionIdentifiers_2=n,this.outgoingSectionIdentifiers_3=r}function RAe(e,t,n,r){this.$$outer_0=e,this.edge_1=t,this.incomingSectionIdentifiers_2=n,this.outgoingSectionIdentifiers_3=r}function FAe(e,t){this.$$outer_0=e,this.elkSection_1=t}function OAe(e,t){this.$$outer_0=e,this.elkSection_1=t}function GAe(e,t){this.incomingSectionIdentifiers_1=e,this.elkSection_2=t}function BAe(e,t){this.outgoingSectionIdentifiers_1=e,this.elkSection_2=t}function jAe(e){this.section_1=e}function VAe(e){this.$$outer_0=e}function HAe(e){this.section_0=e}function UAe(e){this.section_0=e}function qAe(e){this.section_1=e}function WAe(e){this.section_0=e}function KAe(e){this.section_0=e}function YAe(e){this.section_1=e}function XAe(e){this.section_1=e}function JAe(e,t){this.opts_1=e,this.layoutData_2=t}function ZAe(e,t){this.opts_1=e,this.individualSpacings_2=t}function QAe(e,t){this.$$outer_0=e,this.element_1=t}function eDe(e){this.section_1=e}function tDe(e,t){this.$$outer_0=e,this.parent_1=t}function nDe(e){this.shape_1=e}function rDe(e){this.shape_1=e}function iDe(e){this.shape_1=e}function aDe(e){this.shape_1=e}function sDe(e,t){xAe(e.$$outer_0,Pn(t,55))}function oDe(e){this.$$outer_0=e}function lDe(e,t,n){!function(e,t,n,r,i){var a,s,o,l,c,u,h,g,f,d;null==(g=cy(e.edgeSectionJsonMap,r))&&rg(Pn(g=new ig,185),"id",new pg(t+"_s"+i)),Zze(n,h=Pn(g,185)),eAe(d=new ig,"x",r.startX),eAe(d,"y",r.startY),rg(h,"startPoint",d),eAe(c=new ig,"x",r.endX),eAe(c,"y",r.endY),rg(h,"endPoint",c),!o1e((!r.bendPoints&&(r.bendPoints=new GVe(YPe,r,5)),r.bendPoints))&&(a=new uDe(l=new Vh),li((!r.bendPoints&&(r.bendPoints=new GVe(YPe,r,5)),r.bendPoints),a),rg(h,"bendPoints",l)),!!cLe(r)&&tAe(e._jsonAdapter,h,"incomingShape",fAe(e,cLe(r))),!!uLe(r)&&tAe(e._jsonAdapter,h,"outgoingShape",fAe(e,uLe(r))),!(0==(!r.incomingSections&&(r.incomingSections=new MXe(eMe,r,10,9)),r.incomingSections).size_0)&&(s=new hDe(e,u=new Vh),li((!r.incomingSections&&(r.incomingSections=new MXe(eMe,r,10,9)),r.incomingSections),s),rg(h,"incomingSections",u)),0!=(!r.outgoingSections&&(r.outgoingSections=new MXe(eMe,r,9,10)),r.outgoingSections).size_0&&(o=new gDe(e,f=new Vh),li((!r.outgoingSections&&(r.outgoingSections=new MXe(eMe,r,9,10)),r.outgoingSections),o),rg(h,"outgoingSections",f))}(e.$$outer_0,e.edgeId_1,e.sections_2,Pn(t,201),n)}function cDe(e,t,n){this.$$outer_0=e,this.edgeId_1=t,this.sections_2=n}function uDe(e){this.bendPoints_1=e}function hDe(e,t){this.$$outer_0=e,this.incomingSections_1=t}function gDe(e,t){this.$$outer_0=e,this.outgoingSections_1=t}function fDe(e){this.section_0=e}function dDe(e){this.jsonJPs_1=e}function pDe(e){this.section_0=e}function _De(e){this.section_1=e}function yDe(e){this.section_0=e}function mDe(e){this.section_0=e}function wDe(e){this.section_1=e}function vDe(e){var t;return t=new ig,null!=e.getId()&&nAe(t,"id",e.getId()),null!=e.getName()&&nAe(t,"name",e.getName()),null!=e.getDescription()&&nAe(t,"description",e.getDescription()),t}function xDe(e){if(Fn(e,149))return function(e){var t,n,r,i,a;return a=vDe(e),null!=e.category&&nAe(a,"category",e.category),!o1e(new My(e.knownOptions))&&(rg(a,"knownOptions",r=new Vh),t=new EDe(r),li(new My(e.knownOptions),t)),!o1e(e.supportedFeatures)&&(rg(a,"supportedFeatures",i=new Vh),n=new bDe(i),li(e.supportedFeatures,n)),a}(Pn(e,149));if(Fn(e,227))return i=vDe(t=Pn(e,227)),!o1e(t.layouters)&&(rg(i,"knownLayouters",r=new Vh),n=new CDe(r),li(t.layouters,n)),i;if(Fn(e,23))return function(e){var t,n,r;return r=vDe(e),null!=e.group_0&&nAe(r,"group",e.group_0),!!e.type_0&&nAe(r,"type",tl(e.type_0)),!o1e(e.targets)&&(rg(r,"targets",n=new Vh),t=new SDe(n),li(e.targets,t)),r}(Pn(e,23));throw Vg(new gd("Unhandled parameter types: "+_i(new uw(Sg(yg(or,1),g,1,5,[e])))));var t,n,r,i}function EDe(e){this.jsonArr_0=e}function bDe(e){this.jsonArr_1_0=e}function CDe(e){this.jsonArr_0=e}function SDe(e){this.jsonArr_0=e}function kDe(){kDe=En,Xze=new $De("SELF_LOOPS",0),Wze=new $De("INSIDE_SELF_LOOPS",1),Kze=new $De("MULTI_EDGES",2),qze=new $De("EDGE_LABELS",3),Yze=new $De("PORTS",4),Hze=new $De("COMPOUND",5),Vze=new $De("CLUSTERS",6),Uze=new $De("DISCONNECTED",7)}function $De(e,t){nl.call(this,e,t)}bn(964,1,{},hAe),Qn("org.eclipse.elk.graph.json","JsonAdapter",964),bn(208,59,te,gAe),Qn("org.eclipse.elk.graph.json","JsonImportException",208),bn(836,1,{},PAe),Qn("org.eclipse.elk.graph.json","JsonImporter",836),bn(870,1,{},MAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$0$Type",870),bn(871,1,{},NAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$1$Type",871),bn(879,1,{},LAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$10$Type",879),bn(881,1,{},zAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$11$Type",881),bn(882,1,{},AAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$12$Type",882),bn(888,1,{},DAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$13$Type",888),bn(887,1,{},RAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$14$Type",887),bn(883,1,{},FAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$15$Type",883),bn(884,1,{},OAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$16$Type",884),bn(885,1,{},GAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$17$Type",885),bn(886,1,{},BAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$18$Type",886),bn(891,1,{},jAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$19$Type",891),bn(872,1,{},VAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$2$Type",872),bn(889,1,{},HAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$20$Type",889),bn(890,1,{},UAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$21$Type",890),bn(894,1,{},qAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$22$Type",894),bn(892,1,{},WAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$23$Type",892),bn(893,1,{},KAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$24$Type",893),bn(896,1,{},YAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$25$Type",896),bn(895,1,{},XAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$26$Type",895),bn(897,1,P,JAe),i.accept=function(e){var t,n,r,i,a;t=this.opts_1,n=this.layoutData_2,a=null,(i=ng(t,r=An(e)))&&(a=uAe(i)),wAe(n,r,a)},Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$27$Type",897),bn(898,1,P,ZAe),i.accept=function(e){var t,n,r,i,a;t=this.opts_1,n=this.individualSpacings_2,a=null,(i=ng(t,r=An(e)))&&(a=uAe(i)),wAe(n,r,a)},Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$28$Type",898),bn(899,1,{},QAe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$29$Type",899),bn(875,1,{},eDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$3$Type",875),bn(900,1,{},tDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$30$Type",900),bn(901,1,{},nDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$31$Type",901),bn(902,1,{},rDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$32$Type",902),bn(903,1,{},iDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$33$Type",903),bn(904,1,{},aDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$34$Type",904),bn(838,1,{},oDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$35$Type",838),bn(908,1,{},cDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$36$Type",908),bn(905,1,P,uDe),i.accept=function(e){var t,n,r;t=this.bendPoints_1,n=Pn(e,463),eAe(r=new ig,"x",n.x_0),eAe(r,"y",n.y_0),Zze(t,r)},Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$37$Type",905),bn(906,1,P,hDe),i.accept=function(e){var t;t=this.$$outer_0,Qze(this.incomingSections_1,fAe(t,Pn(e,201)))},Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$38$Type",906),bn(907,1,P,gDe),i.accept=function(e){var t;t=this.$$outer_0,Qze(this.outgoingSections_1,fAe(t,Pn(e,201)))},Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$39$Type",907),bn(873,1,{},fDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$4$Type",873),bn(909,1,P,dDe),i.accept=function(e){var t,n,r;t=this.jsonJPs_1,n=Pn(e,8),eAe(r=new ig,"x",n.x_0),eAe(r,"y",n.y_0),Zze(t,r)},Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$40$Type",909),bn(874,1,{},pDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$5$Type",874),bn(878,1,{},_De),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$6$Type",878),bn(876,1,{},yDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$7$Type",876),bn(877,1,{},mDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$8$Type",877),bn(880,1,{},wDe),Qn("org.eclipse.elk.graph.json","JsonImporter/lambda$9$Type",880),bn(954,1,P,EDe),i.accept=function(e){Zze(this.jsonArr_0,new pg(An(e)))},Qn("org.eclipse.elk.graph.json","JsonMetaDataConverter/lambda$0$Type",954),bn(955,1,P,bDe),i.accept=function(e){var t;Zze(this.jsonArr_1_0,new pg(null!=(t=Pn(e,237)).name_0?t.name_0:""+t.ordinal))},Qn("org.eclipse.elk.graph.json","JsonMetaDataConverter/lambda$1$Type",955),bn(956,1,P,CDe),i.accept=function(e){var t,n;t=this.jsonArr_0,null!=(n=Pn(e,149)).id_0&&Zze(t,new pg(n.id_0))},Qn("org.eclipse.elk.graph.json","JsonMetaDataConverter/lambda$2$Type",956),bn(957,1,P,SDe),i.accept=function(e){var t;Zze(this.jsonArr_0,new pg(null!=(t=Pn(e,175)).name_0?t.name_0:""+t.ordinal))},Qn("org.eclipse.elk.graph.json","JsonMetaDataConverter/lambda$3$Type",957),bn(237,22,{3:1,36:1,22:1,237:1},$De);var IDe,TDe=er("org.eclipse.elk.graph.properties","GraphFeature",237,sl,(function(){return kDe(),Sg(yg(TDe,1),W,237,0,[Xze,Wze,Kze,qze,Yze,Hze,Vze,Uze])}),(function(e){return kDe(),il((PDe(),IDe),e)}));function PDe(){PDe=En,IDe=rl((kDe(),Sg(yg(TDe,1),W,237,0,[Xze,Wze,Kze,qze,Yze,Hze,Vze,Uze])))}function MDe(e,t){return Fn(t,146)&&np(e.id_0,Pn(t,146).getId())}function NDe(e){var t;if(Fn(e.defaultValue,4)){if(null==(t=BRe(e.defaultValue)))throw Vg(new pd("Couldn't clone property '"+e.id_0+"'. Make sure it's type is registered with the "+(Wn(HRe),HRe.simpleName+" utility class.")));return t}return e.defaultValue}function LDe(e){this.id_0=e}function zDe(e,t){LDe.call(this,e),this.defaultValue=t}function ADe(e,t){zDe.call(this,e,t)}function DDe(e,t){zDe.call(this,e.id_0,t)}function RDe(e){this.property=e}function FDe(e){var t,n,r;for(lm(t=Ql(1+(!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports).size_0),(!e.incomingEdges&&(e.incomingEdges=new MXe(QPe,e,8,5)),e.incomingEdges)),r=new BFe((!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports));r.cursor!=r.this$01_2.size_1();)lm(t,(!(n=Pn(OFe(r),122)).incomingEdges&&(n.incomingEdges=new MXe(QPe,n,8,5)),n.incomingEdges));return xr(t),new as(t)}function ODe(e){var t,n,r;for(lm(t=Ql(1+(!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports).size_0),(!e.outgoingEdges&&(e.outgoingEdges=new MXe(QPe,e,7,4)),e.outgoingEdges)),r=new BFe((!e.ports&&(e.ports=new HUe($Me,e,9,9)),e.ports));r.cursor!=r.this$01_2.size_1();)lm(t,(!(n=Pn(OFe(r),122)).outgoingEdges&&(n.outgoingEdges=new MXe(QPe,n,7,4)),n.outgoingEdges));return xr(t),new as(t)}function GDe(e){if(Fn(e,238))return Pn(e,34);if(Fn(e,199))return Aze(Pn(e,122));throw Vg(e?new a_("Only support nodes and ports."):new Hd("connectableShape cannot be null"))}function BDe(e){if(Fn(e,199))return Pn(e,122);if(e)return null;throw Vg(new Hd("connectableShape cannot be null"))}function jDe(e,t,n){var r;return rMe(),bNe(r=new SNe,t),CNe(r,n),e&&eRe((!e.bendPoints&&(e.bendPoints=new GVe(YPe,e,5)),e.bendPoints),r),r}function VDe(e){var t;return rMe(),t=new sLe,e&&iLe(t,e),t}function HDe(e){var t;return rMe(),t=new bLe,e&&eRe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections),t),t}function UDe(e,t){var n,r;return rMe(),r=new bze,!!t&&vze(r,t),xze(n=r,e),n}function qDe(e,t,n){var r,i;if(0==(!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections).size_0)return HDe(e);if(r=Pn(vRe((!e.sections&&(e.sections=new HUe(eMe,e,6,6)),e.sections),0),201),t&&(MFe((!r.bendPoints&&(r.bendPoints=new GVe(YPe,r,5)),r.bendPoints)),vLe(r,0),xLe(r,0),fLe(r,0),dLe(r,0)),n)for(!e.sections&&(e.sections=new HUe(eMe,e,6,6)),i=e.sections;i.size_0>1;)LFe(i,i.size_0-1);return r}function WDe(e){if(1!=(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources).size_0||1!=(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets).size_0)throw Vg(new gd("Passed edge is not 'simple'."));return GDe(Pn(vRe((!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources),0),93))}function KDe(e){if(1!=(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources).size_0||1!=(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets).size_0)throw Vg(new gd("Passed edge is not 'simple'."));return BDe(Pn(vRe((!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources),0),93))}function YDe(e){if(1!=(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources).size_0||1!=(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets).size_0)throw Vg(new gd("Passed edge is not 'simple'."));return GDe(Pn(vRe((!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets),0),93))}function XDe(e){if(1!=(!e.sources&&(e.sources=new MXe(ZPe,e,4,7)),e.sources).size_0||1!=(!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets).size_0)throw Vg(new gd("Passed edge is not 'simple'."));return BDe(Pn(vRe((!e.targets&&(e.targets=new MXe(ZPe,e,5,8)),e.targets),0),93))}function JDe(e,t){var n;for(n=e;Ize(n);)if((n=Ize(n))==t)return!0;return!1}bn(13,1,{36:1,146:1},LDe,zDe,ADe,DDe),i.compareTo_0=function(e){return function(e,t){return tp(e.id_0,t.getId())}(this,Pn(e,146))},i.equals_0=function(e){return MDe(this,e)},i.getDefault=function(){return NDe(this)},i.getId=function(){return this.id_0},i.hashCode_1=function(){return h$(this.id_0)},i.toString_0=function(){return this.id_0},Qn("org.eclipse.elk.graph.properties","Property",13),bn(797,1,He,RDe),i.compare_1=function(e,t){return function(e,t,n){var r,i;return r=Pn(t.getProperty(e.property),36),i=Pn(n.getProperty(e.property),36),null!=r&&null!=i?Lf(r,i):null!=r?-1:null!=i?1:0}(this,Pn(e,94),Pn(t,94))},i.equals_0=function(e){return this===e},i.reversed=function(){return new rv(this)},Qn("org.eclipse.elk.graph.properties","PropertyHolderComparator",797);var ZDe=tr("org.eclipse.emf.common.util","EList");function QDe(e,t,n){var r;if(t>(r=e.size_1()))throw Vg(new FFe(t,r));if(e.isUnique()&&e.contains(n))throw Vg(new gd("The 'no duplicates' constraint is violated"));e.addUnique(t,n)}function eRe(e,t){return!(e.isUnique()&&e.contains(t)||(e.addUnique_0(t),0))}function tRe(e,t,n){var r;if(t>(r=e.size_1()))throw Vg(new FFe(t,r));return e.isUnique()&&(n=sRe(e,n)),e.addAllUnique(t,n)}function nRe(e,t){return e.isUnique()&&(t=sRe(e,t)),e.addAllUnique_0(t)}function rRe(e,t){var n;if(n=e.size_1(),t<0||t>n)throw Vg(new FFe(t,n));return new YFe(e,t)}function iRe(e,t,n){var r,i;if(null!=n)for(r=0;r=0&&(e.remove_2(n),!0)}function cRe(e,t,n){var r,i;if(t>=(i=e.size_1()))throw Vg(new FFe(t,i));if(e.isUnique()&&(r=e.indexOf_0(n))>=0&&r!=t)throw Vg(new gd("The 'no duplicates' constraint is violated"));return e.setUnique(t,n)}function uRe(e){var t,n,r;for((r=new Fp).string+="[",t=0,n=e.size_1();t0&&n_(e.data_0,t,e.data_0,t+r,o),s=n.iterator_0(),e.size_0+=r,i=0;i=e.size_0)throw Vg(new cOe(t,e.size_0));return e.data_0[t]}function mRe(e){var t,n;++e.modCount,t=e.data_0,n=e.size_0,e.data_0=null,e.size_0=0,e.didClear(n,t),e.didChange()}function wRe(e,t){var n;if(e.useEquals()&&null!=t){for(n=0;n=e.size_0)throw Vg(new cOe(t,e.size_0));return e.resolve(t,e.data_0[t])}function xRe(e,t){var n;if(e.useEquals()&&null!=t){for(n=0;n=e.size_0)throw Vg(new Ef("targetIndex="+t+", size="+e.size_0));if(n>=e.size_0)throw Vg(new Ef("sourceIndex="+n+", size="+e.size_0));return r=e.data_0[n],t!=n&&(t=e.size_0)throw Vg(new cOe(t,e.size_0));return++e.modCount,n=e.data_0[t],(r=e.size_0-t-1)>0&&n_(e.data_0,t+1,e.data_0,t,r),Cg(e.data_0,--e.size_0,null),e.didRemove(t,n),e.didChange(),n}function CRe(e,t,n){var r;return r=e.data_0[t],_Re(e,t,e.validate(t,n)),e.didSet(t,n,r),e.didChange(),r}function SRe(e){var t;++e.modCount,0==e.size_0?e.data_0=null:e.size_00&&n_(e.data_0,0,t,0,e.size_0),t}function $Re(e,t){return e.size_0>0&&(t.lengthe.size_0&&Cg(t,e.size_0,null),t}function IRe(){}function TRe(e){if(e<0)throw Vg(new gd("Illegal Capacity: "+e));this.data_0=this.newData(e)}function PRe(e){this.size_0=e.size_1(),this.size_0>0&&(this.data_0=this.newData(this.size_0+(this.size_0/8|0)+1),e.toArray_0(this.data_0))}bn(66,51,{19:1,28:1,51:1,15:1,14:1,66:1,57:1}),i.add_3=function(e,t){QDe(this,e,t)},i.add_2=function(e){return eRe(this,e)},i.addAll_0=function(e,t){return tRe(this,e,t)},i.addAll=function(e){return nRe(this,e)},i.basicIterator=function(){return new WFe(this)},i.basicListIterator=function(){return new KFe(this)},i.basicListIterator_0=function(e){return rRe(this,e)},i.canContainNull=function(){return!0},i.didAdd=function(e,t){},i.didChange=function(){},i.didClear=function(e,t){iRe(this,e,t)},i.didMove=function(e,t,n){},i.didRemove=function(e,t){},i.didSet=function(e,t,n){},i.equals_0=function(e){return aRe(this,e)},i.hashCode_1=function(){return oRe(this)},i.isUnique=function(){return!1},i.iterator_0=function(){return new BFe(this)},i.listIterator_0=function(){return new HFe(this)},i.listIterator_1=function(e){var t;if(t=this.size_1(),e<0||e>t)throw Vg(new FFe(e,t));return new UFe(this,e)},i.move_0=function(e,t){this.move(e,this.indexOf_0(t))},i.remove_1=function(e){return lRe(this,e)},i.resolve=function(e,t){return t},i.set_2=function(e,t){return cRe(this,e,t)},i.toString_0=function(){return uRe(this)},i.useEquals=function(){return!0},i.validate=function(e,t){return hRe(this,t)},Qn("org.eclipse.emf.common.util","AbstractEList",66),bn(60,66,Ot,IRe,TRe,PRe),i.addAllUnique=function(e,t){return gRe(this,e,t)},i.addAllUnique_0=function(e){return fRe(this,e)},i.addUnique=function(e,t){dRe(this,e,t)},i.addUnique_0=function(e){pRe(this,e)},i.basicGet=function(e){return yRe(this,e)},i.clear_0=function(){mRe(this)},i.contains=function(e){return wRe(this,e)},i.get_0=function(e){return vRe(this,e)},i.grow=function(e){var t,n,r;++this.modCount,e>(n=null==this.data_0?0:this.data_0.length)&&(r=this.data_0,(t=n+(n/2|0)+4)'?":np("parser.next.3",e)?"'(?<' or '(?=(i=e.delegateSize())||t<0)throw Vg(new Ef("targetIndex="+t+", size="+i));if(n>=i||n<0)throw Vg(new Ef("sourceIndex="+n+", size="+i));return t!=n?(a=e.delegateRemove(n),e.delegateAdd(t,a),r=a):r=e.delegateGet(n),r}function aFe(e,t){return++e.modCount,e.delegateRemove(t)}function sFe(e,t,n){var r,i,a,s,o,l,c;if(0==(r=n.size_1()))return!1;if(e.isNotificationRequired())if(l=e.isSet_0(),eFe(e,t,n),s=1==r?e.createNotification(3,null,n.iterator_0().next_1(),t,l):e.createNotification(5,null,n,t,l),e.hasInverse()){for(o=r<100?null:new SFe(r),a=t+r,i=t;i0)if(t=new PRe(e.basicList()),a=(n=u)<100?null:new SFe(n),rFe(e,n,t.data_0),i=1==n?e.createNotification(4,vRe(t,0),null,0,l):e.createNotification(6,t,null,-1,l),e.hasInverse()){for(r=new BFe(t);r.cursor!=r.this$01_2.size_1();)a=e.inverseRemove(OFe(r),a);a?(a.add_4(i),a.dispatch_0()):e.dispatchNotification(i)}else a?(a.add_4(i),a.dispatch_0()):e.dispatchNotification(i);else rFe(e,e.delegateSize(),e.delegateToArray()),e.dispatchNotification(e.createNotification(6,(hw(),Cm),null,-1,l));else if(e.hasInverse())if((u=e.delegateSize())>0){for(o=e.delegateToArray(),c=u,rFe(e,u,o),a=c<100?null:new SFe(c),r=0;r>24}(e));break;case 2:e.newValue=Kf(function(e){if(2!=e.primitiveType)throw Vg(new dd);return ff(e.newSimplePrimitiveValue)&re}(e));break;case 3:e.newValue=function(e){if(3!=e.primitiveType)throw Vg(new dd);return e.newIEEEPrimitiveValue}(e);break;case 4:e.newValue=new ld(function(e){if(4!=e.primitiveType)throw Vg(new dd);return e.newIEEEPrimitiveValue}(e));break;case 6:e.newValue=Nd(function(e){if(6!=e.primitiveType)throw Vg(new dd);return e.newSimplePrimitiveValue}(e));break;case 5:e.newValue=Cd(function(e){if(5!=e.primitiveType)throw Vg(new dd);return ff(e.newSimplePrimitiveValue)}(e));break;case 7:e.newValue=Kd(function(e){if(7!=e.primitiveType)throw Vg(new dd);return ff(e.newSimplePrimitiveValue)<<16>>16}(e))}return e.newValue}function dFe(e){if(null==e.oldValue)switch(e.primitiveType){case 0:e.oldValue=function(e){if(0!=e.primitiveType)throw Vg(new dd);return rf(e.oldSimplePrimitiveValue,0)}(e)?(Mf(),Fh):(Mf(),Rh);break;case 1:e.oldValue=Bf(function(e){if(1!=e.primitiveType)throw Vg(new dd);return ff(e.oldSimplePrimitiveValue)<<24>>24}(e));break;case 2:e.oldValue=Kf(function(e){if(2!=e.primitiveType)throw Vg(new dd);return ff(e.oldSimplePrimitiveValue)&re}(e));break;case 3:e.oldValue=function(e){if(3!=e.primitiveType)throw Vg(new dd);return e.oldIEEEPrimitiveValue}(e);break;case 4:e.oldValue=new ld(function(e){if(4!=e.primitiveType)throw Vg(new dd);return e.oldIEEEPrimitiveValue}(e));break;case 6:e.oldValue=Nd(function(e){if(6!=e.primitiveType)throw Vg(new dd);return e.oldSimplePrimitiveValue}(e));break;case 5:e.oldValue=Cd(function(e){if(5!=e.primitiveType)throw Vg(new dd);return ff(e.oldSimplePrimitiveValue)}(e));break;case 7:e.oldValue=Kd(function(e){if(7!=e.primitiveType)throw Vg(new dd);return ff(e.oldSimplePrimitiveValue)<<16>>16}(e))}return e.oldValue}function pFe(e){switch(e.eventType){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return Pn(dFe(e),20).value_0==e.position;case 1:case 2:if(-2==e.position)return!1;switch(e.primitiveType){case 0:case 1:case 2:case 6:case 5:case 7:return Yg(e.oldSimplePrimitiveValue,e.newSimplePrimitiveValue);case 3:case 4:return e.oldIEEEPrimitiveValue==e.newIEEEPrimitiveValue;default:return null==e.oldValue?null==e.newValue:kn(e.oldValue,e.newValue)}default:return!1}}function _Fe(e){var t;switch(e.eventType){case 1:if(e.isFeatureUnsettable())return-2!=e.position;break;case 2:if(e.isFeatureUnsettable())return-2==e.position;break;case 3:case 5:case 4:case 6:case 7:return e.position>-2;default:return!1}switch(t=e.getFeatureDefaultValue(),e.primitiveType){case 0:return null!=t&&Nf(Nn(t))!=rf(e.oldSimplePrimitiveValue,0);case 1:return null!=t&&Pn(t,215).value_0!=ff(e.oldSimplePrimitiveValue)<<24>>24;case 2:return null!=t&&Pn(t,172).value_0!=(ff(e.oldSimplePrimitiveValue)&re);case 6:return null!=t&&rf(Pn(t,162).value_0,e.oldSimplePrimitiveValue);case 5:return null!=t&&Pn(t,20).value_0!=ff(e.oldSimplePrimitiveValue);case 7:return null!=t&&Pn(t,186).value_0!=ff(e.oldSimplePrimitiveValue)<<16>>16;case 3:return null!=t&&td(Ln(t))!=e.oldIEEEPrimitiveValue;case 4:return null!=t&&Pn(t,155).value_0!=e.oldIEEEPrimitiveValue;default:return null==t?null!=e.oldValue:!kn(t,e.oldValue)}}function yFe(e,t,n){this.eventType=e,this.oldIEEEPrimitiveValue=t,this.newIEEEPrimitiveValue=n,this.position=-1,this.primitiveType=3}function mFe(e,t,n){this.eventType=e,this.oldSimplePrimitiveValue=t,this.newSimplePrimitiveValue=n,this.position=-1,this.primitiveType=5}function wFe(e,t,n,r){this.eventType=e,this.oldValue=t,this.newValue=n,this.position=r,this.primitiveType=-1}function vFe(e,t,n,r,i){this.eventType=e,this.oldValue=t,this.newValue=n,this.position=r,this.primitiveType=-1,i||(this.position=-2-r-1)}function xFe(e,t,n){this.eventType=e,this.oldSimplePrimitiveValue=t?1:0,this.newSimplePrimitiveValue=n?1:0,this.position=-1,this.primitiveType=0}function EFe(e,t,n,r,i,a){this.this$01=e,vFe.call(this,t,n,r,i,a)}function bFe(e,t){var n;if(t){for(n=0;n0){if(t=new uOe(e.size_0,e.data_0),a=(n=e.size_0)<100?null:new SFe(n),e.hasShadow())for(r=0;r0){for(o=e.data_0,c=e.size_0,mRe(e),a=c<100?null:new SFe(c),r=0;r0){for(g=u<100?null:new SFe(u),d=new PRe(t).data_0,_=xg(u1e,ie,24,u,15,1),r=0,w=new TRe(u),i=0;i=0;)if(null!=f?kn(f,d[l]):Hn(f)===Hn(d[l])){_.length<=r&&n_(_,0,_=xg(u1e,ie,24,2*_.length,15,1),0,r),_[r++]=i,eRe(w,d[l]);break e}if(Hn(f=f)===Hn(o))break}}if(c=w,d=w.data_0,u=r,r>_.length&&n_(_,0,_=xg(u1e,ie,24,r,15,1),0,r),r>0){for(m=!0,a=0;a=0;)bRe(e,_[s]);if(r!=u){for(i=u;--i>=r;)bRe(c,i);n_(_,0,_=xg(u1e,ie,24,r,15,1),0,r)}t=c}}}else for(t=function(e,t){var n,r,i;if(t.isEmpty())return VOe(),VOe(),GOe;for(n=new RFe(e,t.size_1()),i=new BFe(e);i.cursor!=i.this$01_2.size_1();)r=OFe(i),t.contains(r)&&eRe(n,r);return n}(e,t),i=e.size_0;--i>=0;)t.contains(e.data_0[i])&&(bRe(e,i),m=!0);if(m){if(null!=_){for(h=1==(n=t.size_1())?NVe(e,4,t.iterator_0().next_1(),null,_[0],p):NVe(e,6,t,_,_[0],p),g=n<100?null:new SFe(n),i=t.iterator_0();i.hasNext_0();)g=jYe(e,Pn(f=i.next_1(),71),g);g?(g.add_4(h),g.dispatch_0()):IMe(e.owner,h)}else{for(g=(v=t.size_1())<100?null:new SFe(v),i=t.iterator_0();i.hasNext_0();)g=jYe(e,Pn(f=i.next_1(),71),g);g&&g.dispatch_0()}return!0}return!1}function AFe(e,t,n){var r,i,a,s;return e.isNotificationRequired()?(i=null,a=e.isSet_0(),r=e.createNotification(1,s=CRe(e,t,n),n,t,a),e.hasInverse()&&!(e.useEquals()&&null!=s?kn(s,n):Hn(s)===Hn(n))?(null!=s&&(i=e.inverseRemove(s,i)),i=e.inverseAdd(n,i),e.hasShadow()&&(i=e.shadowSet(s,n,i)),i?(i.add_4(r),i.dispatch_0()):e.dispatchNotification(r)):(e.hasShadow()&&(i=e.shadowSet(s,n,i)),i?(i.add_4(r),i.dispatch_0()):e.dispatchNotification(r)),s):(s=CRe(e,t,n),e.hasInverse()&&!(e.useEquals()&&null!=s?kn(s,n):Hn(s)===Hn(n))&&(i=null,null!=s&&(i=e.inverseRemove(s,null)),(i=e.inverseAdd(n,i))&&i.dispatch_0()),s)}function DFe(e,t,n,r,i,a){this.this$01=e,vFe.call(this,t,n,r,i,a)}function RFe(e,t){this.this$01=e,TRe.call(this,t)}function FFe(e,t){Ef.call(this,"index="+e+", size="+t)}function OFe(e){var t;try{return t=e.this$01_2.get_0(e.cursor),e.checkModCount(),e.lastCursor=e.cursor++,t}catch(t){throw Fn(t=jg(t),73)?(e.checkModCount(),Vg(new lE)):Vg(t)}}function GFe(e){if(-1==e.lastCursor)throw Vg(new dd);e.checkModCount();try{e.this$01_2.remove_2(e.lastCursor),e.expectedModCount=e.this$01_2.modCount,e.lastCursor0&&(e.ensureEntryDataExists(),-1!=mOe(e,((n=null==t?0:In(t))&u)%e.entryData.length,n,t))}function gOe(e,t){var n,r,i,a,s,o;if(e.size_0>0)if(e.ensureEntryDataExists(),null!=t){for(a=0;a(l=null==e.entryData?0:e.entryData.length)){for(u=e.entryData,e.entryData=xg(LRe,qt,60,2*l+4,0,1),a=0;a0&&(e.ensureEntryDataExists(),n=yOe(e,((r=null==t?0:In(t))&u)%e.entryData.length,r,t))?n.getValue():null}function xOe(e,t){return(t&u)%e.entryData.length}function EOe(e){return!e.view&&(e.view=new jOe),!e.view.map_0&&(e.view.map_0=new FOe(e)),e.view.map_0}function bOe(e,t,n){var r,i,a;return e.ensureEntryDataExists(),a=null==t?0:In(t),e.size_0>0&&(i=yOe(e,(a&u)%e.entryData.length,a,t))?i.setValue(n):(r=e.newEntry(a,t,n),e.delegateEList.add_2(r),null)}function COe(e,t){var n,r;for(r=t.entrySet_0().iterator_0();r.hasNext_0();)bOe(e,(n=Pn(r.next_1(),43)).getKey(),n.getValue())}function SOe(e,t){var n;return Fn(t,43)?e.delegateEList.remove_1(t):(n=hOe(e,t),kOe(e,t),n)}function kOe(e,t){var n,r;return e.ensureEntryDataExists(),(n=yOe(e,((r=null==t?0:In(t))&u)%e.entryData.length,r,t))?(SOe(e,n),n.getValue()):null}function $Oe(e){this.this$01=e}function IOe(){}function TOe(e){this.this$01=e}function POe(e){this.this$01=e}function MOe(e,t){var n,r,i,a,s,o,l,c,u;if(e.this$01.size_0>0&&Fn(t,43)&&(e.this$01.ensureEntryDataExists(),a=null==(l=(c=Pn(t,43)).getKey())?0:In(l),s=xOe(e.this$01,a),n=e.this$01.entryData[s]))for(r=Pn(n.data_0,364),u=n.size_0,o=0;o0&&LOe(this)}function AOe(e){zOe.call(this,e)}function DOe(e){zOe.call(this,e)}function ROe(e,t){return hOe(e.this$01,t)}function FOe(e){this.this$01=e}function OOe(e,t,n){this.hash=e,this.key=t,this.value_0=n}bn(1126,1,Bt),i.getTarget=function(){return this.target},i.notifyChanged=function(e){},i.setTarget=function(e){this.target=e},i.unsetTarget=function(e){this.target==e&&(this.target=null)},i.target=null,Qn("org.eclipse.emf.common.notify.impl","AdapterImpl",1126),bn(1964,66,jt),i.addAllUnique=function(e,t){return eFe(this,e,t)},i.addAllUnique_0=function(e){var t,n,r;if(++this.modCount,e.isEmpty())return!1;for(t=this.delegateSize(),r=e.iterator_0();r.hasNext_0();)n=r.next_1(),this.delegateAdd_0(this.validate(t,n)),++t;return!0},i.addUnique=function(e,t){tFe(this,e,t)},i.addUnique_0=function(e){nFe(this,e)},i.basicList=function(){return this.delegateBasicList()},i.clear_0=function(){rFe(this,this.delegateSize(),this.delegateToArray())},i.contains=function(e){return this.delegateContains(e)},i.containsAll=function(e){return this.delegateContainsAll(e)},i.delegateAdd=function(e,t){this.delegateList_1().$_nullMethod()},i.delegateAdd_0=function(e){this.delegateList_1().$_nullMethod()},i.delegateBasicList=function(){return this.delegateList_1()},i.delegateClear=function(){this.delegateList_1().$_nullMethod()},i.delegateContains=function(e){return this.delegateList_1().$_nullMethod()},i.delegateContainsAll=function(e){return this.delegateList_1().$_nullMethod()},i.delegateEquals=function(e){return this.delegateList_1().$_nullMethod()},i.delegateGet=function(e){return this.delegateList_1().$_nullMethod()},i.delegateHashCode=function(){return this.delegateList_1().$_nullMethod()},i.delegateIndexOf=function(e){return this.delegateList_1().$_nullMethod()},i.delegateIsEmpty=function(){return this.delegateList_1().$_nullMethod()},i.delegateRemove=function(e){return this.delegateList_1().$_nullMethod()},i.delegateSet=function(e,t){return this.delegateList_1().$_nullMethod()},i.delegateSize=function(){return this.delegateList_1().$_nullMethod()},i.delegateToArray=function(){return this.delegateList_1().$_nullMethod()},i.delegateToArray_0=function(e){return this.delegateList_1().$_nullMethod()},i.delegateToString=function(){return this.delegateList_1().$_nullMethod()},i.equals_0=function(e){return this.delegateEquals(e)},i.get_0=function(e){return this.resolve(e,this.delegateGet(e))},i.hashCode_1=function(){return this.delegateHashCode()},i.indexOf_0=function(e){return this.delegateIndexOf(e)},i.isEmpty=function(){return this.delegateIsEmpty()},i.move=function(e,t){return iFe(this,e,t)},i.primitiveGet=function(e){return this.delegateGet(e)},i.remove_2=function(e){return aFe(this,e)},i.remove_1=function(e){var t;return(t=this.indexOf_0(e))>=0&&(this.remove_2(t),!0)},i.setUnique=function(e,t){return this.delegateSet(e,this.validate(e,t))},i.size_1=function(){return this.delegateSize()},i.toArray=function(){return this.delegateToArray()},i.toArray_0=function(e){return this.delegateToArray_0(e)},i.toString_0=function(){return this.delegateToString()},Qn("org.eclipse.emf.common.util","DelegatingEList",1964),bn(1965,1964,jt),i.addAllUnique=function(e,t){return sFe(this,e,t)},i.addAllUnique_0=function(e){return this.addAllUnique(this.delegateSize(),e)},i.addUnique=function(e,t){oFe(this,e,t)},i.addUnique_0=function(e){lFe(this,e)},i.canContainNull=function(){return!this.hasInverse()},i.clear_0=function(){cFe(this)},i.createNotification=function(e,t,n,r,i){return new EFe(this,e,t,n,r,i)},i.dispatchNotification=function(e){IMe(this.getNotifier(),e)},i.getFeature=function(){return null},i.getFeatureID_0=function(){return-1},i.getNotifier=function(){return null},i.hasInverse=function(){return!1},i.inverseAdd=function(e,t){return t},i.inverseRemove=function(e,t){return t},i.isNotificationRequired=function(){return!1},i.isSet_0=function(){return!this.delegateIsEmpty()},i.move=function(e,t){var n,r;return this.isNotificationRequired()?(r=this.isSet_0(),n=iFe(this,e,t),this.dispatchNotification(this.createNotification(7,Cd(t),n,e,r)),n):iFe(this,e,t)},i.remove_2=function(e){var t,n,r,i;return this.isNotificationRequired()?(n=null,r=this.isSet_0(),t=this.createNotification(4,i=aFe(this,e),null,e,r),this.hasInverse()&&i?(n=this.inverseRemove(i,n))?(n.add_4(t),n.dispatch_0()):this.dispatchNotification(t):n?(n.add_4(t),n.dispatch_0()):this.dispatchNotification(t),i):(i=aFe(this,e),this.hasInverse()&&i&&(n=this.inverseRemove(i,null))&&n.dispatch_0(),i)},i.setUnique=function(e,t){return uFe(this,e,t)},Qn("org.eclipse.emf.common.notify.impl","DelegatingNotifyingListImpl",1965),bn(142,1,Vt),i.add_4=function(e){return hFe(this,e)},i.dispatch_0=function(){gFe(this)},i.getEventType=function(){return this.eventType},i.getFeature=function(){return null},i.getFeatureDefaultValue=function(){return null},i.getFeatureID=function(e){return-1},i.getNewValue=function(){return fFe(this)},i.getNotifier=function(){return null},i.getOldValue=function(){return dFe(this)},i.getPosition_0=function(){return this.position<0?this.position<-2?-2-this.position-1:-1:this.position},i.isFeatureUnsettable=function(){return!1},i.merge_0=function(e){var t,n,r,i,a,s,o,l;switch(this.eventType){case 1:case 2:switch(e.getEventType()){case 1:case 2:if(Hn(e.getNotifier())===Hn(this.getNotifier())&&this.getFeatureID(null)==e.getFeatureID(null))return this.newValue=e.getNewValue(),1==e.getEventType()&&(this.eventType=1),!0}case 4:switch(e.getEventType()){case 4:if(Hn(e.getNotifier())===Hn(this.getNotifier())&&this.getFeatureID(null)==e.getFeatureID(null))return s=_Fe(this),a=this.position<0?this.position<-2?-2-this.position-1:-1:this.position,r=e.getPosition_0(),this.eventType=6,l=new TRe(2),a<=r?(eRe(l,this.oldValue),eRe(l,e.getOldValue()),this.newValue=Sg(yg(u1e,1),ie,24,15,[this.position=a,r+1])):(eRe(l,e.getOldValue()),eRe(l,this.oldValue),this.newValue=Sg(yg(u1e,1),ie,24,15,[this.position=r,a])),this.oldValue=l,s||(this.position=-2-this.position-1),!0}break;case 6:switch(e.getEventType()){case 4:if(Hn(e.getNotifier())===Hn(this.getNotifier())&&this.getFeatureID(null)==e.getFeatureID(null)){for(s=_Fe(this),r=e.getPosition_0(),o=Pn(this.newValue,47),n=xg(u1e,ie,24,o.length+1,15,1),t=0;t>>0).toString(16))).string+=" (eventType: ",this.eventType){case 1:n.string+="SET";break;case 2:n.string+="UNSET";break;case 3:n.string+="ADD";break;case 5:n.string+="ADD_MANY";break;case 4:n.string+="REMOVE";break;case 6:n.string+="REMOVE_MANY";break;case 7:n.string+="MOVE";break;case 8:n.string+="REMOVING_ADAPTER";break;case 9:n.string+="RESOLVE";break;default:zp(n,this.eventType)}if(pFe(this)&&(n.string+=", touch: true"),n.string+=", position: ",zp(n,this.position<0?this.position<-2?-2-this.position-1:-1:this.position),n.string+=", notifier: ",Ap(n,this.getNotifier()),n.string+=", feature: ",Ap(n,this.getFeature()),n.string+=", oldValue: ",Ap(n,dFe(this)),n.string+=", newValue: ",6==this.eventType&&Fn(this.newValue,47)){for(t=Pn(this.newValue,47),n.string+="[",e=0;e10?(this.set_0&&this.this$01.modCount==this.expectedModCount||(this.set_0=new Uv(this),this.expectedModCount=this.modCount),Bv(this.set_0,e)):wRe(this,e)},i.useEquals=function(){return!0},i.expectedModCount=0,Qn("org.eclipse.emf.common.util","AbstractEList/1",959),bn(295,73,fe,FFe),Qn("org.eclipse.emf.common.util","AbstractEList/BasicIndexOutOfBoundsException",295),bn(39,1,_,BFe),i.forEachRemaining=function(e){Lr(this,e)},i.checkModCount=function(){if(this.this$01_2.modCount!=this.expectedModCount)throw Vg(new ov)},i.doNext=function(){return OFe(this)},i.hasNext_0=function(){return this.cursor!=this.this$01_2.size_1()},i.next_1=function(){return this.doNext()},i.remove=function(){GFe(this)},i.cursor=0,i.expectedModCount=0,i.lastCursor=-1,Qn("org.eclipse.emf.common.util","AbstractEList/EIterator",39),bn(276,39,C,HFe,UFe),i.remove=function(){GFe(this)},i.add_1=function(e){jFe(this,e)},i.doPrevious=function(){var e;try{return e=this.this$01_1.get_0(--this.cursor),this.checkModCount(),this.lastCursor=this.cursor,e}catch(e){throw Fn(e=jg(e),73)?(this.checkModCount(),Vg(new lE)):Vg(e)}},i.doSet=function(e){VFe(this,e)},i.hasPrevious=function(){return 0!=this.cursor},i.nextIndex_0=function(){return this.cursor},i.previous_0=function(){return this.doPrevious()},i.previousIndex=function(){return this.cursor-1},i.set_1=function(e){this.doSet(e)},Qn("org.eclipse.emf.common.util","AbstractEList/EListIterator",276),bn(341,39,_,WFe),i.doNext=function(){return qFe(this)},i.remove=function(){throw Vg(new i_)},Qn("org.eclipse.emf.common.util","AbstractEList/NonResolvingEIterator",341),bn(384,276,C,KFe,YFe),i.add_1=function(e){throw Vg(new i_)},i.doNext=function(){var e;try{return e=this.this$01_0.primitiveGet(this.cursor),this.checkModCount(),this.lastCursor=this.cursor++,e}catch(e){throw Fn(e=jg(e),73)?(this.checkModCount(),Vg(new lE)):Vg(e)}},i.doPrevious=function(){var e;try{return e=this.this$01_0.primitiveGet(--this.cursor),this.checkModCount(),this.lastCursor=this.cursor,e}catch(e){throw Fn(e=jg(e),73)?(this.checkModCount(),Vg(new lE)):Vg(e)}},i.remove=function(){throw Vg(new i_)},i.set_1=function(e){throw Vg(new i_)},Qn("org.eclipse.emf.common.util","AbstractEList/NonResolvingEListIterator",384),bn(1955,66,Ut),i.addAllUnique=function(e,t){var n,r,i,a,s,o,l,c,u;if(0!=(r=t.size_1())){for(n=eOe(this,(c=null==(l=Pn(hNe(this.this$01,4),124))?0:l.length)+r),(u=c-e)>0&&n_(l,e,n,e+r,u),o=t.iterator_0(),a=0;an)throw Vg(new FFe(e,n));return new lOe(this,e)},i.clear_0=function(){var e,t;++this.modCount,t=null==(e=Pn(hNe(this.this$01,4),124))?0:e.length,CKe(this,null),iRe(this,t,e)},i.contains=function(e){var t,n,r,i;if(null!=(t=Pn(hNe(this.this$01,4),124)))if(null!=e){for(r=0,i=(n=t).length;r=(n=null==(t=Pn(hNe(this.this$01,4),124))?0:t.length))throw Vg(new FFe(e,n));return t[e]},i.indexOf_0=function(e){var t,n,r;if(null!=(t=Pn(hNe(this.this$01,4),124)))if(null!=e){for(n=0,r=t.length;nn)throw Vg(new FFe(e,n));return new iOe(this,e)},i.move=function(e,t){var n,r,i;if(e>=(i=null==(n=QFe(this))?0:n.length))throw Vg(new Ef("targetIndex="+e+", size="+i));if(t>=i)throw Vg(new Ef("sourceIndex="+t+", size="+i));return r=n[t],e!=t&&(e=(s=null==(n=Pn(hNe(e.this$01,4),124))?0:n.length))throw Vg(new FFe(t,s));return i=n[t],1==s?r=null:(n_(n,0,r=xg(ZRe,Ht,410,s-1,0,1),0,t),(a=s-t-1)>0&&n_(n,t+1,r,t,a)),CKe(e,r),bKe(e,t,i),i}(this,e)},i.setUnique=function(e,t){var n,r;return r=(n=QFe(this))[e],ZFe(n,e,hRe(this,t)),CKe(this,n),r},i.size_1=function(){var e;return null==(e=Pn(hNe(this.this$01,4),124))?0:e.length},i.toArray=function(){var e,t,n;return n=null==(e=Pn(hNe(this.this$01,4),124))?0:e.length,t=xg(ZRe,Ht,410,n,0,1),n>0&&n_(e,0,t,0,n),t},i.toArray_0=function(e){var t,n;return(n=null==(t=Pn(hNe(this.this$01,4),124))?0:t.length)>0&&(e.lengthn&&Cg(e,n,null),e},Qn("org.eclipse.emf.common.util","ArrayDelegatingEList",1955),bn(1026,39,_,tOe),i.checkModCount=function(){if(this.this$01.modCount!=this.expectedModCount||Hn(Pn(hNe(this.this$01.this$01,4),124))!==Hn(this.expectedData))throw Vg(new ov)},i.remove=function(){GFe(this),this.expectedData=Pn(hNe(this.this$01.this$01,4),124)},Qn("org.eclipse.emf.common.util","ArrayDelegatingEList/EIterator",1026),bn(698,276,C,rOe,iOe),i.checkModCount=function(){if(this.this$01.modCount!=this.expectedModCount||Hn(Pn(hNe(this.this$01.this$01,4),124))!==Hn(this.expectedData))throw Vg(new ov)},i.doSet=function(e){VFe(this,e),this.expectedData=Pn(hNe(this.this$01.this$01,4),124)},i.remove=function(){GFe(this),this.expectedData=Pn(hNe(this.this$01.this$01,4),124)},Qn("org.eclipse.emf.common.util","ArrayDelegatingEList/EListIterator",698),bn(1027,341,_,aOe),i.checkModCount=function(){if(this.this$01.modCount!=this.expectedModCount||Hn(Pn(hNe(this.this$01.this$01,4),124))!==Hn(this.expectedData))throw Vg(new ov)},Qn("org.eclipse.emf.common.util","ArrayDelegatingEList/NonResolvingEIterator",1027),bn(699,384,C,oOe,lOe),i.checkModCount=function(){if(this.this$01.modCount!=this.expectedModCount||Hn(Pn(hNe(this.this$01.this$01,4),124))!==Hn(this.expectedData))throw Vg(new ov)},Qn("org.eclipse.emf.common.util","ArrayDelegatingEList/NonResolvingEListIterator",699),bn(598,295,fe,cOe),Qn("org.eclipse.emf.common.util","BasicEList/BasicIndexOutOfBoundsException",598),bn(688,60,Ot,uOe),i.add_3=function(e,t){throw Vg(new i_)},i.add_2=function(e){throw Vg(new i_)},i.addAll_0=function(e,t){throw Vg(new i_)},i.addAll=function(e){throw Vg(new i_)},i.clear_0=function(){throw Vg(new i_)},i.grow=function(e){throw Vg(new i_)},i.iterator_0=function(){return this.basicIterator()},i.listIterator_0=function(){return this.basicListIterator()},i.listIterator_1=function(e){return this.basicListIterator_0(e)},i.move=function(e,t){throw Vg(new i_)},i.move_0=function(e,t){throw Vg(new i_)},i.remove_2=function(e){throw Vg(new i_)},i.remove_1=function(e){throw Vg(new i_)},i.set_2=function(e,t){throw Vg(new i_)},Qn("org.eclipse.emf.common.util","BasicEList/UnmodifiableEList",688),bn(697,1,{3:1,19:1,15:1,14:1,57:1,580:1}),i.add_3=function(e,t){!function(e,t,n){e.delegateEList.add_3(t,Pn(n,133))}(this,e,Pn(t,43))},i.add_2=function(e){return function(e,t){return e.delegateEList.add_2(Pn(t,133))}(this,Pn(e,43))},i.forEach_0=function(e){li(this,e)},i.get_0=function(e){return Pn(vRe(this.delegateEList,e),133)},i.move=function(e,t){return Pn(this.delegateEList.move(e,t),43)},i.move_0=function(e,t){!function(e,t,n){e.delegateEList.move_0(t,Pn(n,133))}(this,e,Pn(t,43))},i.parallelStream=function(){return new ck(null,new YE(this,16))},i.remove_2=function(e){return Pn(this.delegateEList.remove_2(e),43)},i.set_2=function(e,t){return function(e,t,n){return Pn(e.delegateEList.set_2(t,Pn(n,133)),43)}(this,e,Pn(t,43))},i.sort_0=function(e){Di(this,e)},i.spliterator_0=function(){return new YE(this,16)},i.stream=function(){return new ck(null,new YE(this,16))},i.addAll_0=function(e,t){return this.delegateEList.addAll_0(e,t)},i.addAll=function(e){return this.delegateEList.addAll(e)},i.clear_0=function(){this.delegateEList.clear_0()},i.contains=function(e){return this.delegateEList.contains(e)},i.containsAll=function(e){return fi(this.delegateEList,e)},i.ensureEntryDataExists=function(){var e,t;if(null==this.entryData){for(this.entryData=xg(LRe,qt,60,2*this.size_0+1,0,1),t=this.modCount,this.size_0=0,e=this.delegateEList.iterator_0();e.cursor!=e.this$01_2.size_1();)pOe(this,Pn(e.doNext(),133));this.modCount=t}},i.equals_0=function(e){return wOe(this,e)},i.hashCode_1=function(){return oRe(this.delegateEList)},i.indexOf_0=function(e){return this.delegateEList.indexOf_0(e)},i.initializeDelegateEList=function(){this.delegateEList=new $Oe(this)},i.isEmpty=function(){return 0==this.size_0},i.iterator_0=function(){return this.delegateEList.iterator_0()},i.listIterator_0=function(){return this.delegateEList.listIterator_0()},i.listIterator_1=function(e){return this.delegateEList.listIterator_1(e)},i.map_2=function(){return EOe(this)},i.newEntry=function(e,t,n){return new OOe(e,t,n)},i.newList=function(){return new IOe},i.remove_1=function(e){return SOe(this,e)},i.size_1=function(){return this.size_0},i.subList=function(e,t){return new Py(this.delegateEList,e,t)},i.toArray=function(){return this.delegateEList.toArray()},i.toArray_0=function(e){return this.delegateEList.toArray_0(e)},i.toString_0=function(){return uRe(this.delegateEList)},i.modCount=0,i.size_0=0,Qn("org.eclipse.emf.common.util","BasicEMap",697),bn(1021,60,Ot,$Oe),i.didAdd=function(e,t){!function(e,t){pOe(e.this$01,t)}(this,Pn(t,133))},i.didMove=function(e,t,n){++(Pn(t,133),this).this$01.modCount},i.didRemove=function(e,t){!function(e,t){_Oe(e.this$01,t)}(this,Pn(t,133))},i.didSet=function(e,t,n){!function(e,t,n){_Oe(e.this$01,n),pOe(e.this$01,t)}(this,Pn(t,133),Pn(n,133))},i.didClear=function(e,t){dOe(this.this$01)},Qn("org.eclipse.emf.common.util","BasicEMap/1",1021),bn(1022,60,Ot,IOe),i.newData=function(e){return xg(BOe,Wt,602,e,0,1)},Qn("org.eclipse.emf.common.util","BasicEMap/2",1022),bn(1023,w,v,TOe),i.clear_0=function(){this.this$01.delegateEList.clear_0()},i.contains=function(e){return hOe(this.this$01,e)},i.iterator_0=function(){return 0==this.this$01.size_0?(VOe(),GOe.listIterator):new AOe(this.this$01)},i.remove_1=function(e){var t;return t=this.this$01.size_0,kOe(this.this$01,e),this.this$01.size_0!=t},i.size_1=function(){return this.this$01.size_0},Qn("org.eclipse.emf.common.util","BasicEMap/3",1023),bn(Kt,28,m,POe),i.clear_0=function(){this.this$01.delegateEList.clear_0()},i.contains=function(e){return gOe(this.this$01,e)},i.iterator_0=function(){return 0==this.this$01.size_0?(VOe(),GOe.listIterator):new DOe(this.this$01)},i.size_1=function(){return this.this$01.size_0},Qn("org.eclipse.emf.common.util","BasicEMap/4",Kt),bn(1025,w,v,NOe),i.clear_0=function(){this.this$01.delegateEList.clear_0()},i.contains=function(e){var t,n,r,i,a,s,o,l,c;if(this.this$01.size_0>0&&Fn(e,43)&&(this.this$01.ensureEntryDataExists(),i=null==(o=(l=Pn(e,43)).getKey())?0:In(o),a=xOe(this.this$01,i),t=this.this$01.entryData[a]))for(n=Pn(t.data_0,364),c=t.size_0,s=0;s"+this.value_0},i.hash=0;var GOe,BOe=Qn("org.eclipse.emf.common.util","BasicEMap/EntryImpl",602);function jOe(){}function VOe(){VOe=En,GOe=new nGe,new rGe}function HOe(){throw Vg(new i_)}function UOe(){throw Vg(new i_)}function qOe(){throw Vg(new i_)}function WOe(){throw Vg(new i_)}function KOe(){throw Vg(new i_)}function YOe(){throw Vg(new i_)}function XOe(){throw Vg(new i_)}function JOe(){throw Vg(new i_)}function ZOe(){throw Vg(new i_)}function QOe(){throw Vg(new i_)}function eGe(){this.listIterator=new tGe}function tGe(){}function nGe(){eGe.call(this)}function rGe(){eGe.call(this)}bn(531,1,{},jOe),Qn("org.eclipse.emf.common.util","BasicEMap/View",531),bn(751,1,{}),i.equals_0=function(e){return Ll((hw(),Cm),e)},i.hashCode_1=function(){return pw((hw(),Cm))},i.toString_0=function(){return _i((hw(),Cm))},Qn("org.eclipse.emf.common.util","ECollections/BasicEmptyUnmodifiableEList",751),bn(1283,1,C,tGe),i.forEachRemaining=function(e){Lr(this,e)},i.add_1=function(e){throw Vg(new i_)},i.hasNext_0=function(){return!1},i.hasPrevious=function(){return!1},i.next_1=function(){throw Vg(new lE)},i.nextIndex_0=function(){return 0},i.previous_0=function(){throw Vg(new lE)},i.previousIndex=function(){return-1},i.remove=function(){throw Vg(new i_)},i.set_1=function(e){throw Vg(new i_)},Qn("org.eclipse.emf.common.util","ECollections/BasicEmptyUnmodifiableEList/1",1283),bn(1281,751,{19:1,15:1,14:1,57:1},nGe),i.add_3=function(e,t){HOe()},i.add_2=function(e){return UOe()},i.addAll_0=function(e,t){return qOe()},i.addAll=function(e){return WOe()},i.clear_0=function(){KOe()},i.contains=function(e){return!1},i.containsAll=function(e){return!1},i.forEach_0=function(e){li(this,e)},i.get_0=function(e){return ww((hw(),e)),null},i.indexOf_0=function(e){return-1},i.isEmpty=function(){return!0},i.iterator_0=function(){return this.listIterator},i.listIterator_0=function(){return this.listIterator},i.listIterator_1=function(e){return this.listIterator},i.move=function(e,t){return YOe()},i.move_0=function(e,t){XOe()},i.parallelStream=function(){return new ck(null,new YE(this,16))},i.remove_2=function(e){return JOe()},i.remove_1=function(e){return ZOe()},i.set_2=function(e,t){return QOe()},i.size_1=function(){return 0},i.sort_0=function(e){Di(this,e)},i.spliterator_0=function(){return new YE(this,16)},i.stream=function(){return new ck(null,new YE(this,16))},i.subList=function(e,t){return hw(),new Py(Cm,e,t)},i.toArray=function(){return di((hw(),Cm))},i.toArray_0=function(e){return hw(),pi(Cm,e)},Qn("org.eclipse.emf.common.util","ECollections/EmptyUnmodifiableEList",1281),bn(1282,751,{19:1,15:1,14:1,57:1,580:1},rGe),i.add_3=function(e,t){HOe()},i.add_2=function(e){return UOe()},i.addAll_0=function(e,t){return qOe()},i.addAll=function(e){return WOe()},i.clear_0=function(){KOe()},i.contains=function(e){return!1},i.containsAll=function(e){return!1},i.forEach_0=function(e){li(this,e)},i.get_0=function(e){return ww((hw(),e)),null},i.indexOf_0=function(e){return-1},i.isEmpty=function(){return!0},i.iterator_0=function(){return this.listIterator},i.listIterator_0=function(){return this.listIterator},i.listIterator_1=function(e){return this.listIterator},i.move=function(e,t){return YOe()},i.move_0=function(e,t){XOe()},i.parallelStream=function(){return new ck(null,new YE(this,16))},i.remove_2=function(e){return JOe()},i.remove_1=function(e){return ZOe()},i.set_2=function(e,t){return QOe()},i.size_1=function(){return 0},i.sort_0=function(e){Di(this,e)},i.spliterator_0=function(){return new YE(this,16)},i.stream=function(){return new ck(null,new YE(this,16))},i.subList=function(e,t){return hw(),new Py(Cm,e,t)},i.toArray=function(){return di((hw(),Cm))},i.toArray_0=function(e){return hw(),pi(Cm,e)},i.map_2=function(){return hw(),hw(),Sm},Qn("org.eclipse.emf.common.util","ECollections/EmptyUnmodifiableEMap",1282);var iGe,aGe=tr("org.eclipse.emf.common.util","Enumerator");function sGe(){sGe=En,iGe=new Rv}function oGe(e,t){var n;return sGe(),!(n=Pn(cy(iGe,e),54))||n.isInstance(t)}function lGe(e,t){sGe(),gy(iGe,e,t)}function cGe(){var e;cGe=En,$Ge=new BGe,SGe=xg(Mp,$,2,0,6,1),PGe=sf(wGe(33,58),wGe(1,26)),MGe=sf(wGe(97,122),wGe(65,90)),NGe=wGe(48,57),IGe=sf(PGe,0),TGe=sf(MGe,NGe),LGe=sf(sf(0,wGe(1,6)),wGe(33,38)),zGe=sf(sf(NGe,wGe(65,70)),wGe(97,102)),OGe=sf(IGe,mGe("-_.!~*'()")),GGe=sf(TGe,vGe("-_.!~*'()")),mGe(";/?:@&=+$,"),vGe(";/?:@&=+$,"),sf(OGe,mGe(";:@&=+$,")),sf(GGe,vGe(";:@&=+$,")),AGe=mGe(":/?#"),DGe=vGe(":/?#"),RGe=mGe("/?#"),FGe=vGe("/?#"),(e=new Vv).map_0.put("jar",e),e.map_0.put("zip",e),e.map_0.put("archive",e),hw(),kGe=new Hw(e)}function uGe(e,t){var n;return n=new gGe(0!=(256&e.hashCode_0),e.scheme,e.authority,e.device,0!=(16&e.hashCode_0),e.segments,e.query,t),null!=e.fragment||(n.cachedTrimFragment=e),n}function hGe(e){var t,n,r,i;if(null==e.cachedToString){if(r=new Fp,null!=e.scheme&&(Dp(r,e.scheme),r.string+=":"),0!=(256&e.hashCode_0)){for(0!=(256&e.hashCode_0)&&null!=e.authority&&(null!=(i=e.scheme)&&Tw(kGe,i.toLowerCase())||(r.string+="//"),Dp(r,e.authority)),null!=e.device&&(r.string+="/",Dp(r,e.device)),0!=(16&e.hashCode_0)&&(r.string+="/"),t=0,n=e.segments.length;t=0&&np(e.substr(o,"//".length),"//")?(l=yGe(e,o+=2,RGe,FGe),r=e.substr(o,l-o),o=l):null==h||o!=e.length&&(s$(o,e.length),47==e.charCodeAt(o))||(s=!1,-1==(l=op(e,mp(35),o))&&(l=e.length),r=e.substr(o,l-o),o=l);if(!n&&o0&&58==ep(u,u.length-1)&&(i=u,o=l)),o0&&(s$(0,n.length),47!=n.charCodeAt(0))))throw Vg(new gd("invalid opaquePart: "+n));if(e&&(null==t||!Tw(kGe,t.toLowerCase()))&&null!=n&&fGe(n,RGe,FGe))throw Vg(new gd("invalid authority: "+n));if(e&&null!=t&&Tw(kGe,t.toLowerCase())&&!function(e){if(null!=e&&e.length>0&&33==ep(e,e.length-1))try{return null==dGe(dp(e,0,e.length-1)).fragment}catch(e){if(!Fn(e=jg(e),31))throw Vg(e)}return!1}(n))throw Vg(new gd("invalid authority: "+n));if(!(null==(s=r)||(o=s.length)>0&&(s$(o-1,s.length),58==s.charCodeAt(o-1))&&!fGe(s,RGe,FGe)))throw Vg(new gd("invalid device: "+r));var s,o;if(!function(e){var t,n;if(null==e)return!1;for(t=0,n=e.length;ti+2&&xGe((s$(i+1,e.length),e.charCodeAt(i+1)),LGe,zGe)&&xGe((s$(i+2,e.length),e.charCodeAt(i+2)),LGe,zGe))if(s$(i+1,e.length),c=e.charCodeAt(i+1),s$(i+2,e.length),u=e.charCodeAt(i+2),n=(CGe(c)<<4|CGe(u))&re,i+=2,r>0?128==(192&n)?t[o++]=n<<24>>24:r=0:n>=128&&(192==(224&n)?(t[o++]=n<<24>>24,r=2):224==(240&n)?(t[o++]=n<<24>>24,r=3):240==(248&n)&&(t[o++]=n<<24>>24,r=4)),r>0){if(o==r){switch(o){case 2:Bp(l,((31&t[0])<<6|63&t[1])&re);break;case 3:Bp(l,((15&t[0])<<12|(63&t[1])<<6|63&t[2])&re)}o=0,r=0}}else{for(a=0;a=(i=e.length))return i;for(t=t>0?t:0;t=64&&t<128&&(i=sf(i,of(1,t-64)));return i}function wGe(e,t){var n,r;if(r=0,e<64&&e<=t)for(t=t<64?t:63,n=e;n<=t;n++)r=sf(r,of(1,n));return r}function vGe(e){var t,n,r,i;for(i=0,n=0,r=e.length;n=128)&&rf(e<64?Ug(of(1,e),n):Ug(of(1,e-64),t),0)}function EGe(e,t){return t=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}bn(279,1,{279:1},gGe),i.equals_0=function(e){var t,n,r;return this===e||!!Fn(e,279)&&(t=Pn(e,279),this.hashCode_0==t.hashCode_0&&(n=this.scheme,r=t.scheme,null==n?null==r:rp(n,r))&&_Ge(this.authority,0!=(256&this.hashCode_0)?0!=(256&t.hashCode_0)?t.authority:null:0!=(256&t.hashCode_0)?null:t.authority)&&_Ge(this.device,t.device)&&_Ge(this.query,t.query)&&_Ge(this.fragment,t.fragment)&&function(e,t){var n,r;if(e.segments.length!=t.segments.length)return!1;for(n=0,r=e.segments.length;n>16==3?e.eContainer.eInverseRemove(e,0,tMe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(HBe(),_Be),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function lje(e){return e.eFlags_0>>16!=3?null:Pn(e.eContainer,147)}function cje(e,t){var n,r;if(t!=e.eContainer||e.eFlags_0>>16!=3&&t){if(qXe(e,t))throw Vg(new gd("Recursive containment not allowed for "+hje(e)));r=null,e.eContainer&&(r=(n=e.eFlags_0>>16)>=0?oje(e,r):e.eContainer.eInverseRemove(e,-1-n,null,r)),t&&(r=Pn(t,48).eInverseAdd(e,0,tMe,r)),(r=sje(e,t,r))&&r.dispatch_0()}else 0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,3,t,t))}function uje(e,t){var n;n=e.source,e.source=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,1,n,e.source))}function hje(e){var t;return 0!=(64&e.eFlags_0)?rNe(e):((t=new Gp(rNe(e))).string+=" (source: ",Dp(t,e.source),t.string+=")",t.string)}function gje(){}function fje(e,t,n){return Pn(e.delegateEList,67).basicRemove(t,n)}function dje(e,t){Fn(t,84)?(Pn(e.delegateEList,76).unset(),COe(e,Pn(t,84))):Pn(e.delegateEList,76).set_1(t)}function pje(e,t,n,r){this.initializeDelegateEList(),this.entryClass=t,this.entryEClass=e,this.delegateEList=new RXe(this,t,n,r)}function _je(e,t,n){pje.call(this,e,t,n,2)}function yje(e,t,n){var r,i,a;return a=e.eGenericType,e.eGenericType=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&(i=new hUe(e,1,9,a,t),n?n.add_4(i):n=i),t?(r=t.eRawType)!=e.eType&&(n=e.setEType(r,n)):e.eType&&(n=e.setEType(null,n)),n}function mje(e,t){return t=e.setEType(null,t),yje(e,null,t)}function wje(e){var t;return 0==(1&e.eFlags)&&e.eType&&e.eType.eIsProxy()&&(t=Pn(e.eType,48),e.eType=Pn(JMe(e,t),138),e.eType!=t&&0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,9,8,t,e.eType))),e.eType}function vje(e,t,n){var r;return t!=e.eGenericType?(e.eGenericType&&(n=jMe(e.eGenericType,e,-10,n)),t&&(n=BMe(t,e,-10,n)),n=yje(e,t,n)):0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&(r=new hUe(e,1,9,t,t),n?n.add_4(r):n=r),n}function xje(e,t){var n,r;n=e.setEType(t,null),r=null,t&&(jBe(),OHe(r=new UHe,e.eType)),(n=vje(e,r,n))&&n.dispatch_0()}function Eje(e,t,n){var r,i;return i=e.eType,e.eType=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&(r=new hUe(e,1,8,i,e.eType),n?n.add_4(r):n=r),n}function bje(e,t){var n;n=e.lowerBound,e.lowerBound=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new uUe(e,4,n,e.lowerBound))}function Cje(e,t){var n;n=0!=(256&e.eFlags),t?e.eFlags|=256:e.eFlags&=-257,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,2,n,t))}function Sje(e,t){var n;n=0!=(512&e.eFlags),t?e.eFlags|=512:e.eFlags&=-513,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,3,n,t))}function kje(e,t){var n;n=e.upperBound,e.upperBound=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new uUe(e,5,n,e.upperBound))}function $je(e){var t;return 0!=(64&e.eFlags_0)?RLe(e):((t=new Gp(RLe(e))).string+=" (ordered: ",Rp(t,0!=(256&e.eFlags)),t.string+=", unique: ",Rp(t,0!=(512&e.eFlags)),t.string+=", lowerBound: ",zp(t,e.lowerBound),t.string+=", upperBound: ",zp(t,e.upperBound),t.string+=")",t.string)}function Ije(){this.eFlags|=256,this.eFlags|=512}function Tje(e,t){var n;return e.eFlags_0>>16==17?e.eContainer.eInverseRemove(e,21,JGe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||e.eStaticClass(),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function Pje(e){var t,n,r,i,a;if(r=wje(e),null==(a=e.defaultValueLiteral)&&r)return e.isMany()?null:r.getDefaultValue();if(Fn(r,148)){if((n=r.getEPackage())&&(i=n.getEFactoryInstance())!=e.defaultValueFactory){if((t=Pn(r,148)).isSerializable())try{e.defaultValue=i.createFromString(t,a)}catch(t){if(!Fn(t=jg(t),78))throw Vg(t);e.defaultValue=null}e.defaultValueFactory=i}return e.defaultValue}return null}function Mje(e){return e.eFlags_0>>16!=17?null:Pn(e.eContainer,26)}function Nje(e){return e.prototypeFeatureMapEntry||(e.getEOpposite()?e.prototypeFeatureMapEntry=new fWe(e,e,null):e.isContainment()?e.prototypeFeatureMapEntry=new Eqe(e,null):1==hYe(XKe((BKe(),MKe),e))?e.prototypeFeatureMapEntry=new pWe(e):e.prototypeFeatureMapEntry=new _We(e,null)),e.prototypeFeatureMapEntry}function Lje(e){var t;return e.cachedEType!=e.eType&&(t=wje(e),e.cachedIsFeatureMap=!!t&&"org.eclipse.emf.ecore.util.FeatureMap$Entry"==t.getInstanceClassName(),e.cachedEType=t),e.cachedIsFeatureMap}function zje(e,t){var n;n=0!=(e.eFlags&Kt),t?e.eFlags|=Kt:e.eFlags&=-1025,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,10,n,t))}function Aje(e,t){e.defaultValueFactory=null,Dje(e,t)}function Dje(e,t){var n;n=e.defaultValueLiteral,e.defaultValueLiteral=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,13,n,e.defaultValueLiteral))}function Rje(e,t){var n;n=0!=(e.eFlags&I),t?e.eFlags|=I:e.eFlags&=-16385,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,16,n,t))}function Fje(e,t){e.featureID=t}function Oje(e,t){Fn(e.eContainer,87)&&UVe(bVe(Pn(e.eContainer,87)),4),DLe(e,t)}function Gje(e,t){var n;n=0!=(e.eFlags&ye),t?e.eFlags|=ye:e.eFlags&=-4097,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,12,n,t))}function Bje(e,t){var n;n=0!=(e.eFlags&Jt),t?e.eFlags|=Jt:e.eFlags&=-8193,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,15,n,t))}function jje(e,t){var n;n=0!=(e.eFlags&Zt),t?e.eFlags|=Zt:e.eFlags&=-2049,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,11,n,t))}function Vje(e){var t;return 0!=(64&e.eFlags_0)?$je(e):((t=new Gp($je(e))).string+=" (changeable: ",Rp(t,0!=(e.eFlags&Kt)),t.string+=", volatile: ",Rp(t,0!=(e.eFlags&Zt)),t.string+=", transient: ",Rp(t,0!=(e.eFlags&ye)),t.string+=", defaultValueLiteral: ",Dp(t,e.defaultValueLiteral),t.string+=", unsettable: ",Rp(t,0!=(e.eFlags&Jt)),t.string+=", derived: ",Rp(t,0!=(e.eFlags&I)),t.string+=")",t.string)}function Hje(){Ije.call(this),this.featureID=-1,this.defaultValue=null,this.defaultValueFactory=null,this.defaultValueLiteral=null,this.eFlags|=Kt}function Uje(e){var t;return e.eAttributeType||Fn(t=e.eType,148)&&(e.eAttributeType=Pn(t,148)),e.eAttributeType}function qje(e){var t;return(!e.eAttributeType||0==(1&e.eFlags)&&e.eAttributeType.eIsProxy())&&Fn(t=wje(e),148)&&(e.eAttributeType=Pn(t,148)),e.eAttributeType}function Wje(e){var t,n;switch(e.effectiveIsMany){case-1:return!0;case 0:return(n=e.upperBound)>1||-1==n||(t=wje(e))&&(rJe(),"org.eclipse.emf.ecore.util.FeatureMap$Entry"==t.getInstanceClassName())?(e.effectiveIsMany=-1,!0):(e.effectiveIsMany=1,!1);default:case 1:return!1}}function Kje(e,t){var n;n=0!=(e.eFlags&Dt),t?e.eFlags|=Dt:e.eFlags&=-32769,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,18,n,t))}function Yje(e,t){e.effectiveIsMany=0,kje(e,t)}function Xje(){Hje.call(this)}function Jje(e){return e.eFlags_0>>16!=6?null:Pn(e.eContainer,234)}function Zje(e,t){null==e.instanceClassName&&null!=e.generatedInstanceClassName&&(e.instanceClassName=e.generatedInstanceClassName,e.generatedInstanceClassName=null),sVe(e,null==t?null:(Qk(t),t)),e.instanceClass&&e.setInstanceClassGen(null)}function Qje(e,t){var n;n=e.instanceTypeName,e.instanceTypeName=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,5,n,t))}function eVe(e,t){var n;return e.eFlags_0>>16==6?e.eContainer.eInverseRemove(e,5,yMe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||e.eStaticClass(),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function tVe(e){var t;return e.ePackage?e.ePackage:((t=function(e){return e.eFlags_0>>16!=6?null:Pn(MMe(e),234)}(e))&&!t.eIsProxy()&&(e.ePackage=t),t)}function nVe(e){var t;if(!e.instanceClass&&(null!=e.instanceClassName||null!=e.generatedInstanceClassName))if(t=function(e){var t,n,r,i;if(-1!=(t=sp(n=null!=e.instanceClassName?e.instanceClassName:e.generatedInstanceClassName,mp(91)))){r=n.substr(0,t),i=new Fp;do{i.string+="["}while(-1!=(t=ap(n,91,++t)));np(r,"boolean")?i.string+="Z":np(r,"byte")?i.string+="B":np(r,"char")?i.string+="C":np(r,"double")?i.string+="D":np(r,"float")?i.string+="F":np(r,"int")?i.string+="I":np(r,"long")?i.string+="J":np(r,"short")?i.string+="S":(i.string+="L",i.string+=""+r,i.string+=";");try{return null}catch(e){if(!Fn(e=jg(e),59))throw Vg(e)}}else if(-1==sp(n,mp(46))){if(np(n,"boolean"))return h1e;if(np(n,"byte"))return f1e;if(np(n,"char"))return c1e;if(np(n,"double"))return d1e;if(np(n,"float"))return p1e;if(np(n,"int"))return u1e;if(np(n,"long"))return g1e;if(np(n,"short"))return _1e}return null}(e))e.setInstanceClassGen(t);else try{e.setInstanceClassGen(null)}catch(e){if(!Fn(e=jg(e),59))throw Vg(e)}return e.instanceClass}function rVe(e,t){var n,r;if(null!=t)if(r=nVe(e)){if(0==(1&r.modifiers))return sGe(),!(n=Pn(cy(iGe,r),54))||n.isInstance(t);if(r==h1e)return On(t);if(r==u1e)return Fn(t,20);if(r==p1e)return Fn(t,155);if(r==f1e)return Fn(t,215);if(r==c1e)return Fn(t,172);if(r==d1e)return Gn(t);if(r==_1e)return Fn(t,186);if(r==g1e)return Fn(t,162)}else if(Fn(t,55))return e.dynamicIsInstance(Pn(t,55));return!1}function iVe(e,t){t?null==e.generatedInstanceClassName&&(e.generatedInstanceClassName=e.instanceClassName,e.instanceClassName=null):null!=e.generatedInstanceClassName&&(e.instanceClassName=e.generatedInstanceClassName,e.generatedInstanceClassName=null)}function aVe(e,t){Zje(e,t),Qje(e,e.instanceClassName)}function sVe(e,t){var n;n=e.instanceClassName,e.instanceClassName=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,2,n,e.instanceClassName))}function oVe(e,t){var n,r,i,a;a=e.instanceTypeName,null==t?(e.instanceTypeName=null,Zje(e,null)):(e.instanceTypeName=(Qk(t),t),-1!=(r=sp(t,mp(60)))?(i=t.substr(0,r),-1==sp(t,mp(46))&&!np(i,"boolean")&&!np(i,"byte")&&!np(i,"char")&&!np(i,"double")&&!np(i,"float")&&!np(i,"int")&&!np(i,"long")&&!np(i,"short")&&(i="java.lang.Object"),-1!=(n=cp(t,mp(62)))&&(i+=""+t.substr(n+1)),Zje(e,i)):(i=t,-1==sp(t,mp(46))&&(-1!=(r=sp(t,mp(91)))&&(i=t.substr(0,r)),np(i,"boolean")||np(i,"byte")||np(i,"char")||np(i,"double")||np(i,"float")||np(i,"int")||np(i,"long")||np(i,"short")?i=t:(i="java.lang.Object",-1!=r&&(i+=""+t.substr(r)))),Zje(e,i),i==t&&(e.instanceTypeName=e.instanceClassName))),0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,5,a,t))}function lVe(e,t){Fn(e.eContainer,179)&&(Pn(e.eContainer,179).eNameToEClassifierMap=null),DLe(e,t)}function cVe(e){var t;return 0!=(64&e.eFlags_0)?RLe(e):((t=new Gp(RLe(e))).string+=" (instanceClassName: ",Dp(t,e.instanceClassName),t.string+=")",t.string)}function uVe(){uVe=En,WBe=new _He,YBe=Sg(yg(KGe,1),Qt,170,0,[]),KBe=Sg(yg(aBe,1),en,58,0,[])}function hVe(e){var t,n,r,i,a,s;if(!e.eAllAttributes){if(e.eIDAttribute=null,s=new tHe(e),t=new nHe,null==(n=WBe).map_0.put(e,n)){for(a=new BFe(CVe(e));a.cursor!=a.this$01_2.size_1();)nRe(s,hVe(Pn(OFe(a),26)));n.map_0.remove_0(e),n.map_0.size_1()}for(!e.eStructuralFeatures&&(e.eStructuralFeatures=new HUe(KGe,e,21,17)),i=new BFe(e.eStructuralFeatures);i.cursor!=i.this$01_2.size_1();)Fn(r=Pn(OFe(i),170),321)&&eRe(t,Pn(r,32));SRe(t),e.eAttributes=new rHe(e,(Pn(vRe(EVe((VBe(),pBe).eClassEClass),7),17),t.size_0),t.data_0),nRe(s,e.eAttributes),SRe(s),e.eAllAttributes=new WVe((Pn(vRe(EVe(pBe.eClassEClass),4),17),s.size_0),s.data_0),bVe(e).modifiedState&=-2}return e.eAllAttributes}function gVe(e){var t,n,r;if(!e.eAllContainments){for(r=new sHe,n=new WFe(pVe(e));n.cursor!=n.this$01_2.size_1();)0!=((t=Pn(qFe(n),17)).eFlags&Dt)&&eRe(r,t);SRe(r),e.eAllContainments=new WVe((Pn(vRe(EVe((VBe(),pBe).eClassEClass),8),17),r.size_0),r.data_0),bVe(e).modifiedState&=-9}return e.eAllContainments}function fVe(e){var t,n,r,i,a;if(!e.eAllGenericSuperTypes){if(a=new ZVe,null==(t=WBe).map_0.put(e,t)){for(r=new BFe(mVe(e));r.cursor!=r.this$01_2.size_1();)Fn(i=DHe(n=Pn(OFe(r),86)),87)&&nRe(a,fVe(Pn(i,26))),eRe(a,n);t.map_0.remove_0(e),t.map_0.size_1()}!function(e){var t,n,r,i;for(n=Pn(e.data_0,662),r=e.size_0-1;r>=0;--r)for(t=n[r],i=0;i=0&&t4){if(!e.isInstance(t))return!1;if(e.isContainment()){if(o=(n=(r=Pn(t,48)).eContainer_0())==e.owner&&(e.hasNavigableInverse()?r.eBaseStructuralFeatureID(r.eContainerFeatureID_0(),e.getInverseFeatureClass())==e.getInverseFeatureID():-1-r.eContainerFeatureID_0()==e.getFeatureID_0()),e.hasProxies()&&!o&&!n&&r.eDirectResource())for(i=0;i=0)return r;if(e.isEObject())for(n=0;n>16)),14).indexOf_0(a))>16==5?e.eContainer.eInverseRemove(e,9,nBe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(HBe(),bBe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function EHe(e,t){var n,r,i;i=e.instance,e.instance=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,3,i,e.instance)),t?t!=e&&(DLe(e,t.name_0),CHe(e,t.value_0),bHe(e,null==(n=null==(r=t.literal)?t.name_0:r)||np(n,t.name_0)?null:n)):(DLe(e,null),CHe(e,0),bHe(e,null))}function bHe(e,t){var n;n=e.literal,e.literal=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,4,n,e.literal))}function CHe(e,t){var n;n=e.value_0,e.value_0=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new uUe(e,2,n,e.value_0))}function SHe(){this.generatedInstance=this}bn(530,1,{71:1},JBe),i.getEStructuralFeature=function(){return this.val$eAttribute1},i.getValue=function(){return this.val$value2},Qn("org.eclipse.emf.ecore.impl","BasicEObjectImpl/1",530),bn(1015,1,Yt,ZBe),i.get_6=function(e){return FMe(this.this$01,this.val$eFeature2,e)},i.isSet_0=function(){return HMe(this.this$01,this.val$eFeature2)},i.set_1=function(e){QMe(this.this$01,this.val$eFeature2,e)},i.unset=function(){var e,t,n;e=this.this$01,t=this.val$eFeature2,(n=e.eDerivedStructuralFeatureID_0(t))>=0?e.eUnset(n):XMe(e,t)},Qn("org.eclipse.emf.ecore.impl","BasicEObjectImpl/4",1015),bn(1956,1,{107:1}),i.allocateSettings=function(e){this.eSettings=0==e?UBe:xg(or,g,1,e,5,1)},i.dynamicGet=function(e){return this.eSettings[e]},i.dynamicSet=function(e,t){this.eSettings[e]=t},i.dynamicUnset=function(e){this.eSettings[e]=null},i.getEClass=function(){return this.eClass},i.getEContents=function(){throw Vg(new i_)},i.getEProxyURI=function(){throw Vg(new i_)},i.getEResource=function(){return this.eResource},i.hasSettings=function(){return null!=this.eSettings},i.setEClass=function(e){this.eClass=e},i.setEContents=function(e){throw Vg(new i_)},i.setEProxyURI=function(e){throw Vg(new i_)},i.setEResource=function(e){this.eResource=e},Qn("org.eclipse.emf.ecore.impl","BasicEObjectImpl/EPropertiesHolderBaseImpl",1956),bn(187,1956,{107:1},eje),i.getEContents=function(){return this.eContents},i.getEProxyURI=function(){return this.eProxyURI},i.setEContents=function(e){this.eContents=e},i.setEProxyURI=function(e){this.eProxyURI=e},Qn("org.eclipse.emf.ecore.impl","BasicEObjectImpl/EPropertiesHolderImpl",187),bn(498,96,Rt,tje),i.eBasicAdapters=function(){return this.eAdapters},i.eBasicProperties=function(){return this.eProperties},i.eBasicSetContainer=function(e,t){this.eContainer=e,this.eContainerFeatureID=t},i.eClass_0=function(){return 0==(2&this.eFlags)?this.eStaticClass():this.eProperties_0().getEClass()},i.eContainerFeatureID_0=function(){return this.eContainerFeatureID},i.eDeliver=function(){return 0!=(1&this.eFlags)},i.eInternalContainer=function(){return this.eContainer},i.eIsProxy=function(){return 0!=(4&this.eFlags)},i.eProperties_0=function(){return!this.eProperties&&(this.eProperties=new eje),this.eProperties},i.eSetClass=function(e){this.eProperties_0().setEClass(e),e?this.eFlags|=2:this.eFlags&=-3},i.eSetProxyURI=function(e){this.eProperties_0().setEProxyURI(e),e?this.eFlags|=4:this.eFlags&=-5},i.eStaticClass=function(){return(VBe(),pBe).eObjectEClass},i.eContainerFeatureID=0,i.eFlags=1,Qn("org.eclipse.emf.ecore.impl","EObjectImpl",498),bn(763,498,{104:1,91:1,89:1,55:1,107:1,48:1,96:1},rje),i.dynamicGet=function(e){return this.eSettings[e]},i.dynamicSet=function(e,t){this.eSettings[e]=t},i.dynamicUnset=function(e){this.eSettings[e]=null},i.eClass_0=function(){return this.eClass},i.eDerivedStructuralFeatureID_0=function(e){return kVe(this.eClass,e)},i.eDynamicClass=function(){return this.eClass},i.eHasSettings=function(){return null!=this.eSettings},i.eProperties_0=function(){return!this.eProperties&&(this.eProperties=new aje),this.eProperties},i.eSetClass=function(e){this.eClass=e},i.eSettings_0=function(){var e;return null==this.eSettings&&(e=SVe(this.eClass),this.eSettings=0==e?qBe:xg(or,g,1,e,5,1)),this},i.eStaticFeatureCount=function(){return 0},Qn("org.eclipse.emf.ecore.impl","DynamicEObjectImpl",763),bn(1347,763,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1},ije),i.equals_0=function(e){return this===e},i.hashCode_1=function(){return l$(this)},i.eSetClass=function(e){this.eClass=e,this.keyFeature=xVe(e,"key"),this.valueFeature=xVe(e,"value")},i.getHash=function(){var e;return-1==this.hash&&(e=OMe(this,this.keyFeature),this.hash=null==e?0:In(e)),this.hash},i.getKey=function(){return OMe(this,this.keyFeature)},i.getValue=function(){return OMe(this,this.valueFeature)},i.setHash=function(e){this.hash=e},i.setKey=function(e){QMe(this,this.keyFeature,e)},i.setValue=function(e){var t;return t=OMe(this,this.valueFeature),QMe(this,this.valueFeature,e),t},i.hash=0,Qn("org.eclipse.emf.ecore.impl","DynamicEObjectImpl/BasicEMapEntry",1347),bn(1348,1,{107:1},aje),i.allocateSettings=function(e){throw Vg(new i_)},i.dynamicGet=function(e){throw Vg(new i_)},i.dynamicSet=function(e,t){throw Vg(new i_)},i.dynamicUnset=function(e){throw Vg(new i_)},i.getEClass=function(){throw Vg(new i_)},i.getEContents=function(){return this.eContents},i.getEProxyURI=function(){return this.eProxyURI},i.getEResource=function(){return this.eResource},i.hasSettings=function(){throw Vg(new i_)},i.setEClass=function(e){throw Vg(new i_)},i.setEContents=function(e){this.eContents=e},i.setEProxyURI=function(e){this.eProxyURI=e},i.setEResource=function(e){this.eResource=e},Qn("org.eclipse.emf.ecore.impl","DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1348),bn(502,150,{104:1,91:1,89:1,581:1,147:1,55:1,107:1,48:1,96:1,502:1,150:1,113:1,116:1},gje),i.eBasicRemoveFromContainerFeature=function(e){return oje(this,e)},i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.source;case 2:return n?(!this.details&&(this.details=new _je((HBe(),ABe),wqe,this)),this.details):(!this.details&&(this.details=new _je((HBe(),ABe),wqe,this)),EOe(this.details));case 3:return lje(this);case 4:return!this.contents&&(this.contents=new GVe(WPe,this,4)),this.contents;case 5:return!this.references&&(this.references=new EXe(WPe,this,5)),this.references}return NMe(this,e-SVe((HBe(),_Be)),vVe(Pn(hNe(this,16),26)||_Be,e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 3:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?oje(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),sje(this,Pn(e,147),n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),_Be),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),_Be)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 2:return!this.details&&(this.details=new _je((HBe(),ABe),wqe,this)),fje(this.details,e,n);case 3:return sje(this,null,n);case 4:return!this.contents&&(this.contents=new GVe(WPe,this,4)),PFe(this.contents,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),_Be),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),_Be)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.source;case 2:return!!this.details&&0!=this.details.size_0;case 3:return!!lje(this);case 4:return!!this.contents&&0!=this.contents.size_0;case 5:return!!this.references&&0!=this.references.size_0}return LMe(this,e-SVe((HBe(),_Be)),vVe(Pn(hNe(this,16),26)||_Be,e))},i.eSet=function(e,t){var n;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return this,void uje(this,null==(n=An(t))?null:(Qk(n),n));case 2:return!this.details&&(this.details=new _je((HBe(),ABe),wqe,this)),void dje(this.details,t);case 3:return void cje(this,Pn(t,147));case 4:return!this.contents&&(this.contents=new GVe(WPe,this,4)),MFe(this.contents),!this.contents&&(this.contents=new GVe(WPe,this,4)),void nRe(this.contents,Pn(t,15));case 5:return!this.references&&(this.references=new EXe(WPe,this,5)),MFe(this.references),!this.references&&(this.references=new EXe(WPe,this,5)),void nRe(this.references,Pn(t,15))}zMe(this,e-SVe((HBe(),_Be)),vVe(Pn(hNe(this,16),26)||_Be,e),t)},i.eStaticClass=function(){return HBe(),_Be},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void uje(this,null);case 2:return!this.details&&(this.details=new _je((HBe(),ABe),wqe,this)),void this.details.delegateEList.clear_0();case 3:return void cje(this,null);case 4:return!this.contents&&(this.contents=new GVe(WPe,this,4)),void MFe(this.contents);case 5:return!this.references&&(this.references=new EXe(WPe,this,5)),void MFe(this.references)}AMe(this,e-SVe((HBe(),_Be)),vVe(Pn(hNe(this,16),26)||_Be,e))},i.toString_0=function(){return hje(this)},i.source=null,Qn("org.eclipse.emf.ecore.impl","EAnnotationImpl",502),bn(143,697,Xt,pje),i.addUnique=function(e,t){!function(e,t,n){Pn(e.delegateEList,67).addUnique(t,n)}(this,e,Pn(t,43))},i.basicAdd=function(e,t){return function(e,t,n){return Pn(e.delegateEList,67).basicAdd(t,n)}(this,Pn(e,43),t)},i.basicGet=function(e){return Pn(Pn(this.delegateEList,67).basicGet(e),133)},i.basicIterator=function(){return Pn(this.delegateEList,67).basicIterator()},i.basicListIterator=function(){return Pn(this.delegateEList,67).basicListIterator()},i.basicListIterator_0=function(e){return Pn(this.delegateEList,67).basicListIterator_0(e)},i.basicRemove=function(e,t){return fje(this,e,t)},i.get_6=function(e){return Pn(this.delegateEList,76).get_6(e)},i.initializeDelegateEList=function(){},i.isSet_0=function(){return Pn(this.delegateEList,76).isSet_0()},i.newEntry=function(e,t,n){var r;return(r=Pn(tVe(this.entryEClass).getEFactoryInstance().create_3(this.entryEClass),133)).setHash(e),r.setKey(t),r.setValue(n),r},i.newList=function(){return new DXe(this)},i.set_1=function(e){dje(this,e)},i.unset=function(){Pn(this.delegateEList,76).unset()},Qn("org.eclipse.emf.ecore.util","EcoreEMap",143),bn(158,143,Xt,_je),i.ensureEntryDataExists=function(){var e,t,n,r,i;if(null==this.entryData){for(i=xg(LRe,qt,60,2*this.size_0+1,0,1),n=this.delegateEList.iterator_0();n.cursor!=n.this$01_2.size_1();)!(e=i[r=((t=Pn(n.doNext(),133)).getHash()&u)%i.length])&&(e=i[r]=new DXe(this)),e.add_2(t);this.entryData=i}},Qn("org.eclipse.emf.ecore.impl","EAnnotationImpl/1",158),bn(283,431,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,466:1,48:1,96:1,150:1,283:1,113:1,116:1}),i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return Mf(),0!=(256&this.eFlags);case 3:return Mf(),0!=(512&this.eFlags);case 4:return Cd(this.lowerBound);case 5:return Cd(this.upperBound);case 6:return Mf(),!!this.isMany();case 7:return Mf(),this.lowerBound>=1;case 8:return t?wje(this):this.eType;case 9:return this.eGenericType}return NMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 9:return mje(this,n)}return Pn(vVe(Pn(hNe(this,16),26)||this.eStaticClass(),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe(this.eStaticClass()),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return 0==(256&this.eFlags);case 3:return 0==(512&this.eFlags);case 4:return 0!=this.lowerBound;case 5:return 1!=this.upperBound;case 6:return this.isMany();case 7:return this.lowerBound>=1;case 8:return!!this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0;case 9:return!(!this.eGenericType||this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0)}return LMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.eSet=function(e,t){var n;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void this.setName(An(t));case 2:return void Cje(this,Nf(Nn(t)));case 3:return void Sje(this,Nf(Nn(t)));case 4:return void bje(this,Pn(t,20).value_0);case 5:return void this.setUpperBound(Pn(t,20).value_0);case 8:return void xje(this,Pn(t,138));case 9:return void((n=vje(this,Pn(t,86),null))&&n.dispatch_0())}zMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t)},i.eStaticClass=function(){return HBe(),RBe},i.eUnset=function(e){var t;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void this.setName(null);case 2:return void Cje(this,!0);case 3:return void Sje(this,!0);case 4:return void bje(this,0);case 5:return void this.setUpperBound(1);case 8:return void xje(this,null);case 9:return void((t=vje(this,null,null))&&t.dispatch_0())}AMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.freeze=function(){wje(this),this.eFlags|=1},i.getEType=function(){return wje(this)},i.getUpperBound=function(){return this.upperBound},i.isMany=function(){var e;return(e=this.upperBound)>1||-1==e},i.isUnique=function(){return 0!=(512&this.eFlags)},i.setEType=function(e,t){return Eje(this,e,t)},i.setUpperBound=function(e){kje(this,e)},i.toString_0=function(){return $je(this)},i.lowerBound=0,i.upperBound=1,Qn("org.eclipse.emf.ecore.impl","ETypedElementImpl",283),bn(443,283,{104:1,91:1,89:1,147:1,191:1,55:1,170:1,65:1,107:1,466:1,48:1,96:1,150:1,443:1,283:1,113:1,116:1,665:1}),i.eBasicRemoveFromContainerFeature=function(e){return Tje(this,e)},i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return Mf(),0!=(256&this.eFlags);case 3:return Mf(),0!=(512&this.eFlags);case 4:return Cd(this.lowerBound);case 5:return Cd(this.upperBound);case 6:return Mf(),!!this.isMany();case 7:return Mf(),this.lowerBound>=1;case 8:return t?wje(this):this.eType;case 9:return this.eGenericType;case 10:return Mf(),0!=(this.eFlags&Kt);case 11:return Mf(),0!=(this.eFlags&Zt);case 12:return Mf(),0!=(this.eFlags&ye);case 13:return this.defaultValueLiteral;case 14:return Pje(this);case 15:return Mf(),0!=(this.eFlags&Jt);case 16:return Mf(),0!=(this.eFlags&I);case 17:return Mje(this)}return NMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 17:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?Tje(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,17,n)}return Pn(vVe(Pn(hNe(this,16),26)||this.eStaticClass(),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe(this.eStaticClass()),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 9:return mje(this,n);case 17:return PMe(this,null,17,n)}return Pn(vVe(Pn(hNe(this,16),26)||this.eStaticClass(),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe(this.eStaticClass()),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return 0==(256&this.eFlags);case 3:return 0==(512&this.eFlags);case 4:return 0!=this.lowerBound;case 5:return 1!=this.upperBound;case 6:return this.isMany();case 7:return this.lowerBound>=1;case 8:return!!this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0;case 9:return!(!this.eGenericType||this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0);case 10:return 0==(this.eFlags&Kt);case 11:return 0!=(this.eFlags&Zt);case 12:return 0!=(this.eFlags&ye);case 13:return null!=this.defaultValueLiteral;case 14:return null!=Pje(this);case 15:return 0!=(this.eFlags&Jt);case 16:return 0!=(this.eFlags&I);case 17:return!!Mje(this)}return LMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.eSet=function(e,t){var n;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void Oje(this,An(t));case 2:return void Cje(this,Nf(Nn(t)));case 3:return void Sje(this,Nf(Nn(t)));case 4:return void bje(this,Pn(t,20).value_0);case 5:return void this.setUpperBound(Pn(t,20).value_0);case 8:return void xje(this,Pn(t,138));case 9:return void((n=vje(this,Pn(t,86),null))&&n.dispatch_0());case 10:return void zje(this,Nf(Nn(t)));case 11:return void jje(this,Nf(Nn(t)));case 12:return void Gje(this,Nf(Nn(t)));case 13:return void Aje(this,An(t));case 15:return void Bje(this,Nf(Nn(t)));case 16:return void Rje(this,Nf(Nn(t)))}zMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t)},i.eStaticClass=function(){return HBe(),DBe},i.eUnset=function(e){var t;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return Fn(this.eContainer,87)&&UVe(bVe(Pn(this.eContainer,87)),4),void DLe(this,null);case 2:return void Cje(this,!0);case 3:return void Sje(this,!0);case 4:return void bje(this,0);case 5:return void this.setUpperBound(1);case 8:return void xje(this,null);case 9:return void((t=vje(this,null,null))&&t.dispatch_0());case 10:return void zje(this,!0);case 11:return void jje(this,!1);case 12:return void Gje(this,!1);case 13:return this.defaultValueFactory=null,void Dje(this,null);case 15:return void Bje(this,!1);case 16:return void Rje(this,!1)}AMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.freeze=function(){fYe(XKe((BKe(),MKe),this)),wje(this),this.eFlags|=1},i.getContainerClass=function(){return this.containerClass},i.getDefaultValue=function(){return Pje(this)},i.getEContainingClass=function(){return Mje(this)},i.getEOpposite=function(){return null},i.getExtendedMetaData_0=function(){return this.eStructuralFeatureExtendedMetaData},i.getFeatureID_0=function(){return this.featureID},i.getFeatureMapEntryPrototype=function(){return Nje(this)},i.getSettingDelegate=function(){var e,t,n,r,i,a,s,o,l;return this.settingDelegate||((null==(n=Mje(this)).eAllStructuralFeaturesData&&_Ve(n),n.eAllStructuralFeaturesData).length,(r=this.getEOpposite())&&SVe(Mje(r)),e=(s=(i=wje(this)).getInstanceClass())?0!=(1&s.modifiers)?s==h1e?Af:s==u1e?$d:s==p1e?ud:s==d1e?od:s==g1e?Fd:s==_1e?Xd:s==f1e?Hf:Xf:s:null,t=Pje(this),o=i.getDefaultValue(),function(e){var t,n,r,i;for(n=function(e){var t,n,r,i,a,s,o;if((t=e.getEAnnotation("http://www.eclipse.org/emf/2002/Ecore"))&&null!=(o=An(vOe((!t.details&&(t.details=new _je((HBe(),ABe),wqe,t)),t.details),"settingDelegates")))){for(n=new xm,a=0,s=(i=hp(o,"\\w+")).length;a1||-1==l?this.isResolveProxies_0()?0!=(this.eFlags&Jt)?this.settingDelegate=e?new kqe(25,e,this,r):new Iqe(24,this,r):this.settingDelegate=e?new kqe(27,e,this,r):new Iqe(26,this,r):0!=(this.eFlags&Jt)?this.settingDelegate=e?new kqe(29,e,this,r):new Iqe(28,this,r):this.settingDelegate=e?new kqe(31,e,this,r):new Iqe(30,this,r):this.isResolveProxies_0()?0!=(this.eFlags&Jt)?this.settingDelegate=e?new kqe(33,e,this,r):new Iqe(32,this,r):this.settingDelegate=e?new kqe(35,e,this,r):new Iqe(34,this,r):0!=(this.eFlags&Jt)?this.settingDelegate=e?new kqe(37,e,this,r):new Iqe(36,this,r):this.settingDelegate=e?new kqe(39,e,this,r):new Iqe(38,this,r):this.isResolveProxies_0()?0!=(this.eFlags&Jt)?this.settingDelegate=e?new Sqe(17,e,this):new $qe(16,this):this.settingDelegate=e?new Sqe(19,e,this):new $qe(18,this):0!=(this.eFlags&Jt)?this.settingDelegate=e?new Sqe(21,e,this):new $qe(20,this):this.settingDelegate=e?new Sqe(23,e,this):new $qe(22,this):this.isContainer()?this.isResolveProxies_0()?this.settingDelegate=new Lqe(Pn(i,26),this,r):this.settingDelegate=new Nqe(Pn(i,26),this,r):Fn(i,148)?e==XBe?this.settingDelegate=new $qe(40,this):0!=(this.eFlags&Jt)?this.settingDelegate=e?new Yqe(t,o,this,(Dqe(),s==u1e?pqe:s==h1e?uqe:s==g1e?_qe:s==p1e?dqe:s==d1e?fqe:s==_1e?mqe:s==f1e?hqe:s==c1e?gqe:yqe)):new Kqe(Pn(i,148),t,o,this):this.settingDelegate=e?new Wqe(t,o,this,(Dqe(),s==u1e?pqe:s==h1e?uqe:s==g1e?_qe:s==p1e?dqe:s==d1e?fqe:s==_1e?mqe:s==f1e?hqe:s==c1e?gqe:yqe)):new qqe(Pn(i,148),t,o,this):this.isContainment()?r?0!=(this.eFlags&Jt)?this.isResolveProxies_0()?this.settingDelegate=new aWe(Pn(i,26),this,r):this.settingDelegate=new iWe(Pn(i,26),this,r):this.isResolveProxies_0()?this.settingDelegate=new rWe(Pn(i,26),this,r):this.settingDelegate=new nWe(Pn(i,26),this,r):0!=(this.eFlags&Jt)?this.isResolveProxies_0()?this.settingDelegate=new tWe(Pn(i,26),this):this.settingDelegate=new eWe(Pn(i,26),this):this.isResolveProxies_0()?this.settingDelegate=new Qqe(Pn(i,26),this):this.settingDelegate=new Zqe(Pn(i,26),this):this.isResolveProxies_0()?r?0!=(this.eFlags&Jt)?this.settingDelegate=new cWe(Pn(i,26),this,r):this.settingDelegate=new lWe(Pn(i,26),this,r):0!=(this.eFlags&Jt)?this.settingDelegate=new oWe(Pn(i,26),this):this.settingDelegate=new sWe(Pn(i,26),this):r?0!=(this.eFlags&Jt)?this.settingDelegate=new gWe(Pn(i,26),this,r):this.settingDelegate=new hWe(Pn(i,26),this,r):0!=(this.eFlags&Jt)?this.settingDelegate=new uWe(Pn(i,26),this):this.settingDelegate=new Xqe(Pn(i,26),this)),this.settingDelegate},i.isChangeable=function(){return 0!=(this.eFlags&Kt)},i.isContainer=function(){return!1},i.isContainment=function(){return!1},i.isDerived=function(){return 0!=(this.eFlags&I)},i.isFeatureMap_0=function(){return Lje(this)},i.isResolveProxies_0=function(){return!1},i.isUnsettable=function(){return 0!=(this.eFlags&Jt)},i.setExtendedMetaData_0=function(e){this.eStructuralFeatureExtendedMetaData=e},i.setName=function(e){Oje(this,e)},i.toString_0=function(){return Vje(this)},i.cachedIsFeatureMap=!1,i.featureID=0,Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl",443),bn(321,443,{104:1,91:1,89:1,32:1,147:1,191:1,55:1,170:1,65:1,107:1,466:1,48:1,96:1,321:1,150:1,443:1,283:1,113:1,116:1,665:1},Xje),i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return Mf(),0!=(256&this.eFlags);case 3:return Mf(),0!=(512&this.eFlags);case 4:return Cd(this.lowerBound);case 5:return Cd(this.upperBound);case 6:return Mf(),!!Wje(this);case 7:return Mf(),this.lowerBound>=1;case 8:return t?wje(this):this.eType;case 9:return this.eGenericType;case 10:return Mf(),0!=(this.eFlags&Kt);case 11:return Mf(),0!=(this.eFlags&Zt);case 12:return Mf(),0!=(this.eFlags&ye);case 13:return this.defaultValueLiteral;case 14:return Pje(this);case 15:return Mf(),0!=(this.eFlags&Jt);case 16:return Mf(),0!=(this.eFlags&I);case 17:return Mje(this);case 18:return Mf(),0!=(this.eFlags&Dt);case 19:return t?qje(this):Uje(this)}return NMe(this,e-SVe((HBe(),yBe)),vVe(Pn(hNe(this,16),26)||yBe,e),t,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return 0==(256&this.eFlags);case 3:return 0==(512&this.eFlags);case 4:return 0!=this.lowerBound;case 5:return 1!=this.upperBound;case 6:return Wje(this);case 7:return this.lowerBound>=1;case 8:return!!this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0;case 9:return!(!this.eGenericType||this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0);case 10:return 0==(this.eFlags&Kt);case 11:return 0!=(this.eFlags&Zt);case 12:return 0!=(this.eFlags&ye);case 13:return null!=this.defaultValueLiteral;case 14:return null!=Pje(this);case 15:return 0!=(this.eFlags&Jt);case 16:return 0!=(this.eFlags&I);case 17:return!!Mje(this);case 18:return 0!=(this.eFlags&Dt);case 19:return!!Uje(this)}return LMe(this,e-SVe((HBe(),yBe)),vVe(Pn(hNe(this,16),26)||yBe,e))},i.eSet=function(e,t){var n;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void Oje(this,An(t));case 2:return void Cje(this,Nf(Nn(t)));case 3:return void Sje(this,Nf(Nn(t)));case 4:return void bje(this,Pn(t,20).value_0);case 5:return void Yje(this,Pn(t,20).value_0);case 8:return void xje(this,Pn(t,138));case 9:return void((n=vje(this,Pn(t,86),null))&&n.dispatch_0());case 10:return void zje(this,Nf(Nn(t)));case 11:return void jje(this,Nf(Nn(t)));case 12:return void Gje(this,Nf(Nn(t)));case 13:return void Aje(this,An(t));case 15:return void Bje(this,Nf(Nn(t)));case 16:return void Rje(this,Nf(Nn(t)));case 18:return void Kje(this,Nf(Nn(t)))}zMe(this,e-SVe((HBe(),yBe)),vVe(Pn(hNe(this,16),26)||yBe,e),t)},i.eStaticClass=function(){return HBe(),yBe},i.eUnset=function(e){var t;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return Fn(this.eContainer,87)&&UVe(bVe(Pn(this.eContainer,87)),4),void DLe(this,null);case 2:return void Cje(this,!0);case 3:return void Sje(this,!0);case 4:return void bje(this,0);case 5:return this.effectiveIsMany=0,void kje(this,1);case 8:return void xje(this,null);case 9:return void((t=vje(this,null,null))&&t.dispatch_0());case 10:return void zje(this,!0);case 11:return void jje(this,!1);case 12:return void Gje(this,!1);case 13:return this.defaultValueFactory=null,void Dje(this,null);case 15:return void Bje(this,!1);case 16:return void Rje(this,!1);case 18:return void Kje(this,!1)}AMe(this,e-SVe((HBe(),yBe)),vVe(Pn(hNe(this,16),26)||yBe,e))},i.freeze=function(){qje(this),fYe(XKe((BKe(),MKe),this)),wje(this),this.eFlags|=1},i.isMany=function(){return Wje(this)},i.setEType=function(e,t){return this.effectiveIsMany=0,this.eAttributeType=null,Eje(this,e,t)},i.setUpperBound=function(e){Yje(this,e)},i.toString_0=function(){var e;return 0!=(64&this.eFlags_0)?Vje(this):((e=new Gp(Vje(this))).string+=" (iD: ",Rp(e,0!=(this.eFlags&Dt)),e.string+=")",e.string)},i.effectiveIsMany=0,Qn("org.eclipse.emf.ecore.impl","EAttributeImpl",321),bn(348,431,{104:1,91:1,89:1,138:1,147:1,191:1,55:1,107:1,48:1,96:1,348:1,150:1,113:1,116:1,664:1}),i.dynamicIsInstance=function(e){return e.eClass_0()==this},i.eBasicRemoveFromContainerFeature=function(e){return eVe(this,e)},i.eBasicSetContainer=function(e,t){this.ePackage=null,this.eFlags_0=t<<16|255&this.eFlags_0,this.eContainer=e},i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return null!=this.instanceClassName?this.instanceClassName:this.generatedInstanceClassName;case 3:return nVe(this);case 4:return this.getDefaultValue();case 5:return this.instanceTypeName;case 6:return t?tVe(this):Jje(this);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),this.eTypeParameters}return NMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 6:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?eVe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,6,n)}return Pn(vVe(Pn(hNe(this,16),26)||this.eStaticClass(),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe(this.eStaticClass()),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 6:return PMe(this,null,6,n);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),PFe(this.eTypeParameters,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||this.eStaticClass(),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe(this.eStaticClass()),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return null!=this.instanceClassName&&this.instanceClassName==this.instanceTypeName;case 3:return!!nVe(this);case 4:return null!=this.getDefaultValue();case 5:return null!=this.instanceTypeName&&this.instanceTypeName!=this.instanceClassName&&this.instanceTypeName!=this.generatedInstanceClassName;case 6:return!!Jje(this);case 7:return!!this.eTypeParameters&&0!=this.eTypeParameters.size_0}return LMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void lVe(this,An(t));case 2:return void aVe(this,An(t));case 5:return void oVe(this,An(t));case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),MFe(this.eTypeParameters),!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),void nRe(this.eTypeParameters,Pn(t,15))}zMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e),t)},i.eStaticClass=function(){return HBe(),wBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return Fn(this.eContainer,179)&&(Pn(this.eContainer,179).eNameToEClassifierMap=null),void DLe(this,null);case 2:return Zje(this,null),void Qje(this,this.instanceClassName);case 5:return void oVe(this,null);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),void MFe(this.eTypeParameters)}AMe(this,e-SVe(this.eStaticClass()),vVe(Pn(hNe(this,16),26)||this.eStaticClass(),e))},i.getClassifierID=function(){var e;return-1==this.metaObjectID&&(this.metaObjectID=(e=tVe(this))?zVe(e.getEClassifiers(),this):-1),this.metaObjectID},i.getDefaultValue=function(){return null},i.getEPackage=function(){return tVe(this)},i.getExtendedMetaData_1=function(){return this.eClassifierExtendedMetaData},i.getInstanceClass=function(){return nVe(this)},i.getInstanceClassName=function(){return null!=this.instanceClassName?this.instanceClassName:this.generatedInstanceClassName},i.getInstanceTypeName=function(){return this.instanceTypeName},i.isInstance=function(e){return rVe(this,e)},i.setExtendedMetaData_1=function(e){this.eClassifierExtendedMetaData=e},i.setGeneratedInstanceClass=function(e){iVe(this,e)},i.setInstanceClassGen=function(e){this.instanceClass=e},i.setName=function(e){lVe(this,e)},i.toString_0=function(){return cVe(this)},i.instanceClass=null,i.instanceClassName=null,i.metaObjectID=-1,Qn("org.eclipse.emf.ecore.impl","EClassifierImpl",348),bn(87,348,{104:1,91:1,89:1,26:1,138:1,147:1,191:1,55:1,107:1,48:1,96:1,87:1,348:1,150:1,467:1,113:1,116:1,664:1},PVe),i.dynamicIsInstance=function(e){return this,(t=e.eClass_0())==this||wRe(yVe(t),this);var t},i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return null!=this.instanceClassName?this.instanceClassName:this.generatedInstanceClassName;case 3:return nVe(this);case 4:return null;case 5:return this.instanceTypeName;case 6:return t?tVe(this):Jje(this);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),this.eTypeParameters;case 8:return Mf(),0!=(256&this.eFlags);case 9:return Mf(),0!=(512&this.eFlags);case 10:return CVe(this);case 11:return!this.eOperations&&(this.eOperations=new HUe(aBe,this,11,10)),this.eOperations;case 12:return hVe(this);case 13:return pVe(this);case 14:return pVe(this),this.eReferences;case 15:return hVe(this),this.eAttributes;case 16:return gVe(this);case 17:return dVe(this);case 18:return _Ve(this);case 19:return yVe(this);case 20:return hVe(this),this.eIDAttribute;case 21:return!this.eStructuralFeatures&&(this.eStructuralFeatures=new HUe(KGe,this,21,17)),this.eStructuralFeatures;case 22:return mVe(this);case 23:return fVe(this)}return NMe(this,e-SVe((HBe(),mBe)),vVe(Pn(hNe(this,16),26)||mBe,e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 6:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?eVe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,6,n);case 11:return!this.eOperations&&(this.eOperations=new HUe(aBe,this,11,10)),TFe(this.eOperations,e,n);case 21:return!this.eStructuralFeatures&&(this.eStructuralFeatures=new HUe(KGe,this,21,17)),TFe(this.eStructuralFeatures,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),mBe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),mBe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 6:return PMe(this,null,6,n);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),PFe(this.eTypeParameters,e,n);case 11:return!this.eOperations&&(this.eOperations=new HUe(aBe,this,11,10)),PFe(this.eOperations,e,n);case 21:return!this.eStructuralFeatures&&(this.eStructuralFeatures=new HUe(KGe,this,21,17)),PFe(this.eStructuralFeatures,e,n);case 22:return PFe(mVe(this),e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),mBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),mBe)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return null!=this.instanceClassName&&this.instanceClassName==this.instanceTypeName;case 3:return!!nVe(this);case 4:return!1;case 5:return null!=this.instanceTypeName&&this.instanceTypeName!=this.instanceClassName&&this.instanceTypeName!=this.generatedInstanceClassName;case 6:return!!Jje(this);case 7:return!!this.eTypeParameters&&0!=this.eTypeParameters.size_0;case 8:return 0!=(256&this.eFlags);case 9:return 0!=(512&this.eFlags);case 10:return!(!this.eSuperTypes||0==mVe(this.eSuperTypes.this$01).size_0||this.eGenericSuperTypes&&jVe(this.eGenericSuperTypes));case 11:return!!this.eOperations&&0!=this.eOperations.size_0;case 12:return 0!=hVe(this).size_0;case 13:return 0!=pVe(this).size_0;case 14:return pVe(this),0!=this.eReferences.size_0;case 15:return hVe(this),0!=this.eAttributes.size_0;case 16:return 0!=gVe(this).size_0;case 17:return 0!=dVe(this).size_0;case 18:return 0!=_Ve(this).size_0;case 19:return 0!=yVe(this).size_0;case 20:return hVe(this),!!this.eIDAttribute;case 21:return!!this.eStructuralFeatures&&0!=this.eStructuralFeatures.size_0;case 22:return!!this.eGenericSuperTypes&&jVe(this.eGenericSuperTypes);case 23:return 0!=fVe(this).size_0}return LMe(this,e-SVe((HBe(),mBe)),vVe(Pn(hNe(this,16),26)||mBe,e))},i.eObjectForURIFragmentSegment=function(e){return(null==this.eAllStructuralFeaturesData||this.eOperations&&0!=this.eOperations.size_0?null:xVe(this,e))||CLe(this,e)},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void lVe(this,An(t));case 2:return void aVe(this,An(t));case 5:return void oVe(this,An(t));case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),MFe(this.eTypeParameters),!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),void nRe(this.eTypeParameters,Pn(t,15));case 8:return void $Ve(this,Nf(Nn(t)));case 9:return void IVe(this,Nf(Nn(t)));case 10:return cFe(CVe(this)),void nRe(CVe(this),Pn(t,15));case 11:return!this.eOperations&&(this.eOperations=new HUe(aBe,this,11,10)),MFe(this.eOperations),!this.eOperations&&(this.eOperations=new HUe(aBe,this,11,10)),void nRe(this.eOperations,Pn(t,15));case 21:return!this.eStructuralFeatures&&(this.eStructuralFeatures=new HUe(KGe,this,21,17)),MFe(this.eStructuralFeatures),!this.eStructuralFeatures&&(this.eStructuralFeatures=new HUe(KGe,this,21,17)),void nRe(this.eStructuralFeatures,Pn(t,15));case 22:return MFe(mVe(this)),void nRe(mVe(this),Pn(t,15))}zMe(this,e-SVe((HBe(),mBe)),vVe(Pn(hNe(this,16),26)||mBe,e),t)},i.eStaticClass=function(){return HBe(),mBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return Fn(this.eContainer,179)&&(Pn(this.eContainer,179).eNameToEClassifierMap=null),void DLe(this,null);case 2:return Zje(this,null),void Qje(this,this.instanceClassName);case 5:return void oVe(this,null);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),void MFe(this.eTypeParameters);case 8:return void $Ve(this,!1);case 9:return void IVe(this,!1);case 10:return void(this.eSuperTypes&&cFe(this.eSuperTypes));case 11:return!this.eOperations&&(this.eOperations=new HUe(aBe,this,11,10)),void MFe(this.eOperations);case 21:return!this.eStructuralFeatures&&(this.eStructuralFeatures=new HUe(KGe,this,21,17)),void MFe(this.eStructuralFeatures);case 22:return void(this.eGenericSuperTypes&&MFe(this.eGenericSuperTypes))}AMe(this,e-SVe((HBe(),mBe)),vVe(Pn(hNe(this,16),26)||mBe,e))},i.freeze=function(){var e,t,n;if(hVe(this),pVe(this),gVe(this),dVe(this),_Ve(this),yVe(this),fVe(this),mRe((!(n=bVe(this)).subclasses&&(n.subclasses=new yWe),n.subclasses)),this.eStructuralFeatures)for(e=0,t=this.eStructuralFeatures.size_0;e=0;--e)vRe(this,e);return kRe(this)},i.toArray_0=function(e){var t;if(this.hasProxies())for(t=this.size_0-1;t>=0;--t)vRe(this,t);return $Re(this,e)},i.unset=function(){MFe(this)},i.validate=function(e,t){return RVe(this,0,t)},Qn("org.eclipse.emf.ecore.util","EcoreEList",612),bn(488,612,nn,OVe),i.canContainNull=function(){return!1},i.getFeatureID_0=function(){return this.featureID},i.hasInverse=function(){return!1},i.isEObject=function(){return!0},i.isUnique=function(){return!0},i.resolve=function(e,t){return t},i.useEquals=function(){return!1},i.featureID=0,Qn("org.eclipse.emf.ecore.util","EObjectEList",488),bn(82,488,nn,GVe),i.hasInverse=function(){return!0},i.hasNavigableInverse=function(){return!1},i.isContainment=function(){return!0},Qn("org.eclipse.emf.ecore.util","EObjectContainmentEList",82),bn(538,82,nn,BVe),i.didChange=function(){this.isSet=!0},i.isSet_0=function(){return this.isSet},i.unset=function(){var e;MFe(this),UMe(this.owner)?(e=this.isSet,this.isSet=!1,IMe(this.owner,new dUe(this.owner,2,this.featureID,e,!1))):this.isSet=!1},i.isSet=!1,Qn("org.eclipse.emf.ecore.util","EObjectContainmentEList/Unsettable",538),bn(1113,538,nn,VVe),i.move=function(e,t){var n,r;return n=Pn(NFe(this,e,t),86),UMe(this.owner)&&LVe(this,new IUe(this.this$01,7,(HBe(),vBe),Cd(t),Fn(r=n.eRawType,87)?Pn(r,26):TBe,e)),n},i.shadowAdd=function(e,t){return function(e,t,n){var r,i;return r=new fUe(e.owner,3,10,null,Fn(i=t.eRawType,87)?Pn(i,26):(HBe(),TBe),zVe(e,t),!1),n?n.add_4(r):n=r,n}(this,Pn(e,86),t)},i.shadowRemove=function(e,t){return function(e,t,n){var r,i;return r=new fUe(e.owner,4,10,Fn(i=t.eRawType,87)?Pn(i,26):(HBe(),TBe),null,zVe(e,t),!1),n?n.add_4(r):n=r,n}(this,Pn(e,86),t)},i.shadowSet=function(e,t,n){return function(e,t,n,r){var i,a,s;return i=new fUe(e.owner,1,10,Fn(s=t.eRawType,87)?Pn(s,26):(HBe(),TBe),Fn(a=n.eRawType,87)?Pn(a,26):(HBe(),TBe),zVe(e,t),!1),r?r.add_4(i):r=i,r}(this,Pn(e,86),Pn(t,86),n)},i.createNotification=function(e,t,n,r,i){switch(e){case 3:return NVe(this,e,t,n,r,this.size_0>1);case 5:return NVe(this,e,t,n,r,this.size_0-Pn(n,14).size_1()>0);default:return new fUe(this.owner,e,this.featureID,t,n,r,!0)}},i.hasShadow=function(){return!0},i.isSet_0=function(){return jVe(this)},i.unset=function(){MFe(this)},Qn("org.eclipse.emf.ecore.impl","EClassImpl/1",1113),bn(1127,1126,Bt),i.notifyChanged=function(e){var t,n,r,i,a,s,o;if(8!=(n=e.getEventType())){if(0==(r=function(e){switch(e.getFeatureID(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}(e)))switch(n){case 1:case 9:null!=(o=e.getOldValue())&&(!(t=bVe(Pn(o,467))).subclasses&&(t.subclasses=new yWe),lRe(t.subclasses,e.getNotifier())),null!=(s=e.getNewValue())&&0==(1&(i=Pn(s,467)).eFlags)&&(!(t=bVe(i)).subclasses&&(t.subclasses=new yWe),eRe(t.subclasses,Pn(e.getNotifier(),26)));break;case 3:null!=(s=e.getNewValue())&&0==(1&(i=Pn(s,467)).eFlags)&&(!(t=bVe(i)).subclasses&&(t.subclasses=new yWe),eRe(t.subclasses,Pn(e.getNotifier(),26)));break;case 5:if(null!=(s=e.getNewValue()))for(a=Pn(s,15).iterator_0();a.hasNext_0();)0==(1&(i=Pn(a.next_1(),467)).eFlags)&&(!(t=bVe(i)).subclasses&&(t.subclasses=new yWe),eRe(t.subclasses,Pn(e.getNotifier(),26)));break;case 4:null!=(o=e.getOldValue())&&0==(1&(i=Pn(o,467)).eFlags)&&(!(t=bVe(i)).subclasses&&(t.subclasses=new yWe),lRe(t.subclasses,e.getNotifier()));break;case 6:if(null!=(o=e.getOldValue()))for(a=Pn(o,15).iterator_0();a.hasNext_0();)0==(1&(i=Pn(a.next_1(),467)).eFlags)&&(!(t=bVe(i)).subclasses&&(t.subclasses=new yWe),lRe(t.subclasses,e.getNotifier()))}this.setFlags(r)}},i.setFlags=function(e){HVe(this,e)},i.modifiedState=63,Qn("org.eclipse.emf.ecore.impl","ESuperAdapter",1127),bn(1128,1127,Bt,qVe),i.setFlags=function(e){UVe(this,e)},Qn("org.eclipse.emf.ecore.impl","EClassImpl/10",1128),bn(1117,688,nn),i.addAllUnique=function(e,t){return gRe(this,e,t)},i.addAllUnique_0=function(e){return fRe(this,e)},i.addUnique=function(e,t){dRe(this,e,t)},i.addUnique_0=function(e){pRe(this,e)},i.basicGet=function(e){return yRe(this,e)},i.setUnique=function(e,t){return CRe(this,e,t)},i.basicAdd=function(e,t){throw Vg(new i_)},i.basicIterator=function(){return new WFe(this)},i.basicListIterator=function(){return new KFe(this)},i.basicListIterator_0=function(e){return rRe(this,e)},i.basicRemove=function(e,t){throw Vg(new i_)},i.get_6=function(e){return this},i.isSet_0=function(){return 0!=this.size_0},i.set_1=function(e){throw Vg(new i_)},i.unset=function(){throw Vg(new i_)},Qn("org.eclipse.emf.ecore.util","EcoreEList/UnmodifiableEList",1117),bn(317,1117,nn,WVe),i.useEquals=function(){return!1},Qn("org.eclipse.emf.ecore.util","EcoreEList/UnmodifiableEList/FastCompare",317),bn(1120,317,nn,YVe),i.indexOf_0=function(e){var t,n;if(Fn(e,170)&&-1!=(t=Pn(e,170).getFeatureID_0()))for(n=this.size_0;t4){if(!this.isInstance(e))return!1;if(this.isContainment()){if(s=(t=(n=Pn(e,48)).eContainer_0())==this.owner&&(this.hasNavigableInverse()?n.eBaseStructuralFeatureID(n.eContainerFeatureID_0(),Pn(vVe(oNe(this.owner),this.getFeatureID_0()).getEType(),26).getInstanceClass())==eqe(Pn(vVe(oNe(this.owner),this.getFeatureID_0()),17)).featureID:-1-n.eContainerFeatureID_0()==this.getFeatureID_0()),this.hasProxies()&&!s&&!t&&n.eDirectResource())for(r=0;r1||-1==n)},i.hasNavigableInverse=function(){var e;return!!Fn(e=vVe(oNe(this.owner),this.getFeatureID_0()),97)&&!!eqe(Pn(e,17))},i.hasProxies=function(){var e;return!!Fn(e=vVe(oNe(this.owner),this.getFeatureID_0()),97)&&0!=(Pn(e,17).eFlags&we)},i.indexOf_0=function(e){var t,n,r;if((n=this.delegateIndexOf(e))>=0)return n;if(this.isEObject())for(t=0,r=this.delegateSize();t=0;--e)oHe(this,e,this.delegateGet(e));return this.delegateToArray()},i.toArray_0=function(e){var t;if(this.hasProxies())for(t=this.delegateSize()-1;t>=0;--t)oHe(this,t,this.delegateGet(t));return this.delegateToArray_0(e)},i.unset=function(){cFe(this)},i.validate=function(e,t){return cHe(this,0,t)},Qn("org.eclipse.emf.ecore.util","DelegatingEcoreEList",725),bn(1123,725,an,fHe),i.delegateAdd=function(e,t){!function(e,t,n){QDe(mVe(e.this$01),t,gHe(n))}(this,e,Pn(t,26))},i.delegateAdd_0=function(e){!function(e,t){eRe(mVe(e.this$01),gHe(t))}(this,Pn(e,26))},i.delegateGet=function(e){var t;return Fn(t=Pn(vRe(mVe(this.this$01),e),86).eRawType,87)?Pn(t,26):(HBe(),TBe)},i.delegateRemove=function(e){var t;return Fn(t=Pn(LFe(mVe(this.this$01),e),86).eRawType,87)?Pn(t,26):(HBe(),TBe)},i.delegateSet=function(e,t){return function(e,t,n){var r,i,a;return(0!=(64&(a=Fn(i=(r=Pn(vRe(mVe(e.this$01),t),86)).eRawType,87)?Pn(i,26):(HBe(),TBe)).eFlags_0)?JMe(e.owner,a):a)==n?DHe(r):OHe(r,n),a}(this,e,Pn(t,26))},i.canContainNull=function(){return!1},i.createNotification=function(e,t,n,r,i){return null},i.delegateBasicList=function(){return new dHe(this)},i.delegateClear=function(){MFe(mVe(this.this$01))},i.delegateContains=function(e){return hHe(this,e)},i.delegateContainsAll=function(e){var t;for(t=e.iterator_0();t.hasNext_0();)if(!hHe(this,t.next_1()))return!1;return!0},i.delegateEquals=function(e){var t,n,r;if(Fn(e,14)&&(r=Pn(e,14)).size_1()==mVe(this.this$01).size_0){for(t=r.iterator_0(),n=new BFe(this);t.hasNext_0();)if(Hn(t.next_1())!==Hn(OFe(n)))return!1;return!0}return!1},i.delegateHashCode=function(){var e,t,n,r;for(t=1,e=new BFe(mVe(this.this$01));e.cursor!=e.this$01_2.size_1();)t=31*t+((n=Fn(r=Pn(OFe(e),86).eRawType,87)?Pn(r,26):(HBe(),TBe))?l$(n):0);return t},i.delegateIndexOf=function(e){var t,n,r,i;for(r=0,n=new BFe(mVe(this.this$01));n.cursor!=n.this$01_2.size_1();){if(t=Pn(OFe(n),86),Hn(e)===Hn(Fn(i=t.eRawType,87)?Pn(i,26):(HBe(),TBe)))return r;++r}return-1},i.delegateIsEmpty=function(){return 0==mVe(this.this$01).size_0},i.delegateList_1=function(){return null},i.delegateSize=function(){return mVe(this.this$01).size_0},i.delegateToArray=function(){var e,t,n,r,i,a;for(a=mVe(this.this$01).size_0,i=xg(or,g,1,a,5,1),n=0,t=new BFe(mVe(this.this$01));t.cursor!=t.this$01_2.size_1();)e=Pn(OFe(t),86),i[n++]=Fn(r=e.eRawType,87)?Pn(r,26):(HBe(),TBe);return i},i.delegateToArray_0=function(e){var t,n,r,i;for(i=mVe(this.this$01).size_0,e.lengthi&&Cg(e,i,null),n=0,t=new BFe(mVe(this.this$01));t.cursor!=t.this$01_2.size_1();)Cg(e,n++,Fn(r=Pn(OFe(t),86).eRawType,87)?Pn(r,26):(HBe(),TBe));return e},i.delegateToString=function(){var e,t,n,r,i;for((i=new Fp).string+="[",e=mVe(this.this$01),t=0,r=mVe(this.this$01).size_0;t>16)>=0?eVe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,6,n);case 9:return!this.eLiterals&&(this.eLiterals=new HUe(rBe,this,9,5)),TFe(this.eLiterals,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),EBe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),EBe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 6:return PMe(this,null,6,n);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),PFe(this.eTypeParameters,e,n);case 9:return!this.eLiterals&&(this.eLiterals=new HUe(rBe,this,9,5)),PFe(this.eLiterals,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),EBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),EBe)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return null!=this.instanceClassName&&this.instanceClassName==this.instanceTypeName;case 3:return!!nVe(this);case 4:return!!wHe(this);case 5:return null!=this.instanceTypeName&&this.instanceTypeName!=this.instanceClassName&&this.instanceTypeName!=this.generatedInstanceClassName;case 6:return!!Jje(this);case 7:return!!this.eTypeParameters&&0!=this.eTypeParameters.size_0;case 8:return 0==(256&this.eFlags);case 9:return!!this.eLiterals&&0!=this.eLiterals.size_0}return LMe(this,e-SVe((HBe(),EBe)),vVe(Pn(hNe(this,16),26)||EBe,e))},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void lVe(this,An(t));case 2:return void aVe(this,An(t));case 5:return void oVe(this,An(t));case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),MFe(this.eTypeParameters),!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),void nRe(this.eTypeParameters,Pn(t,15));case 8:return void yHe(this,Nf(Nn(t)));case 9:return!this.eLiterals&&(this.eLiterals=new HUe(rBe,this,9,5)),MFe(this.eLiterals),!this.eLiterals&&(this.eLiterals=new HUe(rBe,this,9,5)),void nRe(this.eLiterals,Pn(t,15))}zMe(this,e-SVe((HBe(),EBe)),vVe(Pn(hNe(this,16),26)||EBe,e),t)},i.eStaticClass=function(){return HBe(),EBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return Fn(this.eContainer,179)&&(Pn(this.eContainer,179).eNameToEClassifierMap=null),void DLe(this,null);case 2:return Zje(this,null),void Qje(this,this.instanceClassName);case 5:return void oVe(this,null);case 7:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,7)),void MFe(this.eTypeParameters);case 8:return void yHe(this,!0);case 9:return!this.eLiterals&&(this.eLiterals=new HUe(rBe,this,9,5)),void MFe(this.eLiterals)}AMe(this,e-SVe((HBe(),EBe)),vVe(Pn(hNe(this,16),26)||EBe,e))},i.freeze=function(){var e,t;if(this.eLiterals)for(e=0,t=this.eLiterals.size_0;e>16==5?Pn(this.eContainer,659):null}return NMe(this,e-SVe((HBe(),bBe)),vVe(Pn(hNe(this,16),26)||bBe,e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 5:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?xHe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,5,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),bBe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),bBe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 5:return PMe(this,null,5,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),bBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),bBe)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return 0!=this.value_0;case 3:return!!this.instance;case 4:return null!=this.literal;case 5:return!(this.eFlags_0>>16!=5||!Pn(this.eContainer,659))}return LMe(this,e-SVe((HBe(),bBe)),vVe(Pn(hNe(this,16),26)||bBe,e))},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void DLe(this,An(t));case 2:return void CHe(this,Pn(t,20).value_0);case 3:return void EHe(this,Pn(t,1912));case 4:return void bHe(this,An(t))}zMe(this,e-SVe((HBe(),bBe)),vVe(Pn(hNe(this,16),26)||bBe,e),t)},i.eStaticClass=function(){return HBe(),bBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void DLe(this,null);case 2:return void CHe(this,0);case 3:return void EHe(this,null);case 4:return void bHe(this,null)}AMe(this,e-SVe((HBe(),bBe)),vVe(Pn(hNe(this,16),26)||bBe,e))},i.toString_0=function(){var e;return null==(e=this.literal)?this.name_0:e},i.instance=null,i.literal=null,i.value_0=0,Qn("org.eclipse.emf.ecore.impl","EEnumLiteralImpl",565);var kHe,$He,IHe,THe=tr("org.eclipse.emf.ecore.impl","EFactoryImpl/InternalEDateTimeFormat");function PHe(e,t){return function(e,t,n){var r,i,a,s,o,l,c,u,h,g,f,d,p;for(!n&&(d=t.jsdate.getTimezoneOffset(),(p=new ph).standardOffset=d,p.timezoneID=0==(g=d)?"Etc/GMT":(g<0?(g=-g,f="Etc/GMT-"):f="Etc/GMT+",f+yh(g)),p.tzNames=xg(Mp,$,2,2,6,1),p.tzNames[0]=_h(d),p.tzNames[1]=_h(d),n=p),i=6e4*(t.jsdate.getTimezoneOffset()-n.standardOffset),l=o=new kh(Hg(Xg(t.jsdate.getTime()),i)),o.jsdate.getTimezoneOffset()!=t.jsdate.getTimezoneOffset()&&(i>0?i-=864e5:i+=864e5,l=new kh(Hg(Xg(t.jsdate.getTime()),i))),u=new Zp,c=e.pattern.length,a=0;a=97&&r<=122||r>=65&&r<=90){for(s=a+1;s=c)throw Vg(new gd("Missing trailing '"));s+10)){if(a=-1,32==ep(h.text_0,0)){if(g=u[0],ah(t,u),u[0]>g)continue}else if(gp(t,h.text_0,u[0])){u[0]+=h.text_0.length;continue}return 0}if(a<0&&h.abutStart&&(a=c,s=u[0],i=0),a>=0){if(l=h.count,c==a&&0==(l-=i++))return 0;if(!oh(t,u,h,l,o)){c=a-1,u[0]=s;continue}}else if(a=-1,!oh(t,u,h,0,o))return 0}return function(e,t){var n,i,a,s,o,l;if(0==e.era&&e.year>0&&(e.year=-(e.year-1)),e.year>ee&&bh(t,e.year-k),o=t.jsdate.getDate(),xh(t,1),e.month>=0&&function(e,t){var n;n=e.jsdate.getHours(),e.jsdate.setMonth(t),vh(e,n)}(t,e.month),e.dayOfMonth>=0?xh(t,e.dayOfMonth):e.month>=0?(i=35-new Sh(t.jsdate.getFullYear()-k,t.jsdate.getMonth(),35).jsdate.getDate(),xh(t,r.Math.min(i,o))):xh(t,o),e.hours<0&&(e.hours=t.jsdate.getHours()),e.ampm>0&&e.hours<12&&(e.hours+=12),function(e,t){e.jsdate.setHours(t),vh(e,t)}(t,24==e.hours&&e.midnightIs24?0:e.hours),e.minutes>=0&&function(e,t){var n;n=e.jsdate.getHours()+(t/60|0),e.jsdate.setMinutes(t),vh(e,n)}(t,e.minutes),e.seconds>=0&&function(e,t){var n;n=e.jsdate.getHours()+(t/3600|0),e.jsdate.setSeconds(t),vh(e,n)}(t,e.seconds),e.milliseconds>=0&&Eh(t,Hg(tf(Kg(Xg(t.jsdate.getTime()),Y),Y),e.milliseconds)),e.ambiguousYear&&(bh(a=new Ch,a.jsdate.getFullYear()-k-80),Qg(Xg(t.jsdate.getTime()),Xg(a.jsdate.getTime()))&&bh(t,a.jsdate.getFullYear()-k+100)),e.dayOfWeek>=0)if(-1==e.dayOfMonth)(n=(7+e.dayOfWeek-t.jsdate.getDay())%7)>3&&(n-=7),l=t.jsdate.getMonth(),xh(t,t.jsdate.getDate()+n),t.jsdate.getMonth()!=l&&xh(t,t.jsdate.getDate()+(n>0?-7:7));else if(t.jsdate.getDay()!=e.dayOfWeek)return!1;return e.tzOffset>ee&&(s=t.jsdate.getTimezoneOffset(),Eh(t,Hg(Xg(t.jsdate.getTime()),60*(e.tzOffset-s)*Y))),!0}(o,n)?u[0]:0}(e,t,a=new Sh((i=new Ch).jsdate.getFullYear()-k,i.jsdate.getMonth(),i.jsdate.getDate())))||n>16==-15&&e.eContainer.eNotificationRequired()&&gFe(new gUe(e.eContainer,9,13,n,e.eRawType,zVe(AUe(Pn(e.eContainer,58)),e))):Fn(e.eContainer,87)&&e.eFlags_0>>16==-23&&e.eContainer.eNotificationRequired()&&(Fn(t=e.eRawType,87)||(HBe(),t=TBe),Fn(n,87)||(HBe(),n=TBe),gFe(new gUe(e.eContainer,9,10,n,t,zVe(mVe(Pn(e.eContainer,26)),e)))))),e.eRawType}function RHe(e){return!e.eTypeArguments&&(e.eTypeArguments=new GVe(iBe,e,1)),e.eTypeArguments}function FHe(e,t){var n,r,i,a;if(t){for(a=!(i=Fn(e.eContainer,87)||Fn(e.eContainer,97))&&Fn(e.eContainer,321),n=new BFe((!t.eBounds&&(t.eBounds=new vWe(t,iBe,t)),t.eBounds));n.cursor!=n.this$01_2.size_1();)if(r=DHe(Pn(OFe(n),86)),i?Fn(r,87):a?Fn(r,148):r)return r;return i?(HBe(),TBe):(HBe(),kBe)}return null}function OHe(e,t){var n,r;r=e.eClassifier,n=function(e,t,n){var r,i;return i=e.eClassifier,e.eClassifier=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&(r=new hUe(e,1,5,i,e.eClassifier),n?hFe(n,r):n=r),n}(e,t,null),r!=t&&!e.eTypeParameter&&(n=BHe(e,t,n)),n&&n.dispatch_0()}function GHe(e,t){var n;t!=e.eLowerBound?(n=null,e.eLowerBound&&(n=jMe(e.eLowerBound,e,-4,n)),t&&(n=BMe(t,e,-4,n)),(n=LHe(e,t,n))&&n.dispatch_0()):0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,3,t,t))}function BHe(e,t,n){var r,i,a,s,o;if(o=e.eRawType,!t&&(t=kHe),e.eRawType=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&(s=new hUe(e,1,2,o,e.eRawType),n?n.add_4(s):n=s),o!=t)if(Fn(e.eContainer,283))e.eFlags_0>>16==-10?n=Pn(e.eContainer,283).setEType(t,n):e.eFlags_0>>16==-15&&(!t&&(HBe(),t=kBe),!o&&(HBe(),o=kBe),e.eContainer.eNotificationRequired()&&(s=new fUe(e.eContainer,1,13,o,t,zVe(AUe(Pn(e.eContainer,58)),e),!1),n?n.add_4(s):n=s));else if(Fn(e.eContainer,87))e.eFlags_0>>16==-23&&(Fn(t,87)||(HBe(),t=TBe),Fn(o,87)||(HBe(),o=TBe),e.eContainer.eNotificationRequired()&&(s=new fUe(e.eContainer,1,10,o,t,zVe(mVe(Pn(e.eContainer,26)),e),!1),n?n.add_4(s):n=s));else if(Fn(e.eContainer,438))for(!(a=Pn(e.eContainer,814)).eGenericTypes&&(a.eGenericTypes=new CWe(new xWe)),i=new SWe(new by(new wy(a.eGenericTypes.this$11).this$01));i.val$delegateIterator2.hasNext;)n=BHe(r=Pn(xy(i.val$delegateIterator2).getKey(),86),FHe(r,a),n);return n}function jHe(e,t){var n;t!=e.eTypeParameter?(e.eTypeParameter&&bWe(mWe(e.eTypeParameter),e),t&&(!t.eGenericTypes&&(t.eGenericTypes=new CWe(new xWe)),EWe(t.eGenericTypes,e)),(n=function(e,t,n){var r,i;return i=e.eTypeParameter,e.eTypeParameter=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&(r=new hUe(e,1,4,i,t),n?n.add_4(r):n=r),i!=t&&(n=BHe(e,t?FHe(e,t):e.eClassifier,n)),n}(e,t,null))&&n.dispatch_0()):0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,4,t,t))}function VHe(e,t){var n;t!=e.eUpperBound?(n=null,e.eUpperBound&&(n=jMe(e.eUpperBound,e,-1,n)),t&&(n=BMe(t,e,-1,n)),(n=zHe(e,t,n))&&n.dispatch_0()):0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,0,t,t))}function HHe(e,t){var n,r,i,a,s,o,l;if(e.eClassifier){if(l=null,null!=(o=e.eClassifier.getName())?t.string+=""+o:null!=(s=e.eClassifier.getInstanceTypeName())&&(-1!=(a=sp(s,mp(91)))?(l=s.substr(a),t.string+=""+dp(null==s?"null":(Qk(s),s),0,a)):t.string+=""+s),e.eTypeArguments&&0!=e.eTypeArguments.size_0){for(i=!0,t.string+="<",r=new BFe(e.eTypeArguments);r.cursor!=r.this$01_2.size_1();)n=Pn(OFe(r),86),i?i=!1:t.string+=", ",HHe(n,t);t.string+=">"}null!=l&&(t.string+=""+l)}else e.eTypeParameter?null!=(o=e.eTypeParameter.name_0)&&(t.string+=""+o):(t.string+="?",e.eLowerBound?(t.string+=" super ",HHe(e.eLowerBound,t)):e.eUpperBound&&(t.string+=" extends ",HHe(e.eUpperBound,t)))}function UHe(){this.eRawType=kHe}function qHe(e,t,n){e.listIterator_1(t).add_1(n)}function WHe(){WHe=En,$He=new hXe}function KHe(e){return Fn(e,97)&&0!=(Pn(e,17).eFlags&Dt)}function YHe(e){return null==e.eStructuralFeatures?(ZHe(),ZHe(),IHe):e.resolve_0()?e.newResolvingListIterator():e.newNonResolvingListIterator()}function XHe(e,t){WHe(),this.eObject=e,this.eStructuralFeatures=t}function JHe(e,t){WHe(),XHe.call(this,e,t)}function ZHe(){ZHe=En,IHe=new fXe}function QHe(e){var t;if(e.prepared>1||e.hasNext_0())return++e.cursor,e.prepared=0,t=e.preparedResult,e.hasNext_0(),t;throw Vg(new lE)}function eUe(e){var t,n;if(e.isHandlingFeatureMap){for(;e.valueListIndex0;){if(Fn(n=(t=Pn(e.valueList.get_0(e.valueListIndex-1),71)).getEStructuralFeature(),97)&&0!=(Pn(n,17).eFlags&Dt)&&(!e.featureFilter||n.getContainerClass()!=KPe||0!=n.getFeatureID_0())&&null!=t.getValue())return!0;--e.valueListIndex}return!1}return e.valueListIndex>0}function rUe(e,t){var n,r;if(e.isHandlingFeatureMap){for(;t.hasPrevious();)if(Fn(r=(n=Pn(t.previous_0(),71)).getEStructuralFeature(),97)&&0!=(Pn(r,17).eFlags&Dt)&&(!e.featureFilter||r.getContainerClass()!=KPe||0!=r.getFeatureID_0())&&null!=n.getValue())return t.next_1(),!0;return!1}return t.hasPrevious()}function iUe(e,t){ZHe(),this.eObject=e,this.eStructuralFeatures=t}function aUe(e,t){ZHe(),iUe.call(this,e,t)}function sUe(e,t){ZHe(),aUe.call(this,e,t)}function oUe(e,t){ZHe(),iUe.call(this,e,t)}function lUe(e){var t;return e.feature||-1==e.featureID||(t=e.notifier.eClass_0(),e.feature=vVe(t,e.featureID)),e.feature}function cUe(e,t,n,r){yFe.call(this,1,n,r),this.notifier=e,this.featureID=t}function uUe(e,t,n,r){mFe.call(this,1,n,r),this.notifier=e,this.featureID=t}function hUe(e,t,n,r,i){gUe.call(this,e,t,n,r,i,-1)}function gUe(e,t,n,r,i,a){wFe.call(this,t,r,i,a),this.notifier=e,this.featureID=n}function fUe(e,t,n,r,i,a,s){vFe.call(this,t,r,i,a,s),this.notifier=e,this.featureID=n}function dUe(e,t,n,r,i){xFe.call(this,t,r,i),this.notifier=e,this.featureID=n}function pUe(e,t,n,r,i){this.eventType=t,this.oldSimplePrimitiveValue=r,this.newSimplePrimitiveValue=i,this.position=-1,this.primitiveType=1,this.notifier=e,this.feature=n}function _Ue(e,t,n,r,i,a){pUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function yUe(e,t,n,r,i){this.eventType=t,this.oldSimplePrimitiveValue=r,this.newSimplePrimitiveValue=i,this.position=-1,this.primitiveType=2,this.notifier=e,this.feature=n}function mUe(e,t,n,r,i,a){yUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function wUe(e,t,n,r,i){yFe.call(this,t,r,i),this.notifier=e,this.feature=n}function vUe(e,t,n,r,i,a){wUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function xUe(e,t,n,r,i){this.eventType=t,this.oldIEEEPrimitiveValue=r,this.newIEEEPrimitiveValue=i,this.position=-1,this.primitiveType=4,this.notifier=e,this.feature=n}function EUe(e,t,n,r,i,a){xUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function bUe(e,t,n,r,i){mFe.call(this,t,r,i),this.notifier=e,this.feature=n}function CUe(e,t,n,r,i,a){bUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function SUe(e,t,n,r,i){this.eventType=t,this.oldSimplePrimitiveValue=r,this.newSimplePrimitiveValue=i,this.position=-1,this.primitiveType=6,this.notifier=e,this.feature=n}function kUe(e,t,n,r,i,a){SUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function $Ue(e,t,n,r,i){IUe.call(this,e,t,n,r,i,-1)}function IUe(e,t,n,r,i,a){wFe.call(this,t,r,i,a),this.notifier=e,this.feature=n}function TUe(e,t,n,r,i,a){IUe.call(this,e,t,n,r,i,a?-2:-1)}function PUe(e,t,n,r,i){this.eventType=t,this.oldSimplePrimitiveValue=r,this.newSimplePrimitiveValue=i,this.position=-1,this.primitiveType=7,this.notifier=e,this.feature=n}function MUe(e,t,n,r,i,a){PUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function NUe(e,t,n,r,i){xFe.call(this,t,r,i),this.notifier=e,this.feature=n}function LUe(e,t,n,r,i,a){NUe.call(this,e,t,n,r,i),a&&(this.position=-2)}function zUe(e,t){var n;return e.eFlags_0>>16==10?e.eContainer.eInverseRemove(e,11,JGe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(HBe(),PBe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function AUe(e){return e.eGenericExceptions||(e.eGenericExceptions=new jUe(e,iBe,e),!e.eExceptions&&(e.eExceptions=new OUe(e,e))),e.eGenericExceptions}function DUe(){Ije.call(this)}function RUe(e,t){var n,r;for(r=new BFe(e);r.cursor!=r.this$01_2.size_1();)if(n=Pn(OFe(r),138),Hn(t)===Hn(n))return!0;return!1}function FUe(e){var t;return jBe(),OHe(t=new UHe,e),t}function OUe(e,t){this.this$01=e,uHe.call(this,t)}function GUe(e){this.this$11=e}function BUe(e){var t,n;for(n=new BFe(e);n.cursor!=n.this$01_2.size_1();)if((t=Pn(OFe(n),86)).eTypeParameter||0!=(!t.eTypeArguments&&(t.eTypeArguments=new GVe(iBe,t,1)),t.eTypeArguments).size_0)return!0;return!1}function jUe(e,t,n){this.this$01=e,BVe.call(this,t,n,14)}function VUe(e,t){this.this$01=e,this.val$factory2=t}function HUe(e,t,n,r){GVe.call(this,e,t,n),this.inverseFeatureID=r}function UUe(e,t,n,r){HUe.call(this,e,t,n,r)}function qUe(e,t,n){this.this$01=e,UUe.call(this,t,n,5,6)}function WUe(){}function KUe(e,t){var n,r;return Fn(n=sx(e.stringMap,t),234)?((r=Pn(n,234)).getNsURI(),r.getEFactoryInstance()):Fn(n,490)?r=Pn(n,1910).val$factory2:null}function YUe(e,t){var n,r;return Fn(n=null==t?ai(Zv(e.hashCodeMap,null)):sx(e.stringMap,t),234)?((r=Pn(n,234)).getNsURI(),r):Fn(n,490)?((r=Pn(n,1910).this$01)&&(null==r.nsURI||(null==t?Qv(e.hashCodeMap,null,r):ox(e.stringMap,t,r))),r):null}function XUe(){Rv.call(this)}function JUe(e,t){var n;return e.eFlags_0>>16==10?e.eContainer.eInverseRemove(e,12,aBe,t):(n=eqe(Pn(vVe(Pn(hNe(e,16),26)||(HBe(),LBe),e.eFlags_0>>16),17)),e.eContainer.eInverseRemove(e,n.featureID,n.containerClass,t))}function ZUe(){Ije.call(this)}function QUe(e){var t;return e.eReferenceType||Fn(t=e.eType,87)&&(e.eReferenceType=Pn(t,26)),e.eReferenceType}function eqe(e){var t;return e.eOpposite&&0!=(64&e.eOpposite.eFlags_0)&&(t=e.eOpposite,e.eOpposite=Pn(JMe(e,t),17),e.eOpposite!=t&&0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,9,21,t,e.eOpposite))),e.eOpposite}function tqe(e){var t;return(!e.eReferenceType||0==(1&e.eFlags)&&0!=(64&e.eReferenceType.eFlags_0))&&Fn(t=wje(e),87)&&(e.eReferenceType=Pn(t,26)),e.eReferenceType}function nqe(e,t){var n;n=0!=(e.eFlags&Dt),t?e.eFlags|=Dt:e.eFlags&=-32769,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,18,n,t))}function rqe(e,t){var n;n=e.eOpposite,e.eOpposite=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,21,n,e.eOpposite))}function iqe(e,t){var n;n=0!=(e.eFlags&we),t?e.eFlags|=we:e.eFlags&=-65537,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new dUe(e,1,20,n,t))}function aqe(){Hje.call(this),this.eFlags|=we}function sqe(e,t){var n;n=e.key,e.key=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,0,n,e.key))}function oqe(e,t){var n;n=e.value_0,e.value_0=t,0!=(4&e.eFlags_0)&&0==(1&e.eFlags_0)&&IMe(e,new hUe(e,1,1,n,e.value_0))}function lqe(){}bn(482,1,{1984:1},NHe),Qn("org.eclipse.emf.ecore.impl","EFactoryImpl/1ClientInternalEDateTimeFormat",482),bn(240,116,{104:1,91:1,89:1,86:1,55:1,107:1,48:1,96:1,240:1,113:1,116:1},UHe),i.eBasicSetContainer_0=function(e,t,n){var r;return n=PMe(this,e,t,n),this.eTypeParameter&&Fn(e,170)&&(r=FHe(this,this.eTypeParameter))!=this.eRawType&&(n=BHe(this,r,n)),n},i.eGet=function(e,t,n){switch(e){case 0:return this.eUpperBound;case 1:return!this.eTypeArguments&&(this.eTypeArguments=new GVe(iBe,this,1)),this.eTypeArguments;case 2:return t?DHe(this):this.eRawType;case 3:return this.eLowerBound;case 4:return this.eTypeParameter;case 5:return t?AHe(this):this.eClassifier}return NMe(this,e-SVe((HBe(),SBe)),vVe(Pn(hNe(this,16),26)||SBe,e),t,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return zHe(this,null,n);case 1:return!this.eTypeArguments&&(this.eTypeArguments=new GVe(iBe,this,1)),PFe(this.eTypeArguments,e,n);case 3:return LHe(this,null,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),SBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),SBe)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eUpperBound;case 1:return!!this.eTypeArguments&&0!=this.eTypeArguments.size_0;case 2:return!!this.eRawType;case 3:return!!this.eLowerBound;case 4:return!!this.eTypeParameter;case 5:return!!this.eClassifier}return LMe(this,e-SVe((HBe(),SBe)),vVe(Pn(hNe(this,16),26)||SBe,e))},i.eSet=function(e,t){switch(e){case 0:return void VHe(this,Pn(t,86));case 1:return!this.eTypeArguments&&(this.eTypeArguments=new GVe(iBe,this,1)),MFe(this.eTypeArguments),!this.eTypeArguments&&(this.eTypeArguments=new GVe(iBe,this,1)),void nRe(this.eTypeArguments,Pn(t,15));case 3:return void GHe(this,Pn(t,86));case 4:return void jHe(this,Pn(t,814));case 5:return void OHe(this,Pn(t,138))}zMe(this,e-SVe((HBe(),SBe)),vVe(Pn(hNe(this,16),26)||SBe,e),t)},i.eStaticClass=function(){return HBe(),SBe},i.eUnset=function(e){switch(e){case 0:return void VHe(this,null);case 1:return!this.eTypeArguments&&(this.eTypeArguments=new GVe(iBe,this,1)),void MFe(this.eTypeArguments);case 3:return void GHe(this,null);case 4:return void jHe(this,null);case 5:return void OHe(this,null)}AMe(this,e-SVe((HBe(),SBe)),vVe(Pn(hNe(this,16),26)||SBe,e))},i.toString_0=function(){var e;return(e=new Qp(rNe(this))).string+=" (expression: ",HHe(this,e),e.string+=")",e.string},Qn("org.eclipse.emf.ecore.impl","EGenericTypeImpl",240),bn(1950,1936,sn),i.addUnique=function(e,t){qHe(this,e,t)},i.basicAdd=function(e,t){return qHe(this,this.size_1(),e),t},i.basicGet=function(e){return Rl(this.basicList(),e)},i.basicIterator=function(){return this.basicListIterator()},i.basicList=function(){return new GKe(this)},i.basicListIterator=function(){return this.basicListIterator_0(0)},i.basicListIterator_0=function(e){return this.basicList().listIterator_1(e)},i.basicRemove=function(e,t){return hi(this,e,!0),t},i.move=function(e,t){var n;return n=Fl(this,t),this.listIterator_1(e).add_1(n),n},i.move_0=function(e,t){hi(this,t,!0),this.listIterator_1(e).add_1(t)},Qn("org.eclipse.emf.ecore.util","AbstractSequentialInternalEList",1950),bn(481,1950,sn,XHe),i.basicGet=function(e){return Rl(this.basicList(),e)},i.basicIterator=function(){return null==this.eStructuralFeatures?(ZHe(),ZHe(),IHe):this.newNonResolvingListIterator()},i.basicList=function(){return new gXe(this.eObject,this.eStructuralFeatures)},i.basicListIterator=function(){return null==this.eStructuralFeatures?(ZHe(),ZHe(),IHe):this.newNonResolvingListIterator()},i.basicListIterator_0=function(e){var t,n;if(null==this.eStructuralFeatures){if(e<0||e>1)throw Vg(new Ef("index="+e+", size=0"));return ZHe(),ZHe(),IHe}for(n=this.newNonResolvingListIterator(),t=0;t0;)if(t=this.eStructuralFeatures[--this.featureCursor],(!this.featureFilter||t.getContainerClass()!=KPe||0!=t.getFeatureID_0())&&(!this.useIsSet()||this.eObject.eIsSet_0(t)))if(a=this.eObject.eGet_1(t,this.resolve_0()),this.isHandlingFeatureMap=(rJe(),Pn(t,65).isFeatureMap_0()),this.isHandlingFeatureMap||t.isMany()){if(this.resolve_0()?(r=Pn(a,14),this.valueList=r):(r=Pn(a,67),this.valueList=this.valueInternalEList=r),Fn(this.valueList,53)?(this.valueListSize=this.valueList.size_1(),this.valueListIndex=this.valueListSize):this.values=this.valueInternalEList?this.valueInternalEList.basicListIterator_0(this.valueList.size_1()):this.valueList.listIterator_1(this.valueList.size_1()),this.values?rUe(this,this.values):nUe(this))return i=this.values?this.values.previous_0():this.valueInternalEList?this.valueInternalEList.basicGet(--this.valueListIndex):this.valueList.get_0(--this.valueListIndex),this.isHandlingFeatureMap?((e=Pn(i,71)).getEStructuralFeature(),n=e.getValue(),this.preparedResult=n):(n=i,this.preparedResult=n),this.prepared=-3,!0}else if(null!=a)return this.valueList=null,this.values=null,n=a,this.preparedResult=n,this.prepared=-2,!0;return this.valueList=null,this.values=null,this.prepared=-1,!1}},i.next_1=function(){return QHe(this)},i.nextIndex_0=function(){return this.cursor},i.previous_0=function(){var e;if(this.prepared<-1||this.hasPrevious())return--this.cursor,this.prepared=0,e=this.preparedResult,this.hasPrevious(),e;throw Vg(new lE)},i.previousIndex=function(){return this.cursor-1},i.remove=function(){throw Vg(new i_)},i.resolve_0=function(){return!1},i.set_1=function(e){throw Vg(new i_)},i.useIsSet=function(){return!0},i.cursor=0,i.featureCursor=0,i.isHandlingFeatureMap=!1,i.prepared=0,i.valueListIndex=0,i.valueListSize=0,Qn("org.eclipse.emf.ecore.util","EContentsEList/FeatureIteratorImpl",277),bn(689,277,on,aUe),i.resolve_0=function(){return!0},Qn("org.eclipse.emf.ecore.util","EContentsEList/ResolvingFeatureIteratorImpl",689),bn(1130,689,on,sUe),i.useIsSet=function(){return!1},Qn("org.eclipse.emf.ecore.impl","ENamedElementImpl/1/1",1130),bn(1131,277,on,oUe),i.useIsSet=function(){return!1},Qn("org.eclipse.emf.ecore.impl","ENamedElementImpl/1/2",1131),bn(35,142,Vt,cUe,uUe,hUe,gUe,fUe,dUe,pUe,_Ue,yUe,mUe,wUe,vUe,xUe,EUe,bUe,CUe,SUe,kUe,$Ue,IUe,TUe,PUe,MUe,NUe,LUe),i.getFeature=function(){return lUe(this)},i.getFeatureDefaultValue=function(){var e;return(e=lUe(this))?e.getDefaultValue():null},i.getFeatureID=function(e){return-1==this.featureID&&this.feature&&(this.featureID=this.notifier.eDerivedStructuralFeatureID(this.feature.getFeatureID_0(),this.feature.getContainerClass())),this.notifier.eBaseStructuralFeatureID(this.featureID,e)},i.getNotifier=function(){return this.notifier},i.isFeatureUnsettable=function(){var e;return!!(e=lUe(this))&&e.isUnsettable()},i.featureID=-1,Qn("org.eclipse.emf.ecore.impl","ENotificationImpl",35),bn(395,283,{104:1,91:1,89:1,147:1,191:1,55:1,58:1,107:1,466:1,48:1,96:1,150:1,395:1,283:1,113:1,116:1},DUe),i.eBasicRemoveFromContainerFeature=function(e){return zUe(this,e)},i.eGet=function(e,t,n){var r;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return Mf(),0!=(256&this.eFlags);case 3:return Mf(),0!=(512&this.eFlags);case 4:return Cd(this.lowerBound);case 5:return Cd(this.upperBound);case 6:return Mf(),(r=this.upperBound)>1||-1==r;case 7:return Mf(),this.lowerBound>=1;case 8:return t?wje(this):this.eType;case 9:return this.eGenericType;case 10:return this.eFlags_0>>16==10?Pn(this.eContainer,26):null;case 11:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,11)),this.eTypeParameters;case 12:return!this.eParameters&&(this.eParameters=new HUe(lBe,this,12,10)),this.eParameters;case 13:return!this.eExceptions&&(this.eExceptions=new OUe(this,this)),this.eExceptions;case 14:return AUe(this)}return NMe(this,e-SVe((HBe(),PBe)),vVe(Pn(hNe(this,16),26)||PBe,e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 10:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?zUe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,10,n);case 12:return!this.eParameters&&(this.eParameters=new HUe(lBe,this,12,10)),TFe(this.eParameters,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),PBe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),PBe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 9:return mje(this,n);case 10:return PMe(this,null,10,n);case 11:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,11)),PFe(this.eTypeParameters,e,n);case 12:return!this.eParameters&&(this.eParameters=new HUe(lBe,this,12,10)),PFe(this.eParameters,e,n);case 14:return PFe(AUe(this),e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),PBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),PBe)),e,n)},i.eIsSet=function(e){var t;switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return 0==(256&this.eFlags);case 3:return 0==(512&this.eFlags);case 4:return 0!=this.lowerBound;case 5:return 1!=this.upperBound;case 6:return(t=this.upperBound)>1||-1==t;case 7:return this.lowerBound>=1;case 8:return!!this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0;case 9:return!(!this.eGenericType||this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0);case 10:return!(this.eFlags_0>>16!=10||!Pn(this.eContainer,26));case 11:return!!this.eTypeParameters&&0!=this.eTypeParameters.size_0;case 12:return!!this.eParameters&&0!=this.eParameters.size_0;case 13:return!(!this.eExceptions||0==AUe(this.eExceptions.this$01).size_0||this.eGenericExceptions&&BUe(this.eGenericExceptions));case 14:return!!this.eGenericExceptions&&BUe(this.eGenericExceptions)}return LMe(this,e-SVe((HBe(),PBe)),vVe(Pn(hNe(this,16),26)||PBe,e))},i.eSet=function(e,t){var n;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void DLe(this,An(t));case 2:return void Cje(this,Nf(Nn(t)));case 3:return void Sje(this,Nf(Nn(t)));case 4:return void bje(this,Pn(t,20).value_0);case 5:return void kje(this,Pn(t,20).value_0);case 8:return void xje(this,Pn(t,138));case 9:return void((n=vje(this,Pn(t,86),null))&&n.dispatch_0());case 11:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,11)),MFe(this.eTypeParameters),!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,11)),void nRe(this.eTypeParameters,Pn(t,15));case 12:return!this.eParameters&&(this.eParameters=new HUe(lBe,this,12,10)),MFe(this.eParameters),!this.eParameters&&(this.eParameters=new HUe(lBe,this,12,10)),void nRe(this.eParameters,Pn(t,15));case 13:return!this.eExceptions&&(this.eExceptions=new OUe(this,this)),cFe(this.eExceptions),!this.eExceptions&&(this.eExceptions=new OUe(this,this)),void nRe(this.eExceptions,Pn(t,15));case 14:return MFe(AUe(this)),void nRe(AUe(this),Pn(t,15))}zMe(this,e-SVe((HBe(),PBe)),vVe(Pn(hNe(this,16),26)||PBe,e),t)},i.eStaticClass=function(){return HBe(),PBe},i.eUnset=function(e){var t;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void DLe(this,null);case 2:return void Cje(this,!0);case 3:return void Sje(this,!0);case 4:return void bje(this,0);case 5:return void kje(this,1);case 8:return void xje(this,null);case 9:return void((t=vje(this,null,null))&&t.dispatch_0());case 11:return!this.eTypeParameters&&(this.eTypeParameters=new yXe(OBe,this,11)),void MFe(this.eTypeParameters);case 12:return!this.eParameters&&(this.eParameters=new HUe(lBe,this,12,10)),void MFe(this.eParameters);case 13:return void(this.eExceptions&&cFe(this.eExceptions));case 14:return void(this.eGenericExceptions&&MFe(this.eGenericExceptions))}AMe(this,e-SVe((HBe(),PBe)),vVe(Pn(hNe(this,16),26)||PBe,e))},i.freeze=function(){var e,t;if(this.eParameters)for(e=0,t=this.eParameters.size_0;er&&Cg(e,r,null),n=0,t=new BFe(AUe(this.this$01));t.cursor!=t.this$01_2.size_1();)Cg(e,n++,Pn(OFe(t),86).eRawType||(HBe(),kBe));return e},i.delegateToString=function(){var e,t,n,r;for((r=new Fp).string+="[",e=AUe(this.this$01),t=0,n=AUe(this.this$01).size_0;t1);case 5:return NVe(this,e,t,n,r,this.size_0-Pn(n,14).size_1()>0);default:return new fUe(this.owner,e,this.featureID,t,n,r,!0)}},i.hasShadow=function(){return!0},i.isSet_0=function(){return BUe(this)},i.unset=function(){MFe(this)},Qn("org.eclipse.emf.ecore.impl","EOperationImpl/2",1312),bn(490,1,{1910:1,490:1},VUe),Qn("org.eclipse.emf.ecore.impl","EPackageImpl/1",490),bn(16,82,nn,HUe),i.getInverseFeatureClass=function(){return this.dataClass},i.getInverseFeatureID=function(){return this.inverseFeatureID},i.hasNavigableInverse=function(){return!0},i.inverseFeatureID=0,Qn("org.eclipse.emf.ecore.util","EObjectContainmentWithInverseEList",16),bn(350,16,nn,UUe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectContainmentWithInverseEList/Resolving",350),bn(298,350,nn,qUe),i.didChange=function(){this.this$01.eNameToEClassifierMap=null},Qn("org.eclipse.emf.ecore.impl","EPackageImpl/2",298),bn(1201,1,{},WUe),Qn("org.eclipse.emf.ecore.impl","EPackageImpl/3",1201),bn(705,44,Ne,XUe),i.containsKey=function(e){return jn(e)?hy(this,e):!!Zv(this.hashCodeMap,e)},Qn("org.eclipse.emf.ecore.impl","EPackageRegistryImpl",705),bn(501,283,{104:1,91:1,89:1,147:1,191:1,55:1,1986:1,107:1,466:1,48:1,96:1,150:1,501:1,283:1,113:1,116:1},ZUe),i.eBasicRemoveFromContainerFeature=function(e){return JUe(this,e)},i.eGet=function(e,t,n){var r;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return Mf(),0!=(256&this.eFlags);case 3:return Mf(),0!=(512&this.eFlags);case 4:return Cd(this.lowerBound);case 5:return Cd(this.upperBound);case 6:return Mf(),(r=this.upperBound)>1||-1==r;case 7:return Mf(),this.lowerBound>=1;case 8:return t?wje(this):this.eType;case 9:return this.eGenericType;case 10:return this.eFlags_0>>16==10?Pn(this.eContainer,58):null}return NMe(this,e-SVe((HBe(),LBe)),vVe(Pn(hNe(this,16),26)||LBe,e),t,n)},i.eInverseAdd_0=function(e,t,n){var r;switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),TFe(this.eAnnotations,e,n);case 10:return this.eContainer&&(n=(r=this.eFlags_0>>16)>=0?JUe(this,n):this.eContainer.eInverseRemove(this,-1-r,null,n)),PMe(this,e,10,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),LBe),t),65).getSettingDelegate().dynamicInverseAdd(this,cNe(this),t-SVe((HBe(),LBe)),e,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 9:return mje(this,n);case 10:return PMe(this,null,10,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),LBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),LBe)),e,n)},i.eIsSet=function(e){var t;switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return 0==(256&this.eFlags);case 3:return 0==(512&this.eFlags);case 4:return 0!=this.lowerBound;case 5:return 1!=this.upperBound;case 6:return(t=this.upperBound)>1||-1==t;case 7:return this.lowerBound>=1;case 8:return!!this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0;case 9:return!(!this.eGenericType||this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0);case 10:return!(this.eFlags_0>>16!=10||!Pn(this.eContainer,58))}return LMe(this,e-SVe((HBe(),LBe)),vVe(Pn(hNe(this,16),26)||LBe,e))},i.eStaticClass=function(){return HBe(),LBe},Qn("org.eclipse.emf.ecore.impl","EParameterImpl",501),bn(97,443,{104:1,91:1,89:1,147:1,191:1,55:1,17:1,170:1,65:1,107:1,466:1,48:1,96:1,150:1,97:1,443:1,283:1,113:1,116:1,665:1},aqe),i.eGet=function(e,t,n){var r,i;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return Mf(),0!=(256&this.eFlags);case 3:return Mf(),0!=(512&this.eFlags);case 4:return Cd(this.lowerBound);case 5:return Cd(this.upperBound);case 6:return Mf(),(i=this.upperBound)>1||-1==i;case 7:return Mf(),this.lowerBound>=1;case 8:return t?wje(this):this.eType;case 9:return this.eGenericType;case 10:return Mf(),0!=(this.eFlags&Kt);case 11:return Mf(),0!=(this.eFlags&Zt);case 12:return Mf(),0!=(this.eFlags&ye);case 13:return this.defaultValueLiteral;case 14:return Pje(this);case 15:return Mf(),0!=(this.eFlags&Jt);case 16:return Mf(),0!=(this.eFlags&I);case 17:return Mje(this);case 18:return Mf(),0!=(this.eFlags&Dt);case 19:return Mf(),!(!(r=eqe(this))||0==(r.eFlags&Dt));case 20:return Mf(),0!=(this.eFlags&we);case 21:return t?eqe(this):this.eOpposite;case 22:return t?tqe(this):QUe(this);case 23:return!this.eKeys&&(this.eKeys=new EXe(YGe,this,23)),this.eKeys}return NMe(this,e-SVe((HBe(),zBe)),vVe(Pn(hNe(this,16),26)||zBe,e),t,n)},i.eIsSet=function(e){var t,n;switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return 0==(256&this.eFlags);case 3:return 0==(512&this.eFlags);case 4:return 0!=this.lowerBound;case 5:return 1!=this.upperBound;case 6:return(n=this.upperBound)>1||-1==n;case 7:return this.lowerBound>=1;case 8:return!!this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0;case 9:return!(!this.eGenericType||this.eType&&!this.eGenericType.eTypeParameter&&0==RHe(this.eGenericType).size_0);case 10:return 0==(this.eFlags&Kt);case 11:return 0!=(this.eFlags&Zt);case 12:return 0!=(this.eFlags&ye);case 13:return null!=this.defaultValueLiteral;case 14:return null!=Pje(this);case 15:return 0!=(this.eFlags&Jt);case 16:return 0!=(this.eFlags&I);case 17:return!!Mje(this);case 18:return 0!=(this.eFlags&Dt);case 19:return!!(t=eqe(this))&&0!=(t.eFlags&Dt);case 20:return 0==(this.eFlags&we);case 21:return!!this.eOpposite;case 22:return!!QUe(this);case 23:return!!this.eKeys&&0!=this.eKeys.size_0}return LMe(this,e-SVe((HBe(),zBe)),vVe(Pn(hNe(this,16),26)||zBe,e))},i.eSet=function(e,t){var n,r;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void Oje(this,An(t));case 2:return void Cje(this,Nf(Nn(t)));case 3:return void Sje(this,Nf(Nn(t)));case 4:return void bje(this,Pn(t,20).value_0);case 5:return void kje(this,Pn(t,20).value_0);case 8:return void xje(this,Pn(t,138));case 9:return void((n=vje(this,Pn(t,86),null))&&n.dispatch_0());case 10:return void zje(this,Nf(Nn(t)));case 11:return void jje(this,Nf(Nn(t)));case 12:return void Gje(this,Nf(Nn(t)));case 13:return void Aje(this,An(t));case 15:return void Bje(this,Nf(Nn(t)));case 16:return void Rje(this,Nf(Nn(t)));case 18:return nqe(r=this,Nf(Nn(t))),void(Fn(r.eContainer,87)&&UVe(bVe(Pn(r.eContainer,87)),2));case 20:return void iqe(this,Nf(Nn(t)));case 21:return void rqe(this,Pn(t,17));case 23:return!this.eKeys&&(this.eKeys=new EXe(YGe,this,23)),MFe(this.eKeys),!this.eKeys&&(this.eKeys=new EXe(YGe,this,23)),void nRe(this.eKeys,Pn(t,15))}zMe(this,e-SVe((HBe(),zBe)),vVe(Pn(hNe(this,16),26)||zBe,e),t)},i.eStaticClass=function(){return HBe(),zBe},i.eUnset=function(e){var t;switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return Fn(this.eContainer,87)&&UVe(bVe(Pn(this.eContainer,87)),4),void DLe(this,null);case 2:return void Cje(this,!0);case 3:return void Sje(this,!0);case 4:return void bje(this,0);case 5:return void kje(this,1);case 8:return void xje(this,null);case 9:return void((t=vje(this,null,null))&&t.dispatch_0());case 10:return void zje(this,!0);case 11:return void jje(this,!1);case 12:return void Gje(this,!1);case 13:return this.defaultValueFactory=null,void Dje(this,null);case 15:return void Bje(this,!1);case 16:return void Rje(this,!1);case 18:return nqe(this,!1),void(Fn(this.eContainer,87)&&UVe(bVe(Pn(this.eContainer,87)),2));case 20:return void iqe(this,!0);case 21:return void rqe(this,null);case 23:return!this.eKeys&&(this.eKeys=new EXe(YGe,this,23)),void MFe(this.eKeys)}AMe(this,e-SVe((HBe(),zBe)),vVe(Pn(hNe(this,16),26)||zBe,e))},i.freeze=function(){tqe(this),fYe(XKe((BKe(),MKe),this)),wje(this),this.eFlags|=1},i.getEOpposite=function(){return eqe(this)},i.isContainer=function(){var e;return!!(e=eqe(this))&&0!=(e.eFlags&Dt)},i.isContainment=function(){return 0!=(this.eFlags&Dt)},i.isResolveProxies_0=function(){return 0!=(this.eFlags&we)},i.setEType=function(e,t){return this.eReferenceType=null,Eje(this,e,t)},i.toString_0=function(){var e;return 0!=(64&this.eFlags_0)?Vje(this):((e=new Gp(Vje(this))).string+=" (containment: ",Rp(e,0!=(this.eFlags&Dt)),e.string+=", resolveProxies: ",Rp(e,0!=(this.eFlags&we)),e.string+=")",e.string)},Qn("org.eclipse.emf.ecore.impl","EReferenceImpl",97),bn(541,116,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1,541:1,113:1,116:1},lqe),i.equals_0=function(e){return this===e},i.getKey=function(){return this.key},i.getValue=function(){return this.value_0},i.hashCode_1=function(){return l$(this)},i.setKey=function(e){!function(e,t){sqe(e,null==t?null:(Qk(t),t))}(this,An(e))},i.setValue=function(e){return function(e,t){var n;return n=e.value_0,oqe(e,t),n}(this,An(e))},i.eGet=function(e,t,n){switch(e){case 0:return this.key;case 1:return this.value_0}return NMe(this,e-SVe((HBe(),ABe)),vVe(Pn(hNe(this,16),26)||ABe,e),t,n)},i.eIsSet=function(e){switch(e){case 0:return null!=this.key;case 1:return null!=this.value_0}return LMe(this,e-SVe((HBe(),ABe)),vVe(Pn(hNe(this,16),26)||ABe,e))},i.eSet=function(e,t){var n;switch(e){case 0:return this,void sqe(this,null==(n=An(t))?null:(Qk(n),n));case 1:return void oqe(this,An(t))}zMe(this,e-SVe((HBe(),ABe)),vVe(Pn(hNe(this,16),26)||ABe,e),t)},i.eStaticClass=function(){return HBe(),ABe},i.eUnset=function(e){switch(e){case 0:return void sqe(this,null);case 1:return void oqe(this,null)}AMe(this,e-SVe((HBe(),ABe)),vVe(Pn(hNe(this,16),26)||ABe,e))},i.getHash=function(){var e;return-1==this.hash&&(e=this.key,this.hash=null==e?0:h$(e)),this.hash},i.setHash=function(e){this.hash=e},i.toString_0=function(){var e;return 0!=(64&this.eFlags_0)?rNe(this):((e=new Gp(rNe(this))).string+=" (key: ",Dp(e,this.key),e.string+=", value: ",Dp(e,this.value_0),e.string+=")",e.string)},i.hash=-1,i.key=null,i.value_0=null;var cqe,uqe,hqe,gqe,fqe,dqe,pqe,_qe,yqe,mqe,wqe=Qn("org.eclipse.emf.ecore.impl","EStringToStringMapEntryImpl",541),vqe=tr("org.eclipse.emf.ecore.util","FeatureMap/Entry/Internal");function xqe(e){this.eStructuralFeature=e}function Eqe(e,t){xqe.call(this,e),this.value_0=t}function bqe(e,t){this.feature=e,this.featureMapFeature=t}function Cqe(e,t){switch(e.style){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new AXe(e.dynamicKind,e.dataClass,t,e.feature);case 1:return new BVe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 43:return new mXe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 3:return new GVe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 45:return new yXe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 41:return new pje(Pn(wje(e.feature),26),e.dataClass,t,kVe(t.eClass_0(),e.feature));case 50:return new FXe(Pn(wje(e.feature),26),e.dataClass,t,kVe(t.eClass_0(),e.feature));case 5:return new wXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 47:return new vXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 7:return new HUe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 49:return new UUe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 9:return new _Xe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 11:return new pXe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 13:return new dXe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 15:return new yYe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 17:return new bXe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 19:return new EXe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 21:return new xXe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 23:return new OVe(e.dataClass,t,kVe(t.eClass_0(),e.feature));case 25:return new LXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 27:return new MXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 29:return new TXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 31:return new $Xe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 33:return new NXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 35:return new PXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 37:return new IXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 39:return new kXe(e.dataClass,t,kVe(t.eClass_0(),e.feature),e.inverseFeature.featureID);case 40:return new iXe(t,kVe(t.eClass_0(),e.feature));default:throw Vg(new bu("Unknown feature style: "+e.style))}}function Sqe(e,t,n){this.style=e,this.dataClass=t,this.feature=n}function kqe(e,t,n,r){this.style=e,this.dataClass=t,this.feature=n,this.inverseFeature=r}function $qe(e,t){this.style=e,this.dataClass=or,this.dynamicKind=zXe(t),this.feature=t}function Iqe(e,t,n){this.style=e,this.dataClass=or,this.dynamicKind=zXe(t),this.feature=t,this.inverseFeature=n}function Tqe(){Tqe=En,sNe(),cqe=vMe}function Pqe(e){this.feature=e}function Mqe(e,t,n,r){this.this$11=e,this.val$owner2=t,this.val$settings3=n,this.val$index4=r}function Nqe(e,t,n){Tqe(),Pqe.call(this,t),this.eClass=e,this.inverseFeature=n}function Lqe(e,t,n){Tqe(),Nqe.call(this,e,t,n)}function zqe(e,t,n){Pqe.call(this,n),this.defaultValue=e,this.intrinsicDefaultValue=t,this.notificationCreator=(Dqe(),yqe)}function Aqe(e,t,n,r){Pqe.call(this,n),this.defaultValue=e,this.intrinsicDefaultValue=t,this.notificationCreator=r}function Dqe(){Dqe=En,yqe=new Rqe,uqe=new Fqe,hqe=new Oqe,gqe=new Gqe,fqe=new Bqe,dqe=new jqe,pqe=new Vqe,_qe=new Hqe,mqe=new Uqe}function Rqe(){}function Fqe(){}function Oqe(){}function Gqe(){}function Bqe(){}function jqe(){}function Vqe(){}function Hqe(){}function Uqe(){}function qqe(e,t,n,r){Tqe(),zqe.call(this,t,n,r),this.eDataType=e}function Wqe(e,t,n,r){Tqe(),Aqe.call(this,e,t,n,r)}function Kqe(e,t,n,r){Tqe(),zqe.call(this,t,n,r),this.eDataType=e}function Yqe(e,t,n,r){Tqe(),Aqe.call(this,e,t,n,r)}function Xqe(e,t){Tqe(),Pqe.call(this,t),this.eClass=e}function Jqe(e,t,n){Pqe.call(this,t),this.eClass=e,this.inverseFeature=n}function Zqe(e,t){Tqe(),Xqe.call(this,e,t)}function Qqe(e,t){Tqe(),Zqe.call(this,e,t)}function eWe(e,t){Tqe(),Zqe.call(this,e,t)}function tWe(e,t){Tqe(),eWe.call(this,e,t)}function nWe(e,t,n){Tqe(),Jqe.call(this,e,t,n)}function rWe(e,t,n){Tqe(),nWe.call(this,e,t,n)}function iWe(e,t,n){Tqe(),nWe.call(this,e,t,n)}function aWe(e,t,n){Tqe(),iWe.call(this,e,t,n)}function sWe(e,t){Tqe(),Xqe.call(this,e,t)}function oWe(e,t){Tqe(),sWe.call(this,e,t)}function lWe(e,t,n){Tqe(),Jqe.call(this,e,t,n)}function cWe(e,t,n){Tqe(),lWe.call(this,e,t,n)}function uWe(e,t){Tqe(),Xqe.call(this,e,t)}function hWe(e,t,n){Tqe(),Jqe.call(this,e,t,n)}function gWe(e,t,n){Tqe(),hWe.call(this,e,t,n)}function fWe(e,t,n){this.this$01=e,xqe.call(this,t),this.value_0=n}function dWe(e){this.list=e}function pWe(e){this.eStructuralFeature=e,this.eDataType=Pn(wje(e),148),this.eFactory=this.eDataType.getEPackage().getEFactoryInstance()}function _We(e,t){xqe.call(this,e),this.value_0=t}function yWe(){}function mWe(e){return!e.eGenericTypes&&(e.eGenericTypes=new CWe(new xWe)),e.eGenericTypes}function wWe(){}function vWe(e,t,n){this.this$01=e,GVe.call(this,t,n,2)}function xWe(){Rv.call(this)}function EWe(e,t){return null==gy(e.this$11,t,"")}function bWe(e,t){return!!oy(e.this$11,t)&&(dy(e.this$11,t),!0)}function CWe(e){this.this$11=e}function SWe(e){this.val$delegateIterator2=e}function kWe(){Rv.call(this)}function $We(){}function IWe(){IWe=En,MWe=new xm}function TWe(){var e,t;return e=new UHe,lm(MWe,t=e),t}function PWe(){var e;dze.call(this,"http://www.eclipse.org/emf/2002/Ecore",(jBe(),dBe)),(e=this).eAttributeEClass=null,e.eAnnotationEClass=null,e.eClassEClass=null,e.eDataTypeEClass=null,e.eEnumEClass=null,e.eEnumLiteralEClass=null,e.eFactoryEClass=null,e.eClassifierEClass=null,e.eModelElementEClass=null,e.eNamedElementEClass=null,e.eObjectEClass=null,e.eOperationEClass=null,e.ePackageEClass=null,e.eParameterEClass=null,e.eReferenceEClass=null,e.eStructuralFeatureEClass=null,e.eTypedElementEClass=null,e.eStringToStringMapEntryEClass=null,e.eGenericTypeEClass=null,e.eTypeParameterEClass=null,e.eBigDecimalEDataType=null,e.eBigIntegerEDataType=null,e.eBooleanObjectEDataType=null,e.eCharacterObjectEDataType=null,e.eDateEDataType=null,e.eDiagnosticChainEDataType=null,e.eDoubleObjectEDataType=null,e.eFloatObjectEDataType=null,e.eIntegerObjectEDataType=null,e.eBooleanEDataType=null,e.eByteObjectEDataType=null,e.eByteEDataType=null,e.eByteArrayEDataType=null,e.eCharEDataType=null,e.eDoubleEDataType=null,e.eFloatEDataType=null,e.eIntEDataType=null,e.eJavaClassEDataType=null,e.eJavaObjectEDataType=null,e.eLongObjectEDataType=null,e.eMapEDataType=null,e.eShortObjectEDataType=null,e.eLongEDataType=null,e.eShortEDataType=null,e.eTreeIteratorEDataType=null,e.eInvocationTargetExceptionEDataType=null,e.eFeatureMapEntryEDataType=null,e.eEnumeratorEDataType=null,e.eFeatureMapEDataType=null,e.eStringEDataType=null,e.eeListEDataType=null,e.eResourceEDataType=null,e.eResourceSetEDataType=null,e.isCreated=!1,e.isInitialized=!1}bn(558,1,ln),i.createEntry=function(e){return this.createEntry_0(Pn(e,48))},i.createEntry_0=function(e){return this.createEntry(e)},i.equals_0=function(e){var t,n;return this===e||!!Fn(e,71)&&(t=Pn(e,71)).getEStructuralFeature()==this.eStructuralFeature&&(null==(n=this.getValue())?null==t.getValue():kn(n,t.getValue()))},i.getEStructuralFeature=function(){return this.eStructuralFeature},i.hashCode_1=function(){var e;return e=this.getValue(),In(this.eStructuralFeature)^(null==e?0:In(e))},i.toString_0=function(){var e,t;return t=tVe((e=this.eStructuralFeature).getEContainingClass()).getNsPrefix(),e.getName(),(null!=t&&0!=t.length?t+":"+e.getName():e.getName())+"="+this.getValue()},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/BasicFeatureMapEntry",558),bn(759,558,ln,Eqe),i.createEntry_0=function(e){return new Eqe(this.eStructuralFeature,e)},i.getValue=function(){return this.value_0},i.inverseAdd_0=function(e,t,n){return function(e,t,n,r,i){var a;return n&&(a=kVe(t.eClass_0(),e.eStructuralFeature),i=n.eInverseAdd(t,-1-(-1==a?r:a),null,i)),i}(this,e,this.value_0,t,n)},i.inverseRemove_0=function(e,t,n){return function(e,t,n,r,i){var a;return n&&(a=kVe(t.eClass_0(),e.eStructuralFeature),i=n.eInverseRemove(t,-1-(-1==a?r:a),null,i)),i}(this,e,this.value_0,t,n)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",759),bn(1285,1,{},bqe),i.dynamicGet_0=function(e,t,n,r,i){return Pn(RMe(e,this.featureMapFeature),212).setting(this.feature).get_6(r)},i.dynamicInverseAdd=function(e,t,n,r,i){return Pn(RMe(e,this.featureMapFeature),212).basicAdd_0(this.feature,r,i)},i.dynamicInverseRemove=function(e,t,n,r,i){return Pn(RMe(e,this.featureMapFeature),212).basicRemove_0(this.feature,r,i)},i.dynamicIsSet=function(e,t,n){return Pn(RMe(e,this.featureMapFeature),212).setting(this.feature).isSet_0()},i.dynamicSet_0=function(e,t,n,r){Pn(RMe(e,this.featureMapFeature),212).setting(this.feature).set_1(r)},i.dynamicSetting=function(e,t,n){return Pn(RMe(e,this.featureMapFeature),212).setting(this.feature)},i.dynamicUnset_0=function(e,t,n){Pn(RMe(e,this.featureMapFeature),212).setting(this.feature).unset()},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1285),bn(88,1,{},Sqe,kqe,$qe,Iqe),i.dynamicGet_0=function(e,t,n,r,i){var a;if(null==(a=t.dynamicGet(n))&&t.dynamicSet(n,a=Cqe(this,e)),!i)switch(this.style){case 50:case 41:return Pn(a,580).map_2();case 40:return Pn(a,212).getWrapper()}return a},i.dynamicInverseAdd=function(e,t,n,r,i){var a;return null==(a=t.dynamicGet(n))&&t.dynamicSet(n,a=Cqe(this,e)),Pn(a,67).basicAdd(r,i)},i.dynamicInverseRemove=function(e,t,n,r,i){var a;return null!=(a=t.dynamicGet(n))&&(i=Pn(a,67).basicRemove(r,i)),i},i.dynamicIsSet=function(e,t,n){var r;return null!=(r=t.dynamicGet(n))&&Pn(r,76).isSet_0()},i.dynamicSet_0=function(e,t,n,r){var i;!(i=Pn(t.dynamicGet(n),76))&&t.dynamicSet(n,i=Cqe(this,e)),i.set_1(r)},i.dynamicSetting=function(e,t,n){var r;return null==(r=t.dynamicGet(n))&&t.dynamicSet(n,r=Cqe(this,e)),Fn(r,76)?Pn(r,76):new dWe(Pn(t.dynamicGet(n),14))},i.dynamicUnset_0=function(e,t,n){var r;!(r=Pn(t.dynamicGet(n),76))&&t.dynamicSet(n,r=Cqe(this,e)),r.unset()},i.dynamicKind=0,i.style=0,Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateMany",88),bn(495,1,{}),i.dynamicInverseAdd=function(e,t,n,r,i){throw Vg(new i_)},i.dynamicInverseRemove=function(e,t,n,r,i){throw Vg(new i_)},i.dynamicSetting=function(e,t,n){return new Mqe(this,e,t,n)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingle",495),bn(1302,1,Yt,Mqe),i.get_6=function(e){return this.this$11.dynamicGet_0(this.val$owner2,this.val$settings3,this.val$index4,e,!0)},i.isSet_0=function(){return this.this$11.dynamicIsSet(this.val$owner2,this.val$settings3,this.val$index4)},i.set_1=function(e){this.this$11.dynamicSet_0(this.val$owner2,this.val$settings3,this.val$index4,e)},i.unset=function(){this.this$11.dynamicUnset_0(this.val$owner2,this.val$settings3,this.val$index4)},i.val$index4=0,Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1302),bn(752,495,{},Nqe),i.dynamicGet_0=function(e,t,n,r,i){return iNe(e,e.eInternalContainer(),e.eContainerFeatureID_0())==this.inverseFeature?this.isResolveProxies_0()&&r?MMe(e):e.eInternalContainer():null},i.dynamicInverseAdd=function(e,t,n,r,i){var a,s;return e.eInternalContainer()&&(i=(a=e.eContainerFeatureID_0())>=0?e.eBasicRemoveFromContainerFeature(i):e.eInternalContainer().eInverseRemove(e,-1-a,null,i)),s=kVe(e.eClass_0(),this.feature),e.eBasicSetContainer_0(r,s,i)},i.dynamicInverseRemove=function(e,t,n,r,i){var a;return a=kVe(e.eClass_0(),this.feature),e.eBasicSetContainer_0(null,a,i)},i.dynamicIsSet=function(e,t,n){var r;return r=kVe(e.eClass_0(),this.feature),!!e.eInternalContainer()&&e.eContainerFeatureID_0()==r},i.dynamicSet_0=function(e,t,n,r){var i,a,s,o,l;if(null!=r&&!rVe(this.eClass,r))throw Vg(new Qf("The value of type '"+(Fn(r,55)?TVe(Pn(r,55).eClass_0()):Xn($n(r)))+"' must be of type '"+this.eClass+"'"));if(i=e.eInternalContainer(),s=kVe(e.eClass_0(),this.feature),Hn(r)!==Hn(i)||e.eContainerFeatureID_0()!=s&&null!=r){if(qXe(e,Pn(r,55)))throw Vg(new gd("Recursive containment not allowed for "+e.toString_0()));l=null,i&&(l=(a=e.eContainerFeatureID_0())>=0?e.eBasicRemoveFromContainerFeature(l):e.eInternalContainer().eInverseRemove(e,-1-a,null,l)),(o=Pn(r,48))&&(l=o.eInverseAdd(e,kVe(o.eClass_0(),this.inverseFeature),null,l)),(l=e.eBasicSetContainer_0(o,s,l))&&l.dispatch_0()}else e.eBasicHasAdapters()&&e.eDeliver()&&IMe(e,new hUe(e,1,s,r,r))},i.dynamicUnset_0=function(e,t,n){var r,i,a;e.eInternalContainer()?(a=(r=e.eContainerFeatureID_0())>=0?e.eBasicRemoveFromContainerFeature(null):e.eInternalContainer().eInverseRemove(e,-1-r,null,null),i=kVe(e.eClass_0(),this.feature),(a=e.eBasicSetContainer_0(null,i,a))&&a.dispatch_0()):e.eBasicHasAdapters()&&e.eDeliver()&&IMe(e,new $Ue(e,1,this.feature,null,null))},i.isResolveProxies_0=function(){return!1},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",752),bn(1286,752,{},Lqe),i.isResolveProxies_0=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1286),bn(556,495,{}),i.dynamicGet_0=function(e,t,n,r,i){var a;return null==(a=t.dynamicGet(n))?this.defaultValue:Hn(a)===Hn(cqe)?null:a},i.dynamicIsSet=function(e,t,n){var r;return null!=(r=t.dynamicGet(n))&&(Hn(r)===Hn(cqe)||!kn(r,this.defaultValue))},i.dynamicSet_0=function(e,t,n,r){var i,a;e.eBasicHasAdapters()&&e.eDeliver()?(i=null==(a=t.dynamicGet(n))?this.defaultValue:Hn(a)===Hn(cqe)?null:a,null==r?null!=this.intrinsicDefaultValue?(t.dynamicSet(n,null),r=this.defaultValue):null!=this.defaultValue?t.dynamicSet(n,cqe):t.dynamicSet(n,null):(this.validate_0(r),t.dynamicSet(n,r)),IMe(e,this.notificationCreator.createNotification_0(e,1,this.feature,i,r))):null==r?null!=this.intrinsicDefaultValue?t.dynamicSet(n,null):null!=this.defaultValue?t.dynamicSet(n,cqe):t.dynamicSet(n,null):(this.validate_0(r),t.dynamicSet(n,r))},i.dynamicUnset_0=function(e,t,n){var r,i;e.eBasicHasAdapters()&&e.eDeliver()?(r=null==(i=t.dynamicGet(n))?this.defaultValue:Hn(i)===Hn(cqe)?null:i,t.dynamicUnset(n),IMe(e,this.notificationCreator.createNotification_0(e,1,this.feature,r,this.defaultValue))):t.dynamicUnset(n)},i.validate_0=function(e){throw Vg(new Zf)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData",556),bn(cn,1,{},Rqe),i.createNotification_0=function(e,t,n,r,i){return new $Ue(e,t,n,r,i)},i.createNotification_1=function(e,t,n,r,i,a){return new TUe(e,t,n,r,i,a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",cn),bn(1303,cn,{},Fqe),i.createNotification_0=function(e,t,n,r,i){return new NUe(e,t,n,Nf(Nn(r)),Nf(Nn(i)))},i.createNotification_1=function(e,t,n,r,i,a){return new LUe(e,t,n,Nf(Nn(r)),Nf(Nn(i)),a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1303),bn(1304,cn,{},Oqe),i.createNotification_0=function(e,t,n,r,i){return new pUe(e,t,n,Pn(r,215).value_0,Pn(i,215).value_0)},i.createNotification_1=function(e,t,n,r,i,a){return new _Ue(e,t,n,Pn(r,215).value_0,Pn(i,215).value_0,a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1304),bn(1305,cn,{},Gqe),i.createNotification_0=function(e,t,n,r,i){return new yUe(e,t,n,Pn(r,172).value_0,Pn(i,172).value_0)},i.createNotification_1=function(e,t,n,r,i,a){return new mUe(e,t,n,Pn(r,172).value_0,Pn(i,172).value_0,a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1305),bn(1306,cn,{},Bqe),i.createNotification_0=function(e,t,n,r,i){return new wUe(e,t,n,td(Ln(r)),td(Ln(i)))},i.createNotification_1=function(e,t,n,r,i,a){return new vUe(e,t,n,td(Ln(r)),td(Ln(i)),a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1306),bn(1307,cn,{},jqe),i.createNotification_0=function(e,t,n,r,i){return new xUe(e,t,n,Pn(r,155).value_0,Pn(i,155).value_0)},i.createNotification_1=function(e,t,n,r,i,a){return new EUe(e,t,n,Pn(r,155).value_0,Pn(i,155).value_0,a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1307),bn(1308,cn,{},Vqe),i.createNotification_0=function(e,t,n,r,i){return new bUe(e,t,n,Pn(r,20).value_0,Pn(i,20).value_0)},i.createNotification_1=function(e,t,n,r,i,a){return new CUe(e,t,n,Pn(r,20).value_0,Pn(i,20).value_0,a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1308),bn(1309,cn,{},Hqe),i.createNotification_0=function(e,t,n,r,i){return new SUe(e,t,n,Pn(r,162).value_0,Pn(i,162).value_0)},i.createNotification_1=function(e,t,n,r,i,a){return new kUe(e,t,n,Pn(r,162).value_0,Pn(i,162).value_0,a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1309),bn(1310,cn,{},Uqe),i.createNotification_0=function(e,t,n,r,i){return new PUe(e,t,n,Pn(r,186).value_0,Pn(i,186).value_0)},i.createNotification_1=function(e,t,n,r,i,a){return new MUe(e,t,n,Pn(r,186).value_0,Pn(i,186).value_0,a)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1310),bn(1288,556,{},qqe),i.validate_0=function(e){if(!this.eDataType.isInstance(e))throw Vg(new Qf("The value of type '"+$n(e)+"' must be of type '"+this.eDataType+"'"))},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1288),bn(1289,556,{},Wqe),i.validate_0=function(e){},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1289),bn(753,556,{}),i.dynamicIsSet=function(e,t,n){return null!=t.dynamicGet(n)},i.dynamicSet_0=function(e,t,n,r){var i,a;e.eBasicHasAdapters()&&e.eDeliver()?(i=!0,null==(a=t.dynamicGet(n))?(i=!1,a=this.defaultValue):Hn(a)===Hn(cqe)&&(a=null),null==r?null!=this.intrinsicDefaultValue?(t.dynamicSet(n,null),r=this.defaultValue):t.dynamicSet(n,cqe):(this.validate_0(r),t.dynamicSet(n,r)),IMe(e,this.notificationCreator.createNotification_1(e,1,this.feature,a,r,!i))):null==r?null!=this.intrinsicDefaultValue?t.dynamicSet(n,null):t.dynamicSet(n,cqe):(this.validate_0(r),t.dynamicSet(n,r))},i.dynamicUnset_0=function(e,t,n){var r,i;e.eBasicHasAdapters()&&e.eDeliver()?(r=!0,null==(i=t.dynamicGet(n))?(r=!1,i=this.defaultValue):Hn(i)===Hn(cqe)&&(i=null),t.dynamicUnset(n),IMe(e,this.notificationCreator.createNotification_1(e,2,this.feature,i,this.defaultValue,r))):t.dynamicUnset(n)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",753),bn(1290,753,{},Kqe),i.validate_0=function(e){if(!this.eDataType.isInstance(e))throw Vg(new Qf("The value of type '"+$n(e)+"' must be of type '"+this.eDataType+"'"))},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1290),bn(1291,753,{},Yqe),i.validate_0=function(e){},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1291),bn(394,495,{},Xqe),i.dynamicGet_0=function(e,t,n,r,i){var a,s,o,l,c;if(c=t.dynamicGet(n),this.isUnsettable()&&Hn(c)===Hn(cqe))return null;if(this.isResolveProxies_0()&&r&&null!=c){if((o=Pn(c,48)).eIsProxy()&&o!=(l=JMe(e,o))){if(!rVe(this.eClass,l))throw Vg(new Qf("The value of type '"+$n(l)+"' must be of type '"+this.eClass+"'"));t.dynamicSet(n,c=l),this.isContainment()&&(a=Pn(l,48),s=o.eInverseRemove(e,this.inverseFeature?kVe(o.eClass_0(),this.inverseFeature):-1-kVe(e.eClass_0(),this.feature),null,null),!a.eInternalContainer()&&(s=a.eInverseAdd(e,this.inverseFeature?kVe(a.eClass_0(),this.inverseFeature):-1-kVe(e.eClass_0(),this.feature),null,s)),s&&s.dispatch_0()),e.eBasicHasAdapters()&&e.eDeliver()&&IMe(e,new $Ue(e,9,this.feature,o,l))}return c}return c},i.dynamicInverseAdd=function(e,t,n,r,i){var a,s;return Hn(s=t.dynamicGet(n))===Hn(cqe)&&(s=null),t.dynamicSet(n,r),this.hasInverse()?Hn(s)!==Hn(r)&&null!=s&&(i=(a=Pn(s,48)).eInverseRemove(e,kVe(a.eClass_0(),this.inverseFeature),null,i)):this.isContainment()&&null!=s&&(i=Pn(s,48).eInverseRemove(e,-1-kVe(e.eClass_0(),this.feature),null,i)),e.eBasicHasAdapters()&&e.eDeliver()&&(!i&&(i=new SFe(4)),i.add_4(new $Ue(e,1,this.feature,s,r))),i},i.dynamicInverseRemove=function(e,t,n,r,i){var a;return Hn(a=t.dynamicGet(n))===Hn(cqe)&&(a=null),t.dynamicUnset(n),e.eBasicHasAdapters()&&e.eDeliver()&&(!i&&(i=new SFe(4)),this.isUnsettable()?i.add_4(new $Ue(e,2,this.feature,a,null)):i.add_4(new $Ue(e,1,this.feature,a,null))),i},i.dynamicIsSet=function(e,t,n){return null!=t.dynamicGet(n)},i.dynamicSet_0=function(e,t,n,r){var i,a,s,o,l;if(null!=r&&!rVe(this.eClass,r))throw Vg(new Qf("The value of type '"+(Fn(r,55)?TVe(Pn(r,55).eClass_0()):Xn($n(r)))+"' must be of type '"+this.eClass+"'"));o=null!=(l=t.dynamicGet(n)),this.isUnsettable()&&Hn(l)===Hn(cqe)&&(l=null),s=null,this.hasInverse()?Hn(l)!==Hn(r)&&(null!=l&&(s=(i=Pn(l,48)).eInverseRemove(e,kVe(i.eClass_0(),this.inverseFeature),null,s)),null!=r&&(s=(i=Pn(r,48)).eInverseAdd(e,kVe(i.eClass_0(),this.inverseFeature),null,s))):this.isContainment()&&Hn(l)!==Hn(r)&&(null!=l&&(s=Pn(l,48).eInverseRemove(e,-1-kVe(e.eClass_0(),this.feature),null,s)),null!=r&&(s=Pn(r,48).eInverseAdd(e,-1-kVe(e.eClass_0(),this.feature),null,s))),null==r&&this.isUnsettable()?t.dynamicSet(n,cqe):t.dynamicSet(n,r),e.eBasicHasAdapters()&&e.eDeliver()?(a=new TUe(e,1,this.feature,l,r,this.isUnsettable()&&!o),s?(s.add_4(a),s.dispatch_0()):IMe(e,a)):s&&s.dispatch_0()},i.dynamicUnset_0=function(e,t,n){var r,i,a,s,o;s=null!=(o=t.dynamicGet(n)),this.isUnsettable()&&Hn(o)===Hn(cqe)&&(o=null),a=null,null!=o&&(this.hasInverse()?a=(r=Pn(o,48)).eInverseRemove(e,kVe(r.eClass_0(),this.inverseFeature),null,a):this.isContainment()&&(a=Pn(o,48).eInverseRemove(e,-1-kVe(e.eClass_0(),this.feature),null,a))),t.dynamicUnset(n),e.eBasicHasAdapters()&&e.eDeliver()?(i=new TUe(e,this.isUnsettable()?2:1,this.feature,o,null,s),a?(a.add_4(i),a.dispatch_0()):IMe(e,i)):a&&a.dispatch_0()},i.hasInverse=function(){return!1},i.isContainment=function(){return!1},i.isResolveProxies_0=function(){return!1},i.isUnsettable=function(){return!1},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",394),bn(557,394,{},Zqe),i.isContainment=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",557),bn(1294,557,{},Qqe),i.isResolveProxies_0=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1294),bn(755,557,{},eWe),i.isUnsettable=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",755),bn(1296,755,{},tWe),i.isResolveProxies_0=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1296),bn(630,557,{},nWe),i.hasInverse=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",630),bn(1295,630,{},rWe),i.isResolveProxies_0=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1295),bn(756,630,{},iWe),i.isUnsettable=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",756),bn(1297,756,{},aWe),i.isResolveProxies_0=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1297),bn(631,394,{},sWe),i.isResolveProxies_0=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",631),bn(1298,631,{},oWe),i.isUnsettable=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1298),bn(757,631,{},lWe),i.hasInverse=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",757),bn(1299,757,{},cWe),i.isUnsettable=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1299),bn(1292,394,{},uWe),i.isUnsettable=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1292),bn(754,394,{},hWe),i.hasInverse=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",754),bn(1293,754,{},gWe),i.isUnsettable=function(){return!0},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1293),bn(758,558,ln,fWe),i.createEntry_0=function(e){return new fWe(this.this$01,this.eStructuralFeature,e)},i.getValue=function(){return this.value_0},i.inverseAdd_0=function(e,t,n){return function(e,t,n,r){return n&&(r=n.eInverseAdd(t,kVe(n.eClass_0(),e.eStructuralFeature.getEOpposite()),null,r)),r}(this,e,this.value_0,n)},i.inverseRemove_0=function(e,t,n){return function(e,t,n,r){return n&&(r=n.eInverseRemove(t,kVe(n.eClass_0(),e.eStructuralFeature.getEOpposite()),null,r)),r}(this,e,this.value_0,n)},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",758),bn(1300,1,Yt,dWe),i.get_6=function(e){return this.list},i.isSet_0=function(){return Fn(this.list,95)?Pn(this.list,95).isSet_0():!this.list.isEmpty()},i.set_1=function(e){this.list.clear_0(),this.list.addAll(Pn(e,14))},i.unset=function(){Fn(this.list,95)?Pn(this.list,95).unset():this.list.clear_0()},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/SettingMany",1300),bn(1301,558,ln,pWe),i.createEntry=function(e){return new _We((aZe(),YJe),this.eFactory.convertToString(this.eDataType,e))},i.getValue=function(){return null},i.inverseAdd_0=function(e,t,n){return n},i.inverseRemove_0=function(e,t,n){return n},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1301),bn(632,558,ln,_We),i.createEntry=function(e){return new _We(this.eStructuralFeature,e)},i.getValue=function(){return this.value_0},i.inverseAdd_0=function(e,t,n){return n},i.inverseRemove_0=function(e,t,n){return n},Qn("org.eclipse.emf.ecore.impl","EStructuralFeatureImpl/SimpleFeatureMapEntry",632),bn(387,489,Ot,yWe),i.newData=function(e){return xg(JGe,g,26,e,0,1)},i.useEquals=function(){return!1},Qn("org.eclipse.emf.ecore.impl","ESuperAdapter/1",387),bn(438,431,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,814:1,48:1,96:1,150:1,438:1,113:1,116:1},wWe),i.eGet=function(e,t,n){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),this.eAnnotations;case 1:return this.name_0;case 2:return!this.eBounds&&(this.eBounds=new vWe(this,iBe,this)),this.eBounds}return NMe(this,e-SVe((HBe(),FBe)),vVe(Pn(hNe(this,16),26)||FBe,e),t,n)},i.eInverseRemove_0=function(e,t,n){switch(t){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),PFe(this.eAnnotations,e,n);case 2:return!this.eBounds&&(this.eBounds=new vWe(this,iBe,this)),PFe(this.eBounds,e,n)}return Pn(vVe(Pn(hNe(this,16),26)||(HBe(),FBe),t),65).getSettingDelegate().dynamicInverseRemove(this,cNe(this),t-SVe((HBe(),FBe)),e,n)},i.eIsSet=function(e){switch(e){case 0:return!!this.eAnnotations&&0!=this.eAnnotations.size_0;case 1:return null!=this.name_0;case 2:return!!this.eBounds&&0!=this.eBounds.size_0}return LMe(this,e-SVe((HBe(),FBe)),vVe(Pn(hNe(this,16),26)||FBe,e))},i.eSet=function(e,t){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),MFe(this.eAnnotations),!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void nRe(this.eAnnotations,Pn(t,15));case 1:return void DLe(this,An(t));case 2:return!this.eBounds&&(this.eBounds=new vWe(this,iBe,this)),MFe(this.eBounds),!this.eBounds&&(this.eBounds=new vWe(this,iBe,this)),void nRe(this.eBounds,Pn(t,15))}zMe(this,e-SVe((HBe(),FBe)),vVe(Pn(hNe(this,16),26)||FBe,e),t)},i.eStaticClass=function(){return HBe(),FBe},i.eUnset=function(e){switch(e){case 0:return!this.eAnnotations&&(this.eAnnotations=new HUe(qGe,this,0,3)),void MFe(this.eAnnotations);case 1:return void DLe(this,null);case 2:return!this.eBounds&&(this.eBounds=new vWe(this,iBe,this)),void MFe(this.eBounds)}AMe(this,e-SVe((HBe(),FBe)),vVe(Pn(hNe(this,16),26)||FBe,e))},Qn("org.eclipse.emf.ecore.impl","ETypeParameterImpl",438),bn(439,82,nn,vWe),i.inverseAdd=function(e,t){return function(e,t,n){var r,i;for(n=BMe(t,e.owner,-1-e.featureID,n),i=new SWe(new by(new wy(mWe(e.this$01).this$11).this$01));i.val$delegateIterator2.hasNext;)n=BHe(r=Pn(xy(i.val$delegateIterator2).getKey(),86),FHe(r,e.this$01),n);return n}(this,Pn(e,86),t)},i.inverseRemove=function(e,t){return function(e,t,n){var r,i;for(n=jMe(t,e.owner,-1-e.featureID,n),i=new SWe(new by(new wy(mWe(e.this$01).this$11).this$01));i.val$delegateIterator2.hasNext;)n=BHe(r=Pn(xy(i.val$delegateIterator2).getKey(),86),FHe(r,e.this$01),n);return n}(this,Pn(e,86),t)},Qn("org.eclipse.emf.ecore.impl","ETypeParameterImpl/1",439),bn(624,44,Ne,xWe),i.keySet_0=function(){return new CWe(this)},Qn("org.eclipse.emf.ecore.impl","ETypeParameterImpl/2",624),bn(550,w,v,CWe),i.add_2=function(e){return EWe(this,Pn(e,86))},i.addAll=function(e){var t,n,r;for(r=!1,n=e.iterator_0();n.hasNext_0();)t=Pn(n.next_1(),86),null==gy(this.this$11,t,"")&&(r=!0);return r},i.clear_0=function(){py(this.this$11)},i.contains=function(e){return oy(this.this$11,e)},i.iterator_0=function(){return new SWe(new by(new wy(this.this$11).this$01))},i.remove_1=function(e){return bWe(this,e)},i.size_1=function(){return _y(this.this$11)},Qn("org.eclipse.emf.ecore.impl","ETypeParameterImpl/2/1",550),bn(551,1,_,SWe),i.forEachRemaining=function(e){Lr(this,e)},i.next_1=function(){return Pn(xy(this.val$delegateIterator2).getKey(),86)},i.hasNext_0=function(){return this.val$delegateIterator2.hasNext},i.remove=function(){Ey(this.val$delegateIterator2)},Qn("org.eclipse.emf.ecore.impl","ETypeParameterImpl/2/1/1",551),bn(1248,44,Ne,kWe),i.containsKey=function(e){return jn(e)?hy(this,e):!!Zv(this.hashCodeMap,e)},i.get_3=function(e){var t;return Fn(t=jn(e)?uy(this,e):ai(Zv(this.hashCodeMap,e)),815)?(t=Pn(t,815).getEValidator(),gy(this,Pn(e,234),t),t):null!=t?t:null==e?(CXe(),mYe):null},Qn("org.eclipse.emf.ecore.impl","EValidatorRegistryImpl",1248),bn(1284,696,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,1913:1,48:1,96:1,150:1,113:1,116:1},$We),i.convertToString=function(e,t){switch(e.getClassifierID()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==t?null:wn(t);case 25:return function(e){var t;return null==e?null:function(e,t){var n,r,i,a,s;if(null==e)return null;for(s=xg(c1e,ne,24,2*t,15,1),r=0,i=0;r>4&15,a=15&e[r],s[i++]=EMe[n],s[i++]=EMe[a];return xp(s,0,s.length)}(t=Pn(e,190),t.length)}(t);case 27:case 28:return function(e){return Fn(e,172)?""+Pn(e,172).value_0:null==e?null:wn(e)}(t);case 29:return null==t?null:PHe(xMe[0],Pn(t,198));case 41:return null==t?"":Yn(Pn(t,289));case 42:return wn(t);case 50:return An(t);default:throw Vg(new gd("The datatype '"+e.getName()+"' is not a valid classifier"))}},i.create_3=function(e){var t;switch(-1==e.metaObjectID&&(e.metaObjectID=(t=tVe(e))?zVe(t.getEClassifiers(),e):-1),e.metaObjectID){case 0:return new Xje;case 1:return new gje;case 2:return new PVe;case 4:return new mHe;case 5:return new vHe;case 6:return new SHe;case 7:return new LLe;case 10:return new tje;case 11:return new DUe;case 12:return new fze;case 13:return new ZUe;case 14:return new aqe;case 17:return new lqe;case 18:return new UHe;case 19:return new wWe;default:throw Vg(new gd("The class '"+e.name_0+"' is not a valid classifier"))}},i.createFromString=function(e,t){switch(e.getClassifierID()){case 20:return null==t?null:new h_(t);case 21:return null==t?null:new R_(t);case 23:case 22:return null==t?null:function(e){if(rp("true",e))return Mf(),Fh;if(rp("false",e))return Mf(),Rh;throw Vg(new gd("Expecting true or false"))}(t);case 26:case 24:return null==t?null:Bf(Rf(t,-128,127)<<24>>24);case 25:return function(e){var t,n,r,i,a,s,o;if(null==e)return null;for(o=e.length,s=xg(f1e,Ft,24,i=(o+1)/2|0,15,1),o%2!=0&&(s[--i]=zLe((s$(o-1,e.length),e.charCodeAt(o-1)))),n=0,r=0;n>24;return s}(t);case 27:return function(e){var t;if(null==e)return null;t=0;try{t=Rf(e,ee,u)&re}catch(n){if(!Fn(n=jg(n),127))throw Vg(n);t=pp(e)[0]}return Kf(t)}(t);case 28:return function(e){var t;if(null==e)return null;t=0;try{t=Rf(e,ee,u)&re}catch(n){if(!Fn(n=jg(n),127))throw Vg(n);t=pp(e)[0]}return Kf(t)}(t);case 29:return function(e){var t,n;if(null==e)return null;for(t=null,n=0;n>16);case 50:return t;default:throw Vg(new gd("The datatype '"+e.getName()+"' is not a valid classifier"))}},Qn("org.eclipse.emf.ecore.impl","EcoreFactoryImpl",1284),bn(540,179,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,1911:1,48:1,96:1,150:1,179:1,540:1,113:1,116:1,663:1},PWe),i.isCreated=!1,i.isInitialized=!1;var MWe,NWe=!1;function LWe(){}function zWe(){}function AWe(){}function DWe(){}function RWe(){}function FWe(){}function OWe(){}function GWe(){}function BWe(){}function jWe(){}function VWe(){}function HWe(){}function UWe(){}function qWe(){}function WWe(){}function KWe(){}function YWe(){}function XWe(){}function JWe(){}function ZWe(){}function QWe(){}function eKe(){}function tKe(){}function nKe(){}function rKe(){}function iKe(){}function aKe(){}function sKe(){}function oKe(){}function lKe(){}function cKe(){}function uKe(){}function hKe(){}function gKe(){}function fKe(){}function dKe(){}function pKe(){}function _Ke(){}function yKe(){}function mKe(){}function wKe(){}function vKe(){}function xKe(){}function EKe(){}function bKe(e,t,n){var r,i,a,s,o;if(null!=(s=Pn(hNe(e.this$01,8),1908)))for(i=0,a=s.length;i=null.$_nullMethod()?(DRe(e),RKe(e)):t.hasNext_0()}function FKe(e){RRe.call(this,e,!1),this.isResolveProxies=!1}function OKe(e){this.this$01=e}function GKe(e){this.this$01=e}function BKe(){BKe=En,PKe=Sg(yg(Mp,1),$,2,6,["unspecified","simple","attribute","attributeWildcard","element","elementWildcard","group"]),TKe=Sg(yg(Mp,1),$,2,6,["unspecified","empty","simple","mixed","elementOnly"]),NKe=Sg(yg(Mp,1),$,2,6,["unspecified","preserve","replace","collapse"]),MKe=new iYe}function jKe(){var e,t;jKe=En,jBe(),t=new mHe,LKe=t,e=new Xje,zKe=e}function VKe(e,t){var n,r;return(n=t.getEAnnotation(e.annotationURI))&&null!=(r=An(vOe((!n.details&&(n.details=new _je((HBe(),ABe),wqe,n)),n.details),"name")))?r:t.getName()}function HKe(e,t,n){var r,i,a,s,o,l,c;if(kVe(t,n)>=0)return n;switch(hYe(XKe(e,n))){case 2:if(np("",KKe(e,n.getEContainingClass()).getName())){if(l=JKe(e,t,o=dYe(XKe(e,n)),fYe(XKe(e,n))))return l;for(s=0,c=(i=UKe(e,t)).size_1();s0){if(s$(0,e.length),47==e.charCodeAt(0)){for(a=new Em(4),i=1,t=1;t0)try{r=Rf(t,ee,u)}catch(e){throw Fn(e=jg(e),127)?Vg(new HGe(e)):Vg(e)}return!e.contents&&(e.contents=new OKe(e)),r<(n=e.contents).size_0&&r>=0?Pn(vRe(n,r),55):null}(e,0==(i=t.array.length)?"":(Zk(0,t.array.length),An(t.array[0]))),r=1;r0&&(e=e.substr(0,n))}return function(e,t){var n,r,i,a,s,o;for(a=null,i=new FKe((!e.contents&&(e.contents=new OKe(e)),e.contents));RKe(i);)if(hVe(s=(n=Pn(DRe(i),55)).eClass_0()),null!=(r=(o=s.eIDAttribute)&&n.eIsSet_0(o)?GXe(qje(o),n.eGet_0(o)):null)&&np(r,t)){a=n;break}return a}(this,e)},i.getResourceSet=function(){return this.resourceSet},i.toString_0=function(){return Yn(this.___clazz)+"@"+(In(this)>>>0).toString(16)+" uri='"+this.uri_0+"'"},i.isLoaded=!1,Qn("org.eclipse.emf.ecore.resource.impl","ResourceImpl",764),bn(1350,764,fn,DKe),Qn("org.eclipse.emf.ecore.resource.impl","BinaryResourceImpl",1350),bn(1142,687,Gt),i.getChildren=function(e){return Fn(e,55)?(this,t=Pn(e,55),this.isResolveProxies?t.eContents_0().iterator_0():Pn(t.eContents_0(),67).basicIterator()):Fn(e,582)?new BFe(Pn(e,582).getContents()):Hn(e)===Hn(this.object)?Pn(e,15).iterator_0():(VOe(),GOe.listIterator);var t},i.hasNext_0=function(){return RKe(this)},i.isResolveProxies=!1,Qn("org.eclipse.emf.ecore.util","EcoreUtil/ContentTreeIterator",1142),bn(1351,1142,Gt,FKe),i.getChildren=function(e){return Hn(e)===Hn(this.object)?Pn(e,14).iterator_0():new eJe(Pn(e,55))},Qn("org.eclipse.emf.ecore.resource.impl","ResourceImpl/5",1351),bn(638,1963,tn,OKe),i.contains=function(e){return this.size_0<=4?wRe(this,e):Fn(e,48)&&Pn(e,48).eDirectResource()==this.this$01},i.didAdd=function(e,t){e==this.size_0-1&&(this.this$01.isLoaded||(this.this$01.isLoaded=!0))},i.didClear=function(e,t){0==e?this.this$01.isLoaded||(this.this$01.isLoaded=!0):iRe(this,e,t)},i.didRemove=function(e,t){},i.didSet=function(e,t,n){},i.getFeatureID_0=function(){return 2},i.getNotifier=function(){return this.this$01},i.hasInverse=function(){return!0},i.inverseAdd=function(e,t){return Pn(e,48).eSetResource(this.this$01,t)},i.inverseRemove=function(e,t){return Pn(e,48).eSetResource(null,t)},i.isNotificationRequired=function(){return!1},i.isUnique=function(){return!0},i.newData=function(e){return xg(WPe,g,55,e,0,1)},i.useEquals=function(){return!1},Qn("org.eclipse.emf.ecore.resource.impl","ResourceImpl/ContentsEList",638),bn(963,1936,K,GKe),i.listIterator_1=function(e){return this.this$01.basicListIterator_0(e)},i.size_1=function(){return this.this$01.size_1()},Qn("org.eclipse.emf.ecore.util","AbstractSequentialInternalEList/1",963),bn(614,1,{},iYe),Qn("org.eclipse.emf.ecore.util","BasicExtendedMetaData",614),bn(1133,1,{},sYe),i.getBaseType=function(){return null},i.getContentKind=function(){var e;return-2==this.contentKind&&(this,e=function(e,t){var n,r,i;if((n=t.getEAnnotation(e.annotationURI))&&null!=(i=vOe((!n.details&&(n.details=new _je((HBe(),ABe),wqe,n)),n.details),"kind")))for(r=1;r<(BKe(),TKe).length;++r)if(np(TKe[r],i))return r;return 0}(this.this$01,this.eClass),this.contentKind=e),this.contentKind},i.getItemType=function(){return null},i.getMemberTypes=function(){return hw(),hw(),Cm},i.getName=function(){var e;return"uninitialized"==this.name_0&&(this,e=VKe(this.this$01,this.eClass),this.name_0=e),this.name_0},i.getWhiteSpaceFacet=function(){return 0},i.contentKind=-2,i.name_0="uninitialized",Qn("org.eclipse.emf.ecore.util","BasicExtendedMetaData/EClassExtendedMetaDataImpl",1133),bn(1134,1,{},oYe),i.getBaseType=function(){var e,t,n,r,i,a;return this.baseType==(jKe(),LKe)&&function(e,t){e.baseType=t}(this,(e=this.this$01,(r=(t=this.eDataType).getEAnnotation(e.annotationURI))&&(!r.details&&(r.details=new _je((HBe(),ABe),wqe,r)),null!=(n=An(vOe(r.details,"baseType")))&&Fn(a=-1==(i=n.lastIndexOf("#"))?nYe(e,t.getEPackage(),n):0==i?tYe(e,null,n.substr(1)):tYe(e,n.substr(0,i),n.substr(i+1)),148))?Pn(a,148):null)),this.baseType},i.getContentKind=function(){return 0},i.getItemType=function(){var e,t,n,r,i,a;return this.itemType==(jKe(),LKe)&&function(e,t){e.itemType=t}(this,(e=this.this$01,(n=(t=this.eDataType).getEAnnotation(e.annotationURI))&&(!n.details&&(n.details=new _je((HBe(),ABe),wqe,n)),null!=(i=An(vOe(n.details,"itemType")))&&Fn(a=-1==(r=i.lastIndexOf("#"))?nYe(e,t.getEPackage(),i):0==r?tYe(e,null,i.substr(1)):tYe(e,i.substr(0,r),i.substr(r+1)),148))?Pn(a,148):null)),this.itemType},i.getMemberTypes=function(){var e;return!this.memberTypes&&(this,e=function(e,t){var n,r,i,a,s,o,l,c,u;if((n=t.getEAnnotation(e.annotationURI))&&null!=(l=An(vOe((!n.details&&(n.details=new _je((HBe(),ABe),wqe,n)),n.details),"memberTypes")))){for(c=new xm,s=0,o=(a=hp(l,"\\w")).length;s=0;)r=n[a],s.isValid(r.getEStructuralFeature())&&eRe(i,r);!zFe(e,i)&&UMe(e.owner)&&LVe(e,t.isMany()?RYe(e,6,t,(hw(),Cm),null,-1,!1):RYe(e,t.isUnsettable()?2:1,t,null,null,-1,!1))}function AYe(e,t,n){return DYe(e,t,n,Fn(t,97)&&0!=(Pn(t,17).eFlags&we))}function DYe(e,t,n,r){var i,a,s,o,l;if(l=aJe(e.owner.eClass_0(),t),i=Pn(e.data_0,118),rJe(),Pn(t,65).isFeatureMap_0()){for(s=0;s1||-1==s)&&(a|=16),0!=(i.eFlags&Dt)&&(a|=64)),0!=(n.eFlags&we)&&(a|=Zt),a|=Kt):Fn(t,450)?a|=512:(r=t.getInstanceClass())&&0!=(1&r.modifiers)&&(a|=256),0!=(512&e.eFlags)&&(a|=128),a}function AXe(e,t,n,r){FVe.call(this,t,n),this.kind=e,this.eStructuralFeature=r}function DXe(e){this.this$01=e}function RXe(e,t,n,r){this.this$01=e,GVe.call(this,t,n,r)}function FXe(e,t,n,r){this.initializeDelegateEList(),this.entryClass=t,this.entryEClass=e,this.delegateEList=null,this.delegateEList=new OXe(this,t,n,r)}function OXe(e,t,n,r){RXe.call(this,e,t,n,r)}function GXe(e,t){return e.getEPackage().getEFactoryInstance().convertToString(e,t)}function BXe(e){var t,n;return n=KXe(t=new ZXe,e),function(e){var t,n,r,i,a,s,o,l,c,u,h,g,f,d,p,_,y,m,w,v,x,E;for(h=new Ix(new kx(e));h.next_0!=h.this$11.this$01.head;)for(o=Pn((u=$x(h)).key,55),t=Pn(u.value_0,55),p=0,v=(null==(s=o.eClass_0()).eAllStructuralFeaturesData&&_Ve(s),s.eAllStructuralFeaturesData).length;p=0&&pEe)return UXe(n);if(r=n,n==e)throw Vg(new pd("There is a cycle in the containment hierarchy of "+e))}return r}function qXe(e,t){var n,r;if(t){if(t==e)return!0;for(n=0,r=Pn(t,48).eInternalContainer();r&&r!=t;r=r.eInternalContainer()){if(++n>Ee)return qXe(e,r);if(r==e)return!0}}return!1}function WXe(e){var t,n,r,i,a;if(n=Pn(e,48).eProxyURI_0())try{if(r=null,(t=YUe((sBe(),tBe),hGe(null==(a=n).fragment?a:(!a.cachedTrimFragment&&(a.cachedTrimFragment=new gGe(0!=(256&a.hashCode_0),a.scheme,a.authority,a.device,0!=(16&a.hashCode_0),a.segments,a.query,null)),a.cachedTrimFragment))))&&(i=t.eResource_0())&&(r=i.getEObject(function(e){return Qk(e),e}(n.fragment))),r&&r!=e)return WXe(r)}catch(e){if(!Fn(e=jg(e),59))throw Vg(e)}return e}function KXe(e,t){var n,r,i,a,s,o,l,c;if(t){if(n=(a=t.eClass_0())?tVe(a).getEFactoryInstance().create_3(a):null){for(_x(e,t,n),l=0,c=(null==(i=t.eClass_0()).eAllStructuralFeaturesData&&_Ve(i),i.eAllStructuralFeaturesData).length;l=0&&l1||-1==o?(a=Pn(l,14),i.set_1(function(e,t){var n,r,i;for(r=new Em(t.size_1()),n=t.iterator_0();n.hasNext_0();)(i=KXe(e,Pn(n.next_1(),55)))&&(r.array[r.array.length]=i);return r}(e,a))):i.set_1(KXe(e,Pn(l,55))))}function JXe(e,t,n,r){var i,a,s,o,l,c,u,h,g,f,d,p;if(n.eIsSet_0(t)&&(u=(f=t)?Pn(r,48).eSetting(f):null))if(p=n.eGet_1(t,e.resolveProxies),(d=t.upperBound)>1||-1==d)if(h=Pn(p,67),g=Pn(u,67),h.isEmpty())g.clear_0();else for(s=!!eqe(t),a=0,o=e.resolveProxies?h.iterator_0():h.basicIterator();o.hasNext_0();)c=Pn(o.next_1(),55),(i=Pn(px(e,c),55))?(s?-1==(l=g.indexOf_0(i))?g.addUnique(a,i):a!=l&&g.move_0(a,i):g.addUnique(a,i),++a):e.useOriginalReferences&&!s&&(g.addUnique(a,c),++a);else null==p?u.set_1(null):null==(i=px(e,p))?e.useOriginalReferences&&!eqe(t)&&u.set_1(p):u.set_1(i)}function ZXe(){wx.call(this),this.resolveProxies=!0,this.useOriginalReferences=!0}function QXe(e){if(null==e.preparedResult){for(;e.iterator.hasNext_0();)if(e.preparedResult=e.iterator.next_1(),!Pn(e.preparedResult,48).eDirectResource())return!0;return e.preparedResult=null,!1}return!0}function eJe(e){var t;t=e.eContents_0(),this.iterator=Fn(t,67)?Pn(t,67).basicIterator():t.iterator_0()}function tJe(){tJe=En,CXe(),wYe=new nJe}function nJe(){e1e()}function rJe(){rJe=En,vYe=new oJe}function iJe(e,t){var n;return rJe(),function(e,t){var n;if(null!=t&&!e.eStructuralFeature.getEType().isInstance(t))throw n=Fn(t,55)?Pn(t,55).eClass_0().name_0:Yn($n(t)),Vg(new Qf("The feature '"+e.eStructuralFeature.getName()+"'s type '"+e.eStructuralFeature.getEType().getName()+"' does not permit a value of type '"+n+"'"))}(n=Pn(e,65).getFeatureMapEntryPrototype(),t),n.createEntry(t)}function aJe(e,t){var n,r,i,a;return rJe(),t?t==(aZe(),WJe)||(t==TJe||t==$Je||t==IJe)&&e!=kJe?new cJe(e,t):((n=(r=Pn(t,665)).getExtendedMetaData_0())||(fYe(XKe((BKe(),MKe),t)),n=r.getExtendedMetaData_0()),!n.validatorMap&&(n.validatorMap=new Rv),!(i=Pn(ai(Zv((a=n.validatorMap).hashCodeMap,e)),1914))&&gy(a,e,i=new cJe(e,t)),i):vYe}function sJe(e,t){var n,r,i;return rJe(),!!t.isMany()||-2==t.getUpperBound()&&(t==(xJe(),SYe)||t==EYe||t==bYe||t==CYe||!(kVe(i=e.eClass_0(),t)>=0)&&(!(n=HKe((BKe(),MKe),i,t))||((r=n.getUpperBound())>1||-1==r)&&3!=hYe(XKe(MKe,n))))}function oJe(){}function lJe(){lJe=En,hw(),xYe=new Sw("##any")}function cJe(e,t){var n,r,i,a,s,o,l;if(lJe(),this.cache=new hJe(this),this.containingClass=e,this.eStructuralFeature=t,this.wildcards=pYe(XKe((BKe(),MKe),t)),this.wildcards.isEmpty())if((o=QKe(MKe,e))==t)for(this.isElement=!0,this.groupMembers=new xm,this.wildcards=new jGe,this.wildcards.add_2("http://www.eclipse.org/emf/2003/XMLType"),Pn(lYe(YKe(MKe,tVe(e)),""),26)==e&&this.wildcards.add_2(eYe(MKe,tVe(e))),i=qKe(MKe,e).iterator_0();i.hasNext_0();)switch(r=Pn(i.next_1(),170),hYe(XKe(MKe,r))){case 4:this.groupMembers.add_2(r);break;case 5:this.wildcards.addAll(pYe(XKe(MKe,r)))}else if(rJe(),Pn(t,65).isFeatureMap_0())for(this.isElement=!0,this.wildcards=null,this.groupMembers=new xm,s=0,l=(null==e.eAllStructuralFeaturesData&&_Ve(e),e.eAllStructuralFeaturesData).length;s=0&&s1)throw Vg(new gd("The multiplicity constraint is violated"));for(u=aJe(e.owner.eClass_0(),t),r=Pn(e.data_0,118),s=0;sn?t:n;c<=h;++c)c==n?o=r++:(a=i[c],u=d.isValid(a.getEStructuralFeature()),c==t&&(l=c!=h||u?r:r-1),u&&++r);return g=Pn(NFe(e,t,n),71),o!=l&&LVe(e,new IUe(e.owner,7,s,Cd(o),f.getValue(),l)),g}return Pn(NFe(e,t,n),71)}(this,e,t)},i.resolve=function(e,t){return function(e,t,n){var r,i,a,s,o,l,c,u,h,g,f,d,p,_;if(Fn(s=n.getEStructuralFeature(),97)&&0!=(Pn(s,17).eFlags&we)&&(g=Pn(n.getValue(),48),(p=JMe(e.owner,g))!=g)){if(_Re(e,t,rXe(e,0,u=iJe(s,p))),h=null,UMe(e.owner)&&(r=HKe((BKe(),MKe),e.owner.eClass_0(),s))!=vVe(e.owner.eClass_0(),e.featureID)){for(_=aJe(e.owner.eClass_0(),s),o=0,a=Pn(e.data_0,118),l=0;l=0;)if(t=e[this.entryCursor],this.validator.isValid(t.getEStructuralFeature()))return this.preparedResult=this.isFeatureMap?t:t.getValue(),this.prepared=-2,!0;return this.prepared=-1,this.lastCursor=-1,!1},Qn("org.eclipse.emf.ecore.util","BasicFeatureMap/FeatureEIterator",405),bn(650,405,C,uXe),i.resolve_0=function(){return!0},Qn("org.eclipse.emf.ecore.util","BasicFeatureMap/ResolvingFeatureEIterator",650),bn(961,481,sn,hXe),i.basicList=function(){return this},Qn("org.eclipse.emf.ecore.util","EContentsEList/1",961),bn(962,481,sn,gXe),i.resolve_0=function(){return!1},Qn("org.eclipse.emf.ecore.util","EContentsEList/2",962),bn(960,277,on,fXe),i.filter_0=function(e){},i.hasNext_0=function(){return!1},i.hasPrevious=function(){return!1},Qn("org.eclipse.emf.ecore.util","EContentsEList/FeatureIteratorImpl/1",960),bn(804,576,nn,dXe),i.didChange=function(){this.isSet=!0},i.isSet_0=function(){return this.isSet},i.unset=function(){var e;MFe(this),UMe(this.owner)?(e=this.isSet,this.isSet=!1,IMe(this.owner,new dUe(this.owner,2,this.featureID,e,!1))):this.isSet=!1},i.isSet=!1,Qn("org.eclipse.emf.ecore.util","EDataTypeEList/Unsettable",804),bn(1821,576,nn,pXe),i.isUnique=function(){return!0},Qn("org.eclipse.emf.ecore.util","EDataTypeUniqueEList",1821),bn(1822,804,nn,_Xe),i.isUnique=function(){return!0},Qn("org.eclipse.emf.ecore.util","EDataTypeUniqueEList/Unsettable",1822),bn(139,82,nn,yXe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectContainmentEList/Resolving",139),bn(1136,538,nn,mXe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectContainmentEList/Unsettable/Resolving",1136),bn(731,16,nn,wXe),i.didChange=function(){this.isSet=!0},i.isSet_0=function(){return this.isSet},i.unset=function(){var e;MFe(this),UMe(this.owner)?(e=this.isSet,this.isSet=!1,IMe(this.owner,new dUe(this.owner,2,this.featureID,e,!1))):this.isSet=!1},i.isSet=!1,Qn("org.eclipse.emf.ecore.util","EObjectContainmentWithInverseEList/Unsettable",731),bn(1146,731,nn,vXe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectContainmentWithInverseEList/Unsettable/Resolving",1146),bn(726,488,nn,xXe),i.didChange=function(){this.isSet=!0},i.isSet_0=function(){return this.isSet},i.unset=function(){var e;MFe(this),UMe(this.owner)?(e=this.isSet,this.isSet=!1,IMe(this.owner,new dUe(this.owner,2,this.featureID,e,!1))):this.isSet=!1},i.isSet=!1,Qn("org.eclipse.emf.ecore.util","EObjectEList/Unsettable",726),bn(326,488,nn,EXe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectResolvingEList",326),bn(1611,726,nn,bXe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectResolvingEList/Unsettable",1611),bn(1352,1,{},SXe),Qn("org.eclipse.emf.ecore.util","EObjectValidator",1352),bn(539,488,nn,kXe),i.getInverseFeatureClass=function(){return this.dataClass},i.getInverseFeatureID=function(){return this.inverseFeatureID},i.hasInverse=function(){return!0},i.hasNavigableInverse=function(){return!0},i.inverseFeatureID=0,Qn("org.eclipse.emf.ecore.util","EObjectWithInverseEList",539),bn(1149,539,nn,$Xe),i.hasManyInverse=function(){return!0},Qn("org.eclipse.emf.ecore.util","EObjectWithInverseEList/ManyInverse",1149),bn(615,539,nn,IXe),i.didChange=function(){this.isSet=!0},i.isSet_0=function(){return this.isSet},i.unset=function(){var e;MFe(this),UMe(this.owner)?(e=this.isSet,this.isSet=!1,IMe(this.owner,new dUe(this.owner,2,this.featureID,e,!1))):this.isSet=!1},i.isSet=!1,Qn("org.eclipse.emf.ecore.util","EObjectWithInverseEList/Unsettable",615),bn(1148,615,nn,TXe),i.hasManyInverse=function(){return!0},Qn("org.eclipse.emf.ecore.util","EObjectWithInverseEList/Unsettable/ManyInverse",1148),bn(732,539,nn,PXe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectWithInverseResolvingEList",732),bn(33,732,nn,MXe),i.hasManyInverse=function(){return!0},Qn("org.eclipse.emf.ecore.util","EObjectWithInverseResolvingEList/ManyInverse",33),bn(733,615,nn,NXe),i.hasProxies=function(){return!0},i.resolve=function(e,t){return AVe(this,e,Pn(t,55))},Qn("org.eclipse.emf.ecore.util","EObjectWithInverseResolvingEList/Unsettable",733),bn(1147,733,nn,LXe),i.hasManyInverse=function(){return!0},Qn("org.eclipse.emf.ecore.util","EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1147),bn(1137,612,nn),i.canContainNull=function(){return 0==(1792&this.kind)},i.didChange=function(){this.kind|=1},i.hasInstanceClass=function(){return 0!=(4&this.kind)},i.hasInverse=function(){return 0!=(40&this.kind)},i.hasManyInverse=function(){return 0!=(16&this.kind)},i.hasNavigableInverse=function(){return 0!=(8&this.kind)},i.hasProxies=function(){return 0!=(this.kind&Zt)},i.isContainment=function(){return 0!=(32&this.kind)},i.isEObject=function(){return 0!=(this.kind&Kt)},i.isInstance=function(e){return this.dataClass?oGe(this.dataClass,e):this.getEStructuralFeature().getEType().isInstance(e)},i.isSet_0=function(){return 0!=(2&this.kind)?0!=(1&this.kind):0!=this.size_0},i.isUnique=function(){return 0!=(128&this.kind)},i.unset=function(){var e;MFe(this),0!=(2&this.kind)&&(UMe(this.owner)?(e=0!=(1&this.kind),this.kind&=-2,LVe(this,new dUe(this.owner,2,kVe(this.owner.eClass_0(),this.getEStructuralFeature()),e,!1))):this.kind&=-2)},i.useEquals=function(){return 0==(1536&this.kind)},i.kind=0,Qn("org.eclipse.emf.ecore.util","EcoreEList/Generic",1137),bn(1138,1137,nn,AXe),i.getEStructuralFeature=function(){return this.eStructuralFeature},Qn("org.eclipse.emf.ecore.util","EcoreEList/Dynamic",1138),bn(730,60,Ot,DXe),i.newData=function(e){return XFe(this.this$01.entryClass,e)},Qn("org.eclipse.emf.ecore.util","EcoreEMap/1",730),bn(729,82,nn,RXe),i.didAdd=function(e,t){pOe(this.this$01,Pn(t,133))},i.didClear=function(e,t){dOe(this.this$01)},i.didMove=function(e,t,n){var r;++(r=this.this$01,Pn(t,133),r).modCount},i.didRemove=function(e,t){_Oe(this.this$01,Pn(t,133))},i.didSet=function(e,t,n){var r;_Oe(this.this$01,Pn(n,133)),Hn(n)===Hn(t)&&Pn(n,133).setHash(null==(r=Pn(t,133).getKey())?0:In(r)),pOe(this.this$01,Pn(t,133))},Qn("org.eclipse.emf.ecore.util","EcoreEMap/DelegateEObjectContainmentEList",729),bn(1144,143,Xt,FXe),Qn("org.eclipse.emf.ecore.util","EcoreEMap/Unsettable",1144),bn(1145,729,nn,OXe),i.didChange=function(){this.isSet=!0},i.isSet_0=function(){return this.isSet},i.unset=function(){var e;MFe(this),UMe(this.owner)?(e=this.isSet,this.isSet=!1,IMe(this.owner,new dUe(this.owner,2,this.featureID,e,!1))):this.isSet=!1},i.isSet=!1,Qn("org.eclipse.emf.ecore.util","EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1145),bn(1141,226,Ne,ZXe),i.resolveProxies=!1,i.useOriginalReferences=!1,Qn("org.eclipse.emf.ecore.util","EcoreUtil/Copier",1141),bn(728,1,_,eJe),i.forEachRemaining=function(e){Lr(this,e)},i.hasNext_0=function(){return QXe(this)},i.next_1=function(){var e;return QXe(this),e=this.preparedResult,this.preparedResult=null,e},i.remove=function(){this.iterator.remove()},Qn("org.eclipse.emf.ecore.util","EcoreUtil/ProperContentIterator",728),bn(1353,1352,{},nJe),Qn("org.eclipse.emf.ecore.util","EcoreValidator",1353),tr("org.eclipse.emf.ecore.util","FeatureMapUtil/Validator"),bn(1234,1,{1914:1},oJe),i.isValid=function(e){return!0},Qn("org.eclipse.emf.ecore.util","FeatureMapUtil/1",1234),bn(740,1,{1914:1},cJe),i.isValid=function(e){var t;return this.eStructuralFeature==e||(null==(t=Nn(cy(this.cache,e)))?function(e,t){var n;return e.wildcards==xYe?(n=hYe(XKe((BKe(),MKe),t)),e.isElement?4==n&&t!=(xJe(),SYe)&&t!=(xJe(),EYe)&&t!=(xJe(),bYe)&&t!=(xJe(),CYe):2==n):!(!e.groupMembers||!(e.groupMembers.contains(t)||e.groupMembers.contains(gYe(XKe((BKe(),MKe),t)))||e.groupMembers.contains(HKe((BKe(),MKe),e.containingClass,t))))||!(!e.wildcards||!rYe((BKe(),e.wildcards),dYe(XKe(MKe,t))))&&(n=hYe(XKe(MKe,t)),e.isElement?4==n:2==n)}(this,e)?(uJe(this.cache,e,(Mf(),Fh)),!0):(uJe(this.cache,e,(Mf(),Rh)),!1):t==(Mf(),Fh))},i.isElement=!1,Qn("org.eclipse.emf.ecore.util","FeatureMapUtil/BasicValidator",740),bn(741,44,Ne,hJe),Qn("org.eclipse.emf.ecore.util","FeatureMapUtil/BasicValidator/Cache",741),bn(492,51,{19:1,28:1,51:1,15:1,14:1,57:1,76:1,67:1,95:1},_Je),i.add_3=function(e,t){IYe(this.featureMap,this.feature,e,t)},i.add_2=function(e){return TYe(this.featureMap,this.feature,e)},i.addAll_0=function(e,t){return function(e,t,n,r){var i,a,s,o,l,c,u,h;if(0==r.size_1())return!1;if(rJe(),s=(l=Pn(t,65).isFeatureMap_0())?r:new TRe(r.size_1()),sJe(e.owner,t)){if(t.isUnique())for(u=r.iterator_0();u.hasNext_0();)DYe(e,t,c=u.next_1(),Fn(t,97)&&0!=(Pn(t,17).eFlags&we))||(a=iJe(t,c),s.add_2(a));else if(!l)for(u=r.iterator_0();u.hasNext_0();)a=iJe(t,c=u.next_1()),s.add_2(a)}else{for(h=aJe(e.owner.eClass_0(),t),i=Pn(e.data_0,118),o=0;o1)throw Vg(new gd("The multiplicity constraint is violated"));l||(a=iJe(t,r.iterator_0().next_1()),s.add_2(a))}return tRe(e,FYe(e,t,n),s)}(this.featureMap,this.feature,e,t)},i.addAll=function(e){return gJe(this,e)},i.addUnique=function(e,t){!function(e,t,n,r){e.modCount=-1,$Fe(e,FYe(e,t,n),(rJe(),Pn(t,65).getFeatureMapEntryPrototype().createEntry(r)))}(this.featureMap,this.feature,e,t)},i.basicAdd=function(e,t){return PYe(this.featureMap,this.feature,e,t)},i.basicGet=function(e){return OYe(this.featureMap,this.feature,e,!1)},i.basicIterator=function(){return MYe(this.featureMap,this.feature)},i.basicListIterator=function(){return e=this.featureMap,new cXe(this.feature,e);var e},i.basicListIterator_0=function(e){return function(e,t,n){var r,i;for(i=new cXe(t,e),r=0;r>24,c=(3&t)<<24>>24,f=0==(-128&t)?t>>2<<24>>24:(t>>2^192)<<24>>24,d=0==(-128&n)?n>>4<<24>>24:(n>>4^240)<<24>>24,p=0==(-128&(r=e[i++]))?r>>6<<24>>24:(r>>6^252)<<24>>24,a[s++]=xZe[f],a[s++]=xZe[d|c<<4],a[s++]=xZe[u<<2|p],a[s++]=xZe[63&r];return 8==o?(c=(3&(t=e[i]))<<24>>24,f=0==(-128&t)?t>>2<<24>>24:(t>>2^192)<<24>>24,a[s++]=xZe[f],a[s++]=xZe[c<<4],a[s++]=61,a[s++]=61):16==o&&(t=e[i],u=(15&(n=e[i+1]))<<24>>24,c=(3&t)<<24>>24,f=0==(-128&t)?t>>2<<24>>24:(t>>2^192)<<24>>24,d=0==(-128&n)?n>>4<<24>>24:(n>>4^240)<<24>>24,a[s++]=xZe[f],a[s++]=xZe[d|c<<4],a[s++]=xZe[u<<2],a[s++]=61),xp(a,0,a.length)}(e)}(Pn(t,190));case 12:case 47:case 49:case 11:return TLe(this,e,t);case 13:return null==t?null:function(e){var t,n,i,a;if(i=Y_((!e.intVal&&(e.intVal=O_(e.smallValue)),e.intVal),0),0==e.scale||0==e.bitLength&&-1!=e.smallValue&&e.scale<0)return i;if(t=l_(e)<0?1:0,n=e.scale,i.length,r.Math.abs(Un(e.scale)),a=new Zp,1==t&&(a.string+="-"),e.scale>0)if((n-=i.length-t)>=0){for(a.string+="0.";n>Cp.length;n-=Cp.length)Kp(a,Cp);Yp(a,Cp,Un(n)),Wp(a,i.substr(t))}else Wp(a,dp(i,t,Un(n=t-n))),a.string+=".",Wp(a,fp(i,Un(n)));else{for(Wp(a,i.substr(t));n<-Cp.length;n+=Cp.length)Kp(a,Cp);Yp(a,Cp,Un(-n))}return a.string}(Pn(t,239));case 15:case 14:return null==t?null:function(e){return e==pe?"INF":e==_e?"-INF":""+e}(td(Ln(t)));case 17:return gZe((aZe(),t));case 18:return gZe(t);case 21:case 20:return null==t?null:function(e){return e==pe?"INF":e==_e?"-INF":""+e}(Pn(t,155).value_0);case 27:return function(e){return null==e?null:function(e){var t,n,r,i;if(kQe(),null==e)return null;for(r=e.length,t=xg(c1e,ne,24,2*r,15,1),n=0;n>4],t[2*n+1]=bZe[15&i];return xp(t,0,t.length)}(e)}(Pn(t,190));case 30:return fZe((aZe(),Pn(t,14)));case 31:return fZe(Pn(t,14));case 40:return function(e){return null==e?null:wn(e)}((aZe(),t));case 42:return dZe((aZe(),t));case 43:return dZe(t);case 59:case 48:return function(e){return null==e?null:wn(e)}((aZe(),t));default:throw Vg(new gd("The datatype '"+e.getName()+"' is not a valid classifier"))}},i.create_3=function(e){var t;switch(-1==e.metaObjectID&&(e.metaObjectID=(t=tVe(e))?zVe(t.getEClassifiers(),e):-1),e.metaObjectID){case 0:return new sZe;case 1:return new oZe;case 2:return new cZe;case 3:return new uZe;default:throw Vg(new gd("The class '"+e.name_0+"' is not a valid classifier"))}},i.createFromString=function(e,t){var n,r,i,a,s,o,l,c,h,g,f,d,p,_,y,m;switch(e.getClassifierID()){case 5:case 52:case 4:return t;case 6:return function(e){var t;if(null==e)return null;if(null==(t=function(e){var t,n,r,i,a,s,o,l,c,u,h,g,f,d,p,_;if(CQe(),null==e)return null;if((d=function(e){var t,n,r;for(r=0,n=e.length,t=0;t>4)<<24>>24,h[g++]=((15&n)<<4|r>>2&15)<<24>>24,h[g++]=(r<<6|i)<<24>>24}return SQe(s=a[u++])&&SQe(o=a[u++])?(t=vZe[s],n=vZe[o],l=a[u++],c=a[u++],-1==vZe[l]||-1==vZe[c]?61==l&&61==c?0!=(15&n)?null:(n_(h,0,_=xg(f1e,Ft,24,3*f+1,15,1),0,3*f),_[g]=(t<<2|n>>4)<<24>>24,_):61!=l&&61==c?0!=(3&(r=vZe[l]))?null:(n_(h,0,_=xg(f1e,Ft,24,3*f+2,15,1),0,3*f),_[g++]=(t<<2|n>>4)<<24>>24,_[g]=((15&n)<<4|r>>2&15)<<24>>24,_):null:(r=vZe[l],i=vZe[c],h[g++]=(t<<2|n>>4)<<24>>24,h[g++]=((15&n)<<4|r>>2&15)<<24>>24,h[g++]=(r<<6|i)<<24>>24,h)):null}(Z0e(e,!0))))throw Vg(new bJe("Invalid base64Binary value: '"+e+"'"));return t}(t);case 8:case 7:return null==t?null:function(e){if(np("true",e=Z0e(e,!0))||np("1",e))return Mf(),Fh;if(np("false",e)||np("0",e))return Mf(),Rh;throw Vg(new bJe("Invalid boolean value: '"+e+"'"))}(t);case 9:return null==t?null:Bf(Rf((r=Z0e(t,!0)).length>0&&(s$(0,r.length),43==r.charCodeAt(0))?r.substr(1):r,-128,127)<<24>>24);case 10:return null==t?null:Bf(Rf((i=Z0e(t,!0)).length>0&&(s$(0,i.length),43==i.charCodeAt(0))?i.substr(1):i,-128,127)<<24>>24);case 11:return An(PLe(this,(aZe(),PJe),t));case 12:return An(PLe(this,(aZe(),MJe),t));case 13:return null==t?null:new h_(Z0e(t,!0));case 15:case 14:return function(e){var t,n,r,i;if(null==e)return null;if(r=Z0e(e,!0),i="INF".length,np(r.substr(r.length-i,i),"INF"))if(4==(n=r.length)){if(s$(0,r.length),43==(t=r.charCodeAt(0)))return JJe;if(45==t)return XJe}else if(3==n)return JJe;return Df(r)}(t);case 16:return An(PLe(this,(aZe(),NJe),t));case 17:return pZe((aZe(),t));case 18:return pZe(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Z0e(t,!0);case 21:case 20:return function(e){var t,n,r,i;if(null==e)return null;if(r=Z0e(e,!0),i="INF".length,np(r.substr(r.length-i,i),"INF"))if(4==(n=r.length)){if(s$(0,r.length),43==(t=r.charCodeAt(0)))return QJe;if(45==t)return ZJe}else if(3==n)return QJe;return new cd(r)}(t);case 22:return An(PLe(this,(aZe(),LJe),t));case 23:return An(PLe(this,(aZe(),zJe),t));case 24:return An(PLe(this,(aZe(),AJe),t));case 25:return An(PLe(this,(aZe(),DJe),t));case 26:return An(PLe(this,(aZe(),RJe),t));case 27:return function(e){var t;if(null==e)return null;if(null==(t=function(e){var t,n,r,i,a,s,o;if(kQe(),null==e)return null;if((i=e.length)%2!=0)return null;for(t=pp(e),n=xg(f1e,Ft,24,a=i/2|0,15,1),r=0;r>24}return n}(Z0e(e,!0))))throw Vg(new bJe("Invalid hexBinary value: '"+e+"'"));return t}(t);case 30:return _Ze((aZe(),t));case 31:return _Ze(t);case 32:return null==t?null:Cd(Rf((h=Z0e(t,!0)).length>0&&(s$(0,h.length),43==h.charCodeAt(0))?h.substr(1):h,ee,u));case 33:return null==t?null:new R_((g=Z0e(t,!0)).length>0&&(s$(0,g.length),43==g.charCodeAt(0))?g.substr(1):g);case 34:return null==t?null:Cd(Rf((f=Z0e(t,!0)).length>0&&(s$(0,f.length),43==f.charCodeAt(0))?f.substr(1):f,ee,u));case 36:return null==t?null:Nd(Ff((d=Z0e(t,!0)).length>0&&(s$(0,d.length),43==d.charCodeAt(0))?d.substr(1):d));case 37:return null==t?null:Nd(Ff((p=Z0e(t,!0)).length>0&&(s$(0,p.length),43==p.charCodeAt(0))?p.substr(1):p));case 40:return function(e){var t;return null==e?null:new R_((t=Z0e(e,!0)).length>0&&(s$(0,t.length),43==t.charCodeAt(0))?t.substr(1):t)}((aZe(),t));case 42:return yZe((aZe(),t));case 43:return yZe(t);case 44:return null==t?null:new R_((_=Z0e(t,!0)).length>0&&(s$(0,_.length),43==_.charCodeAt(0))?_.substr(1):_);case 45:return null==t?null:new R_((y=Z0e(t,!0)).length>0&&(s$(0,y.length),43==y.charCodeAt(0))?y.substr(1):y);case 46:return Z0e(t,!1);case 47:return An(PLe(this,(aZe(),FJe),t));case 59:case 48:return function(e){var t;return null==e?null:new R_((t=Z0e(e,!0)).length>0&&(s$(0,t.length),43==t.charCodeAt(0))?t.substr(1):t)}((aZe(),t));case 49:return An(PLe(this,(aZe(),GJe),t));case 50:return null==t?null:Kd(Rf((m=Z0e(t,!0)).length>0&&(s$(0,m.length),43==m.charCodeAt(0))?m.substr(1):m,un,32767)<<16>>16);case 51:return null==t?null:Kd(Rf((a=Z0e(t,!0)).length>0&&(s$(0,a.length),43==a.charCodeAt(0))?a.substr(1):a,un,32767)<<16>>16);case 53:return An(PLe(this,(aZe(),VJe),t));case 55:return null==t?null:Kd(Rf((s=Z0e(t,!0)).length>0&&(s$(0,s.length),43==s.charCodeAt(0))?s.substr(1):s,un,32767)<<16>>16);case 56:return null==t?null:Kd(Rf((o=Z0e(t,!0)).length>0&&(s$(0,o.length),43==o.charCodeAt(0))?o.substr(1):o,un,32767)<<16>>16);case 57:return null==t?null:Nd(Ff((l=Z0e(t,!0)).length>0&&(s$(0,l.length),43==l.charCodeAt(0))?l.substr(1):l));case 58:return null==t?null:Nd(Ff((c=Z0e(t,!0)).length>0&&(s$(0,c.length),43==c.charCodeAt(0))?c.substr(1):c));case 60:return null==t?null:Cd(Rf((n=Z0e(t,!0)).length>0&&(s$(0,n.length),43==n.charCodeAt(0))?n.substr(1):n,ee,u));case 61:return null==t?null:Cd(Rf(Z0e(t,!0),ee,u));default:throw Vg(new gd("The datatype '"+e.getName()+"' is not a valid classifier"))}},Qn("org.eclipse.emf.ecore.xml.type.impl","XMLTypeFactoryImpl",1891),bn(577,179,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1,1917:1,577:1},wZe),i.isCreated=!1,i.isInitialized=!1;var vZe,xZe,EZe,bZe,CZe,SZe=!1;function kZe(){}function $Ze(){}function IZe(){}function TZe(){}function PZe(){}function MZe(){}function NZe(){}function LZe(){}function zZe(){}function AZe(){}function DZe(){}function RZe(){}function FZe(){}function OZe(){}function GZe(){}function BZe(){}function jZe(){}function VZe(){}function HZe(){}function UZe(){}function qZe(){}function WZe(){}function KZe(){}function YZe(){}function XZe(){}function JZe(){}function ZZe(){}function QZe(){}function eQe(){}function tQe(){}function nQe(){}function rQe(){}function iQe(){}function aQe(){}function sQe(){}function oQe(){}function lQe(){}function cQe(){}function uQe(){}function hQe(){}function gQe(){}function fQe(){}function dQe(){}function pQe(){}function _Qe(){}function yQe(){}function mQe(){}function wQe(){}function vQe(){}function xQe(){}function EQe(){}function bQe(){}function CQe(){var e,t,n,r,i,a,s,o,l;for(CQe=En,vZe=xg(f1e,Ft,24,255,15,1),xZe=xg(c1e,ne,24,64,15,1),t=0;t<255;t++)vZe[t]=-1;for(n=90;n>=65;n--)vZe[n]=n-65<<24>>24;for(r=122;r>=97;r--)vZe[r]=r-97+26<<24>>24;for(i=57;i>=48;i--)vZe[i]=i-48+52<<24>>24;for(vZe[43]=62,vZe[47]=63,a=0;a<=25;a++)xZe[a]=65+a&re;for(s=26,l=0;s<=51;++s,l++)xZe[s]=97+l&re;for(e=52,o=0;e<=61;++e,o++)xZe[e]=48+o&re;xZe[62]=43,xZe[63]=47}function SQe(e){return-1!=vZe[e]}function kQe(){var e,t,n,r,i,a;for(kQe=En,EZe=xg(f1e,Ft,24,255,15,1),bZe=xg(c1e,ne,24,16,15,1),t=0;t<255;t++)EZe[t]=-1;for(n=57;n>=48;n--)EZe[n]=n-48<<24>>24;for(r=70;r>=65;r--)EZe[r]=r-65+10<<24>>24;for(i=102;i>=97;i--)EZe[i]=i-97+10<<24>>24;for(a=0;a<10;a++)bZe[a]=48+a&re;for(e=10;e<=15;e++)bZe[e]=65+e-10&re}function $Qe(){$Qe=En,(CZe=xg(f1e,Ft,24,we,15,1))[9]=35,CZe[10]=19,CZe[13]=19,CZe[32]=51,CZe[33]=49,CZe[34]=33,Gm(CZe,35,38,49),CZe[38]=1,Gm(CZe,39,45,49),Gm(CZe,45,47,-71),CZe[47]=49,Gm(CZe,48,58,-71),CZe[58]=61,CZe[59]=49,CZe[60]=1,CZe[61]=49,CZe[62]=33,Gm(CZe,63,65,49),Gm(CZe,65,91,-3),Gm(CZe,91,93,33),CZe[93]=1,CZe[94]=33,CZe[95]=-3,CZe[96]=33,Gm(CZe,97,123,-3),Gm(CZe,123,183,33),CZe[183]=-87,Gm(CZe,184,192,33),Gm(CZe,192,215,-19),CZe[215]=33,Gm(CZe,216,247,-19),CZe[247]=33,Gm(CZe,248,306,-19),Gm(CZe,306,308,33),Gm(CZe,308,319,-19),Gm(CZe,319,321,33),Gm(CZe,321,329,-19),CZe[329]=33,Gm(CZe,330,383,-19),CZe[383]=33,Gm(CZe,384,452,-19),Gm(CZe,452,461,33),Gm(CZe,461,497,-19),Gm(CZe,497,500,33),Gm(CZe,500,502,-19),Gm(CZe,502,506,33),Gm(CZe,506,536,-19),Gm(CZe,536,592,33),Gm(CZe,592,681,-19),Gm(CZe,681,699,33),Gm(CZe,699,706,-19),Gm(CZe,706,720,33),Gm(CZe,720,722,-87),Gm(CZe,722,768,33),Gm(CZe,768,838,-87),Gm(CZe,838,864,33),Gm(CZe,864,866,-87),Gm(CZe,866,902,33),CZe[902]=-19,CZe[903]=-87,Gm(CZe,904,907,-19),CZe[907]=33,CZe[908]=-19,CZe[909]=33,Gm(CZe,910,930,-19),CZe[930]=33,Gm(CZe,931,975,-19),CZe[975]=33,Gm(CZe,976,983,-19),Gm(CZe,983,986,33),CZe[986]=-19,CZe[987]=33,CZe[988]=-19,CZe[989]=33,CZe[990]=-19,CZe[991]=33,CZe[992]=-19,CZe[993]=33,Gm(CZe,994,1012,-19),Gm(CZe,1012,1025,33),Gm(CZe,1025,1037,-19),CZe[1037]=33,Gm(CZe,1038,1104,-19),CZe[1104]=33,Gm(CZe,1105,1117,-19),CZe[1117]=33,Gm(CZe,1118,1154,-19),CZe[1154]=33,Gm(CZe,1155,1159,-87),Gm(CZe,1159,1168,33),Gm(CZe,1168,1221,-19),Gm(CZe,1221,1223,33),Gm(CZe,1223,1225,-19),Gm(CZe,1225,1227,33),Gm(CZe,1227,1229,-19),Gm(CZe,1229,1232,33),Gm(CZe,1232,1260,-19),Gm(CZe,1260,1262,33),Gm(CZe,1262,1270,-19),Gm(CZe,1270,1272,33),Gm(CZe,1272,1274,-19),Gm(CZe,1274,1329,33),Gm(CZe,1329,1367,-19),Gm(CZe,1367,1369,33),CZe[1369]=-19,Gm(CZe,1370,1377,33),Gm(CZe,1377,1415,-19),Gm(CZe,1415,1425,33),Gm(CZe,1425,1442,-87),CZe[1442]=33,Gm(CZe,1443,1466,-87),CZe[1466]=33,Gm(CZe,1467,1470,-87),CZe[1470]=33,CZe[1471]=-87,CZe[1472]=33,Gm(CZe,1473,1475,-87),CZe[1475]=33,CZe[1476]=-87,Gm(CZe,1477,1488,33),Gm(CZe,1488,1515,-19),Gm(CZe,1515,1520,33),Gm(CZe,1520,1523,-19),Gm(CZe,1523,1569,33),Gm(CZe,1569,1595,-19),Gm(CZe,1595,1600,33),CZe[1600]=-87,Gm(CZe,1601,1611,-19),Gm(CZe,1611,1619,-87),Gm(CZe,1619,1632,33),Gm(CZe,1632,1642,-87),Gm(CZe,1642,1648,33),CZe[1648]=-87,Gm(CZe,1649,1720,-19),Gm(CZe,1720,1722,33),Gm(CZe,1722,1727,-19),CZe[1727]=33,Gm(CZe,1728,1743,-19),CZe[1743]=33,Gm(CZe,1744,1748,-19),CZe[1748]=33,CZe[1749]=-19,Gm(CZe,1750,1765,-87),Gm(CZe,1765,1767,-19),Gm(CZe,1767,1769,-87),CZe[1769]=33,Gm(CZe,1770,1774,-87),Gm(CZe,1774,1776,33),Gm(CZe,1776,1786,-87),Gm(CZe,1786,2305,33),Gm(CZe,2305,2308,-87),CZe[2308]=33,Gm(CZe,2309,2362,-19),Gm(CZe,2362,2364,33),CZe[2364]=-87,CZe[2365]=-19,Gm(CZe,2366,2382,-87),Gm(CZe,2382,2385,33),Gm(CZe,2385,2389,-87),Gm(CZe,2389,2392,33),Gm(CZe,2392,2402,-19),Gm(CZe,2402,2404,-87),Gm(CZe,2404,2406,33),Gm(CZe,2406,2416,-87),Gm(CZe,2416,2433,33),Gm(CZe,2433,2436,-87),CZe[2436]=33,Gm(CZe,2437,2445,-19),Gm(CZe,2445,2447,33),Gm(CZe,2447,2449,-19),Gm(CZe,2449,2451,33),Gm(CZe,2451,2473,-19),CZe[2473]=33,Gm(CZe,2474,2481,-19),CZe[2481]=33,CZe[2482]=-19,Gm(CZe,2483,2486,33),Gm(CZe,2486,2490,-19),Gm(CZe,2490,2492,33),CZe[2492]=-87,CZe[2493]=33,Gm(CZe,2494,2501,-87),Gm(CZe,2501,2503,33),Gm(CZe,2503,2505,-87),Gm(CZe,2505,2507,33),Gm(CZe,2507,2510,-87),Gm(CZe,2510,2519,33),CZe[2519]=-87,Gm(CZe,2520,2524,33),Gm(CZe,2524,2526,-19),CZe[2526]=33,Gm(CZe,2527,2530,-19),Gm(CZe,2530,2532,-87),Gm(CZe,2532,2534,33),Gm(CZe,2534,2544,-87),Gm(CZe,2544,2546,-19),Gm(CZe,2546,2562,33),CZe[2562]=-87,Gm(CZe,2563,2565,33),Gm(CZe,2565,2571,-19),Gm(CZe,2571,2575,33),Gm(CZe,2575,2577,-19),Gm(CZe,2577,2579,33),Gm(CZe,2579,2601,-19),CZe[2601]=33,Gm(CZe,2602,2609,-19),CZe[2609]=33,Gm(CZe,2610,2612,-19),CZe[2612]=33,Gm(CZe,2613,2615,-19),CZe[2615]=33,Gm(CZe,2616,2618,-19),Gm(CZe,2618,2620,33),CZe[2620]=-87,CZe[2621]=33,Gm(CZe,2622,2627,-87),Gm(CZe,2627,2631,33),Gm(CZe,2631,2633,-87),Gm(CZe,2633,2635,33),Gm(CZe,2635,2638,-87),Gm(CZe,2638,2649,33),Gm(CZe,2649,2653,-19),CZe[2653]=33,CZe[2654]=-19,Gm(CZe,2655,2662,33),Gm(CZe,2662,2674,-87),Gm(CZe,2674,2677,-19),Gm(CZe,2677,2689,33),Gm(CZe,2689,2692,-87),CZe[2692]=33,Gm(CZe,2693,2700,-19),CZe[2700]=33,CZe[2701]=-19,CZe[2702]=33,Gm(CZe,2703,2706,-19),CZe[2706]=33,Gm(CZe,2707,2729,-19),CZe[2729]=33,Gm(CZe,2730,2737,-19),CZe[2737]=33,Gm(CZe,2738,2740,-19),CZe[2740]=33,Gm(CZe,2741,2746,-19),Gm(CZe,2746,2748,33),CZe[2748]=-87,CZe[2749]=-19,Gm(CZe,2750,2758,-87),CZe[2758]=33,Gm(CZe,2759,2762,-87),CZe[2762]=33,Gm(CZe,2763,2766,-87),Gm(CZe,2766,2784,33),CZe[2784]=-19,Gm(CZe,2785,2790,33),Gm(CZe,2790,2800,-87),Gm(CZe,2800,2817,33),Gm(CZe,2817,2820,-87),CZe[2820]=33,Gm(CZe,2821,2829,-19),Gm(CZe,2829,2831,33),Gm(CZe,2831,2833,-19),Gm(CZe,2833,2835,33),Gm(CZe,2835,2857,-19),CZe[2857]=33,Gm(CZe,2858,2865,-19),CZe[2865]=33,Gm(CZe,2866,2868,-19),Gm(CZe,2868,2870,33),Gm(CZe,2870,2874,-19),Gm(CZe,2874,2876,33),CZe[2876]=-87,CZe[2877]=-19,Gm(CZe,2878,2884,-87),Gm(CZe,2884,2887,33),Gm(CZe,2887,2889,-87),Gm(CZe,2889,2891,33),Gm(CZe,2891,2894,-87),Gm(CZe,2894,2902,33),Gm(CZe,2902,2904,-87),Gm(CZe,2904,2908,33),Gm(CZe,2908,2910,-19),CZe[2910]=33,Gm(CZe,2911,2914,-19),Gm(CZe,2914,2918,33),Gm(CZe,2918,2928,-87),Gm(CZe,2928,2946,33),Gm(CZe,2946,2948,-87),CZe[2948]=33,Gm(CZe,2949,2955,-19),Gm(CZe,2955,2958,33),Gm(CZe,2958,2961,-19),CZe[2961]=33,Gm(CZe,2962,2966,-19),Gm(CZe,2966,2969,33),Gm(CZe,2969,2971,-19),CZe[2971]=33,CZe[2972]=-19,CZe[2973]=33,Gm(CZe,2974,2976,-19),Gm(CZe,2976,2979,33),Gm(CZe,2979,2981,-19),Gm(CZe,2981,2984,33),Gm(CZe,2984,2987,-19),Gm(CZe,2987,2990,33),Gm(CZe,2990,2998,-19),CZe[2998]=33,Gm(CZe,2999,3002,-19),Gm(CZe,3002,3006,33),Gm(CZe,3006,3011,-87),Gm(CZe,3011,3014,33),Gm(CZe,3014,3017,-87),CZe[3017]=33,Gm(CZe,3018,3022,-87),Gm(CZe,3022,3031,33),CZe[3031]=-87,Gm(CZe,3032,3047,33),Gm(CZe,3047,3056,-87),Gm(CZe,3056,3073,33),Gm(CZe,3073,3076,-87),CZe[3076]=33,Gm(CZe,3077,3085,-19),CZe[3085]=33,Gm(CZe,3086,3089,-19),CZe[3089]=33,Gm(CZe,3090,3113,-19),CZe[3113]=33,Gm(CZe,3114,3124,-19),CZe[3124]=33,Gm(CZe,3125,3130,-19),Gm(CZe,3130,3134,33),Gm(CZe,3134,3141,-87),CZe[3141]=33,Gm(CZe,3142,3145,-87),CZe[3145]=33,Gm(CZe,3146,3150,-87),Gm(CZe,3150,3157,33),Gm(CZe,3157,3159,-87),Gm(CZe,3159,3168,33),Gm(CZe,3168,3170,-19),Gm(CZe,3170,3174,33),Gm(CZe,3174,3184,-87),Gm(CZe,3184,3202,33),Gm(CZe,3202,3204,-87),CZe[3204]=33,Gm(CZe,3205,3213,-19),CZe[3213]=33,Gm(CZe,3214,3217,-19),CZe[3217]=33,Gm(CZe,3218,3241,-19),CZe[3241]=33,Gm(CZe,3242,3252,-19),CZe[3252]=33,Gm(CZe,3253,3258,-19),Gm(CZe,3258,3262,33),Gm(CZe,3262,3269,-87),CZe[3269]=33,Gm(CZe,3270,3273,-87),CZe[3273]=33,Gm(CZe,3274,3278,-87),Gm(CZe,3278,3285,33),Gm(CZe,3285,3287,-87),Gm(CZe,3287,3294,33),CZe[3294]=-19,CZe[3295]=33,Gm(CZe,3296,3298,-19),Gm(CZe,3298,3302,33),Gm(CZe,3302,3312,-87),Gm(CZe,3312,3330,33),Gm(CZe,3330,3332,-87),CZe[3332]=33,Gm(CZe,3333,3341,-19),CZe[3341]=33,Gm(CZe,3342,3345,-19),CZe[3345]=33,Gm(CZe,3346,3369,-19),CZe[3369]=33,Gm(CZe,3370,3386,-19),Gm(CZe,3386,3390,33),Gm(CZe,3390,3396,-87),Gm(CZe,3396,3398,33),Gm(CZe,3398,3401,-87),CZe[3401]=33,Gm(CZe,3402,3406,-87),Gm(CZe,3406,3415,33),CZe[3415]=-87,Gm(CZe,3416,3424,33),Gm(CZe,3424,3426,-19),Gm(CZe,3426,3430,33),Gm(CZe,3430,3440,-87),Gm(CZe,3440,3585,33),Gm(CZe,3585,3631,-19),CZe[3631]=33,CZe[3632]=-19,CZe[3633]=-87,Gm(CZe,3634,3636,-19),Gm(CZe,3636,3643,-87),Gm(CZe,3643,3648,33),Gm(CZe,3648,3654,-19),Gm(CZe,3654,3663,-87),CZe[3663]=33,Gm(CZe,3664,3674,-87),Gm(CZe,3674,3713,33),Gm(CZe,3713,3715,-19),CZe[3715]=33,CZe[3716]=-19,Gm(CZe,3717,3719,33),Gm(CZe,3719,3721,-19),CZe[3721]=33,CZe[3722]=-19,Gm(CZe,3723,3725,33),CZe[3725]=-19,Gm(CZe,3726,3732,33),Gm(CZe,3732,3736,-19),CZe[3736]=33,Gm(CZe,3737,3744,-19),CZe[3744]=33,Gm(CZe,3745,3748,-19),CZe[3748]=33,CZe[3749]=-19,CZe[3750]=33,CZe[3751]=-19,Gm(CZe,3752,3754,33),Gm(CZe,3754,3756,-19),CZe[3756]=33,Gm(CZe,3757,3759,-19),CZe[3759]=33,CZe[3760]=-19,CZe[3761]=-87,Gm(CZe,3762,3764,-19),Gm(CZe,3764,3770,-87),CZe[3770]=33,Gm(CZe,3771,3773,-87),CZe[3773]=-19,Gm(CZe,3774,3776,33),Gm(CZe,3776,3781,-19),CZe[3781]=33,CZe[3782]=-87,CZe[3783]=33,Gm(CZe,3784,3790,-87),Gm(CZe,3790,3792,33),Gm(CZe,3792,3802,-87),Gm(CZe,3802,3864,33),Gm(CZe,3864,3866,-87),Gm(CZe,3866,3872,33),Gm(CZe,3872,3882,-87),Gm(CZe,3882,3893,33),CZe[3893]=-87,CZe[3894]=33,CZe[3895]=-87,CZe[3896]=33,CZe[3897]=-87,Gm(CZe,3898,3902,33),Gm(CZe,3902,3904,-87),Gm(CZe,3904,3912,-19),CZe[3912]=33,Gm(CZe,3913,3946,-19),Gm(CZe,3946,3953,33),Gm(CZe,3953,3973,-87),CZe[3973]=33,Gm(CZe,3974,3980,-87),Gm(CZe,3980,3984,33),Gm(CZe,3984,3990,-87),CZe[3990]=33,CZe[3991]=-87,CZe[3992]=33,Gm(CZe,3993,4014,-87),Gm(CZe,4014,4017,33),Gm(CZe,4017,4024,-87),CZe[4024]=33,CZe[4025]=-87,Gm(CZe,4026,4256,33),Gm(CZe,4256,4294,-19),Gm(CZe,4294,4304,33),Gm(CZe,4304,4343,-19),Gm(CZe,4343,4352,33),CZe[4352]=-19,CZe[4353]=33,Gm(CZe,4354,4356,-19),CZe[4356]=33,Gm(CZe,4357,4360,-19),CZe[4360]=33,CZe[4361]=-19,CZe[4362]=33,Gm(CZe,4363,4365,-19),CZe[4365]=33,Gm(CZe,4366,4371,-19),Gm(CZe,4371,4412,33),CZe[4412]=-19,CZe[4413]=33,CZe[4414]=-19,CZe[4415]=33,CZe[4416]=-19,Gm(CZe,4417,4428,33),CZe[4428]=-19,CZe[4429]=33,CZe[4430]=-19,CZe[4431]=33,CZe[4432]=-19,Gm(CZe,4433,4436,33),Gm(CZe,4436,4438,-19),Gm(CZe,4438,4441,33),CZe[4441]=-19,Gm(CZe,4442,4447,33),Gm(CZe,4447,4450,-19),CZe[4450]=33,CZe[4451]=-19,CZe[4452]=33,CZe[4453]=-19,CZe[4454]=33,CZe[4455]=-19,CZe[4456]=33,CZe[4457]=-19,Gm(CZe,4458,4461,33),Gm(CZe,4461,4463,-19),Gm(CZe,4463,4466,33),Gm(CZe,4466,4468,-19),CZe[4468]=33,CZe[4469]=-19,Gm(CZe,4470,4510,33),CZe[4510]=-19,Gm(CZe,4511,4520,33),CZe[4520]=-19,Gm(CZe,4521,4523,33),CZe[4523]=-19,Gm(CZe,4524,4526,33),Gm(CZe,4526,4528,-19),Gm(CZe,4528,4535,33),Gm(CZe,4535,4537,-19),CZe[4537]=33,CZe[4538]=-19,CZe[4539]=33,Gm(CZe,4540,4547,-19),Gm(CZe,4547,4587,33),CZe[4587]=-19,Gm(CZe,4588,4592,33),CZe[4592]=-19,Gm(CZe,4593,4601,33),CZe[4601]=-19,Gm(CZe,4602,7680,33),Gm(CZe,7680,7836,-19),Gm(CZe,7836,7840,33),Gm(CZe,7840,7930,-19),Gm(CZe,7930,7936,33),Gm(CZe,7936,7958,-19),Gm(CZe,7958,7960,33),Gm(CZe,7960,7966,-19),Gm(CZe,7966,7968,33),Gm(CZe,7968,8006,-19),Gm(CZe,8006,8008,33),Gm(CZe,8008,8014,-19),Gm(CZe,8014,8016,33),Gm(CZe,8016,8024,-19),CZe[8024]=33,CZe[8025]=-19,CZe[8026]=33,CZe[8027]=-19,CZe[8028]=33,CZe[8029]=-19,CZe[8030]=33,Gm(CZe,8031,8062,-19),Gm(CZe,8062,8064,33),Gm(CZe,8064,8117,-19),CZe[8117]=33,Gm(CZe,8118,8125,-19),CZe[8125]=33,CZe[8126]=-19,Gm(CZe,8127,8130,33),Gm(CZe,8130,8133,-19),CZe[8133]=33,Gm(CZe,8134,8141,-19),Gm(CZe,8141,8144,33),Gm(CZe,8144,8148,-19),Gm(CZe,8148,8150,33),Gm(CZe,8150,8156,-19),Gm(CZe,8156,8160,33),Gm(CZe,8160,8173,-19),Gm(CZe,8173,8178,33),Gm(CZe,8178,8181,-19),CZe[8181]=33,Gm(CZe,8182,8189,-19),Gm(CZe,8189,8400,33),Gm(CZe,8400,8413,-87),Gm(CZe,8413,8417,33),CZe[8417]=-87,Gm(CZe,8418,8486,33),CZe[8486]=-19,Gm(CZe,8487,8490,33),Gm(CZe,8490,8492,-19),Gm(CZe,8492,8494,33),CZe[8494]=-19,Gm(CZe,8495,8576,33),Gm(CZe,8576,8579,-19),Gm(CZe,8579,12293,33),CZe[12293]=-87,CZe[12294]=33,CZe[12295]=-19,Gm(CZe,12296,12321,33),Gm(CZe,12321,12330,-19),Gm(CZe,12330,12336,-87),CZe[12336]=33,Gm(CZe,12337,12342,-87),Gm(CZe,12342,12353,33),Gm(CZe,12353,12437,-19),Gm(CZe,12437,12441,33),Gm(CZe,12441,12443,-87),Gm(CZe,12443,12445,33),Gm(CZe,12445,12447,-87),Gm(CZe,12447,12449,33),Gm(CZe,12449,12539,-19),CZe[12539]=33,Gm(CZe,12540,12543,-87),Gm(CZe,12543,12549,33),Gm(CZe,12549,12589,-19),Gm(CZe,12589,19968,33),Gm(CZe,19968,40870,-19),Gm(CZe,40870,44032,33),Gm(CZe,44032,55204,-19),Gm(CZe,55204,ve,33),Gm(CZe,57344,65534,33)}function IQe(e){bu.call(this,e)}function TQe(e){var t,n,r;if(e.offset>=e.regexlen)return e.chardata=-1,void(e.nexttoken=1);if(t=ep(e.regex,e.offset++),e.chardata=t,1!=e.context){switch(t){case 124:r=2;break;case 42:r=3;break;case 43:r=4;break;case 63:r=5;break;case 41:r=7;break;case 46:r=8;break;case 91:r=9;break;case 94:r=11;break;case 36:r=12;break;case 40:if(r=6,e.offset>=e.regexlen)break;if(63!=ep(e.regex,e.offset))break;if(++e.offset>=e.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.next.2"))));switch(t=ep(e.regex,e.offset++)){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(e.offset>=e.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.next.2"))));if(61==(t=ep(e.regex,e.offset++)))r=16;else{if(33!=t)throw Vg(new IQe(YRe(($Ke(),"parser.next.3"))));r=17}break;case 35:for(;e.offset=e.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.next.1"))));e.chardata=ep(e.regex,e.offset++);break;default:r=0}e.nexttoken=r}else{switch(t){case 92:if(r=10,e.offset>=e.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.next.1"))));e.chardata=ep(e.regex,e.offset++);break;case 45:512==(512&e.options_0)&&e.offset=48&&t<=57))throw Vg(new IQe(YRe(($Ke(),"parser.quantifier.1"))));for(r=t-48;i=48&&t<=57;)if((r=10*r+t-48)<0)throw Vg(new IQe(YRe(($Ke(),"parser.quantifier.5"))));if(n=r,44==t){if(i>=e.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.quantifier.3"))));if((t=ep(e.regex,i++))>=48&&t<=57){for(n=t-48;i=48&&t<=57;)if((n=10*n+t-48)<0)throw Vg(new IQe(YRe(($Ke(),"parser.quantifier.5"))));if(r>n)throw Vg(new IQe(YRe(($Ke(),"parser.quantifier.4"))))}else n=-1}if(125!=t)throw Vg(new IQe(YRe(($Ke(),"parser.quantifier.2"))));e.checkQuestion(i)?(WQe(),WQe(),a=new H0e(9,a),e.offset=i+1):(WQe(),WQe(),a=new H0e(3,a),e.offset=i),a.setMin(r),a.setMax(n),TQe(e)}}return a}function MQe(e){var t,n;for(n=NQe(e),t=null;2==e.nexttoken;)TQe(e),t||(WQe(),WQe(),X0e(t=new J0e(2),n),n=t),n.addChild(NQe(e));return n}function NQe(e){var t,n,r;if(2==(t=e.nexttoken)||7==t||1==t)return WQe(),WQe(),h0e;for(r=PQe(e),n=null;2!=(t=e.nexttoken)&&7!=t&&1!=t;)n||(WQe(),WQe(),X0e(n=new J0e(1),r),r=n),X0e(n,PQe(e));return r}function LQe(e,t){var n,r,i,a;if(TQe(e),0!=e.nexttoken||123!=e.chardata)throw Vg(new IQe(YRe(($Ke(),"parser.atom.2"))));if(a=112==t,r=e.offset,(n=ap(e.regex,125,r))<0)throw Vg(new IQe(YRe(($Ke(),"parser.atom.3"))));return i=dp(e.regex,r,n),e.offset=n+1,n0e(i,a,512==(512&e.options_0))}function zQe(){}function AQe(e){return e<48||e>102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function DQe(e){var t;if(10!=e.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.next.1"))));switch(t=e.chardata){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))}return t}function RQe(e){switch(e){case 100:return GQe("xml:isDigit",!0);case 68:return GQe("xml:isDigit",!1);case 119:return GQe("xml:isWord",!0);case 87:return GQe("xml:isWord",!1);case 115:return GQe("xml:isSpace",!0);case 83:return GQe("xml:isSpace",!1);case 99:return GQe("xml:isNameChar",!0);case 67:return GQe("xml:isNameChar",!1);case 105:return GQe("xml:isInitialNameChar",!0);case 73:return GQe("xml:isInitialNameChar",!1);default:throw Vg(new bu("Internal Error: shorthands: \\u"+e.toString(16)))}}function FQe(e){var t,n,r,i,a,s,o,l;for(e.context=1,TQe(e),t=null,0==e.nexttoken&&94==e.chardata?(TQe(e),WQe(),WQe(),N0e(t=new F0e(4),0,dn),s=new F0e(4)):(WQe(),WQe(),s=new F0e(4)),i=!0;1!=(l=e.nexttoken);){if(0==l&&93==e.chardata&&!i){t&&(R0e(t,s),s=t);break}if(n=e.chardata,r=!1,10==l)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:A0e(s,RQe(n)),r=!0;break;case 105:case 73:case 99:case 67:A0e(s,RQe(n)),(n=-1)<0&&(r=!0);break;case 112:case 80:if(!(o=LQe(e,n)))throw Vg(new IQe(YRe(($Ke(),"parser.atom.5"))));A0e(s,o),r=!0;break;default:n=DQe(e)}else if(24==l&&!i){if(t&&(R0e(t,s),s=t),R0e(s,FQe(e)),0!=e.nexttoken||93!=e.chardata)throw Vg(new IQe(YRe(($Ke(),"parser.cc.5"))));break}if(TQe(e),!r){if(0==l){if(91==n)throw Vg(new IQe(YRe(($Ke(),"parser.cc.6"))));if(93==n)throw Vg(new IQe(YRe(($Ke(),"parser.cc.7"))));if(45==n&&!i&&93!=e.chardata)throw Vg(new IQe(YRe(($Ke(),"parser.cc.8"))))}if(0!=e.nexttoken||45!=e.chardata||45==n&&i)N0e(s,n,n);else{if(TQe(e),1==(l=e.nexttoken))throw Vg(new IQe(YRe(($Ke(),"parser.cc.2"))));if(0==l&&93==e.chardata)N0e(s,n,n),N0e(s,45,45);else{if(0==l&&93==e.chardata||24==l)throw Vg(new IQe(YRe(($Ke(),"parser.cc.8"))));if(a=e.chardata,0==l){if(91==a)throw Vg(new IQe(YRe(($Ke(),"parser.cc.6"))));if(93==a)throw Vg(new IQe(YRe(($Ke(),"parser.cc.7"))));if(45==a)throw Vg(new IQe(YRe(($Ke(),"parser.cc.8"))))}else 10==l&&(a=DQe(e));if(TQe(e),n>a)throw Vg(new IQe(YRe(($Ke(),"parser.ope.3"))));N0e(s,n,a)}}}i=!1}if(1==e.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.cc.2"))));return D0e(s),L0e(s),e.context=0,TQe(e),s}function OQe(){zQe.call(this)}function GQe(e,t){var n;return jQe||(jQe=new Rv,VQe=new Rv,WQe(),WQe(),BQe(n=new F0e(4),"\t\n\r\r "),fy(jQe,"xml:isSpace",n),fy(VQe,"xml:isSpace",O0e(n)),BQe(n=new F0e(4),"09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩"),fy(jQe,"xml:isDigit",n),fy(VQe,"xml:isDigit",O0e(n)),BQe(n=new F0e(4),"09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩"),fy(jQe,"xml:isDigit",n),fy(VQe,"xml:isDigit",O0e(n)),BQe(n=new F0e(4),"AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣"),A0e(n,Pn(uy(jQe,"xml:isDigit"),117)),fy(jQe,"xml:isWord",n),fy(VQe,"xml:isWord",O0e(n)),BQe(n=new F0e(4),"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),fy(jQe,"xml:isNameChar",n),fy(VQe,"xml:isNameChar",O0e(n)),BQe(n=new F0e(4),"AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣"),N0e(n,95,95),N0e(n,58,58),fy(jQe,"xml:isInitialNameChar",n),fy(VQe,"xml:isInitialNameChar",O0e(n))),Pn(uy(t?jQe:VQe,e),136)}function BQe(e,t){var n,r;for(r=t.length,n=0;n16*n)throw Vg(new IQe(YRe(($Ke(),"parser.descape.2"))));n=16*n+i}if(125!=this.chardata)throw Vg(new IQe(YRe(($Ke(),"parser.descape.3"))));if(n>dn)throw Vg(new IQe(YRe(($Ke(),"parser.descape.4"))));e=n}else{if(i=0,0!=this.nexttoken||(i=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(n=i,TQe(this),0!=this.nexttoken||(i=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));e=n=16*n+i}break;case 117:if(r=0,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=16*t+r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=16*t+r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));e=t=16*t+r;break;case 118:if(TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=16*t+r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=16*t+r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=16*t+r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if(t=16*t+r,TQe(this),0!=this.nexttoken||(r=AQe(this.chardata))<0)throw Vg(new IQe(YRe(($Ke(),"parser.descape.1"))));if((t=16*t+r)>dn)throw Vg(new IQe(YRe(($Ke(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw Vg(new IQe(YRe(($Ke(),"parser.descape.5"))))}return e},i.getTokenForShorthand=function(e){var t;switch(e){case 100:t=32==(32&this.options_0)?t0e("Nd",!0):(WQe(),c0e);break;case 68:t=32==(32&this.options_0)?t0e("Nd",!1):(WQe(),d0e);break;case 119:t=32==(32&this.options_0)?t0e("IsWord",!0):(WQe(),b0e);break;case 87:t=32==(32&this.options_0)?t0e("IsWord",!1):(WQe(),_0e);break;case 115:t=32==(32&this.options_0)?t0e("IsSpace",!0):(WQe(),m0e);break;case 83:t=32==(32&this.options_0)?t0e("IsSpace",!1):(WQe(),p0e);break;default:throw Vg(new bu("Internal Error: shorthands: \\u"+e.toString(16)))}return t},i.parseCharacterClass=function(e){var t,n,r,i,a,s,o,l,c,u,h;for(this.context=1,TQe(this),t=null,0==this.nexttoken&&94==this.chardata?(TQe(this),e?(WQe(),WQe(),c=new F0e(5)):(WQe(),WQe(),N0e(t=new F0e(4),0,dn),c=new F0e(4))):(WQe(),WQe(),c=new F0e(4)),i=!0;1!=(h=this.nexttoken)&&(0!=h||93!=this.chardata||i);){if(i=!1,n=this.chardata,r=!1,10==h)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:A0e(c,this.getTokenForShorthand(n)),r=!0;break;case 105:case 73:case 99:case 67:(n=this.processCIinCharacterClass(c,n))<0&&(r=!0);break;case 112:case 80:if(!(u=LQe(this,n)))throw Vg(new IQe(YRe(($Ke(),"parser.atom.5"))));A0e(c,u),r=!0;break;default:n=this.decodeEscaped()}else if(20==h){if((a=ap(this.regex,58,this.offset))<0)throw Vg(new IQe(YRe(($Ke(),"parser.cc.1"))));if(s=!0,94==ep(this.regex,this.offset)&&(++this.offset,s=!1),!(o=n0e(dp(this.regex,this.offset,a),s,512==(512&this.options_0))))throw Vg(new IQe(YRe(($Ke(),"parser.cc.3"))));if(A0e(c,o),r=!0,a+1>=this.regexlen||93!=ep(this.regex,a+1))throw Vg(new IQe(YRe(($Ke(),"parser.cc.1"))));this.offset=a+2}if(TQe(this),!r)if(0!=this.nexttoken||45!=this.chardata)N0e(c,n,n);else{if(TQe(this),1==(h=this.nexttoken))throw Vg(new IQe(YRe(($Ke(),"parser.cc.2"))));0==h&&93==this.chardata?(N0e(c,n,n),N0e(c,45,45)):(l=this.chardata,10==h&&(l=this.decodeEscaped()),TQe(this),N0e(c,n,l))}(this.options_0&Kt)==Kt&&0==this.nexttoken&&44==this.chardata&&TQe(this)}if(1==this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.cc.2"))));return t&&(R0e(t,c),c=t),D0e(c),L0e(c),this.context=0,TQe(this),c},i.parseSetOperations=function(){var e,t,n,r;for(n=this.parseCharacterClass(!1);7!=(r=this.nexttoken);){if(e=this.chardata,(0!=r||45!=e&&38!=e)&&4!=r)throw Vg(new IQe(YRe(($Ke(),"parser.ope.2"))));if(TQe(this),9!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.ope.1"))));if(t=this.parseCharacterClass(!1),4==r)A0e(n,t);else if(45==e)R0e(n,t);else{if(38!=e)throw Vg(new bu("ASSERT"));z0e(n,t)}}return TQe(this),n},i.processBackreference=function(){var e,t;return e=this.chardata-48,WQe(),WQe(),t=new Y0e(12,null,e),!this.references&&(this.references=new vb),mb(this.references,new B0e(e)),TQe(this),t},i.processBacksolidus_A=function(){return TQe(this),WQe(),w0e},i.processBacksolidus_B=function(){return TQe(this),WQe(),y0e},i.processBacksolidus_C=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_I=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_X=function(){return TQe(this),WQe(),T0e||(e=new H0e(3,t0e("M",!0)),e=XQe(t0e("M",!1),e),T0e=e);var e},i.processBacksolidus_Z=function(){return TQe(this),WQe(),x0e},i.processBacksolidus_b=function(){return TQe(this),WQe(),C0e},i.processBacksolidus_c=function(){var e;if(this.offset>=this.regexlen||64!=(65504&(e=ep(this.regex,this.offset++))))throw Vg(new IQe(YRe(($Ke(),"parser.atom.1"))));return TQe(this),WQe(),WQe(),new V0e(0,e-64)},i.processBacksolidus_g=function(){return TQe(this),function(){var e,t,n,r,i,a;if(WQe(),P0e)return P0e;for(A0e(e=new F0e(4),t0e("ASSIGNED",!0)),R0e(e,t0e("M",!0)),R0e(e,t0e("C",!0)),a=new F0e(4),r=0;r<11;r++)N0e(a,r,r);return A0e(t=new F0e(4),t0e("M",!0)),N0e(t,4448,4607),N0e(t,65438,65439),X0e(i=new J0e(2),e),X0e(i,h0e),(n=new J0e(2)).addChild(XQe(a,t0e("L",!0))),n.addChild(t),n=new U0e(i,n=new H0e(3,n)),P0e=n}()},i.processBacksolidus_gt=function(){return TQe(this),WQe(),S0e},i.processBacksolidus_i=function(){var e;return WQe(),WQe(),e=new V0e(0,105),TQe(this),e},i.processBacksolidus_lt=function(){return TQe(this),WQe(),E0e},i.processBacksolidus_z=function(){return TQe(this),WQe(),v0e},i.processCIinCharacterClass=function(e,t){return this.decodeEscaped()},i.processCaret=function(){return TQe(this),WQe(),g0e},i.processCondition=function(){var e,t,n,r,i;if(this.offset+1>=this.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.factor.4"))));if(r=-1,t=null,49<=(e=ep(this.regex,this.offset))&&e<=57){if(r=e-48,!this.references&&(this.references=new vb),mb(this.references,new B0e(r)),++this.offset,41!=ep(this.regex,this.offset))throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));++this.offset}else switch(63==e&&--this.offset,TQe(this),(t=PQe(this)).type_0){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));break;default:throw Vg(new IQe(YRe(($Ke(),"parser.factor.5"))))}if(TQe(this),n=null,2==(i=MQe(this)).type_0){if(2!=i.size_2())throw Vg(new IQe(YRe(($Ke(),"parser.factor.6"))));n=i.getChild(1),i=i.getChild(0)}if(7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),WQe(),WQe(),new q0e(r,t,i,n)},i.processDollar=function(){return TQe(this),WQe(),f0e},i.processIndependent=function(){var e;if(TQe(this),e=JQe(24,MQe(this)),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),e},i.processLookahead=function(){var e;if(TQe(this),e=JQe(20,MQe(this)),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),e},i.processLookbehind=function(){var e;if(TQe(this),e=JQe(22,MQe(this)),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),e},i.processModifiers=function(){var e,t,n,r,i;for(e=0,n=0,t=-1;this.offset=this.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.factor.2"))));if(45==t){for(++this.offset;this.offset=this.regexlen)throw Vg(new IQe(YRe(($Ke(),"parser.factor.2"))))}if(58==t){if(++this.offset,TQe(this),r=ZQe(MQe(this),e,n),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));TQe(this)}else{if(41!=t)throw Vg(new IQe(YRe(($Ke(),"parser.factor.3"))));++this.offset,TQe(this),r=ZQe(MQe(this),e,n)}return r},i.processNegativelookahead=function(){var e;if(TQe(this),e=JQe(21,MQe(this)),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),e},i.processNegativelookbehind=function(){var e;if(TQe(this),e=JQe(23,MQe(this)),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),e},i.processParen=function(){var e,t;if(TQe(this),e=this.parennumber++,t=QQe(MQe(this),e),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),t},i.processParen2=function(){var e;if(TQe(this),e=QQe(MQe(this),0),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),e},i.processPlus=function(e){return TQe(this),5==this.nexttoken?(TQe(this),XQe(e,(WQe(),WQe(),new H0e(9,e)))):XQe(e,(WQe(),WQe(),new H0e(3,e)))},i.processQuestion=function(e){var t;return TQe(this),WQe(),WQe(),t=new J0e(2),5==this.nexttoken?(TQe(this),X0e(t,h0e),X0e(t,e)):(X0e(t,e),X0e(t,h0e)),t},i.processStar=function(e){return TQe(this),5==this.nexttoken?(TQe(this),WQe(),WQe(),new H0e(9,e)):(WQe(),WQe(),new H0e(3,e))},i.chardata=0,i.context=0,i.nexttoken=0,i.offset=0,i.options_0=0,i.parennumber=1,i.references=null,i.regexlen=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/RegexParser",799),bn(1796,799,{},OQe),i.checkQuestion=function(e){return!1},i.decodeEscaped=function(){return DQe(this)},i.getTokenForShorthand=function(e){return RQe(e)},i.parseCharacterClass=function(e){return FQe(this)},i.parseSetOperations=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBackreference=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_A=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_B=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_C=function(){return TQe(this),RQe(67)},i.processBacksolidus_I=function(){return TQe(this),RQe(73)},i.processBacksolidus_X=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_Z=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_b=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_c=function(){return TQe(this),RQe(99)},i.processBacksolidus_g=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_gt=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_i=function(){return TQe(this),RQe(105)},i.processBacksolidus_lt=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processBacksolidus_z=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processCIinCharacterClass=function(e,t){return A0e(e,RQe(t)),-1},i.processCaret=function(){return TQe(this),WQe(),WQe(),new V0e(0,94)},i.processCondition=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processDollar=function(){return TQe(this),WQe(),WQe(),new V0e(0,36)},i.processIndependent=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processLookahead=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processLookbehind=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processModifiers=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processNegativelookahead=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processNegativelookbehind=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processParen=function(){var e;if(TQe(this),e=QQe(MQe(this),0),7!=this.nexttoken)throw Vg(new IQe(YRe(($Ke(),"parser.factor.1"))));return TQe(this),e},i.processParen2=function(){throw Vg(new IQe(YRe(($Ke(),"parser.process.1"))))},i.processPlus=function(e){return TQe(this),XQe(e,(WQe(),WQe(),new H0e(3,e)))},i.processQuestion=function(e){var t;return TQe(this),WQe(),WQe(),X0e(t=new J0e(2),e),X0e(t,h0e),t},i.processStar=function(e){return TQe(this),WQe(),WQe(),new H0e(3,e)};var jQe=null,VQe=null;function HQe(e){var t;return t=new Op,0!=(256&e)&&(t.string+="F"),0!=(128&e)&&(t.string+="H"),0!=(512&e)&&(t.string+="X"),0!=(2&e)&&(t.string+="i"),0!=(8&e)&&(t.string+="m"),0!=(4&e)&&(t.string+="s"),0!=(32&e)&&(t.string+="u"),0!=(64&e)&&(t.string+="w"),0!=(16&e)&&(t.string+="x"),0!=(e&Kt)&&(t.string+=","),lp(t.string)}function UQe(e){var t;return t=xg(c1e,ne,24,2,15,1),e-=we,t[0]=(e>>10)+ve&re,t[1]=56320+(1023&e)&re,xp(t,0,t.length)}function qQe(e){var t;switch(t=0,e){case 105:t=2;break;case 109:t=8;break;case 115:t=4;break;case 120:t=16;break;case 117:t=32;break;case 119:t=64;break;case 70:t=256;break;case 72:t=128;break;case 88:t=512;break;case 44:t=Kt}return t}function WQe(){WQe=En,h0e=new KQe(7),g0e=new V0e(8,94),new V0e(8,64),f0e=new V0e(8,36),w0e=new V0e(8,65),v0e=new V0e(8,122),x0e=new V0e(8,90),C0e=new V0e(8,98),y0e=new V0e(8,66),E0e=new V0e(8,60),S0e=new V0e(8,62),u0e=new KQe(11),N0e(c0e=new F0e(4),48,57),N0e(b0e=new F0e(4),48,57),N0e(b0e,65,90),N0e(b0e,95,95),N0e(b0e,97,122),N0e(m0e=new F0e(4),9,9),N0e(m0e,10,10),N0e(m0e,12,12),N0e(m0e,13,13),N0e(m0e,32,32),d0e=O0e(c0e),_0e=O0e(b0e),p0e=O0e(m0e),a0e=new Rv,s0e=new Rv,o0e=Sg(yg(Mp,1),$,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),i0e=Sg(yg(Mp,1),$,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables","Private Use","CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),l0e=Sg(yg(u1e,1),ie,24,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function KQe(e){this.type_0=e}function YQe(e){return WQe(),new V0e(0,e)}function XQe(e,t){return WQe(),new U0e(e,t)}function JQe(e,t){return WQe(),new K0e(e,t,0)}function ZQe(e,t,n){return WQe(),new W0e(e,t,n)}function QQe(e,t){return WQe(),new K0e(6,e,t)}function e0e(e){return WQe(),new Y0e(10,e,0)}function t0e(e,t){var n,r,i,a,s,o,l,c,u,h,g;if(WQe(),0==_y(a0e)){for(h=xg(M0e,$,117,o0e.length,0,1),s=0;sc&&(r.string+=vp(xg(c1e,ne,24,-c,15,1))),r.string+="Is",sp(l,mp(32))>=0)for(i=0;i=i&&(e.sorted=!1,e.compacted=!1),e.ranges[r++]=i,e.ranges[r]=a,e.sorted||D0e(e)}}function L0e(e){var t,n,r,i;if(!(null==e.ranges||e.ranges.length<=2||e.compacted)){for(t=0,i=0;i=e.ranges[i+1])i+=2;else{if(!(n=o&&i<=l)o<=i&&a<=l?(n[u++]=i,n[u++]=a,r+=2):o<=i?(n[u++]=i,n[u++]=l,e.ranges[r]=l+1,s+=2):a<=l?(n[u++]=o,n[u++]=a,r+=2):(n[u++]=o,n[u++]=l,e.ranges[r]=l+1);else{if(!(l=e.ranges.length?(a[i++]=s.ranges[r++],a[i++]=s.ranges[r++]):r>=s.ranges.length?(a[i++]=e.ranges[n++],a[i++]=e.ranges[n++]):s.ranges[r]=0;t-=2)for(n=0;n<=t;n+=2)(e.ranges[n]>e.ranges[n+2]||e.ranges[n]===e.ranges[n+2]&&e.ranges[n+1]>e.ranges[n+3])&&(r=e.ranges[n+2],e.ranges[n+2]=e.ranges[n],e.ranges[n]=r,r=e.ranges[n+3],e.ranges[n+3]=e.ranges[n+1],e.ranges[n+1]=r);e.sorted=!0}}function R0e(e,t){var n,r,i,a,s,o,l,c,u;if(5!=t.type_0){if(null!=(c=t).ranges&&null!=e.ranges){for(D0e(e),L0e(e),D0e(c),L0e(c),n=xg(u1e,ie,24,e.ranges.length+c.ranges.length,15,1),u=0,r=0,s=0;r=o&&i<=l)o<=i&&a<=l?r+=2:o<=i?(e.ranges[r]=l+1,s+=2):a<=l?(n[u++]=i,n[u++]=o-1,r+=2):(n[u++]=i,n[u++]=o-1,e.ranges[r]=l+1,s+=2);else{if(!(l0&&(i.ranges[s++]=0,i.ranges[s++]=a.ranges[0]-1),t=1;t>>0).toString(16),t.length-2,t.length):e>=we?"\\v"+dp(t="0"+(e>>>0).toString(16),t.length-6,t.length):""+String.fromCharCode(e&re)}return n}function B0e(e){this.refNumber=e}function j0e(e){var t,n,r,i;t=this,n=e,r=function(){var e,t,n;for(t=0,e=0;e<"X".length;e++){if(0==(n=qQe((s$(e,"X".length),"X".charCodeAt(e)))))throw Vg(new IQe("Unknown Option: "+"X".substr(e)));t|=n}return t}(),t.regex=n,t.options_0=r,i=512==(512&t.options_0)?new OQe:new zQe,t.tokentree=function(e,t,n){var r,i,a;if(e.options_0=n,e.offset=0,e.context=0,e.parennumber=1,e.regex=t,16==(16&e.options_0)&&(e.regex=function(e){var t,n,r,i,a;for(r=e.length,t=new Op,a=0;a=we?Dp(n,UQe(r)):Np(n,r&re),a=new Y0e(10,null,0),function(e,t,n){xb(n,e.arrayList.array.length),ym(e.arrayList,n,t)}(e.children,a,s-1)):(a.getString().length,Dp(n=new Op,a.getString())),0==t.type_0?(r=t.getChar())>=we?Dp(n,UQe(r)):Np(n,r&re):Dp(n,t.getString()),Pn(a,514).string=n.string):mb(e.children,t);else for(i=0;i0?dp(n.string,0,a-1):"":e.substr(0,a-1):n?n.string:e}function Q0e(e){this.regularExpression=new j0e(e)}function e1e(){e1e=En,CXe(),k0e=new t1e,Sg(yg(GBe,2),$,365,0,[Sg(yg(GBe,1),_n,583,0,[new Q0e("[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*")])]),Sg(yg(GBe,2),$,365,0,[Sg(yg(GBe,1),_n,583,0,[new Q0e("\\i\\c*")])]),Sg(yg(GBe,2),$,365,0,[Sg(yg(GBe,1),_n,583,0,[new Q0e("[\\i-[:]][\\c-[:]]*")]),Sg(yg(GBe,1),_n,583,0,[new Q0e("\\i\\c*")])]),new R_("-1"),Sg(yg(GBe,2),$,365,0,[Sg(yg(GBe,1),_n,583,0,[new Q0e("\\c+")])]),new R_("0"),new R_("0"),new R_("1"),new R_("0"),new R_("18446744073709551615")}function t1e(){}function n1e(){n1e=En,$0e=new i1e}function r1e(e){n1e(),this.first=0,this.last=e-1,this.step=1}function i1e(){}function a1e(e){this.this$01=e,this.next_0=this.this$01.first}function s1e(e){return e?e.isEmpty():!e.iterator_0().hasNext_0()}function o1e(e){return!e||s1e(e)}bn(136,117,{3:1,136:1,117:1},F0e),i.toString_1=function(e){var t,n,r;if(4==this.type_0)if(this==u0e)n=".";else if(this==c0e)n="\\d";else if(this==b0e)n="\\w";else if(this==m0e)n="\\s";else{for((r=new Fp).string+="[",t=0;t0&&(r.string+=","),this.ranges[t]===this.ranges[t+1]?Dp(r,G0e(this.ranges[t])):(Dp(r,G0e(this.ranges[t])),r.string+="-",Dp(r,G0e(this.ranges[t+1])));r.string+="]",n=r.string}else if(this==d0e)n="\\D";else if(this==_0e)n="\\W";else if(this==p0e)n="\\S";else{for((r=new Fp).string+="[^",t=0;t0&&(r.string+=","),this.ranges[t]===this.ranges[t+1]?Dp(r,G0e(this.ranges[t])):(Dp(r,G0e(this.ranges[t])),r.string+="-",Dp(r,G0e(this.ranges[t+1])));r.string+="]",n=r.string}return n},i.compacted=!1,i.sorted=!1,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/RangeToken",136),bn(575,1,{575:1},B0e),i.refNumber=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/RegexParser/ReferencePosition",575),bn(574,1,{3:1,574:1},j0e),i.equals_0=function(e){var t;return null!=e&&!!Fn(e,574)&&(t=Pn(e,574),np(this.regex,t.regex)&&this.options_0==t.options_0)},i.hashCode_1=function(){return h$(this.regex+"/"+HQe(this.options_0))},i.toString_0=function(){return this.tokentree.toString_1(this.options_0)},i.options_0=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/RegularExpression",574),bn(221,117,pn,V0e),i.getChar=function(){return this.chardata},i.toString_1=function(e){var t,n;switch(this.type_0){case 0:switch(this.chardata){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:n="\\"+Dn(this.chardata&re);break;case 12:n="\\f";break;case 10:n="\\n";break;case 13:n="\\r";break;case 9:n="\\t";break;case 27:n="\\e";break;default:n=this.chardata>=we?"\\v"+dp(t="0"+(this.chardata>>>0).toString(16),t.length-6,t.length):""+Dn(this.chardata&re)}break;case 8:n=this==g0e||this==f0e?""+Dn(this.chardata&re):"\\"+Dn(this.chardata&re);break;default:n=null}return n},i.chardata=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/Token/CharToken",221),bn(307,117,pn,H0e),i.getChild=function(e){return this.child},i.setMax=function(e){this.max_0=e},i.setMin=function(e){this.min_0=e},i.size_2=function(){return 1},i.toString_1=function(e){var t;if(3==this.type_0)if(this.min_0<0&&this.max_0<0)t=this.child.toString_1(e)+"*";else if(this.min_0==this.max_0)t=this.child.toString_1(e)+"{"+this.min_0+"}";else if(this.min_0>=0&&this.max_0>=0)t=this.child.toString_1(e)+"{"+this.min_0+","+this.max_0+"}";else{if(!(this.min_0>=0&&this.max_0<0))throw Vg(new bu("Token#toString(): CLOSURE "+this.min_0+", "+this.max_0));t=this.child.toString_1(e)+"{"+this.min_0+",}"}else if(this.min_0<0&&this.max_0<0)t=this.child.toString_1(e)+"*?";else if(this.min_0==this.max_0)t=this.child.toString_1(e)+"{"+this.min_0+"}?";else if(this.min_0>=0&&this.max_0>=0)t=this.child.toString_1(e)+"{"+this.min_0+","+this.max_0+"}?";else{if(!(this.min_0>=0&&this.max_0<0))throw Vg(new bu("Token#toString(): NONGREEDYCLOSURE "+this.min_0+", "+this.max_0));t=this.child.toString_1(e)+"{"+this.min_0+",}?"}return t},i.max_0=0,i.min_0=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/Token/ClosureToken",307),bn(800,117,pn,U0e),i.getChild=function(e){return 0==e?this.child:this.child2},i.size_2=function(){return 2},i.toString_1=function(e){return 3==this.child2.type_0&&this.child2.getChild(0)==this.child?this.child.toString_1(e)+"+":9==this.child2.type_0&&this.child2.getChild(0)==this.child?this.child.toString_1(e)+"+?":this.child.toString_1(e)+""+this.child2.toString_1(e)},Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/Token/ConcatToken",800),bn(1794,117,pn,q0e),i.getChild=function(e){if(0==e)return this.yes;if(1==e)return this.no;throw Vg(new bu("Internal Error: "+e))},i.size_2=function(){return this.no?2:1},i.toString_1=function(e){var t;return t=this.refNumber>0?"(?("+this.refNumber+")":8==this.condition.type_0?"(?("+this.condition+")":"(?"+this.condition,this.no?t+=this.yes+"|"+this.no+")":t+=this.yes+")",t},i.refNumber=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/Token/ConditionToken",1794),bn(1795,117,pn,W0e),i.getChild=function(e){return this.child},i.size_2=function(){return 1},i.toString_1=function(e){return"(?"+(0==this.add_0?"":HQe(this.add_0))+(0==this.mask?"":HQe(this.mask))+":"+this.child.toString_1(e)+")"},i.add_0=0,i.mask=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/Token/ModifierToken",1795),bn(801,117,pn,K0e),i.getChild=function(e){return this.child},i.size_2=function(){return 1},i.toString_1=function(e){var t;switch(t=null,this.type_0){case 6:t=0==this.parennumber?"(?:"+this.child.toString_1(e)+")":"("+this.child.toString_1(e)+")";break;case 20:t="(?="+this.child.toString_1(e)+")";break;case 21:t="(?!"+this.child.toString_1(e)+")";break;case 22:t="(?<="+this.child.toString_1(e)+")";break;case 23:t="(?"+this.child.toString_1(e)+")"}return t},i.parennumber=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/Token/ParenToken",801),bn(514,117,{3:1,117:1,514:1},Y0e),i.getString=function(){return this.string},i.toString_1=function(e){return 12==this.type_0?"\\"+this.refNumber:function(e){var t,n,r,i;for(i=e.length,t=null,r=0;r=0?(t||(t=new Op,r>0&&Dp(t,e.substr(0,r))),t.string+="\\",Np(t,n&re)):t&&Np(t,n&re);return t?t.string:e}(this.string)},i.refNumber=0,Qn("org.eclipse.emf.ecore.xml.type.internal","RegEx/Token/StringToken",514),bn(459,117,pn,J0e),i.addChild=function(e){X0e(this,e)},i.getChild=function(e){return Pn(wb(this.children,e),117)},i.size_2=function(){return this.children?this.children.arrayList.array.length:0},i.toString_1=function(e){var t,n,r,i,a;if(1==this.type_0){if(2==this.children.arrayList.array.length)t=Pn(wb(this.children,0),117),i=3==(n=Pn(wb(this.children,1),117)).type_0&&n.getChild(0)==t?t.toString_1(e)+"+":9==n.type_0&&n.getChild(0)==t?t.toString_1(e)+"+?":t.toString_1(e)+""+n.toString_1(e);else{for(a=new Fp,r=0;r=e.this$01.last:e.next_0<=e.this$01.last))throw Vg(new lE);return t=e.next_0,e.next_0+=e.this$01.step,++e.nextIndex,Cd(t)}(this)},i.previous_0=function(){return function(e){if(e.nextIndex<=0)throw Vg(new lE);return--e.nextIndex,e.next_0-=e.this$01.step,Cd(e.next_0)}(this)},i.set_1=function(e){Pn(e,20),function(){throw Vg(new a_("Cannot set elements in a Range"))}()},i.hasNext_0=function(){return this.this$01.step<0?this.next_0>=this.this$01.last:this.next_0<=this.this$01.last},i.hasPrevious=function(){return this.nextIndex>0},i.nextIndex_0=function(){return this.nextIndex},i.previousIndex=function(){return this.nextIndex-1},i.remove=function(){throw Vg(new a_("Cannot remove elements from a Range"))},i.next_0=0,i.nextIndex=0,Qn("org.eclipse.xtext.xbase.lib","ExclusiveRange/RangeIterator",253);var l1e,c1e=nr("char","C"),u1e=nr("int","I"),h1e=nr("boolean","Z"),g1e=nr("long","J"),f1e=nr("byte","B"),d1e=nr("double","D"),p1e=nr("float","F"),_1e=nr("short","S"),y1e=tr("org.eclipse.elk.core.labels","ILabelManager"),m1e=tr("org.eclipse.emf.common.util","DiagnosticChain"),w1e=tr("org.eclipse.emf.ecore.resource","ResourceSet"),v1e=Qn("org.eclipse.emf.common.util","InvocationTargetException",null),x1e=(Mu(),function(e){return Mu(),function(){return Nu(e,this,arguments)}}),E1e=E1e=function(e,t,n,r){yn();var i=s;function a(){for(var e=0;e{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>e+".a06eed5dbe07cc2f6f27.worker.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{n.S={};var e={},t={};n.I=(r,i)=>{i||(i=[]);var a=t[r];if(a||(a=t[r]={}),!(i.indexOf(a)>=0)){if(i.push(a),e[r])return e[r];n.o(n.S,r)||(n.S[r]={});var s=n.S[r],o="@jupyrdf/jupyter-elk",l=[];switch(r){case"default":((e,t,r,i)=>{var a=s[e]=s[e]||{},l=a[t];(!l||!l.loaded&&(1!=!l.eager?i:o>l.from))&&(a[t]={get:()=>n.e(365).then((()=>()=>n(365))),from:o,eager:!1})})("@jupyrdf/jupyter-elk","1.0.1")}return e[r]=l.length?Promise.all(l).then((()=>e[r]=1)):1}}})(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={186:1};n.f.i=(t,r)=>{e[t]||importScripts(""+n.u(t))};var t=self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[],r=t.push.bind(t);t.push=t=>{var[i,a,s]=t;for(var o in a)n.o(a,o)&&(n.m[o]=a[o]);for(s&&s(n);i.length;)e[i.pop()]=1;r(t)}})(),n(71)})(); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/elkdisplay.f41b778ee85ca3d59823.js b/py_src/ipyelk/labextension/static/elkdisplay.f41b778ee85ca3d59823.js new file mode 100644 index 00000000..34d7836d --- /dev/null +++ b/py_src/ipyelk/labextension/static/elkdisplay.f41b778ee85ca3d59823.js @@ -0,0 +1 @@ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[555],{5825:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ELKDiagramModel:()=>Ce,ELKDiagramView:()=>De}),s(6218);var i=s(1966),o=s.n(i),n=s(6168),r=s(8081),l=s(3409),a=s(8036),d=s(6700);function c(e,t=""){return null==e||0==e.length?t:e}function u(e){var t;let s=((null===(t=e.properties)||void 0===t?void 0:t.cssClasses)||"").trim();return s?s.split(" "):[]}class h{constructor(){this.nodeIds=new Set,this.edgeIds=new Set,this.portIds=new Set,this.labelIds=new Set,this.sectionIds=new Set,this.defsIds=new Map,this.connectors=new Map}transform(e,t,s){const i={type:"graph",id:e.id||"root",children:[],cssClasses:u(e),defs:this.transformDefs(t,s)};if(e.children){const t=e.children.map(this.transformElkNode,this);i.children.push(...t)}if(e.edges){const t=e.edges.map(this.transformElkEdge,this);i.children.push(...t)}return i}transformDefs(e,t){let s=[];for(const i in e)s.push(this.transformDef(i,e[i],t));return{children:s}}transformDef(e,t,s){var i,o;let n=(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.map(this.transformDefElement,this))||[];return this.defsIds[e]=`${s}_${e}`,"connectordef"==(null===(o=null==t?void 0:t.properties)||void 0===o?void 0:o.type)&&(this.connectors[e]=t),{type:"def",id:e,children:n,position:this.pos(t),size:this.size(t),properties:t.properties}}transformDefElement(e){var t;return e.properties.isDef=!0,{id:e.id,position:this.pos(e),size:this.size(e),children:[],properties:e.properties,type:null===(t=e.properties)||void 0===t?void 0:t.type}}transformElkNode(e){var t;this.checkAndRememberId(e,this.nodeIds);const s={type:c(null===(t=null==e?void 0:e.properties)||void 0===t?void 0:t.type,"node"),id:e.id,position:this.pos(e),size:this.size(e),children:[],cssClasses:u(e),properties:null==e?void 0:e.properties,layoutOptions:null==e?void 0:e.layoutOptions};if(e.children){const t=e.children.map(this.transformElkNode,this);s.children.push(...t)}if(e.ports){const t=e.ports.map(this.transformElkPort,this);s.children.push(...t)}if(e.labels){const t=e.labels.map(this.transformElkLabel,this);s.children.push(...t)}if(e.edges){const t=e.edges.map(this.transformElkEdge,this);s.children.push(...t)}return s}transformElkPort(e){var t;this.checkAndRememberId(e,this.portIds);const s={type:c(null===(t=e.properties)||void 0===t?void 0:t.type,"port"),id:e.id,position:this.pos(e),size:this.size(e),children:[],cssClasses:u(e),properties:null==e?void 0:e.properties,layoutOptions:null==e?void 0:e.layoutOptions};if(e.labels){const t=e.labels.map(this.transformElkLabel,this);s.children.push(...t)}return s}transformElkLabel(e){var t;this.checkAndRememberId(e,this.labelIds);let s={type:c(null===(t=e.properties)||void 0===t?void 0:t.type,"label"),id:e.id,text:e.text,position:this.pos(e),size:this.size(e),cssClasses:u(e),labels:[],properties:null==e?void 0:e.properties,layoutOptions:null==e?void 0:e.layoutOptions};if(e.labels){const t=e.labels.map(this.transformElkLabel,this);s.labels.push(...t)}return s}transformElkEdge(e){var t;this.checkAndRememberId(e,this.edgeIds);const s={type:c(null===(t=e.properties)||void 0===t?void 0:t.type,"edge"),id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[],cssClasses:u(e),properties:null==e?void 0:e.properties,layoutOptions:null==e?void 0:e.layoutOptions};var i;if(null!=(i=e).source&&null!=i.target?(s.sourceId=e.source,s.targetId=e.target,e.sourcePoint&&s.routingPoints.push(e.sourcePoint),e.bendPoints&&s.routingPoints.push(...e.bendPoints),e.targetPoint&&s.routingPoints.push(e.targetPoint)):function(e){return null!=e.sources&&null!=e.targets}(e)&&(s.sourceId=e.sources[0],s.targetId=e.targets[0],e.sections&&e.sections.forEach((e=>{this.checkAndRememberId(e,this.sectionIds),s.routingPoints.push(e.startPoint),e.bendPoints&&s.routingPoints.push(...e.bendPoints),s.routingPoints.push(e.endPoint)}))),e.junctionPoints&&e.junctionPoints.forEach(((t,i)=>{const o={type:"junction",id:e.id+"_j"+i,position:t};s.children.push(o)})),e.labels){const t=e.labels.map(this.transformElkLabel,this);s.children.push(...t)}return s}pos(e){return{x:e.x||0,y:e.y||0}}size(e){return{width:e.width||0,height:e.height||0}}checkAndRememberId(e,t){if(null==e.id)throw Error("An element is missing an id.");if(t.has(e.id))throw Error("Duplicate id: "+e.id+".");t.add(e.id)}}let p=class extends l.LocalModelSource{async updateLayout(e,t,s){this.elkToSprotty=new h;let i=this.elkToSprotty.transform(e,t,s);await this.updateModel(i)}async getSelected(){let e=[];return(await this.getSelection()).forEach(((t,s)=>{e.push(t.id)})),e}element(){return document.getElementById(this.viewerOptions.baseDiv)}center(e=[],t=!0,s=!1){let i=new l.CenterAction(e,t,s);this.actionDispatcher.dispatch(i)}fit(e=[],t,s,i){let o=new l.FitToScreenAction(e,t,s,i);this.actionDispatcher.dispatch(o)}resize(e){let t=new l.InitializeCanvasBoundsAction(e);this.actionDispatcher.dispatch(t)}async getViewport(){const e=await this.actionDispatcher.request(l.GetViewportAction.create());return{scroll:e.viewport.scroll,zoom:e.viewport.zoom,canvasBounds:e.canvasBounds}}};p=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}([(0,d.injectable)()],p);var g=s(2388);const f={createElement:g.html};let m=class{render(e,t){const s=`scale(${e.zoom}) translate(${-e.scroll.x},${-e.scroll.y})`;let i=(0,g.svg)("svg",{class:{"sprotty-graph":!0}},[(0,g.svg)("g",{transform:s},t.renderChildren(e)),(0,g.svg)("g",{class:{elkdefs:!0}},t.renderChildren(e.defs))]);const o={transform:`scale(${e.zoom}) translateZ(0) translate(${-e.scroll.x}px,${-e.scroll.y}px)`};let n=f.createElement("div",{"class-sprotty-overlay":!0,style:o},t.renderWidgets());return f.createElement("div",{"class-sprotty-root":!0},i,n)}};m=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}([(0,d.injectable)()],m);var v=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r};const y={createElement:g.svg};function b(e){return`${e.x},${e.y}`}let w=class extends l.RectangularNodeView{render(e,t){if(!this.isDef(e)&&!this.isVisible(e,t))return;let s=this.renderMark(e,t);return this.isDef(e)||((0,l.setClass)(s,"elknode",!0),(0,l.setClass)(s,"mouseover",e.hoverFeedback),(0,l.setClass)(s,"selected",e.selected)),(0,l.setClass)(s,e.type,!0),y.createElement("g",null,s,y.createElement("g",{"class-elkchildren":!0},this.renderChildren(e,t)))}renderMark(e,t){return y.createElement("rect",{x:"0",y:"0",width:e.size.width,height:e.size.height})}renderChildren(e,t){return t.renderChildren(e)}isDef(e){var t;return 1==(null===(t=null==e?void 0:e.properties)||void 0===t?void 0:t.isDef)}};w=v([(0,d.injectable)()],w);let E=class extends w{renderMark(e,t){let s=e.size.width,i=e.size.height;const o={x:s,y:i/2},n={x:0,y:i/2},r={x:s/2,y:i},l=`${b({x:s/2,y:0})} ${b(o)} ${b(r)} ${b(n)}`;return y.createElement("polygon",{points:l})}};E=v([(0,d.injectable)()],E);let x=class extends w{renderMark(e,t){var s,i,o,n;let r=e.size.width/2,l=e.size.height/2,a=null===(i=null===(s=e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.x;null==a&&(a=r);let d=null===(n=null===(o=e.properties)||void 0===o?void 0:o.shape)||void 0===n?void 0:n.y;return null==d&&(d=l),y.createElement("ellipse",{rx:r,ry:l,cx:a,cy:d})}};x=v([(0,d.injectable)()],x);let M=class extends w{renderMark(e,t){var s,i;let o=e.size.width,n=e.size.height;return y.createElement("image",{width:o,height:n,href:null===(i=null===(s=e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.use})}};M=v([(0,d.injectable)()],M);let S=class extends w{renderMark(e,t){var s,i;let o=Number(null===(i=null===(s=null==e?void 0:e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.use)||15,n=e.size.width,r=e.size.height;const l=[{x:0,y:0},{x:n-o,y:0},{x:n,y:o},{x:n,y:r},{x:0,y:r}].map(b).join(" ");return y.createElement("polygon",{points:l})}};S=v([(0,d.injectable)()],S);let k=class extends w{renderMark(e,t){var s,i;let o=null===(i=null===(s=null==e?void 0:e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.use;return y.createElement("path",{d:o})}};k=v([(0,d.injectable)()],k);let C=class extends w{renderMark(e,t){var s,i;let o=null===(i=null===(s=null==e?void 0:e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.use,n=t.hrefID(o),r=y.createElement("use",{href:"#"+n,width:e.size.width,height:e.size.height});return(0,l.setClass)(r,o,!0),r}};C=v([(0,d.injectable)()],C);let D=class extends w{renderMark(e,t){var s,i,o,n,r,l;let a=null===(i=null===(s=e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.x,d=null===(n=null===(o=e.properties)||void 0===o?void 0:o.shape)||void 0===n?void 0:n.y;return y.createElement("g",{props:{innerHTML:null===(l=null===(r=null==e?void 0:e.properties)||void 0===r?void 0:r.shape)||void 0===l?void 0:l.use},transform:`translate(${a} ${d})`},[])}};D=v([(0,d.injectable)()],D);let P=class extends w{renderMark(e,t){if(e.parent.type==e.type){const t=e.parent.size;return y.createElement("rect",{x:"0",y:"0",width:t.width,height:e.size.height})}return super.renderMark(e,t)}};P=v([(0,d.injectable)()],P);let R=class extends w{renderMark(e,t){var s,i;let o=(0,g.html)("div",{props:{innerHTML:null===(i=null===(s=null==e?void 0:e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.use}},[]);return y.createElement("foreignObject",{requiredFeatures:"http://www.w3.org/TR/SVG11/feature#Extensibility",height:e.size.height,width:e.size.width,x:0,y:0},o)}};R=v([(0,d.injectable)()],R);let j=class extends w{render(e,t){if(!this.isDef(e)&&!this.isVisible(e,t))return;let s=this.renderMark(e,t);return this.isDef(e)||((0,l.setClass)(s,"elknode",!0),(0,l.setClass)(s,"mouseover",e.hoverFeedback),(0,l.setClass)(s,"selected",e.selected)),(0,l.setClass)(s,e.type,!0),(0,g.svg)("g",{hook:{insert:s=>t.overlayContent(s,e,!0),destroy:s=>t.overlayContent(s,e,!1),update:(s,i)=>t.overlayContent(i,e,this.isVisible(e,t))}},[s,y.createElement("g",{"class-elkchildren":!0},this.renderChildren(e,t))])}};j=v([(0,d.injectable)()],j);let O=class extends l.RectangularNodeView{render(e,t){var s,i;let o,n=null===(i=null===(s=null==e?void 0:e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.use,r=t.hrefID(n);return r?(o=y.createElement("use",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,href:"#"+r}),(0,l.setClass)(o,n,!0)):o=y.createElement("rect",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:e.size.width,height:e.size.height}),y.createElement("g",null,o,t.renderChildren(e))}};O=v([(0,d.injectable)()],O);let _=class extends l.ShapeView{render(e,t){var s,i,o,n,r;if(!this.isVisible(e,t))return;let a,d=null===(i=null===(s=null==e?void 0:e.properties)||void 0===s?void 0:s.shape)||void 0===i?void 0:i.use,c=t.hrefID(d);if(c?(a=y.createElement("use",{"class-elklabel":!0,href:"#"+c,width:e.size.width,height:e.size.height}),(0,l.setClass)(a,d,!0)):a=y.createElement("text",{"class-elklabel":!0},e.text),null===(o=e.labels)||void 0===o?void 0:o.length){console.log("sub labeling to do...");let s=e.labels[0],i=null===(r=null===(n=null==s?void 0:s.properties)||void 0===n?void 0:n.shape)||void 0===r?void 0:r.use,o=t.hrefID(i),l=e.size.height,d=this.dimension(s),c=this.dimension(e),u={x:0+s.position.x,y:(l-d.height)/2+s.position.x},h=(null==s?void 0:s.layoutOptions)||{},p=Number(h["org.eclipse.elk.spacing.labelLabel"])||0,g={x:d.width+p,y:(l-c.height)/2};a=y.createElement("g",null,y.createElement("use",{transform:`translate(${u.x} ${u.y})`,"class-elklabel":!0,href:"#"+o,width:s.size.width,height:s.size.height}),y.createElement("g",{transform:`translate(${g.x} ${g.y})`},a))}return a}dimension(e){var t,s,i,o;return{width:(null===(s=null===(t=null==e?void 0:e.properties)||void 0===t?void 0:t.shape)||void 0===s?void 0:s.width)||e.size.width,height:(null===(o=null===(i=null==e?void 0:e.properties)||void 0===i?void 0:i.shape)||void 0===o?void 0:o.height)||e.size.height}}isVisible(e,t){if(!super.isVisible(e,t))return!1;let s,i=e.root.zoom;return s=!e.size.height||i*e.size.height>3,s}};_=v([(0,d.injectable)()],_);var I=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r};const T={createElement:g.svg};let z=class extends l.CircularNodeView{render(e,t){const s=this.getRadius(e);return T.createElement("g",null,T.createElement("circle",{"class-elkjunction":!0,r:s}))}getRadius(e){return 2}};z=I([(0,d.injectable)()],z);let F=class extends l.PolylineEdgeView{render(e,t){const s=this.edgeRouterRegistry.get(e.routerKind).route(e);if(0===s.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,s,t)){if(0===e.children.length)return;return T.createElement("g",null,t.renderChildren(e,{route:s}))}return T.createElement("g",{"class-elkedge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,s,t),this.renderAdditionals(e,s,t),t.renderChildren(e,{route:s}))}renderLine(e,t,s){var i,o,n,r;const a=t[1],d=t[0];let c=(0,l.angleOfPoint)({x:a.x-d.x,y:a.y-d.y});const u=t[t.length-2],h=t[t.length-1];let p=(0,l.angleOfPoint)({x:u.x-h.x,y:u.y-h.y}),g=this.getPathOffset(null===(o=null===(i=null==e?void 0:e.properties)||void 0===i?void 0:i.shape)||void 0===o?void 0:o.start,s,c),f=this.getPathOffset(null===(r=null===(n=null==e?void 0:e.properties)||void 0===n?void 0:n.shape)||void 0===r?void 0:r.end,s,p);const m=t[0];let v=`M ${m.x-g.x},${m.y-g.y}`;for(let e=1;e=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}([(0,d.injectable)()],L);class A extends l.RectangularNode{hasFeature(e){return e!==l.moveFeature&&super.hasFeature(e)}}class $ extends l.RectangularPort{hasFeature(e){return e!==l.moveFeature&&super.hasFeature(e)}}class N extends l.SEdge{hasFeature(e){return e!==l.editFeature&&super.hasFeature(e)}}class V extends l.SNode{hasFeature(e){return e!==l.moveFeature&&e!==l.selectFeature&&e!==l.hoverFeedbackFeature&&super.hasFeature(e)}}class Y extends l.SNode{hasFeature(e){return e!==l.moveFeature&&super.hasFeature(e)}}var K=s(6510);class B extends l.ModelRenderer{constructor(e,t,s,i){super(e,t,s),this.viewRegistry=e,this.targetKind=t,this.source=i,this.widgets=new Map}renderWidgets(e){let t=[];for(let s in this.widgets){let i=this.widgets[s],o=this.widgetContainer(i,e);void 0!==o&&(this.decorate(o,i.node),t.push(o))}return t}widgetContainer(e,t){if(!e.visible)return;let s=e.node.bounds,i=function(e){var t,s;let i=0,o=0;for(;void 0!==e;)i+=(null===(t=e.bounds)||void 0===t?void 0:t.x)||0,o+=(null===(s=e.bounds)||void 0===s?void 0:s.y)||0,e=null==e?void 0:e.parent;return{x:i,y:o}}(e.node),o={transform:`translate(${i.x}px, ${i.y}px)`,width:`${s.width}px`,height:`${s.height}px`,background:"#9dd8d857"},n={};return e.html&&(n={innerHTML:e.html}),(0,g.html)("div",{key:e.node.id,class:{elkcontainer:!0},style:o,props:n,hook:{insert:t=>this.renderContent(t,e)}},[])}async renderContent(e,t,s){if("widget"==(0,l.getSubType)(t.node)){let s=t.widget,i=await this.source.widget_manager.create_view(s,{});K.Widget.attach(i.pWidget,e.elm)}}async overlayContent(e,t,s){var i,o;let n,r,a=null===(o=null===(i=t.properties)||void 0===i?void 0:i.shape)||void 0===o?void 0:o.use;"widget"==(0,l.getSubType)(t)?a&&(n=await this.source.widget_manager.get_model(a),r=void 0):(n=void 0,r=a),this.widgets[t.id]={vnode:e,node:t,widget:n,visible:s,html:r}}getConnector(e){var t;return null===(t=this.source.elkToSprotty)||void 0===t?void 0:t.connectors[e]}hrefID(e){if(e)return this.source.elkToSprotty.defsIds[e]}}class H extends l.SModelFactory{initializeRoot(e,t){var s;return(null===(s=e=super.initializeRoot(e,t))||void 0===s?void 0:s.defs)&&(e.defs.children=t.defs.children.map((t=>this.createElement(t,e)))),e}}const U={IFeedbackActionDispatcher:Symbol.for("IFeedbackActionDispatcher"),IToolFactory:Symbol.for("Factory"),IEditConfigProvider:Symbol.for("IEditConfigProvider"),RequestResponseSupport:Symbol.for("RequestResponseSupport"),SelectionService:Symbol.for("SelectionService"),SelectionListener:Symbol.for("SelectionListener"),SModelRootListener:Symbol.for("SModelRootListener"),MouseTool:Symbol.for("MouseTool"),ViewerOptions:Symbol.for("ViewerOptions")};class W extends l.Command{constructor(){super(...arguments),this.priority=0}undo(e){return e.root}redo(e){return e.root}}var G;!function(e){e.DEFAULT="default-mode",e.OVERLAP_FORBIDDEN="overlap-forbidden-mode",e.NODE_CREATION="node-creation-mode",e.EDGE_CREATION_SOURCE="edge-creation-select-source-mode",e.EDGE_CREATION_TARGET="edge-creation-select-target-mode",e.EDGE_RECONNECT="edge-reconnect-select-target-mode",e.OPERATION_NOT_ALLOWED="edge-modification-not-allowed-mode",e.ELEMENT_DELETION="element-deletion-mode",e.MOUSEOVER="mouseover",e.SELECTED="selected"}(G||(G={}));let q=class extends W{constructor(e){super(),this.action=e}execute(e){return function(e,t){if(null!=e.cssClasses&&0!==e.cssClasses.length)for(const s of t)-1!==e.cssClasses.indexOf(s)&&e.cssClasses.splice(e.cssClasses.indexOf(s),1)}(this.action.target,Object.values(G)),this.action.cssClass&&function(e,t){null==e.cssClasses&&(e.cssClasses=[]);for(const s of t)e.cssClasses.indexOf(s)<0&&e.cssClasses.push(s)}(this.action.target,[this.action.cssClass]),e.root}};var X,Z;q.KIND="applyCursorCssFeedback",q=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}([(0,d.injectable)(),(X=0,Z=(0,d.inject)(l.TYPES.Action),function(e,t){Z(e,t,X)}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[class{constructor(e,t){this.target=e,this.cssClass=t,this.kind=q.KIND}}])],q);var J=function(e,t){return function(s,i){t(s,i,e)}};let Q=class{constructor(e,t){this.actionDispatcher=e,this.logger=t,this.feedbackEmitters=new Map}registerFeedback(e,t){this.feedbackEmitters.set(e,t),this.dispatch(t,e)}deregisterFeedback(e,t){this.feedbackEmitters.delete(e),this.dispatch(t,e)}dispatch(e,t){this.actionDispatcher().then((t=>t.dispatchAll(e))).then((()=>this.logger.info(this,`Dispatched feedback actions for ${t}`))).catch((e=>this.logger.error(this,"Failed to dispatch feedback actions",e)))}getRegisteredFeedback(){const e=[];return this.feedbackEmitters.forEach(((t,s)=>e.push(...t))),e}getRegisteredFeedbackEmitters(e){const t=[];return this.feedbackEmitters.forEach(((s,i)=>{s.find((t=>t===e))&&t.push(i)})),t}};Q=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}([(0,d.injectable)(),J(0,(0,d.inject)(l.TYPES.IActionDispatcherProvider)),J(1,(0,d.inject)(l.TYPES.ILogger)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Function,Object])],Q);const ee=new d.ContainerModule(((e,t,s)=>{e(U.IFeedbackActionDispatcher).to(Q).inSingletonScope(),(0,l.configureCommand)({bind:e,isBound:s},q),(0,l.configureCommand)({bind:e,isBound:s},l.MoveCommand),(0,l.configureCommand)({bind:e,isBound:s},l.SelectCommand),(0,l.configureCommand)({bind:e,isBound:s},l.SelectAllCommand),(0,l.configureCommand)({bind:e,isBound:s},l.GetSelectionCommand),e(l.TYPES.IVNodePostprocessor).to(l.LocationPostprocessor),e(l.TYPES.HiddenVNodePostprocessor).to(l.LocationPostprocessor)}));var te=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r},se=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ie=function(e,t){return function(s,i){t(s,i,e)}};let oe=class extends l.ScrollMouseListener{constructor(e){super(),this.model_source=e}mouseDown(e,t){if(null==(0,l.findParentByFeature)(e,l.isMoveable)&&!(e instanceof l.SRoutingHandle))if("node:widget"==e.type)this.lastScrollPosition=void 0;else{const s=(0,l.findParentByFeature)(e,l.isViewport);this.lastScrollPosition=s?{x:t.pageX,y:t.pageY}:void 0}return[]}mouseMove(e,t){if(0===t.buttons)this.mouseUp(e,t);else if(this.lastScrollPosition){const s=(0,l.findParentByFeature)(e,l.isViewport);if(s){const e=(t.pageX-this.lastScrollPosition.x)/s.zoom,i=(t.pageY-this.lastScrollPosition.y)/s.zoom,o={scroll:{x:s.scroll.x-e,y:s.scroll.y-i},zoom:s.zoom};return this.lastScrollPosition={x:t.pageX,y:t.pageY},[new l.SetViewportAction(s.id,o,!1)]}}return[]}};oe=te([ie(0,(0,d.inject)(l.TYPES.ModelSource)),se("design:paramtypes",[p])],oe);let ne=class extends l.ZoomMouseListener{constructor(e){super(),this.model_source=e}getViewportOffset(e,t){const s=this.model_source.element().getBoundingClientRect();return{x:t.clientX-s.left,y:t.clientY-s.top}}};ne=te([ie(0,(0,d.inject)(l.TYPES.ModelSource)),se("design:paramtypes",[p])],ne);const re=new d.ContainerModule(((e,t,s)=>{(0,l.configureCommand)({bind:e,isBound:s},l.CenterCommand),(0,l.configureCommand)({bind:e,isBound:s},l.FitToScreenCommand),(0,l.configureCommand)({bind:e,isBound:s},l.SetViewportCommand),(0,l.configureCommand)({bind:e,isBound:s},l.GetViewportCommand),e(l.TYPES.KeyListener).to(l.CenterKeyboardListener),e(l.TYPES.MouseListener).to(oe),e(l.TYPES.MouseListener).to(ne)}));class le extends l.SvgExporter{isExported(e){return null!=e.href&&(e.href.endsWith("diagram.css")||e.href.endsWith("sprotty.css"))}}var ae=s(9140);class de extends l.MouseListener{constructor(){super(...arguments),this.isMouseDown=!1,this.isMouseDrag=!1}mouseDown(e,t){return this.isMouseDown=!0,[]}mouseMove(e,t){return this.isMouseDown&&(this.isMouseDrag=!0),[]}mouseUp(e,t){return this.isMouseDown=!1,this.isMouseDrag?(this.isMouseDrag=!1,this.draggingMouseUp(e,t)):this.nonDraggingMouseUp(e,t)}nonDraggingMouseUp(e,t){return[]}draggingMouseUp(e,t){return[]}}class ce extends de{constructor(e,t){super(),this.elementTypeId=e,this.tool=t}mouseOver(e,t){return[new l.HoverFeedbackAction(e.id,!0)]}mouseOut(e,t){return[new l.HoverFeedbackAction(e.id,!1)]}}let ue=class{constructor(){this.elementTypeId="unknown",this.operationKind="generic"}get id(){return`tool_${this.operationKind}_${this.elementTypeId}`}enable(){}disable(){}dispatchFeedback(e){}};function he(e){return e.id}ue=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}([(0,d.injectable)()],ue);var pe=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r},ge=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},fe=function(e,t){return function(s,i){t(s,i,e)}};let me=class extends ue{constructor(e,t){super(),this.mouseTool=e,this.feedbackDispatcher=t,this.elementTypeId="unknown",this.operationKind=l.SelectAction.KIND}enable(){this.selectionToolMouseListener=new ve(this.elementTypeId,this),this.mouseTool.register(this.selectionToolMouseListener)}disable(){this.mouseTool.deregister(this.selectionToolMouseListener)}};me=pe([(0,d.injectable)(),fe(0,(0,d.inject)(l.MouseTool)),fe(1,(0,d.inject)(U.IFeedbackActionDispatcher)),ge("design:paramtypes",[Object,Object])],me);let ve=class extends ce{constructor(e,t){super(e,t),this.elementTypeId=e,this.tool=t}nonDraggingMouseUp(e,t){let s=[],i=[];if(0===t.button){const o=(0,l.findParentByFeature)(e,l.isSelectable);(null!=o||e instanceof l.SModelRoot)&&((0,l.isCtrlOrCmd)(t)||(i=(0,ae.toArray)(e.root.index.all().filter((e=>(0,l.isSelectable)(e)&&e.selected&&!(o instanceof l.SRoutingHandle&&e===o.parent))))),null!=o&&(o.selected?(0,l.isCtrlOrCmd)(t)&&(i=[o]):s=[o]))}return[new l.SelectAction(s.map(he),i.map(he))]}decorate(e,t){const s=(0,l.findParentByFeature)(t,l.isSelectable);return null!=s&&(0,l.setClass)(e,"selected",s.selected),e}};ve=pe([(0,d.injectable)(),ge("design:paramtypes",[String,me])],ve);var ye=function(e,t,s,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r},be=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},we=function(e,t){return function(s,i){t(s,i,e)}};class Ee{constructor(e=[],t=[]){this.expandElementsIDs=e,this.contractElementsIDs=t,this.kind=l.SelectAction.KIND}}Ee.KIND="elementExpand";let xe=class extends ue{constructor(e,t){super(),this.mouseTool=e,this.feedbackDispatcher=t,this.elementTypeId="unknown",this.operationKind=Ee.KIND}enable(){this.expansionToolMouseListener=new Me(this.elementTypeId,this),this.mouseTool.register(this.expansionToolMouseListener)}disable(){this.mouseTool.deregister(this.expansionToolMouseListener)}dispatchFeedback(e){this.feedbackDispatcher.registerFeedback(this,e)}};xe=ye([(0,d.injectable)(),we(0,(0,d.inject)(l.MouseTool)),we(1,(0,d.inject)(U.IFeedbackActionDispatcher)),be("design:paramtypes",[Object,Object])],xe);let Me=class extends de{constructor(e,t){super(),this.elementTypeId=e,this.tool=t}wheel(e,t){return[]}decorate(e,t){const s=(0,l.findParentByFeature)(t,l.isSelectable);return null!=s&&(0,l.setClass)(e,"selected",s.selected),e}};Me=ye([(0,d.injectable)(),be("design:paramtypes",[String,xe])],Me);var Se=s(1797);const ke={id:"root"};class Ce extends r.DOMWidgetModel{constructor(){super(...arguments),this.layoutUpdated=new n.Signal(this)}defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:Ce.model_name,_model_module_version:a.q4,_view_module:a.A1,_view_name:De.view_name,_view_module_version:a.q4,value:ke,defs:{},mark_layout:{},layouter:{}})}initialize(e,t){super.initialize(e,t),this.on("change:value",this.value_changed,this),this.value_changed().catch((e=>console.error(e)))}async value_changed(){let e,t=this.get("value"),s=await this.layoutEngine();e=s?await s.layout(t):t,this.set("mark_layout",e)}async layoutEngine(){let e=this.get("layouter").replace("IPY_MODEL_","");return await this.widget_manager.get_model(e)}}Ce.model_name="ELKModel";class De extends r.DOMWidgetView{constructor(){super(...arguments),this.was_shown=new Se.PromiseDelegate,this.wait_for_visible=(e=!1)=>{this.pWidget.isVisible?setTimeout(this.wait_for_visible,e?0:300):this.was_shown.resolve()},this.resize=(e=-1,t=-1)=>{if(-1===e||-1===t){const s=this.el.getBoundingClientRect();e=s.width,t=s.height}this.source.resize({width:e,height:t,x:0,y:0})}}initialize(e){super.initialize(e),this.pWidget.addClass(a.gJ.widget_class)}async render(){const e=this.el,t=document.createElement("div");this.div_id=t.id=Pe.next_id(),e.appendChild(t),this.initSprotty().catch(console.warn),this.wait_for_visible(!0)}async initSprotty(){await this.was_shown.promise;const e=((e,t)=>{const s=new d.ContainerModule(((t,s,i,o)=>{t(l.TYPES.ModelSource).to(p).inSingletonScope(),o(l.TYPES.ILogger).to(l.ConsoleLogger).inSingletonScope(),o(l.TYPES.LogLevel).toConstantValue(l.LogLevel.warn),o(l.TYPES.SvgExporter).to(le).inSingletonScope();const n={bind:t,unbind:s,isBound:i,rebind:o};(0,l.configureModelElement)(n,"graph",l.SGraph,m),(0,l.configureModelElement)(n,"node",A,w),(0,l.configureModelElement)(n,"node:use",A,C),(0,l.configureModelElement)(n,"node:diamond",A,E),(0,l.configureModelElement)(n,"node:round",A,x),(0,l.configureModelElement)(n,"node:image",A,M),(0,l.configureModelElement)(n,"node:comment",A,S),(0,l.configureModelElement)(n,"node:path",A,k),(0,l.configureModelElement)(n,"node:svg",A,D),(0,l.configureModelElement)(n,"node:html",A,j),(0,l.configureModelElement)(n,"node:widget",A,j),(0,l.configureModelElement)(n,"node:compartment",A,P),(0,l.configureModelElement)(n,"node:foreignobject",A,R),(0,l.configureModelElement)(n,"port",$,O),(0,l.configureModelElement)(n,"edge",N,F),(0,l.configureModelElement)(n,"label",l.SLabel,_),(0,l.configureModelElement)(n,"label:icon",l.SLabel,_),(0,l.configureModelElement)(n,"junction",V,z),(0,l.configureViewerOptions)(n,{needsClientLayout:!1,baseDiv:e}),(0,l.configureCommand)(n,l.HoverFeedbackCommand),(0,l.configureModelElement)(n,"def",Y,L),o(l.TYPES.ModelRendererFactory).toFactory((e=>(t,s)=>{const i=e.container.get(l.TYPES.ViewRegistry),o=e.container.get(l.TYPES.ModelSource);return new B(i,t,s,o)})),o(l.TYPES.IModelFactory).to(H).inSingletonScope()})),i=new d.Container;return i.load(l.defaultModule,l.boundsModule,l.moveModule,l.fadeModule,l.updateModule,l.undoRedoModule,re,l.routingModule,l.exportModule,l.modelSourceModule,l.edgeEditModule,l.labelEditModule,ee,s),i})(this.div_id);this.container=e,this.source=e.get(l.TYPES.ModelSource),this.source.widget_manager=this.model.widget_manager,this.elementRegistry=e.get(l.TYPES.SModelRegistry),this.toolManager=e.get(l.TYPES.IToolManager),this.registry=e.get(l.ActionHandlerRegistry),this.actionDispatcher=e.get(l.TYPES.IActionDispatcher),this.feedbackDispatcher=e.get(U.IFeedbackActionDispatcher),this.model.on("change:mark_layout",this.diagramLayout,this),this.model.on("change:selected",this.updateSelected,this),this.model.on("change:hovered",this.updateHover,this),this.model.on("change:interaction",this.interaction_mode_changed,this),this.model.on("msg:custom",this.handleMessage,this),this.model.on("change:defs",this.diagramLayout,this),this.touch(),this.registry.register(l.SelectAction.KIND,this),this.registry.register(l.SelectionResult.KIND,this),this.registry.register(l.HoverFeedbackAction.KIND,this),this.toolManager.registerDefaultTools(e.resolve(me),e.resolve(xe)),this.toolManager.enableDefaultTools(),this.diagramLayout().catch((e=>console.warn("ELK Failed initial view render",e)))}processPhosphorMessage(e){switch(super.processPhosphorMessage(e),e.type){case"resize":const t=e;let{width:s,height:i}=t;this.resize(s,i);break;case"after-show":this.resize()}}handle(e){switch(e.kind){case l.SelectAction.KIND:this.source.getSelected().then((e=>{this.model.set("selected",e),this.touch()}));case l.SelectionResult.KIND:break;case l.HoverFeedbackAction.KIND:let t=e;t.mouseIsOver&&(this.model.set("hovered",t.mouseoverElement),this.touch())}}events(){return{click:"_handle_click"}}_handle_click(e){this.model.layoutUpdated.emit(),this.send({event:"click",id:this.model.get("hovered")})}updateSelected(){let e=this.model.get("selected"),t=this.model.previous("selected"),s=o()(t,e),i=o()(e,t);this.actionDispatcher.dispatch(new l.SelectAction(i,s))}updateHover(){let e=this.model.get("hovered"),t=this.model.previous("hovered");this.actionDispatcher.dispatchAll([new l.HoverFeedbackAction(e,!0),new l.HoverFeedbackAction(t,!1)])}async interaction_mode_changed(){}async diagramLayout(){let e=this.model.get("mark_layout"),t=this.model.get("defs");await this.source.updateLayout(e,t,this.div_id),this.model.layoutUpdated.emit()}normalizeElementIds(e){let t=[];return null!=e&&(t=Array.isArray(e)?e:[e]),t}handleMessage(e){switch(e.action){case"center":this.source.center(this.normalizeElementIds(e.model_id),e.animate,e.retain_zoom);break;case"fit":this.source.fit(this.normalizeElementIds(e.model_id),null==e.padding?0:e.padding,null==e.max_zoom?1/0:e.max_zoom,null==e.animate||e.animate);break;default:console.warn("ELK unhandled message",e)}}}var Pe;De.view_name="ELKDiagramView",function(e){let t=0;e.next_id=function(){return"sprotty_"+t++}}(Pe||(Pe={}))}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/elkexporter.0073612c2e9a31d0895d.js b/py_src/ipyelk/labextension/static/elkexporter.0073612c2e9a31d0895d.js new file mode 100644 index 00000000..f7d46540 --- /dev/null +++ b/py_src/ipyelk/labextension/static/elkexporter.0073612c2e9a31d0895d.js @@ -0,0 +1 @@ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[940],{9213:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ELKExporterModel:()=>d,ELKExporterView:()=>p});var l=n(8081),a=n(8036),r=n(5825),s=n(8970),o=n(8343);const i=`\n ${s.Z}\n ${o.Z}\n /**\n * Copyright (c) 2021 Dane Freeman.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*\n CSS for in-DOM or standalone viewing: all selectors should tolerate having\n \`.jp-ElkView\` stripped.\n*/\n:root {\n --jp-elk-stroke-width: 1;\n\n --jp-elk-node-fill: var(--jp-layout-color1);\n --jp-elk-node-stroke: var(--jp-border-color0);\n\n --jp-elk-edge-stroke: var(--jp-border-color0);\n\n --jp-elk-port-fill: var(--jp-layout-color1);\n --jp-elk-port-stroke: var(--jp-border-color0);\n\n --jp-elk-label-color: var(--jp-ui-font-color0);\n --jp-elk-label-font: var(--jp-content-font-family);\n --jp-elk-label-font-size: var(--jp-ui-font-size0);\n\n /* stable states */\n --jp-elk-color-selected: var(--jp-brand-color2);\n --jp-elk-stroke-width-selected: 3;\n\n /* interactive states */\n --jp-elk-stroke-hover: var(--jp-brand-color3);\n --jp-elk-stroke-width-hover: 2;\n\n --jp-elk-stroke-hover-selected: var(--jp-warn-color3);\n\n /* sugar */\n --jp-elk-transition: 0.1s ease-in;\n}\n\n.jp-ElkView .elkdefs > symbol {\n overflow: visible;\n}\n\n.jp-ElkView .elknode {\n stroke: var(--jp-elk-node-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n fill: var(--jp-elk-node-fill);\n}\n\n.jp-ElkView .elkport {\n stroke: var(--jp-elk-port-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n fill: var(--jp-elk-port-fill);\n}\n\n.jp-ElkView .elkedge {\n fill: none;\n stroke: var(--jp-elk-edge-stroke);\n stroke-width: var(--jp-elk-stroke-width);\n}\n\n.jp-ElkView .elklabel {\n stroke-width: 0;\n stroke: var(--jp-elk-label-color);\n fill: var(--jp-elk-label-color);\n font-family: var(--jp-elk-label-font);\n font-size: var(--jp-elk-label-font-size);\n dominant-baseline: hanging;\n}\n\n.jp-ElkView .elkjunction {\n stroke: none;\n fill: var(--jp-elk-edge-stroke);\n}\n\n/* stable states */\n.jp-ElkView .elknode.selected,\n.jp-ElkView .elkport.selected,\n.jp-ElkView .elkedge.selected,\n.jp-ElkView .elkedge.selected .elkarrow {\n stroke: var(--jp-elk-color-selected);\n stroke-width: var(--jp-elk-stroke-width-selected);\n transition: stroke stroke-width var(--jp-elk-transition);\n}\n\n.jp-ElkView .elklabel.selected {\n fill: var(--jp-elk-color-selected);\n transition: fill var(--jp-elk-transition);\n}\n\n/* interactive states: elklabel does not have a mouseover selector/ancestor */\n.jp-ElkView .elknode.mouseover,\n.jp-ElkView .elkport.mouseover,\n.jp-ElkView .elkedge.mouseover {\n stroke: var(--jp-elk-stroke-hover);\n stroke-width: var(--jp-elk-stroke-width-hover);\n transition: stroke stroke-width var(--jp-elk-transition);\n}\n\n.jp-ElkView .elknode.selected.mouseover,\n.jp-ElkView .elkport.selected.mouseover,\n.jp-ElkView .elkedge.selected.mouseover,\n.jp-ElkView .elkedge.selected.mouseover .elkarrow {\n stroke-width: var(--jp-elk-stroke-width-hover);\n stroke: var(--jp-elk-stroke-hover-selected);\n transition: fill stroke var(--jp-elk-transition);\n}\n\n`.replace(/\/\*(.|\n)*?\*\//gm," ").replace(/.jp-ElkView /g,"").replace(/\n/g," ").replace(/\s+/g," ").replace(/\}/g,"}\n");class d extends l.WidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:d.model_name,_model_module_version:a.q4,_view_module:a.A1,_view_name:p.view_name,_view_module_version:a.q4,diagram:null,value:null,enabled:!0,extra_css:"",padding:20,app:null,strip_ids:!0,add_xml_header:!0})}get enabled(){return this.get("enabled")||!0}get diagram(){return this.get("diagram")}get app(){return this.get("app")}get app_raw_css(){var e;return(null===(e=this.app)||void 0===e?void 0:e.get("raw_css"))||[]}initialize(e,t){super.initialize(e,t),this.on("change:diagram",this._on_diagram_changed,this),this.on("change:app",this._on_app_changed,this),this._on_diagram_changed(),this._on_app_changed()}_on_diagram_changed(){a.ZF&&console.warn("[export] diagram changed",arguments);const{diagram:e}=this;null!=(null==e?void 0:e.layoutUpdated)&&(this.diagram.layoutUpdated.connect(this._schedule_update,this),this.enabled&&this._schedule_update())}is_an_elkmodel(e){return e instanceof r.ELKDiagramModel}_on_app_changed(){a.ZF&&console.warn("[export] app changed",arguments);const{app:e}=this;if(null!=(null==e?void 0:e.on)){e.on("change:raw_css",this._schedule_update,this);const t=e.get("children")||[],n=t.filter(this.is_an_elkmodel);n.length&&n[0].layoutUpdated?n[0].layoutUpdated.connect(this._schedule_update,this):a.ZF&&console.warn("[export] no app diagram ready",t)}}async a_view(){var e;if(!this.enabled)return;let t=this.diagram.views;if((null===(e=this.app)||void 0===e?void 0:e.views)&&(t=Object.assign(Object.assign({},t),this.app.views)),Object.keys(t).length)for(const e of Object.values(t)){const t=await e;if(t.el)return await t.displayed,t}}_schedule_update(){this.enabled&&(null!=this._update_timeout&&(window.clearInterval(this._update_timeout),this._update_timeout=null),this._update_timeout=setTimeout((()=>this._on_layout_updated()),1e3))}async _on_layout_updated(){var e;if(!this.enabled)return;const t=await this.a_view(),n=null===(e=null==t?void 0:t.el)||void 0===e?void 0:e.querySelector("svg");if(null==n)return void this._schedule_update();const{outerHTML:l}=n,a=this.get("padding"),r=this.get("strip_ids"),s=this.get("add_xml_header"),o=this.app_raw_css,d=`\n `,p=n.querySelector("g");let k=1;const c=p.attributes.transform.value.match(/scale\((.*?)\)/);null!=c&&(k=parseFloat(c[1]));const{width:h,height:u}=p.getBoundingClientRect();let v=l.replace(/]+)>/,`\n ${d}\n `).replace(/ transform=".*?"/,"");r&&(v=v.replace(/\s*id="[^"]*"\s*/g," ")),s&&(v=`\n${v}`),this.set({value:v}),this.save_changes(t.callbacks)}}d.model_name="ELKExporterModel",d.serializers=Object.assign(Object.assign({},l.WidgetModel.serializers),{diagram:{deserialize:l.unpack_models},app:{deserialize:l.unpack_models}});class p extends l.WidgetView{}p.view_name="ELKExporterView"}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/elklayout.68c8ddf89856577c46ca.js b/py_src/ipyelk/labextension/static/elklayout.68c8ddf89856577c46ca.js new file mode 100644 index 00000000..c1da25cd --- /dev/null +++ b/py_src/ipyelk/labextension/static/elklayout.68c8ddf89856577c46ca.js @@ -0,0 +1 @@ +(self.webpackChunk_jupyrdf_jupyter_elk=self.webpackChunk_jupyrdf_jupyter_elk||[]).push([[73],{5619:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ELKLayoutModel:()=>m,ELKTextSizerModel:()=>u,ELKTextSizerView:()=>d});var n=r(6168),o=r(8081);function s(){return new Worker(r.p+"elk-worker.59076248689cda27bbe6.worker.js")}var i=r(4005),a=r.n(i),l=r(8036);class u extends o.DOMWidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:u.model_name,_model_module_version:l.q4,_view_module:l.A1,_view_name:d.view_name,_view_module_version:l.q4,id:String(Math.random())})}initialize(e,t){super.initialize(e,t),l.ZF&&console.warn("ELK Test Sizer Init"),this.on("msg:custom",this.measure,this),window.sizer=this,l.ZF&&console.warn("ELK Text Done Init")}make_container(){const e=document.createElement("div"),t=this.get("_dom_classes").filter((e=>0===e.indexOf("styled-widget-")))[0];e.classList.add("p-Widget",l.gJ.widget_class,l.gJ.sizer_class,t);const r=this.get("namespaced_css");return e.innerHTML=`
`,e}make_label(e){l.ZF&&console.warn("ELK Text Label for text",e);let t=c("text"),r=[l.gJ.label];return e.cssClasses.length>0&&(r=r.concat(e.cssClasses.split(" "))),t.classList.add(...r),t.textContent=e.value,l.ZF&&console.warn("ELK Text Label",t),t}measure(e){l.ZF&&console.warn("ELK Text Sizer Measure",e);const t=this.make_container(),r=t.getElementsByTagName("g")[0],n=c("g");e.texts.forEach((e=>{n.appendChild(this.make_label(e))})),r.appendChild(n),l.ZF&&console.warn("ELK Text Sizer to add node",n),l.ZF&&console.warn("ELK Text Sizer node",r),document.body.prepend(t);let o=Array.from(n.getElementsByTagName("text"));l.ZF&&console.warn("Sized Text"),window.requestAnimationFrame((()=>{const r={event:"measurement",measurements:this.read_sizes(e.texts,o)};l.ZF||document.body.removeChild(t),this.send(r,{},[])}))}read_sizes(e,t){let r=[],n=0;for(let o of t){l.ZF&&console.warn(o.innerHTML);const t=e[n],s=o.getBoundingClientRect();let i={id:t.id,width:s.width,height:s.height};r.push(i),n++}return l.ZF&&console.warn("Measurements",r),r}}u.model_name="ELKTextSizerModel";class d extends o.DOMWidgetView{async render(){}}function c(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}d.view_name="ELKTextSizerView";const p=new(a())({workerFactory:()=>(l.ZF&&console.warn("ELK Worker created"),new s)});class m extends o.DOMWidgetModel{constructor(){super(...arguments),this.layoutUpdated=new n.Signal(this)}defaults(){return Object.assign(Object.assign({},super.defaults()),{_view_module:l.A1,_model_name:m.model_name,_model_module_version:l.q4})}initialize(e,t){super.initialize(e,t),this.on("msg:custom",this.layoutRequest,this)}ensureElk(){null==this._elk&&(this._elk=p)}async layoutRequest(e){let t={id:e.id,event:"layout",payload:await this.layout(e.payload)};this.send(t,{},[])}async layout(e){let t=function(e){let t=new Map;return function e(r){t[r.id]=r.properties,delete r.properties,r.children&&r.children.map(e),r.ports&&r.ports.map(e),r.labels&&r.labels.map(e),r.edges&&r.edges.map(e)}(e),t}(e);this.ensureElk();let r=await this._elk.layout(e);var n;return n=t,function e(t){t.properties=n[t.id],t.children&&t.children.map(e),t.ports&&t.ports.map(e),t.labels&&t.labels.map(e),t.edges&&t.edges.map(e)}(r),r}}m.model_name="ELKLayoutModel"},4005:e=>{e.exports=function e(t,r,n){function o(i,a){if(!r[i]){if(!t[i]){if(s)return s(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var u=r[i]={exports:{}};t[i][0].call(u.exports,(function(e){return o(t[i][1][e]||e)}),u,u.exports,e,t,r,n)}return r[i].exports}for(var s=void 0,i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=r.defaultLayoutOptions,s=void 0===n?{}:n,a=r.algorithms,l=void 0===a?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:a,u=r.workerFactory,d=r.workerUrl;if(o(this,e),this.defaultLayoutOptions=s,this.initialized=!1,void 0===d&&void 0===u)throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var c=u;void 0!==d&&void 0===u&&(c=function(e){return new Worker(e)});var p=c(d);if("function"!=typeof p.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new i(p),this.worker.postMessage({cmd:"register",algorithms:l}).then((function(e){return t.initialized=!0})).catch(console.err)}return n(e,[{key:"layout",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.layoutOptions,n=void 0===r?this.defaultLayoutOptions:r,o=t.logging,s=void 0!==o&&o,i=t.measureExecutionTime,a=void 0!==i&&i;return e?this.worker.postMessage({cmd:"layout",graph:e,layoutOptions:n,options:{logging:s,measureExecutionTime:a}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),e}();r.default=s;var i=function(){function e(t){var r=this;if(o(this,e),void 0===t)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=t,this.worker.onmessage=function(e){setTimeout((function(){r.receive(r,e)}),0)}}return n(e,[{key:"postMessage",value:function(e){var t=this.id||0;this.id=t+1,e.id=t;var r=this;return new Promise((function(n,o){r.resolvers[t]=function(e,t){e?(r.convertGwtStyleError(e),o(e)):n(t)},r.worker.postMessage(e)}))}},{key:"receive",value:function(e,t){var r=t.data,n=e.resolvers[r.id];n&&(delete e.resolvers[r.id],r.error?n(r.error):n(null,r.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(e){if(e){var t=e.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(e.cause=t.cause.backingJsObject,this.convertGwtStyleError(e.cause)),delete e.__java$exception)}}}]),e}()},{}],2:[function(e,t,r){"use strict";var n=e("./elk-api.js").default;Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=n,n.default=n},{"./elk-api.js":1}]},{},[2])(2)}}]); \ No newline at end of file diff --git a/py_src/ipyelk/labextension/static/remoteEntry.71cdf6b00b374443398e.js b/py_src/ipyelk/labextension/static/remoteEntry.71cdf6b00b374443398e.js new file mode 100644 index 00000000..731b186f --- /dev/null +++ b/py_src/ipyelk/labextension/static/remoteEntry.71cdf6b00b374443398e.js @@ -0,0 +1 @@ +var _JUPYTERLAB;(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["@jupyrdf/jupyter-elk"]=(()=>{"use strict";var e,r,t,n,o,a,i,u,l,f,d,s,p,c,h,v,g,b,y={6719:(e,r,t)=>{var n={"./index":()=>t.e(568).then((()=>()=>t(1568))),"./extension":()=>t.e(480).then((()=>()=>t(4480))),"./style":()=>t.e(549).then((()=>()=>t(7549)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n=t.S.default,o="default";if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>o,init:()=>a})}},m={};function w(e){if(m[e])return m[e].exports;var r=m[e]={id:e,exports:{}};return y[e].call(r.exports,r,r.exports,w),r.exports}return w.m=y,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>(({73:"elklayout",555:"elkdisplay",940:"elkexporter"}[e]||e)+"."+{73:"68c8ddf89856577c46ca",168:"a9bfdff6838d8242e666",478:"e3c0096a462aa05ff5c2",480:"5adff3d2447f67ef9121",549:"ecb24966e4d9c88a61e6",555:"f41b778ee85ca3d59823",568:"c790c7e9bed661f918ae",578:"ae6be4abce78d1804a4b",660:"6167a01da811b2dd9ad4",940:"0073612c2e9a31d0895d"}[e]+".js"),w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@jupyrdf/jupyter-elk:",w.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),f=0;f{i.onerror=i.onload=null,clearTimeout(p);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),u&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@jupyrdf/jupyter-elk",u=(e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(!n!=!u.eager?n:i>u.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];switch(t){case"default":u("@jupyrdf/jupyter-elk","1.0.1",(()=>w.e(568).then((()=>()=>w(1568))))),u("reflect-metadata","0.1.13",(()=>w.e(660).then((()=>()=>w(8660)))))}return e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;w.g.importScripts&&(e=w.g.location+"");var r=w.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),w.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n=r.length)return"u"==a;var i=r[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o{if(1===e.length)return"*";if(0 in e){var r="",t=e[0];r+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var n=1,a=1;a0?".":"")+(n=2,u);return r}var i=[];for(a=1;a{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,u=1,l=!0;;u++,i++){var f,d,s=u=r.length||"o"==(d=(typeof(f=r[i]))[0]))return!l||("u"==s?u>n&&!o:""==s!=o);if("u"==d){if(!l||"u"!=s)return!1}else if(l)if(s==d)if(u<=n){if(f!=e[u])return!1}else{if(o?f>e[u]:f{var t=w.S[e];if(!t||!w.o(t,r))throw new Error("Shared module "+r+" doesn't exist in shared scope "+e);return t},u=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t)=>"Unsatisfied version "+r+" of shared singleton module "+e+" (required "+o(t)+")",f=(e,r,t,n)=>{var o=u(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(t,o,n)),s(e[t][o])},d=(e,r,t)=>{var o=e[r];return(r=Object.keys(o).reduce(((e,r)=>!a(t,r)||e&&!n(e,r)?e:r),0))&&o[r]},s=e=>(e.loaded=1,e.get()),c=(p=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>(i(e,t),f(r,0,t,n)))),h=p(((e,r,t,n,o)=>{var a=r&&w.o(r,t)&&d(r,t,n);return a?s(a):o()})),v={},g={8081:()=>c("default","@jupyter-widgets/base",[1,4]),6168:()=>c("default","@lumino/signaling",[1,1,4,3]),6218:()=>h("default","reflect-metadata",[2,0,1,13],(()=>w.e(660).then((()=>()=>w(8660))))),1797:()=>c("default","@lumino/coreutils",[1,1,5,3]),6510:()=>c("default","@lumino/widgets",[1,1,16,1])},b={168:[6168],480:[8081],555:[6218,1797,6510]},w.f.consumes=(e,r)=>{w.o(b,e)&&b[e].forEach((e=>{if(w.o(v,e))return r.push(v[e]);var t=r=>{v[e]=0,y[e]=t=>{delete m[e],t.exports=r()}},n=r=>{delete v[e],y[e]=t=>{throw delete m[e],r}};try{var o=g[e]();o.then?r.push(v[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={161:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(168!=r){var o=new Promise(((t,o)=>{n=e[r]=[t,o]}));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{for(var n,o,[a,i,u]=t,l=0,f=[];l Dict: class ElkJS(DOMWidget): - """Jupyterlab widget for interacting with ELK diagrams""" + """Jupyterlab widget for calling [elkjs](https://github.com/kieler/elkjs) + layout given a valid elkjson dictionary""" _model_name = T.Unicode("ELKLayoutModel").tag(sync=True) _model_module = T.Unicode(EXTENSION_NAME).tag(sync=True) @@ -44,11 +45,8 @@ def __init__(self, *args, **kwargs): asyncio.create_task(self._process_requests()) asyncio.create_task(self._process_responses()) - @T.default("_value") - def _default_value(self): - return {"id": "root"} - - async def layout(self, value): + async def layout(self, value: Dict): + """Pass the value to [elkjs](https://github.com/kieler/elkjs) layout""" future = asyncio.Future() request = LayoutRequest(payload=value) self._futures[request.id] = future diff --git a/py_src/ipyelk/nx/transformer.py b/py_src/ipyelk/nx/transformer.py index e6742847..90137843 100644 --- a/py_src/ipyelk/nx/transformer.py +++ b/py_src/ipyelk/nx/transformer.py @@ -41,13 +41,23 @@ class XELK(ElkTransformer): - """NetworkX DiGraphs to ELK dictionary structure""" + """NetworkX source graphs to a valid ELK JSON dictionary structure + + :param source: Tuple of NetworkX graphs. The first graph contains + node/port/edge information while the second graph contains the node + hierarchy. + + :param value: Output elk json + + """ HIDDEN_ATTR = "hidden" hoist_hidden_edges: bool = True - source = T.Tuple(T.Instance(nx.Graph), T.Instance(nx.DiGraph, allow_none=True)) - layouts = T.Dict() # keys: networkx nodes {ElkElements: {layout options}} + source: Tuple[nx.Graph, nx.DiGraph] = T.Tuple( + T.Instance(nx.Graph), T.Instance(nx.DiGraph, allow_none=True) + ) + layouts = T.Dict() # keys: NetworkX nodes {ElkElements: {layout options}} css_classes = T.Dict() port_scale = T.Int(default_value=5) @@ -87,9 +97,7 @@ def node_id(self, node: Hashable) -> str: """Get the element id for a node in the main graph for use in elk :param node: Node in main graph - :type node: Hashable :return: Element ID - :rtype: str """ g, tree = self.source if node is ElkRoot: @@ -101,12 +109,9 @@ def node_id(self, node: Hashable) -> str: def port_id(self, node: Hashable, port: Optional[Hashable] = None) -> str: """Get a suitable Elk identifier from the node and port - :param node: Node from the incoming networkx graph - :type node: Hashable + :param node: Node from the incoming NetworkX graph :param port: Port identifier, defaults to None - :type port: Optional[Hashable], optional :return: If no port is provided will refer to the node - :rtype: str """ if port is None: return self.node_id(node) @@ -122,14 +127,13 @@ def edge_id(self, edge: Edge): async def transform(self) -> ElkNode: """Generate ELK dictionary structure :return: Root Elk node - :rtype: ElkNode """ # TODO decide behavior for nodes that exist in the tree but not g g, tree = self.source self.clear_registry() visible_edges, hidden_edges = self.collect_edges() - # Process visible networkx nodes into elknodes + # Process visible NetworkX nodes into elknodes visible_nodes = [ n for n in g.nodes() if not is_hidden(tree, n, self.HIDDEN_ATTR) ] @@ -187,7 +191,12 @@ async def transform(self) -> ElkNode: return top - async def make_elknode(self, node) -> Tuple[ElkNode, PortMap]: + async def make_elknode(self, node: Hashable) -> Tuple[ElkNode, PortMap]: + """Get the elknode and ports associated with given NetworkX node + + :param node: Incoming NetworkX node + :return: ElkNode and Ports + """ # merge layout options defined on the node data with default layout # options node_data = self.get_node_data(node) @@ -197,7 +206,7 @@ async def make_elknode(self, node) -> Tuple[ElkNode, PortMap]: ) labels = await self.make_labels(node) - # update port map with declared ports in the networkx node data + # update port map with declared ports in the NetworkX node data node_ports = await self.collect_ports(node) properties = self.get_properties(node, self.get_css(node, ElkNode)) or None @@ -215,15 +224,12 @@ async def make_elknode(self, node) -> Tuple[ElkNode, PortMap]: def get_layout( self, node: Hashable, elk_type: Type[ElkGraphElement] ) -> Optional[Dict]: - """Get the Elk Layout Options appropriate for given networkx node and + """Get the Elk Layout Options appropriate for given NetworkX node and filter by given elk_type - :param node: [description] - :type node: Hashable - :param elk_type: [description] - :type elk_type: Type[ElkGraphElement] - :return: [description] - :rtype: [type] + :param node: NetworkX node + :param elk_type: Elk Graph Element to apply layouts to + :return: Dictionary of relevant layout options """ # TODO look at self.source hierarchy and resolve layout with added # infomation. until then use root node `None` for layout options @@ -242,13 +248,10 @@ def get_properties( ) -> Dict: """Get the properties for a graph element - :param element: Networkx node or edge - :type node: Hashable + :param element: NetworkX node or edge :param dom_classes: Set of base CSS DOM classes to merge, defaults to Set[str]=None - :type dom_classes: [type], optional :return: Set of CSS Classes to apply - :rtype: Set[str] """ g, tree = self.source @@ -285,18 +288,14 @@ def get_css( elk_type: Type[ElkGraphElement], dom_classes: Set[str] = None, ) -> Set[str]: - """Get the CSS Classes appropriate for given networkx node given + """Get the CSS Classes appropriate for given NetworkX node given elk_type - :param node: Networkx node - :type node: Hashable + :param node: NetworkX node :param elk_type: ElkGraphElement to get appropriate css classes - :type elk_type: Type[ElkGraphElement] :param dom_classes: Set of base CSS DOM classes to merge, defaults to Set[str]=None - :type dom_classes: [type], optional :return: Set of CSS Classes to apply - :rtype: Set[str] """ typed_css = self.css_classes.get(node, {}) css_classes = set(typed_css.get(elk_type, [])) @@ -341,11 +340,8 @@ async def make_edge( """Make the associated Elk edge for the given Edge :param edge: Edge object to wrap - :type edge: Edge :param styles: List of css classes to add to given Elk edge, defaults to None - :type styles: Optional[List[str]], optional :return: Elk edge - :rtype: ElkExtendedEdge """ labels = [] @@ -383,14 +379,10 @@ async def make_port( ) -> Port: """Make the associated elk port for the given owner node and port - :param owner: [description] - :type owner: Hashable - :param port: [description] - :type port: Hashable + :param owner: NetworkX node + :param port: NetworkX port name :param styles: list of css classes to apply to given ElkPort - :type styles: List[str] - :return: [description] - :rtype: ElkPort + :return: Elk port """ port_id = self.port_id(owner, port) properties = self.get_properties(port, styles) or None @@ -409,6 +401,10 @@ def get_node_data(self, node: Hashable) -> Dict: return g.nodes.get(node, {}) async def collect_ports(self, *nodes) -> PortMap: + """Get port map for list of incoming NetworkX nodes + + :return: ElkPort objects mapped to their + """ ports: PortMap = {} for node in nodes: values = self.get_node_data(node).get(self.port_key, []) @@ -438,7 +434,12 @@ async def collect_ports(self, *nodes) -> PortMap: ports[elkport.id] = Port(node=node, elkport=elkport) return ports - async def make_labels(self, node: Hashable) -> Optional[List[ElkLabel]]: + async def make_labels(self, node: Hashable) -> List[ElkLabel]: + """Get associated ElkLabels for a given input NetworkX node. + + :param node: Input NetworkX node + :return: List of ElkLabels + """ labels = [] g = self.source[0] data = g.nodes.get(node, {}) @@ -478,13 +479,10 @@ async def make_labels(self, node: Hashable) -> Optional[List[ElkLabel]]: return labels def collect_edges(self) -> Tuple[EdgeMap, EdgeMap]: - """[summary] + """Method to process edges in the NetworkX source graph and separate + visible edges and hidden edges. - :return: [description] - :rtype: Tuple[ - Dict[Hashable, List[ElkExtendedEdge]], - Dict[Hashable, List[ElkExtendedEdge]] - ] + :return: Visible edge mapping and hidden edge mapping. """ visible: EdgeMap = defaultdict( list diff --git a/py_src/ipyelk/schema/elkschema.json b/py_src/ipyelk/schema/elkschema.json new file mode 100644 index 00000000..1b9ea278 --- /dev/null +++ b/py_src/ipyelk/schema/elkschema.json @@ -0,0 +1,746 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "AnyElkEdge": { + "anyOf": [ + { + "$ref": "#/definitions/ElkEdge" + }, + { + "$ref": "#/definitions/ElkExtendedEdge" + }, + { + "$ref": "#/definitions/ElkPrimitiveEdge" + }, + { + "$ref": "#/definitions/LazyElkEdge" + } + ] + }, + "AnyElkEdgeWithProperties": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "properties": { + "$ref": "#/definitions/ElkProperties" + } + }, + "required": ["id"], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "properties": { + "$ref": "#/definitions/ElkProperties" + }, + "sections": { + "items": { + "$ref": "#/definitions/ElkEdgeSection" + }, + "type": "array" + }, + "sources": { + "items": { + "type": "string" + }, + "type": "array" + }, + "targets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": ["id", "sections", "sources", "targets"], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "bendPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "properties": { + "$ref": "#/definitions/ElkProperties" + }, + "source": { + "type": "string" + }, + "sourcePoint": { + "$ref": "#/definitions/ElkPoint" + }, + "sourcePort": { + "type": "string" + }, + "target": { + "type": "string" + }, + "targetPoint": { + "$ref": "#/definitions/ElkPoint" + }, + "targetPort": { + "type": "string" + } + }, + "required": ["id", "source", "target"], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/AnyElkLabelWithProperties" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "properties": { + "$ref": "#/definitions/ElkProperties" + }, + "sources": { + "items": { + "type": "string" + }, + "type": "array" + }, + "targets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": ["id", "sources", "targets"], + "type": "object" + } + ] + }, + "AnyElkLabelWithProperties": { + "additionalProperties": false, + "properties": { + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "properties": { + "$ref": "#/definitions/ElkProperties" + }, + "text": { + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id", "text"], + "type": "object" + }, + "AnyElkNode": { + "additionalProperties": false, + "properties": { + "children": { + "items": { + "$ref": "#/definitions/AnyElkNode" + }, + "type": "array" + }, + "edges": { + "items": { + "$ref": "#/definitions/AnyElkEdgeWithProperties" + }, + "type": "array" + }, + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/AnyElkLabelWithProperties" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "ports": { + "items": { + "$ref": "#/definitions/AnyElkPort" + }, + "type": "array" + }, + "properties": { + "$ref": "#/definitions/ElkProperties" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id"], + "type": "object" + }, + "AnyElkPort": { + "additionalProperties": false, + "properties": { + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/AnyElkLabelWithProperties" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "properties": { + "$ref": "#/definitions/ElkProperties" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id"], + "type": "object" + }, + "ElkEdge": { + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + } + }, + "required": ["id"], + "type": "object" + }, + "ElkEdgeSection": { + "additionalProperties": false, + "properties": { + "bendPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "endPoint": { + "$ref": "#/definitions/ElkPoint" + }, + "id": { + "type": "string" + }, + "incomingSections": { + "items": { + "type": "string" + }, + "type": "array" + }, + "incomingShape": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "outgoingSections": { + "items": { + "type": "string" + }, + "type": "array" + }, + "outgoingShape": { + "type": "string" + }, + "startPoint": { + "$ref": "#/definitions/ElkPoint" + } + }, + "required": ["endPoint", "id", "startPoint"], + "type": "object" + }, + "ElkExtendedEdge": { + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "sections": { + "items": { + "$ref": "#/definitions/ElkEdgeSection" + }, + "type": "array" + }, + "sources": { + "items": { + "type": "string" + }, + "type": "array" + }, + "targets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": ["id", "sections", "sources", "targets"], + "type": "object" + }, + "ElkGraphElement": { + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + } + }, + "required": ["id"], + "type": "object" + }, + "ElkLabel": { + "additionalProperties": false, + "properties": { + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "text": { + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id", "text"], + "type": "object" + }, + "ElkNode": { + "additionalProperties": false, + "properties": { + "children": { + "items": { + "$ref": "#/definitions/ElkNode" + }, + "type": "array" + }, + "edges": { + "items": { + "$ref": "#/definitions/ElkEdge" + }, + "type": "array" + }, + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "ports": { + "items": { + "$ref": "#/definitions/ElkPort" + }, + "type": "array" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id"], + "type": "object" + }, + "ElkPoint": { + "additionalProperties": false, + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["x", "y"], + "type": "object" + }, + "ElkPort": { + "additionalProperties": false, + "properties": { + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id"], + "type": "object" + }, + "ElkPrimitiveEdge": { + "additionalProperties": false, + "properties": { + "bendPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "source": { + "type": "string" + }, + "sourcePoint": { + "$ref": "#/definitions/ElkPoint" + }, + "sourcePort": { + "type": "string" + }, + "target": { + "type": "string" + }, + "targetPoint": { + "$ref": "#/definitions/ElkPoint" + }, + "targetPort": { + "type": "string" + } + }, + "required": ["id", "source", "target"], + "type": "object" + }, + "ElkProperties": { + "additionalProperties": false, + "properties": { + "cssClasses": { + "type": "string" + }, + "isDef": { + "type": "boolean" + }, + "shape": { + "$ref": "#/definitions/Shape" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "ElkShape": { + "additionalProperties": false, + "properties": { + "height": { + "type": "number" + }, + "id": { + "type": "string" + }, + "labels": { + "items": { + "$ref": "#/definitions/ElkLabel" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": ["id"], + "type": "object" + }, + "LayoutOptions": { + "additionalProperties": { + "type": "string" + }, + "description": "***************************************************************************** Copyright (c) 2019 TypeFox and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html *****************************************************************************", + "type": "object" + }, + "LazyElkEdge": { + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "junctionPoints": { + "items": { + "$ref": "#/definitions/ElkPoint" + }, + "type": "array" + }, + "labels": { + "items": { + "$ref": "#/definitions/AnyElkLabelWithProperties" + }, + "type": "array" + }, + "layoutOptions": { + "$ref": "#/definitions/LayoutOptions" + }, + "sources": { + "items": { + "type": "string" + }, + "type": "array" + }, + "targets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": ["id", "sources", "targets"], + "type": "object" + }, + "Shape": { + "additionalProperties": false, + "properties": { + "end": { + "type": "string" + }, + "height": { + "type": "number" + }, + "start": { + "type": "string" + }, + "use": { + "type": "string" + }, + "width": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "type": "object" + } + } +} diff --git a/py_src/ipyelk/schema/validator.py b/py_src/ipyelk/schema/validator.py index e14c4584..83ddc31e 100644 --- a/py_src/ipyelk/schema/validator.py +++ b/py_src/ipyelk/schema/validator.py @@ -12,6 +12,7 @@ SCHEMA = json.loads((HERE / "elkschema.json").read_text(encoding="utf-8")) SCHEMA["$ref"] = "#/definitions/AnyElkNode" + ElkSchemaValidator = jsonschema.Draft7Validator(SCHEMA) diff --git a/py_src/ipyelk/transform.py b/py_src/ipyelk/transform.py index b64314d3..8c1b31b8 100644 --- a/py_src/ipyelk/transform.py +++ b/py_src/ipyelk/transform.py @@ -37,6 +37,8 @@ def __hash__(self): return hash(tuple([hash(self.node), hash(self.elkport.id)])) +# TODO investigating following pattern for various map +# https://github.com/pandas-dev/pandas/issues/33025#issuecomment-699636759 NodeMap = Dict[Hashable, ElkNode] EdgeMap = Dict[Hashable, List[Edge]] PortMap = Dict[Hashable, Port] @@ -106,14 +108,23 @@ def from_id(self, element_id: str) -> Hashable: ) from E def to_id(self, item: Hashable) -> str: - """Use original objects to find elk id""" + """Use original objects to find elk id + + :param item: item to convert to the elk identifier + :raises ElkRegistryError: If unable to find item in the registry + :return: elk identifier + """ try: return self._item_to_elk[item] except KeyError as E: raise ElkRegistryError(f"Item `{item}` not in elk id registry.") from E def connect(self, view: ElkDiagram) -> T.link: - """Connect the output value of this transformer to a diagram""" + """Connect the output elk json value of this transformer to a diagram + + :param view: Elk diagram to link elk json values. + :return: traitlet link + """ return T.dlink((self, "value"), (view, "value")) def register(self, element: Union[str, ElkGraphElement], item: Hashable): diff --git a/scripts/project.py b/scripts/project.py index 1dad6549..f8bf1510 100644 --- a/scripts/project.py +++ b/scripts/project.py @@ -102,7 +102,7 @@ ] # env stuff -OK_ENV = {env: BUILD / f"prep_{env}.ok" for env in ["default", "atest"]} +OK_ENV = {env: BUILD / f"prep_{env}.ok" for env in ["default", "atest", "docs"]} # python stuff PY_SRC = ROOT / "py_src" / PY_PKG @@ -167,6 +167,7 @@ OK_PYFLAKES = BUILD / "pyflakes.ok" OK_NBLINT = {nb.name: BUILD / f"nblint.{nb.name}.ok" for nb in EXAMPLE_IPYNB} OK_PIP_INSTALL = BUILD / "pip_install.ok" +OK_DOCS_PIP_INSTALL = BUILD / "docs_pip_install.ok" OK_PRETTIER = BUILD / "prettier.ok" OK_INDEX = BUILD / "index.ok" OK_LABEXT = BUILD / "labext.ok"